Re: [PATCH v2] x86/KASLR: Use old ident map page table if physical randomization failed

2017-04-27 Thread Baoquan He
On 04/28/17 at 08:25am, Ingo Molnar wrote: > > * Baoquan He wrote: > > > Dave found kdump kernel with kaslr enabled will reset to bios immediately > > if physical randomization failed to find a new position for kernel. But > > kernel with 'nokaslr' option works in this case. > > > > The reason

Re: [PATCH v2 2/2] mm: skip HWPoisoned pages when onlining pages

2017-04-27 Thread Michal Hocko
On Fri 28-04-17 08:50:50, Michal Hocko wrote: > [Drop Wen Congyang because his address bounces - we will have to find > out ourselves...] Ble, for real this time. Sorry about spamming > On Fri 28-04-17 08:30:48, Michal Hocko wrote: > > On Wed 26-04-17 03:13:04, Naoya Horiguchi wrote: > > > On We

Re: [PATCH v2 2/2] mm: skip HWPoisoned pages when onlining pages

2017-04-27 Thread Michal Hocko
[Drop Wen Congyang because his address bounces - we will have to find out ourselves...] On Fri 28-04-17 08:30:48, Michal Hocko wrote: > On Wed 26-04-17 03:13:04, Naoya Horiguchi wrote: > > On Wed, Apr 26, 2017 at 12:10:15PM +1000, Balbir Singh wrote: > > > On Tue, 2017-04-25 at 16:27 +0200, Lauren

Re: [PATCH v2 16/16] fpga: region: move device tree support to of-fpga-region.c

2017-04-27 Thread Wu Hao
On Thu, Apr 20, 2017 at 09:10:01AM -0500, Alan Tull wrote: > Create of-fpga-region.c > > Move the following functions without modification from > fpga-region.c to of-fpga-region.c: > > * of_fpga_region_find > * of_fpga_region_get_mgr > * of_fpga_region_get_bridges > * child_regions_with_firmware

Re: [PATCH] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-04-27 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Wed, Apr 26, 2017 at 05:55:31PM -0700, Dan Williams wrote: > > Kirill points out that the calls to {get,put}_dev_pagemap() can be > > removed from the mm fast path if we take a single get_dev_pagemap() > > reference to signify that the page is alive and use the f

Re: [PATCH v8 1/4] syscalls: Verify address limit before returning to user-mode

2017-04-27 Thread Ingo Molnar
* Thomas Garnier wrote: > Ensure that a syscall does not return to user-mode with a kernel address > limit. If that happens, a process can corrupt kernel-mode memory and > elevate privileges [1]. > > The CONFIG_ADDR_LIMIT_CHECK option disables the generic check so each > architecture can create

Re: [PATCH v1 2/2] clk: rockchip: export rk3228 clocks ID

2017-04-27 Thread Heiko Stuebner
Hi Elaine, Am Freitag, 28. April 2017, 10:33:21 CEST schrieb Elaine Zhang: > This patch exports related BUS/VPU/RGA/HDCP/IEP/TSP/WIFI/ > VIO/USB/EFUSE/GPU/CRYPTO clocks for dts reference. > > Signed-off-by: Elaine Zhang As always, please separate this into two patches with one adding the clock-

Re: [PATCH v8 1/4] syscalls: Verify address limit before returning to user-mode

2017-04-27 Thread Ingo Molnar
* Thomas Garnier wrote: > > BTW., a further simplification would be: > > > > #ifndef ADDR_LIMIT_CHECK_PRE > > # define ADDR_LIMIT_CHECK_PRE ... > > #endif > > > > This way architectures could override this generic functionality simply by > > defining the helpers. Architectures that don't do that

Re: [PATCH v2 07/21] crypto: shash, caam: Make use of the new sg_map helper function

2017-04-27 Thread Herbert Xu
On Thu, Apr 27, 2017 at 09:45:57AM -0600, Logan Gunthorpe wrote: > > > On 26/04/17 09:56 PM, Herbert Xu wrote: > > On Tue, Apr 25, 2017 at 12:20:54PM -0600, Logan Gunthorpe wrote: > >> Very straightforward conversion to the new function in the caam driver > >> and shash library. > >> > >> Signed-

Re: [PATCH v2 2/2] mm: skip HWPoisoned pages when onlining pages

2017-04-27 Thread Michal Hocko
On Wed 26-04-17 03:13:04, Naoya Horiguchi wrote: > On Wed, Apr 26, 2017 at 12:10:15PM +1000, Balbir Singh wrote: > > On Tue, 2017-04-25 at 16:27 +0200, Laurent Dufour wrote: > > > The commit b023f46813cd ("memory-hotplug: skip HWPoisoned page when > > > offlining pages") skip the HWPoisoned pages w

[PATCH] staging: speakup: fix wrong code indent

2017-04-27 Thread Michael Mera
Remove unecessary multiline comment, fixes checkpatch messages: ERROR: code indent should use tabs where possible WARNING: Block comments should align the * on each line Signed-off-by: Michael Mera --- drivers/staging/speakup/speakup_decpc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(

Re: [PATCH v2] x86/KASLR: Use old ident map page table if physical randomization failed

2017-04-27 Thread Ingo Molnar
* Baoquan He wrote: > Dave found kdump kernel with kaslr enabled will reset to bios immediately > if physical randomization failed to find a new position for kernel. But > kernel with 'nokaslr' option works in this case. > > The reason is kaslr will install a new page table for ident mapping, >

Re: [GIT PULL rcu/urgent] Adjust SRCU auto-expedite default delay

2017-04-27 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > This series adds a small change to yesterday's pull request, namely > changing the default value of the srcutree.exp_holdoff kernel boot > parameter from 50 microseconds to 25 microseconds. This change completely > eliminates the performance shortfa

Re: fs: use-after-free in path_lookupat

2017-04-27 Thread Dmitry Vyukov
On Thu, Mar 23, 2017 at 3:17 PM, Dmitry Vyukov wrote: > On Sun, Mar 5, 2017 at 8:18 PM, Al Viro wrote: >> On Sun, Mar 05, 2017 at 06:33:18PM +0100, Dmitry Vyukov wrote: >> >>> Added more debug output. >>> >>> name_to_handle_at(r4, &(0x7f003000-0x6)="2e2f62757300", >>> &(0x7f003000-0xd)={0

Re: [REGRESSION next-20170426] Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices") causes oops in mvneta

2017-04-27 Thread Ralph Sennhauser
On Fri, 28 Apr 2017 11:13:33 +0530 Sricharan R wrote: > Hi Ralph, > > On 4/27/2017 8:10 PM, Ralph Sennhauser wrote: > > On Thu, 27 Apr 2017 19:05:09 +0530 > > Sricharan R wrote: > > > >> Hi, > >> > >> On 4/26/2017 9:45 PM, Ralph Sennhauser wrote: > >>> Hi Sricharan R, > >>> > >>> Commit 09

Re: [PATCH] mm: Add additional consistency check

2017-04-27 Thread Michal Hocko
On Thu 27-04-17 18:11:28, Kees Cook wrote: > On Tue, Apr 11, 2017 at 7:19 AM, Michal Hocko wrote: > > I would do something like... > > --- > > diff --git a/mm/slab.c b/mm/slab.c > > index bd63450a9b16..87c99a5e9e18 100644 > > --- a/mm/slab.c > > +++ b/mm/slab.c > > @@ -393,10 +393,15 @@ static inl

[PATCH v2] powerpc/mm: Only read faulting instruction when necessary in do_page_fault()

2017-04-27 Thread Christophe Leroy
Commit a7a9dcd882a67 ("powerpc: Avoid taking a data miss on every userspace instruction miss") has shown that limiting the read of faulting instruction to likely cases improves performance. This patch goes further into this direction by limiting the read of the faulting instruction to the only cas

Re: [PATCH RFC] remove custom Michael MIC implementation

2017-04-27 Thread Wolfram Sang
Hi Tobin, > over this last month :). This is the reason for this email. Can I > please take you up on the offer of the SDW-823 card, if you can find > it? Sure, I have it here. Just mail me (privately) the address to send it to and I'll ship right away. > Secondly, I think I should spend some ti

Re: [PATCH v2 1/2] mm: Uncharge poisoned pages

2017-04-27 Thread Michal Hocko
On Thu 27-04-17 13:51:23, Andi Kleen wrote: > Michal Hocko writes: > > > On Tue 25-04-17 16:27:51, Laurent Dufour wrote: > >> When page are poisoned, they should be uncharged from the root memory > >> cgroup. > >> > >> This is required to avoid a BUG raised when the page is onlined back: > >> BU

[PATCH V2] hwmon: (ibmpowernv) Add min/max attributes and current sensors

2017-04-27 Thread Shilpasri G Bhat
Add support for adding min/max values for the inband sensors copied by OCC to main memory. And also add current(mA) sensors to the list. Signed-off-by: Shilpasri G Bhat --- Changes from V1: - Add functions to get min and max attribute strings - Add function 'populate_sensor' to fill in the 'struc

[PATCH v2 2/2] f2fs: introduce CP_TRIMMED_FLAG to avoid unneeded discard

2017-04-27 Thread Chao Yu
Introduce CP_TRIMMED_FLAG to indicate all invalid block were trimmed before umount, so once we do mount with image which contain the flag, we don't record invalid blocks as undiscard one, when fstrim is being triggered, we can avoid issuing redundant discard commands. Signed-off-by: Chao Yu Signe

Re: [REGRESSION next-20170426] Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices") causes oops in mvneta

2017-04-27 Thread Sricharan R
Hi Ralph, On 4/27/2017 8:10 PM, Ralph Sennhauser wrote: > On Thu, 27 Apr 2017 19:05:09 +0530 > Sricharan R wrote: > >> Hi, >> >> On 4/26/2017 9:45 PM, Ralph Sennhauser wrote: >>> Hi Sricharan R, >>> >>> Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe >>> time for platform/amba/p

Re: [PATCH] fs: Handle register_shrinker failure

2017-04-27 Thread Al Viro
On Fri, Apr 28, 2017 at 05:30:46AM +0100, Al Viro wrote: > I really don't like that. Your "remove it from all lists and pray that > nobody has picked a reference of any kind" at the very least needs a careful > written proof of correctness. AFAICS, somebody might've found it on the > list and at

Re: [PATCH v5 31/32] x86: Add sysfs support for Secure Memory Encryption

2017-04-27 Thread Dave Young
On 04/27/17 at 08:52am, Dave Hansen wrote: > On 04/27/2017 12:25 AM, Dave Young wrote: > > On 04/21/17 at 02:55pm, Dave Hansen wrote: > >> On 04/18/2017 02:22 PM, Tom Lendacky wrote: > >>> Add sysfs support for SME so that user-space utilities (kdump, etc.) can > >>> determine if SME is active. > >

[PATCH v3 4/4] ACPI: Fix memory mapping leaks in current sysfs dumpable ACPI tables support

2017-04-27 Thread Lv Zheng
This patch adds acpi_put_table() to make all acpi_get_table() clone invocations balanced for sysfs ACPI table dump code. Since Linux does not use all of the tables, this can help to reduce some usless memory mappings. While originally, all tables will be remained to be mapped after a userspace ac

[PATCH v3 1/4] ACPICA: Tables: Fix regression introduced by a too early mechanism enabling

2017-04-27 Thread Lv Zheng
In the Linux kernel side, acpi_get_table() clones haven't been fully balanced by acpi_put_table() invocations. In ACPICA side, due to the design change, there are also unbalanced acpi_get_table_by_index() invocations requiring special care. So it is not a good timing to report acpi_get_table() cou

[PATCH v3 2/4] ACPICA: Tables: Add mechanism to allow to balance late stage acpi_get_table() independently

2017-04-27 Thread Lv Zheng
For all frequent late stage acpi_get_table() clone invocations, we should only fix them altogether, otherwise, excessive acpi_put_table() could unexpectedly unmap the table used by the other users. Thus the current plan is to fix all acpi_get_table() clones together or to fix none of them. This pre

[PATCH v3 3/4] ACPI: sysfs: Fix acpi_get_table() leak

2017-04-27 Thread Lv Zheng
From: Dan Williams Reading an ACPI table through the /sys/firmware/acpi/tables interface more than 65,536 times leads to the following log message: ACPI Error: Table 88033595eaa8, Validation count is zero after increment (20170119/tbutils-423) Add the missing acpi_put_table() so the tabl

[PATCH v2 1/4] ACPICA: Tables: Fix regression introduced by a too early mechanism enabling

2017-04-27 Thread Lv Zheng
In the Linux kernel side, acpi_get_table() clones haven't been fully balanced by acpi_put_table() invocations. In ACPICA side, due to the design change, there are also unbalanced acpi_get_table_by_index() invocations requiring special care. So it is not a good timing to report acpi_get_table() cou

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread Dave Young
Correct Vivek's email address On 04/28/17 at 01:19pm, Dave Young wrote: > Vivek, can you help to give some comments about the locate hole isssue > in kexec_file? > > On 04/28/17 at 09:51am, AKASHI Takahiro wrote: > > Thiago, > > > > Thank you for the comment. > > > > On Thu, Apr 27, 2017 at 07:0

Re: [PATCH v5 10/10] arm: dts: genmai: Add ethernet pin group

2017-04-27 Thread Simon Horman
On Thu, Apr 27, 2017 at 10:48:45AM +, Chris Brandt wrote: > Hi Geert, > > On Thursday, April 27, 2017, Geert Uytterhoeven wrote: > > > +ðer { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <ðer_pins>; > > > + > > > + status = "okay"; > > > + > > > + renesas,no-e

Re: [PATCH v5 00/10] Renesas RZ/A1 pin and gpio controller

2017-04-27 Thread Simon Horman
On Thu, Apr 27, 2017 at 10:42:02AM +0200, Geert Uytterhoeven wrote: > Hi Jacopo, > > On Thu, Apr 27, 2017 at 10:19 AM, Jacopo Mondi > wrote: > >this is 5th round of gpio/pincontroller for RZ/A1 devices. > > > > I have updated the pin controller driver to use the newly introduced > > "pinctrl_

Re: [PATCH v5 07/10] arm: dts: genmai: Add SCIF2 pin group

2017-04-27 Thread Simon Horman
On Thu, Apr 27, 2017 at 10:19:51AM +0200, Jacopo Mondi wrote: > Add pin configuration subnode for SCIF2 serial debug interface. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Geert Uytterhoeven As the dt-bindings (documentation) has been acked by Geert I'd be happy to queue up this and other "a

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread Dave Young
Vivek, can you help to give some comments about the locate hole isssue in kexec_file? On 04/28/17 at 09:51am, AKASHI Takahiro wrote: > Thiago, > > Thank you for the comment. > > On Thu, Apr 27, 2017 at 07:00:04PM -0300, Thiago Jung Bauermann wrote: > > Hello, > > > > Am Mittwoch, 26. April 2017

Re: [PATCH v5 05/10] arm: dts: dt-bindings: Add Renesas RZ/A1 pinctrl header

2017-04-27 Thread Simon Horman
On Thu, Apr 27, 2017 at 10:38:39AM +0200, Geert Uytterhoeven wrote: > On Thu, Apr 27, 2017 at 10:19 AM, Jacopo Mondi > wrote: > > Add dt-bindings for Renesas r7s72100 pin controller header file. > > > > Signed-off-by: Jacopo Mondi > > Reviewed-by: Geert Uytterhoeven Thanks, I have queued this

[PATCH] mnt: allow to add a mount into an existing group

2017-04-27 Thread Andrei Vagin
Now a shared group can be only inherited from a source mount. This patch adds an ability to add a mount into an existing shared group. mount(source, target, NULL, MS_SET_GROUP, NULL) mount() with the MS_SET_GROUP flag adds the "target" mount into a group of the "source" mount. The calling process

Re: [PATCH v2 pci] PCI/MSI: pci-xgene-msi: Enable MSI support in ACPI boot for X-Gene v1

2017-04-27 Thread Jon Masters
On 04/27/2017 08:54 PM, Khuong Dinh wrote: > From: Khuong Dinh > > This patch makes pci-xgene-msi driver ACPI-aware and provides > MSI capability for X-Gene v1 PCIe controllers in ACPI boot mode. > > Signed-off-by: Khuong Dinh > Signed-off-by: Duc Dang > Acked-by: Marc Zyngier Thanks. Curren

Re: [PATCH] xen/x86: Call xen_smp_intr_init_pv() on BSP

2017-04-27 Thread Juergen Gross
On 26/04/17 15:42, Boris Ostrovsky wrote: > Recent code rework that split handling ov PV, HVM and PVH guests into > separate files missed calling xen_smp_intr_init_pv() on CPU0. > > Add this call. > > Signed-off-by: Boris Ostrovsky > Reported-by: Sander Eikelenboom Reviewed-by: Juergen Gross

Re: [PATCH V4 1/9] PM / OPP: Allow OPP table to be used for power-domains

2017-04-27 Thread Viresh Kumar
On 27-04-17, 16:20, Rajendra Nayak wrote: > > On 04/27/2017 03:12 PM, Sudeep Holla wrote: > [].. > > >> > >>> At qualcomm, we have an external M3 core (running its own firmware) which > >>> controls > >>> a few voltage rails (including AVS on those). The devices vote for the > >>> voltage level

[PATCH] MAINTAINERS: Update MAX77802 PMIC entry

2017-04-27 Thread Javier Martinez Canillas
The Samsung email address will stop working soon, so use my personal email address instead. Also, there used to be a MFD and RTC drivers for max77802 but now these have been merged with the max77686 MFD and RTC drivers. The only driver that's still max77802 specific is the regulator one since ther

[PATCH v2 4/4] perf vendor events arm64: Add implementation defined pmu core events of ThunderX2

2017-04-27 Thread Ganapatrao Kulkarni
This is not a full event list, but a short list of useful events. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/pmu-events/arch/arm64/mapfile.csv | 14 + .../arm64/thunderx2/implementation-defined.json| 62 ++ 2 files changed, 76 insertions(+) create mode 1

[PATCH v2 3/4] perf utils: Add helper function is_pmu_core to detect PMU CORE devices

2017-04-27 Thread Ganapatrao Kulkarni
On some platforms, PMU core devices sysfs name is not cpu. Adding function is_pmu_core to detect as core device using core device specific hints in sysfs. For arm64 platforms, all core devices have file "cpus" in sysfs. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/util/pmu.c | 44 +

[PATCH v2 1/4] perf utils: passing pmu as a parameter to function get_cpuid_str

2017-04-27 Thread Ganapatrao Kulkarni
cpuid string will not be same on all CPUs on heterogeneous platforms like ARM's big.LITTLE, adding provision(using pmu->cpus) to find cpuid string from associated CPUs of PMU CORE device. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/arch/powerpc/util/header.c | 3 ++- tools/perf/arch/x86/u

[PATCH v2 2/4] perf tools arm64: Add support for get_cpuid_str function.

2017-04-27 Thread Ganapatrao Kulkarni
function get_cpuid_str returns MIDR string of the first online cpu from the range of cpus associated with the pmu core device. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/arch/arm64/util/Build| 1 + tools/perf/arch/arm64/util/header.c | 41 + 2 file

[PATCH v2 0/4] Add support for ThunderX2 pmu events using json files

2017-04-27 Thread Ganapatrao Kulkarni
Extending json/jevent framework for parsing arm64 event files. Adding jevents for ThunderX2 implementation defined PMU events. v2: - Updated as per Mark Rutland's suggestions. - added provision for get_cpuid_str to get cpu id string from associated cpus of pmu core device. v1: Initial

[PATCH v2] [media] vb2: Fix an off by one error in 'vb2_plane_vaddr'

2017-04-27 Thread Christophe JAILLET
We should ensure that 'plane_no' is '< vb->num_planes' as done in 'vb2_plane_cookie' just a few lines below. Cc: sta...@vger.kernel.org Fixes: e23ccc0ad925 ("[media] v4l: add videobuf2 Video for Linux 2 driver framework") Signed-off-by: Christophe JAILLET --- v2: add CC and Fixes tags --- driv

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread Dave Young
Hi AKASHI On 04/26/17 at 05:22pm, AKASHI Takahiro wrote: > The current kexec_locate_mem_hole(kbuf.top_down == 1) stops searching at > the first memory region that has enough space for requested size even if > some of higher regions may also have. > This behavior is not consistent with locate_hole(h

nvdimm/pmem device lifetime

2017-04-27 Thread Mika Penttilä
Hi, Just wondering the pmem struct device vs gendisk lifetimes.. from pmem_attach_disk(): device_add_disk(dev, disk); devm_add_action_or_reset(dev, pmem_release_disk, disk); where: static void pmem_release_disk(void *disk) { del_gendisk(disk); put_disk(disk); }

linux-next: build failure after merge of the kvm-ppc tree

2017-04-27 Thread Stephen Rothwell
Hi Paul, After merging the kvm-ppc tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: arch/powerpc/kvm/book3s_xive.c: In function 'xive_debugfs_init': arch/powerpc/kvm/book3s_xive.c:1852:52: error: 'powerpc_debugfs_root' undeclared (first use in this function) xive->den

[PATCH] of: unittest, fix possible use of unitialized variable

2017-04-27 Thread frowand . list
From: Frank Rowand Fix problem reported in the linux-next build. last_sibling may be unitialized in of_unittest() if the device tree is empty. Signed-off-by: Frank Rowand --- drivers/of/unittest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/unittest.c b/driv

Re: [PATCH] fs: Handle register_shrinker failure

2017-04-27 Thread Al Viro
On Fri, Mar 24, 2017 at 09:55:40AM +0200, Nikolay Borisov wrote: > register_shrinker allocates dynamic memory and thus is susceptible to failures > under low-memory situation. Currently,get_userns ignores the return value of > register_shrinker, potentially exposing not fully initialised object. Th

Re: [REGRESSION next-20170426] Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices") causes oops in mvneta

2017-04-27 Thread Sricharan R
Hi Ralph, On 4/27/2017 7:05 PM, Sricharan R wrote: > Hi, > > On 4/26/2017 9:45 PM, Ralph Sennhauser wrote: >> Hi Sricharan R, >> >> Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe time >> for platform/amba/pci bus devices") causes a kernel panic as in the log >> below on an armad

Re: [PATCH V4 00/17] thermal: cpu_cooling: improve interaction with cpufreq core

2017-04-27 Thread Viresh Kumar
On 27-04-17, 09:26, Eduardo Valentin wrote: > On Wed, Apr 26, 2017 at 04:17:52PM +0530, Viresh Kumar wrote: > > On 26-04-17, 11:41, Lukasz Luba wrote: > > > Hi Viresh, > > > > > > I went through the v4 code and it looks good to me. > > > Feel free to add for the v4 series > > > Reviewed-by: Lukasz

[PATCH] MAINTAINERS: Remove myself as reviewer for Exynos

2017-04-27 Thread Javier Martinez Canillas
I left Samsung and lost access to most Exynos hardware and documentation. Also, I likely won't be able to keep an eye on the platform anymore in the short term so remove myself as a reviewer for Exynos. Signed-off-by: Javier Martinez Canillas --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-

Re: [PATCH] iio: st_pressure: st_accel: Initialise sensor platform data properly

2017-04-27 Thread Shrirang Bagul
On Wed, 2017-04-26 at 06:37 +0100, Jonathan Cameron wrote: > On 19/04/17 15:05, Shrirang Bagul wrote: > > This patch fixes the sensor platform data initialisation for st_pressure > > and st_accel device drivers. Without this patch, the driver fails to > > register the sensors when the user removes

RE: [PATCH v2 1/2] ACPICA: Tables: Fix regression introduced by a too early mechanism enabling

2017-04-27 Thread Zheng, Lv
Hi, Rafael I reconsidered your comments. Seems there are several problems you might not be aware of. Let me reply again. > From: linux-acpi-ow...@vger.kernel.org > [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Rafael J. > Wysocki > Subject: Re: [PATCH v2 1/2] ACPICA: Tables: Fix regress

[rhashtable] 6d684e5469: Kernel panic - not syncing: rtnetlink_init: cannot initialize rtnetlink

2017-04-27 Thread kernel test robot
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master commit 6d684e54690caef45cf14051ddeb7c71beeb681b Author: Herbert Xu AuthorDate: Thu Apr 27 13:44:51 2017 +0800 Commit: David S. M

Re: [PATCH v6 2/5] firmware: add extensible driver data API

2017-04-27 Thread AKASHI Takahiro
Luis, On Fri, Apr 28, 2017 at 02:51:44AM +0200, Luis R. Rodriguez wrote: > On Thu, Apr 13, 2017 at 06:36:17PM +0900, AKASHI Takahiro wrote: > > On Wed, Mar 29, 2017 at 08:25:11PM -0700, Luis R. Rodriguez wrote: > > > Signed-off-by: Luis R. Rodriguez > > > --- > > > Documentation/driver-api/firmw

Re: [PATCH] pstore: Solve lockdep warning by moving inode locks

2017-04-27 Thread Namhyung Kim
Hi, On Fri, Apr 28, 2017 at 8:20 AM, Kees Cook wrote: > Lockdep complains about a possible deadlock between mount and unlink > (which is technically impossible), but fixing this improves possible > future multiple-backend support, and keeps locking in the right order. > > The lockdep warning coul

Re: perf report warnings on tracepoint events hidden by ui

2017-04-27 Thread Namhyung Kim
Hi, On Fri, Apr 28, 2017 at 9:31 AM, David Carrillo-Cisneros wrote: > When processing tracepoint events, perf report outputs warnings about > field not founds. The warnings are usually hidden by perf report UI > and appear when using the --stdio option. e.g. Yep, currently perf report TUI hides

Re: [PATCH v3 7/8] arm64: exception: handle asynchronous SError interrupt

2017-04-27 Thread Xiongfeng Wang
Hi James, Thanks for your explanation and suggests. On 2017/4/25 1:14, James Morse wrote: > Hi Wang Xiongfeng, > > On 21/04/17 12:33, Xiongfeng Wang wrote: >> On 2017/4/20 16:52, James Morse wrote: >>> On 19/04/17 03:37, Xiongfeng Wang wrote: On 2017/4/18 18:51, James Morse wrote: > The

Re: [PATCH] Enabled pstore write for powerpc

2017-04-27 Thread Michael Ellerman
Kees Cook writes: > On Thu, Apr 27, 2017 at 4:33 AM, Ankit Kumar wrote: >> After commit c950fd6f201a kernel registers pstore write based on flag set. >> Pstore write for powerpc is broken as flags(PSTORE_FLAGS_DMESG) is not set >> for >> powerpc architecture. On panic, kernel doesn't write mess

Re: perf report warnings on tracepoint events hidden by ui

2017-04-27 Thread Steven Rostedt
On Thu, 27 Apr 2017 20:51:28 -0600 David Ahern wrote: > On 4/27/17 8:49 PM, Steven Rostedt wrote: > > On Thu, 27 Apr 2017 20:13:43 -0600 > > David Ahern wrote: > > > >> On 4/27/17 7:41 PM, Steven Rostedt wrote: > >>> On Thu, 27 Apr 2017 19:31:12 -0500 > >>> David Carrillo-Cisneros wrote: >

Re: [PATCH v2 2/2] mm: skip HWPoisoned pages when onlining pages

2017-04-27 Thread Balbir Singh
On Wed, 2017-04-26 at 03:13 +, Naoya Horiguchi wrote: > On Wed, Apr 26, 2017 at 12:10:15PM +1000, Balbir Singh wrote: > > On Tue, 2017-04-25 at 16:27 +0200, Laurent Dufour wrote: > > > The commit b023f46813cd ("memory-hotplug: skip HWPoisoned page when > > > offlining pages") skip the HWPoisone

Re: perf report warnings on tracepoint events hidden by ui

2017-04-27 Thread David Ahern
On 4/27/17 8:49 PM, Steven Rostedt wrote: > On Thu, 27 Apr 2017 20:13:43 -0600 > David Ahern wrote: > >> On 4/27/17 7:41 PM, Steven Rostedt wrote: >>> On Thu, 27 Apr 2017 19:31:12 -0500 >>> David Carrillo-Cisneros wrote: >>> When processing tracepoint events, perf report outputs warnings

Re: perf report warnings on tracepoint events hidden by ui

2017-04-27 Thread Steven Rostedt
On Thu, 27 Apr 2017 20:13:43 -0600 David Ahern wrote: > On 4/27/17 7:41 PM, Steven Rostedt wrote: > > On Thu, 27 Apr 2017 19:31:12 -0500 > > David Carrillo-Cisneros wrote: > > > >> When processing tracepoint events, perf report outputs warnings about > >> field not founds. The warnings are us

Re: [PATCH 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-04-27 Thread Ryder Lee
Hi, On Thu, 2017-04-27 at 20:55 +0200, Arnd Bergmann wrote: > On Wed, Apr 26, 2017 at 10:10 AM, Ryder Lee wrote: > > On Tue, 2017-04-25 at 14:38 +0200, Arnd Bergmann wrote: > >> On Sun, Apr 23, 2017 at 10:19 AM, Ryder Lee wrote: > > >> > +static int mtk_pcie_enable_ports(struct mtk_pcie *pcie)

Re: [PATCH 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-04-27 Thread Ryder Lee
On Thu, 2017-04-27 at 21:06 +0200, Arnd Bergmann wrote: > On Wed, Apr 26, 2017 at 10:10 AM, Ryder Lee wrote: > > Hi > > > > On Tue, 2017-04-25 at 14:18 +0200, Arnd Bergmann wrote: > >> On Sun, Apr 23, 2017 at 10:19 AM, Ryder Lee wrote: > >> > Add documentation for PCIe host driver available in MT

Re: [lkp-robot] [perf] 924726b2b5: double_fault:#[##]

2017-04-27 Thread Ye Xiaolong
On 04/27, Sebastian Andrzej Siewior wrote: >On 2017-04-27 10:58:36 [+0800], kernel test robot wrote: >> >> FYI, we noticed the following commit: >> >> commit: 924726b2b5e5000dfb8eb6032651baed1b1bdc6c ("perf: Cure hotplug lock >> ordering issues") >> https://git.kernel.org/cgit/linux/kernel/git/t

linux-next: build warning after merge of the devicetree tree

2017-04-27 Thread Stephen Rothwell
Hi Rob, After merging the devicetree tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/of/unittest.c: In function 'of_unittest': drivers/of/unittest.c:2199:25: warning: 'last_sibling' may be used uninitialized in this function [-Wmaybe-uninitialized] last_sib

Re: [PATCH] drivers: input: joystick: Add PSX (Play Station 1/2) pad with SPI driver.

2017-04-27 Thread Tomohiro Yoshidomi
Mr. Torokhov Hi. I'm AZO = Tomohiro Yoshidomi. I use handle name in my work. I'll use my real name in Linux development. I'm sorry to confuse you. I fixed my source to PATCH V4, and sent you. Please check and let me know if you notice further. 2017-04-27 17:17 GMT+09:00 Dmitry Torokhov : > Hi,

[PATCH v4] Input: psxpad-spi - Add PSX (Play Station 1/2) pad SPI driver

2017-04-27 Thread Tomohiro Yoshidomi
PSX pads can be connected directly to the SPI bus. Signed-off-by: Tomohiro Yoshidomi --- drivers/input/joystick/Kconfig | 17 ++ drivers/input/joystick/Makefile | 1 + drivers/input/joystick/psxpad-spi.c | 564 3 files changed, 582 insertions(+)

Re: [PATCH] ACPI / GED: use late init to allow other drivers init

2017-04-27 Thread Sinan Kaya
On 4/25/2017 12:24 PM, Sinan Kaya wrote: > On 4/25/2017 3:01 AM, Lukas Wunner wrote: >> On Sat, Apr 22, 2017 at 12:48 AM, Sinan Kaya wrote: >>> On 4/21/2017 6:43 PM, Rafael J. Wysocki wrote: +late_initcall(ged_init); Does this fix the problem? What about if the module in questi

[PATCH v1 1/2] clk: rockchip: fix up the RK3228 clk cpu setting table

2017-04-27 Thread Elaine Zhang
support more cpu freq, and add armcore div setting. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rk3228.c | 50 ++- 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3228.c b/drivers/clk/rockchip/clk-rk3228

[PATCH v1 2/2] clk: rockchip: export rk3228 clocks ID

2017-04-27 Thread Elaine Zhang
This patch exports related BUS/VPU/RGA/HDCP/IEP/TSP/WIFI/ VIO/USB/EFUSE/GPU/CRYPTO clocks for dts reference. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rk3228.c | 92 +- include/dt-bindings/clock/rk3228-cru.h | 47 + 2 files chan

[PATCH v1 0/2] clk: rockchip: Perfect clock description for RK3228

2017-04-27 Thread Elaine Zhang
support more cpu freq, and support armcore div setting. Add some necessary clks ID. Elaine Zhang (2): clk: rockchip: fix up the RK3228 clk cpu setting table clk: rockchip: export rk3228 clocks ID drivers/clk/rockchip/clk-rk3228.c | 142 +++-- include/dt-bindi

Re: [PATCH] watchdog: bcm281xx: Fix use of uninitialized spinlock.

2017-04-27 Thread Guenter Roeck
On 04/27/2017 06:02 PM, Eric Anholt wrote: The bcm_kona_wdt_set_resolution_reg() call takes the spinlock, so initialize it earlier. Fixes a warning at boot with lock debugging enabled. Signed-off-by: Eric Anholt Reviewed-by: Guenter Roeck --- drivers/watchdog/bcm_kona_wdt.c | 3 ++- 1 fi

Re: [trace-cmd Patch RFC] trace-cmd: top: A new interface to detect peak memory

2017-04-27 Thread Steven Rostedt
On Thu, 27 Apr 2017 23:03:24 +0530 Pratyush Anand wrote: > On Thursday 27 April 2017 10:19 PM, Steven Rostedt wrote: > > On Thu, 27 Apr 2017 19:32:43 +0530 > > Pratyush Anand wrote: > > > >> I will implement your review comments and will send next revision. > >> However, I had couple of observ

Re: [PATCH net-next 16/18] net: dsa: mv88e6xxx: simplify VTU entry getter

2017-04-27 Thread Andrew Lunn
On Wed, Apr 26, 2017 at 11:53:34AM -0400, Vivien Didelot wrote: > Make the code which fetches or initializes a new VTU entry more concise. > This allows us the get rid of the old underscore prefix naming. > > Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Andrew

Re: [PATCH net-next 15/18] net: dsa: mv88e6xxx: make VTU helpers static

2017-04-27 Thread Andrew Lunn
On Wed, Apr 26, 2017 at 11:53:33AM -0400, Vivien Didelot wrote: > Now that we have chip operations for VTU accesses, mark all helpers from > global1_vtu.c as static. Only the various implementations of the > GetNext, LoadPurge and Flush operations need to be exposed. > > Signed-off-by: Vivien Dide

Re: [PATCH net-next 14/18] net: dsa: mv88e6xxx: add VTU Load/Purge operation

2017-04-27 Thread Andrew Lunn
On Wed, Apr 26, 2017 at 11:53:32AM -0400, Vivien Didelot wrote: > Add a new vtu_loadpurge operation to the chip info structure to differ > the various implementations of the VTU accesses. > > Now that the STU handling is abstracted behind VTU operations, kill the > obsolete MV88E6XXX_FLAG_STU flag

Re: perf report warnings on tracepoint events hidden by ui

2017-04-27 Thread David Ahern
On 4/27/17 7:41 PM, Steven Rostedt wrote: > On Thu, 27 Apr 2017 19:31:12 -0500 > David Carrillo-Cisneros wrote: > >> When processing tracepoint events, perf report outputs warnings about >> field not founds. The warnings are usually hidden by perf report UI >> and appear when using the --stdio op

Re: [PATCH net-next 13/18] net: dsa: mv88e6xxx: add VTU GetNext operation

2017-04-27 Thread Andrew Lunn
On Wed, Apr 26, 2017 at 11:53:31AM -0400, Vivien Didelot wrote: > Add a new vtu_getnext operation to the chip info structure to differ the > various implementations of the VTU accesses. > > Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Andrew

Re: [PATCH net-next 12/18] net: dsa: mv88e6xxx: load STU entry with VTU entry

2017-04-27 Thread Andrew Lunn
On Wed, Apr 26, 2017 at 11:53:30AM -0400, Vivien Didelot wrote: > Now that the code writes both VTU and STU data when loading a VTU entry, > load the corresponding STU entry at the same time. > > This allows us to get rid of the STU management in the > _mv88e6xxx_vtu_new helper and thus remove the

[PATCH] drivers:net:ethernet:emulex:benet: Use time_before_eq for time comparison

2017-04-27 Thread Karim Eshapa
Use time_before_eq for time comparison more safe and dealing with timer wrapping to be future-proof. Signed-off-by: Karim Eshapa --- drivers/net/ethernet/emulex/benet/be_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/emulex/benet/be_main.c

Re: [PATCH v6 3/5] test: add new driver_data load tester

2017-04-27 Thread Luis R. Rodriguez
On Tue, Apr 11, 2017 at 05:32:52PM +0900, AKASHI Takahiro wrote: > On Wed, Mar 29, 2017 at 08:25:12PM -0700, Luis R. Rodriguez wrote: > > This adds a load tester driver test_driver_data a for the new extensible > > driver_data loader API, part of firmware_class. This test driver enables > > you to

Re: perf report warnings on tracepoint events hidden by ui

2017-04-27 Thread Steven Rostedt
On Thu, 27 Apr 2017 19:31:12 -0500 David Carrillo-Cisneros wrote: > When processing tracepoint events, perf report outputs warnings about > field not founds. The warnings are usually hidden by perf report UI > and appear when using the --stdio option. e.g. > > $ perf record -e syscalls:sys_ent

Re: [PATCH 2/2] f2fs: introduce CP_TRIMMED_FLAG to avoid unneeded discard

2017-04-27 Thread Chao Yu
Hi Jaegeuk, On 2017/4/28 2:16, Jaegeuk Kim wrote: > Hi Chao, > > Could you add this state in print_cp_state() of f2fs-tools as well? Oh, right, and we can set the flag after trimming in mkfs, also we need to adjust this state into trace info. Let me fix this. :) Thanks, > > Thanks, > > On 0

Re: [PATCH v5 1/4] printk/nmi: generic solution for safe printk in NMI

2017-04-27 Thread Sergey Senozhatsky
On (04/27/17 12:14), Steven Rostedt wrote: [..] > I tried this patch. It's better because I get the end of the trace, but > I do lose the beginning of it: > > ** 196358 printk messages dropped ** [ 102.321182] perf-59810 > 12983650us : d_path <-seq_path many thanks! so we now drop

Re: [PATCH 3/3] ARM: at91: pm: fallback to slowclock when backup mode fails

2017-04-27 Thread Yang, Wenyou
On 2017/4/27 0:04, Alexandre Belloni wrote: If the backup sram allocation fails, ensure we can suspend by falling back to the usual slow clock mode. Signed-off-by: Alexandre Belloni Acked-by: Wenyou Yang --- arch/arm/mach-at91/pm.c | 12 +--- 1 file changed, 9 insertions(+), 3

Re: [PATCH 2/3] ARM: at91: pm: allow selecting standby and suspend modes

2017-04-27 Thread Yang, Wenyou
On 2017/4/27 0:04, Alexandre Belloni wrote: While we can only select between "standby" and "mem" states for power management, the atmel platforms can actually support more modes. For both standby and mem, allow selecting which mode will be used using the atmel.pm_modes kernel parameter. By def

[PATCH v2 pci] PCI/MSI: pci-xgene-msi: Enable MSI support in ACPI boot for X-Gene v1

2017-04-27 Thread Khuong Dinh
From: Khuong Dinh This patch makes pci-xgene-msi driver ACPI-aware and provides MSI capability for X-Gene v1 PCIe controllers in ACPI boot mode. Signed-off-by: Khuong Dinh Signed-off-by: Duc Dang Acked-by: Marc Zyngier --- v2: - Verify with BIOS version 3.06.25 and 3.07.09 v1: - Initial ver

Re: [PATCH] watchdog: bcm281xx: Fix use of uninitialized spinlock.

2017-04-27 Thread Florian Fainelli
On 04/27/2017 06:02 PM, Eric Anholt wrote: > The bcm_kona_wdt_set_resolution_reg() call takes the spinlock, so > initialize it earlier. Fixes a warning at boot with lock debugging > enabled. > > Signed-off-by: Eric Anholt Fixes: 6adb730dc208 ("watchdog: bcm281xx: Watchdog Driver") Reviewed-by

Re: [PATCH 1/3] ARM: at91: pm: Add sama5d2 backup mode

2017-04-27 Thread Yang, Wenyou
On 2017/4/27 0:04, Alexandre Belloni wrote: The sama5d2 has a mode were it is possible to cut power to the SoC while keeping the RAM in self refresh. Resuming from that mode needs support in the firmware/bootloader. Signed-off-by: Alexandre Belloni Acked-by: Wenyou Yang --- arch/arm/mac

Re: [PATCH v5 1/4] printk/nmi: generic solution for safe printk in NMI

2017-04-27 Thread Sergey Senozhatsky
On (04/20/17 15:11), Petr Mladek wrote: [..] > void printk_nmi_enter(void) > { > - this_cpu_or(printk_context, PRINTK_NMI_CONTEXT_MASK); > + /* > + * The size of the extra per-CPU buffer is limited. Use it > + * only when really needed. > + */ > + if (this_cpu_read(pri

RE: [PATCH v2 1/2] ACPICA: Tables: Fix regression introduced by a too early mechanism enabling

2017-04-27 Thread Zheng, Lv
Hi, Rafael > From: linux-acpi-ow...@vger.kernel.org > [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Rafael J. > Wysocki > Subject: Re: [PATCH v2 1/2] ACPICA: Tables: Fix regression introduced by a > too early mechanism > enabling > > On Thursday, April 27, 2017 04:22:44 PM Lv Zheng wro

Re: [PATCH RESEND v2] f2fs: release cp and dnode lock before IPU

2017-04-27 Thread Chao Yu
Hi Jaegeuk, On 2017/4/28 2:08, Jaegeuk Kim wrote: > Hi Chao, > > On 04/27, Chao Yu wrote: >> From: Hou Pengyang >> >> We don't need to rewrite the page under cp_rwsem and dnode locks. >> >> Signed-off-by: Hou Pengyang >> Signed-off-by: Chao Yu >> Signed-off-by: Jaegeuk Kim >> --- >> fs/f2fs/

Re: [PATCH v2] clk: sunxi-ng: Fix dependency on SUNXI_CCU_GATE

2017-04-27 Thread Stephen Boyd
On 04/27, Corentin Labbe wrote: > On Thu, Apr 27, 2017 at 09:04:36AM +0200, Maxime Ripard wrote: > > On Wed, Apr 26, 2017 at 01:53:19PM +0200, Corentin Labbe wrote: > > > When CONFIG_SUNXI_CCU is set but no other SUNXI_CCU is selected i got > > > the following build error: > > > drivers/built-in.o:

RE: [PATCH v2] acpi: fix acpi_get_table() leak / acpi-sysfs denial of service

2017-04-27 Thread Zheng, Lv
Hi, > From: linux-acpi-ow...@vger.kernel.org > [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Dan > Williams > Subject: Re: [PATCH v2] acpi: fix acpi_get_table() leak / acpi-sysfs denial > of service > > On Wed, Apr 26, 2017 at 11:49 PM, Zheng, Lv wrote: > > Hi, Rafael > > > >> From: l

Re: [PATCH] mm: Add additional consistency check

2017-04-27 Thread Kees Cook
On Tue, Apr 11, 2017 at 7:19 AM, Michal Hocko wrote: > I would do something like... > --- > diff --git a/mm/slab.c b/mm/slab.c > index bd63450a9b16..87c99a5e9e18 100644 > --- a/mm/slab.c > +++ b/mm/slab.c > @@ -393,10 +393,15 @@ static inline void set_store_user_dirty(struct > kmem_cache *cachep)

  1   2   3   4   5   6   7   >