Re: [MD] Crash with 4.12+ kernel and high disk load -- bisected to 4ad23a976413: MD: use per-cpu counter for writes_pending

2017-08-08 Thread NeilBrown
On Mon, Aug 07 2017, Dominik Brodowski wrote: > Neil, Shaohua, > > following up on David R's bug message: I have observed something similar > on v4.12.[345] and v4.13-rc4, but not on v4.11. This is a RAID1 (on bare > metal partitions, /dev/sdaX and /dev/sdbY linked together). In case it > matters:

Re: [MD] Crash with 4.12+ kernel and high disk load -- bisected to 4ad23a976413: MD: use per-cpu counter for writes_pending

2017-08-08 Thread David R
Ignore me. The increment and decrement of sync_checkers should protect switch_to_percpu(). Sigh. Quoting David R : Quoting Shaohua Li : Spent some time to check this one, unfortunately I can't find how that patch makes rcu stall. the percpu part looks good to me too. Can you double check

Re: [PATCH v1 5/6] zram: remove zram_rw_page

2017-08-08 Thread Sergey Senozhatsky
On (08/08/17 15:50), Minchan Kim wrote: > With on-stack-bio, rw_page interface doesn't provide a clear performance > benefit for zram and surely has a maintenance burden, so remove the > last user to remove rw_page completely. OK, never really liked it, I think we had that conversation before. as

Re: [PATCH v3] xen: get rid of paravirt op adjust_exception_frame

2017-08-08 Thread Juergen Gross
On 07/08/17 22:56, Boris Ostrovsky wrote: > >> diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c >> index 811e4ddb3f37..a3dcd83187ce 100644 >> --- a/arch/x86/xen/enlighten_pv.c >> +++ b/arch/x86/xen/enlighten_pv.c >> @@ -579,6 +579,71 @@ static void xen_write_ldt_entry(struct

Re: [[PATCH v1] 02/37] [CIFS] SMBD: Add structure for SMBD transport

2017-08-08 Thread Stefan Metzmacher
Hi Li, thanks for providing this patchset, I guess it will be a huge win to have SMBDirect support for the kernel client! > Define a new structure for SMBD transport. This stucture will have all the > information on the transport, and it will be stored in the current SMB > session. ... > +/* > +

Re: [PATCH v2 00/13] mpt3sas driver NVMe support:

2017-08-08 Thread Sreekanth Reddy
On Tue, Aug 8, 2017 at 9:34 AM, Keith Busch wrote: > On Mon, Aug 07, 2017 at 08:45:25AM -0700, James Bottomley wrote: >> On Mon, 2017-08-07 at 20:01 +0530, Kashyap Desai wrote: >> > >> > We have to attempt this use case and see how it behaves. I have not >> > tried this, so not sure if things are

Re: [PATCH] i2c: imx: Remove a useless test in 'i2c_imx_init_recovery_info()'

2017-08-08 Thread Julia Lawall
On Tue, 8 Aug 2017, Christophe JAILLET wrote: > Le 07/08/2017 à 09:16, Julia Lawall a écrit : > > > > On Mon, 7 Aug 2017, Uwe Kleine-König wrote: > > > > > On Mon, Aug 07, 2017 at 01:49:53AM +0200, Christophe JAILLET wrote: > > > > 'devm_pinctrl_get()' never returns NULL, so this test can be sim

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

2017-08-08 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 v2 3/3] ARM: dts: at91: sama5d2: use sama5d2 compatible string for SMC

2017-08-08 Thread Lee Jones
On Mon, 07 Aug 2017, Alexandre Belloni wrote: > Hi Lee, > > On 07/08/2017 at 16:41:00 +0100, Lee Jones wrote: > > On Tue, 18 Jul 2017, Ludovic Desroches wrote: > > > > > A new compatible string has been introduced for sama5d2 SMC to allow to > > > manage the registers mapping change. > > > > >

Re: [MD] Crash with 4.12+ kernel and high disk load -- bisected to 4ad23a976413: MD: use per-cpu counter for writes_pending

2017-08-08 Thread NeilBrown
On Tue, Aug 08 2017, David R wrote: > Quoting Shaohua Li : > >> Spent some time to check this one, unfortunately I can't find how that patch >> makes rcu stall. the percpu part looks good to me too. Can you >> double check if >> reverting 4ad23a976413aa57 makes the issue go away? When the rcu

[PATCH v2] mmc: sunxi: fix support for new timings mode only SoCs

2017-08-08 Thread Icenowy Zheng
The A83T MMC support code introduces the timings mode switch, however such a switch doesn't exist on new SoCs with only new timings mode. Only execute the switch if the SoC really have the timings mode switch, to fix the regression shown on new timings mode only SoCs (A64, H5, etc). Fixes: b0600d

Re: [MD] Crash with 4.12+ kernel and high disk load -- bisected to 4ad23a976413: MD: use per-cpu counter for writes_pending

2017-08-08 Thread Dominik Brodowski
Shaouhua, ( really CC'ing Tejun now ) On Mon, Aug 07, 2017 at 09:51:03PM -0700, Shaohua Li wrote: > On Mon, Aug 07, 2017 at 01:20:25PM +0200, Dominik Brodowski wrote: > > Neil, Shaohua, > > > > following up on David R's bug message: I have observed something similar > > on v4.12.[345] and v4.13-

[PATCH v3 3/9] clk: rockchip: fix up the indentation stuff for RV1108 SoC

2017-08-08 Thread Elaine Zhang
Make the code look better. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rv1108-cru.h | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/include/dt-bindings/clock/rv1108-cru.h b/include/dt-bindings/clock/rv1108-cru.h index e8aa6d56990a

Re: [PATCH v2] drm: bridge: synopsys/dw-hdmi: Provide default configuration function for HDMI 2.0 PHY

2017-08-08 Thread Mark yao
On 2017年07月07日 23:47, Jose Abreu wrote: Hi Archit, Ping, Any update for this patch? Can it be landed? This patch actually needed for rk3399 hdmi support Best Regards Mark On 23-06-2017 10:36, Jose Abreu wrote: Currently HDMI 2.0 PHYs do not have a default configuration function. As *some

[PATCH v3 1/9] clk: rockchip: add more clk ids for rv1108

2017-08-08 Thread Elaine Zhang
add new clk ids. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rv1108-cru.h | 93 +- 1 file changed, 92 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/rv1108-cru.h b/include/dt-bindings/clock/rv1108-cru.h index ae26f8105914..fe01

[PATCH v3 4/9] clk: rockchip: support more rates for cpuclk

2017-08-08 Thread Elaine Zhang
fix up the cpuclk rates table for support more freqs. fix up the mux_core_mask describe error. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rv1108.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/clk/rockchip/clk-rv1108.c b/drive

[PATCH v3 2/9] clk: rockchip: rename the clk id for HCLK_I2S1_2CH

2017-08-08 Thread Elaine Zhang
i2s1 has 2 channels but not 8 channels. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rv1108-cru.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/rv1108-cru.h b/include/dt-bindings/clock/rv1108-cru.h index fe013cf51e2b..e8aa6d56990a 100

[PATCH v3 0/9] clk: rockchip: support clk for RV1108 Soc

2017-08-08 Thread Elaine Zhang
RV1108 submit is too much, make the CLK part out to review alone. Changes in v3: [PATCH v3 1/9] None [PATCH v3 2/9] None [PATCH v3 3/9] None [PATCH v3 4/9] None [PATCH v3 5/9] None [PATCH v3 6/9] fix up the structure patch-contents [PATCH v3 7/9] fix up the structure patch-contents [PATCH v3 8/9]

[PATCH v3 5/9] clk: rockchip: fix up the pll clks error for rv1108 SoC

2017-08-08 Thread Elaine Zhang
fix up the lock_shift describe error. remove the ROCKCHIP_PLL_SYNC_RATE flag for gpll. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rv1108.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/rockchip/clk-rv1108.c b/drivers/clk/rockchip/clk-rv1108.

[PATCH v3 7/9] clk: rockchip: fix up some clks describe error for rv1108 SoC

2017-08-08 Thread Elaine Zhang
1. fix up the parent name 2. remove the CLK_IGNORE_UNUSED flag for some clk not need to always on. 3. fix up some clks regs describe error. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rv1108.c | 122 -- 1 file changed, 63 insertions(+), 59 deletio

[PATCH v3 6/9] clk: rockchip: support more clks for rv1108

2017-08-08 Thread Elaine Zhang
Add the description of the missing clock, make the clock more complete. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rv1108.c | 279 +- 1 file changed, 276 insertions(+), 3 deletions(-) diff --git a/drivers/clk/rockchip/clk-rv1108.c b/drivers/clk

[PATCH v3 8/9] clk: rockchip: rename some of clks for rv1108 SoC

2017-08-08 Thread Elaine Zhang
Rename some of clks to keep the consistency with the TRM. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rv1108.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/clk/rockchip/clk-rv1108.c b/drivers/clk/rockchip/clk-rv1108.c in

[PATCH v3 9/9] clk: rockchip: add some critical clocks for rv1108 SoC

2017-08-08 Thread Elaine Zhang
the bus/periph/nclk_ddrupctl/pclk_ddrmon/pclk_acodecphy/pclk_pmu no driver to handle them, Chip design requirements for these clock to always on. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rv1108.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/c

Re: f7dd250789 ("gcc-plugins: structleak: add option to init all .."): kmodloader/112 is trying to release lock (module_mutex) at:

2017-08-08 Thread Kees Cook
This appears to be something related to randstruct, not structleak (which is entirely disabled for this build): CONFIG_GCC_PLUGINS=y # CONFIG_GCC_PLUGIN_CYC_COMPLEXITY is not set # CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set # CONFIG_GCC_PLUGIN_STRUCTLEAK is not set CONFIG_GCC_PLUGIN_RANDSTRUCT=y

Re: [PATCH v2 3/5] thermal: imx: Add support for reading OCOTP through nvmem

2017-08-08 Thread Zhang Rui
On Tue, 2017-07-25 at 16:08 +0800, Shawn Guo wrote: > On Fri, Jul 14, 2017 at 05:11:08PM +0300, Leonard Crestez wrote: > > > > On newer imx SOCs accessing OCOTP directly is wrong because the > > ocotp clock > > needs to be enabled first. Add support for reading those same > > values through > > th

Re: [PATCH v2 00/13] mpt3sas driver NVMe support:

2017-08-08 Thread Keith Busch
On Tue, Aug 08, 2017 at 12:33:40PM +0530, Sreekanth Reddy wrote: > On Tue, Aug 8, 2017 at 9:34 AM, Keith Busch wrote: > > > > It looks like they can make existing nvme tooling work with little > > effort if they have the driver implement NVME_IOCTL_ADMIN_COMMAND, and > > Precisely, I was thinking

Re: [PATCH] mfd: lpc_ich: Do not touch SPI-NOR write protection bit on Haswell/Broadwell

2017-08-08 Thread Lee Jones
On Fri, 28 Jul 2017, Mika Westerberg wrote: > At least on Lenovo Thinkpad Yoga, the BIOS seems to monitor the SPI-NOR > write protection bit and if it is flipped to read/write it assumes the > BIOS configuration was changed on next reboot. It then, for unknown > reasons, resets the BIOS settings b

Re: [PATCH v2 2/4] KVM: X86: implement the logic for spinlock optimization

2017-08-08 Thread Paolo Bonzini
On 08/08/2017 06:05, Longpeng(Mike) wrote: > diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c > index cd0e6e6..dec5e8a 100644 > --- a/arch/x86/kvm/hyperv.c > +++ b/arch/x86/kvm/hyperv.c > @@ -1268,7 +1268,7 @@ int kvm_hv_hypercall(struct kvm_vcpu *vcpu) > > switch (code) { >

Re: [PATCH v2 1/4] KVM: add spinlock optimization framework

2017-08-08 Thread Paolo Bonzini
On 08/08/2017 06:05, Longpeng(Mike) wrote: > return 1; > diff --git a/arch/s390/kvm/diag.c b/arch/s390/kvm/diag.c > index ce865bd..4ea8c38 100644 > --- a/arch/s390/kvm/diag.c > +++ b/arch/s390/kvm/diag.c > @@ -150,7 +150,7 @@ static int __diag_time_slice_end(struct kvm_vcpu *vcpu) > { >

Re: [MD] Crash with 4.12+ kernel and high disk load -- bisected to 4ad23a976413: MD: use per-cpu counter for writes_pending

2017-08-08 Thread Dominik Brodowski
On Tue, Aug 08, 2017 at 05:01:28PM +1000, NeilBrown wrote: > On Mon, Aug 07 2017, Dominik Brodowski wrote: > > > Neil, Shaohua, > > > > following up on David R's bug message: I have observed something similar > > on v4.12.[345] and v4.13-rc4, but not on v4.11. This is a RAID1 (on bare > > metal pa

Re: [PATCH] arm64: KVM: Reject non-compliant HVC calls from guest kernel

2017-08-08 Thread Christoffer Dall
Hi Shanker, On Mon, Aug 07, 2017 at 02:03:28PM -0500, Shanker Donthineni wrote: > The SMC/HVC instructions with an immediate value non-zero are not compliant > according to 'SMC calling convention system software document'. Add a > validation check in handle_hvc() to avoid malicious HVC calls from

Re: [PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel()

2017-08-08 Thread Cornelia Huck
On Tue, 8 Aug 2017 12:05:34 +0800 "Longpeng(Mike)" wrote: > This implements the kvm_arch_vcpu_in_kernel() for s390. > > Signed-off-by: Longpeng(Mike) > --- > arch/s390/kvm/kvm-s390.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/

Re: [PATCH v2 4/4] KVM: arm: implements the kvm_arch_vcpu_in_kernel()

2017-08-08 Thread Christoffer Dall
On Tue, Aug 08, 2017 at 12:05:35PM +0800, Longpeng(Mike) wrote: > This implements the kvm_arch_vcpu_in_kernel() for ARM. > > Signed-off-by: Longpeng(Mike) > --- > virt/kvm/arm/arm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-08-08 Thread Marc Zyngier
On 08/08/17 02:30, Masahiro Yamada wrote: > Hi Marc, > > 2017-08-07 17:17 GMT+09:00 Marc Zyngier : >> On 07/08/17 05:45, Masahiro Yamada wrote: >>> Hi Marc, >>> >>> >>> 2017-08-03 22:30 GMT+09:00 Marc Zyngier : On 03/08/17 13:52, Masahiro Yamada wrote: > Hi Marc, > > 2017-08-03 17

Re: [PATCH -mm] mm: Clear to access sub-page last when clearing huge page

2017-08-08 Thread Huang, Ying
"Huang, Ying" writes: > "Kirill A. Shutemov" writes: > >> On Mon, Aug 07, 2017 at 03:21:31PM +0800, Huang, Ying wrote: >>> From: Huang Ying >>> >>> Huge page helps to reduce TLB miss rate, but it has higher cache >>> footprint, sometimes this may cause some issue. For example, when >>> cleari

Re: [PATCH v6 1/3] mfd: Add new mfd device TPS68470

2017-08-08 Thread Lee Jones
On Fri, 28 Jul 2017, Rajmohan Mani wrote: > The TPS68470 device is an advanced power management > unit that powers a Compact Camera Module (CCM), > generates clocks for image sensors, drives a dual > LED for Flash and incorporates two LED drivers for > general purpose indicators. > > This patch a

Re: [PATCH] i2c: imx: Remove a useless test in 'i2c_imx_init_recovery_info()'

2017-08-08 Thread Christophe JAILLET
Le 07/08/2017 à 08:36, Uwe Kleine-König a écrit : On Mon, Aug 07, 2017 at 01:49:53AM +0200, Christophe JAILLET wrote: 'devm_pinctrl_get()' never returns NULL, so this test can be simplified. That's wrong. If CONFIG_PINCTRL is disabled devm_pinctrl_get returns NULL. But I think this shouldn't be

Re: [PATCH v2 4/4] KVM: arm: implements the kvm_arch_vcpu_in_kernel()

2017-08-08 Thread Christoffer Dall
On Tue, Aug 8, 2017 at 9:39 AM, Christoffer Dall wrote: > On Tue, Aug 08, 2017 at 12:05:35PM +0800, Longpeng(Mike) wrote: >> This implements the kvm_arch_vcpu_in_kernel() for ARM. >> >> Signed-off-by: Longpeng(Mike) >> --- >> virt/kvm/arm/arm.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deleti

Re: [PATCH v2 0/4] KVM: optimize the kvm_vcpu_on_spin

2017-08-08 Thread Cornelia Huck
On Tue, 8 Aug 2017 12:05:31 +0800 "Longpeng(Mike)" wrote: > This is a simple optimization for kvm_vcpu_on_spin, the > main idea is described in patch-1's commit msg. I think this generally looks good now. > > I did some tests base on the RFC version, the result shows > that it can improves the

Re: [PATCH v2 1/4] KVM: add spinlock optimization framework

2017-08-08 Thread Cornelia Huck
On Tue, 8 Aug 2017 09:34:14 +0200 Paolo Bonzini wrote: > On 08/08/2017 06:05, Longpeng(Mike) wrote: > > return 1; > > diff --git a/arch/s390/kvm/diag.c b/arch/s390/kvm/diag.c > > index ce865bd..4ea8c38 100644 > > --- a/arch/s390/kvm/diag.c > > +++ b/arch/s390/kvm/diag.c > > @@ -150,7 +150,7 @

Re: [PATCH] ACPI / Sleep: Check low power idle constraints for debug only

2017-08-08 Thread Lukas Wunner
On Mon, Aug 07, 2017 at 04:53:57PM -0700, Srinivas Pandruvada wrote: > + out_obj = acpi_evaluate_dsm(lps0_device_handle, &lps0_dsm_guid, > + 1, ACPI_LPS0_GET_DEVICE_CONSTRAINTS, > + NULL); > + > + acpi_handle_debug(lps0_device_

Re: [PATCH] arm64: KVM: Reject non-compliant HVC calls from guest kernel

2017-08-08 Thread Marc Zyngier
On 08/08/17 08:36, Christoffer Dall wrote: > Hi Shanker, > > On Mon, Aug 07, 2017 at 02:03:28PM -0500, Shanker Donthineni wrote: >> The SMC/HVC instructions with an immediate value non-zero are not compliant >> according to 'SMC calling convention system software document'. Add a >> validation che

Re: [PATCH] thermal/drivers/hisi: Remove confusing error message

2017-08-08 Thread Zhang Rui
On Fri, 2017-07-07 at 17:03 +0200, Daniel Lezcano wrote: > The sensor id is unknown at init time and we use all id in the > authorized > MAX_SENSORS interval to register the sensor. On this SoC there is one > thermal-zone with one sensor on it. No need to spit on the console > everytime we > failed

[PATCH v2 1/2] remoteproc: dt: Provide bindings for iMX6SX/7D Remote Processor Controller driver

2017-08-08 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- .../devicetree/bindings/remoteproc/imx-rproc.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/imx-rproc.txt diff --git a/Documentation/devicetree/bindings/remoteproc/imx-rproc.tx

[PATCH v2 2/2] remoteproc: imx_rproc: add a NXP/Freescale imx_rproc driver

2017-08-08 Thread Oleksij Rempel
Provide a basic driver to control Cortex M4 co-processor found on NXP i.MX7D and i.MX6SX. Currently it is able to resolve addresses between M4 and main CPU, start and stop the co-processor. Other functionality is not provided or test. This driver was tested on NXP i.MX7D and expected to work on i.

[PATCH v2 0/2] provide imx rproc driver

2017-08-08 Thread Oleksij Rempel
this patch set to provide remoteproc functionality on i.MX7D SoC. For testing I used this simple counter written in ASM: == .syntax unified .text .thumb .int 0x1002 @ Initial SP value .int reset + 1 re

Re: [MD] Crash with 4.12+ kernel and high disk load -- bisected to 4ad23a976413: MD: use per-cpu counter for writes_pending

2017-08-08 Thread David R
I will apply this to my home server this evening (BST) and set off a check. Will have results tomorrow. Thanks for the fix! David Quoting NeilBrown : On Mon, Aug 07 2017, Dominik Brodowski wrote: Neil, Shaohua, following up on David R's bug message: I have observed something similar on

RE: [v5] wlcore: add missing nvs file name info for wilink8

2017-08-08 Thread Reizer, Eyal
> Subject: Re: [v5] wlcore: add missing nvs file name info for wilink8 > > * Reizer, Eyal [170807 00:47]: > > Hi Tony, > > > > > > * Reizer, Eyal [170807 00:32]: > > > > The following commits: > > > > c815fde wlcore: spi: Populate config firmware data > > > > d776fc8 wlcore: sdio: Populate confi

Re: Switching to MQ by default may generate some bug reports

2017-08-08 Thread Paolo Valente
> Il giorno 07 ago 2017, alle ore 20:42, Paolo Valente > ha scritto: > >> >> Il giorno 07 ago 2017, alle ore 19:32, Paolo Valente >> ha scritto: >> >>> >>> Il giorno 05 ago 2017, alle ore 00:05, Paolo Valente >>> ha scritto: >>> Il giorno 04 ago 2017, alle ore 13:01, Mel Gorm

[PATCH v1] arm64: dts: rockchip: add rk805 node for rk3328-evb

2017-08-08 Thread Joseph Chen
Signed-off-by: Joseph Chen --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 137 1 file changed, 137 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts b/arch/arm64/boot/dts/rockchip/rk3328-evb.dts index cf27239..e8705fd 100644 --- a/arch/arm64/

Re: [lkp-robot] [mm] 7674270022: will-it-scale.per_process_ops -19.3% regression

2017-08-08 Thread Minchan Kim
On Mon, Aug 07, 2017 at 10:51:00PM -0700, Nadav Amit wrote: > Nadav Amit wrote: > > > Minchan Kim wrote: > > > >> Hi, > >> > >> On Tue, Aug 08, 2017 at 09:19:23AM +0800, kernel test robot wrote: > >>> Greeting, > >>> > >>> FYI, we noticed a -19.3% regression of will-it-scale.per_process_ops d

Re: [PATCH] leds: Convert to using %pOF instead of full_name

2017-08-08 Thread Pavel Machek
On Tue 2017-07-18 16:43:11, Rob Herring wrote: > Now that we have a custom printf format specifier, convert users of > full_name to use %pOF instead. This is preparation to remove storing > of the full path string for each node. > > Signed-off-by: Rob Herring > Cc: Richard Purdie > Cc: Jacek Ana

Re: Fwd: struct pt_regs missing in /usr/include/ tree for eBPF program compile

2017-08-08 Thread Thomas-Mich Richter
On 08/04/2017 05:28 PM, Daniel Borkmann wrote: > From: Thomas-Mich Richter > Date: Wed, Aug 2, 2017 at 1:22 AM > [...] >> I work on the perf tool and its bpf support for IBM s390 and came across a >> strange issue compiling tools/testing/selftests/bpf/test_verifier.c on s390x. >> >> This is the co

[PATCH 1/2] video: fbdev: Fix multiple style issues in xilinxfb

2017-08-08 Thread Michal Simek
From: Hyun Kwon All reported by from checkpatch ./scripts/checkpatch.pl --max-line-length 120 -strict -f drivers/video/fbdev/xilinxfb.c WARNING: Block comments should align the * on each line WARNING: Block comments use a trailing */ on a separate line WARNING: Block comments use * on subsequent

[PATCH 2/2] video: fbdev: Enable Xilinx FB for ZynqMP

2017-08-08 Thread Michal Simek
Enable this driver for Xilinx ZynqMP. Signed-off-by: Michal Simek --- drivers/video/fbdev/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index 5c6696bb56da..5e58f5ec0a28 100644 --- a/drivers/video/fbdev/Kconf

Re: [PATCH v3 3/5] pwm-backlight: add support for PWM delays proprieties.

2017-08-08 Thread Pavel Machek
On Thu 2017-07-20 11:37:17, Daniel Thompson wrote: > On 20/07/17 09:06, Pavel Machek wrote: > >Hi! > > > >>>--- a/drivers/video/backlight/pwm_bl.c > >>>+++ b/drivers/video/backlight/pwm_bl.c > >>>@@ -10,6 +10,7 @@ > >>> * published by the Free Software Foundation. > >>> */ > >>>+#include > >>>

Re: [PATCH] ata: make ata_port_operations const

2017-08-08 Thread Bhumika Goyal
On Mon, Aug 7, 2017 at 10:04 PM, Joe Perches wrote: > On Mon, 2017-08-07 at 09:29 -0700, Tejun Heo wrote: >> Hello, >> >> On Mon, Aug 07, 2017 at 08:54:21PM +0530, Bhumika Goyal wrote: >> > I compiled the .o files and checked the size before and after >> > compilation. After making the structure c

Re: [PATCH V1] thermal: qcom-spmi-temp-alarm: add support for GEN2 PMIC peripherals

2017-08-08 Thread Zhang Rui
On Thu, 2017-07-13 at 17:39 +0530, Kiran Gunda wrote: > From: David Collins > > Add support for the TEMP_ALARM GEN2 PMIC peripheral subtype.  The > GEN2 subtype defines an over temperature state with hysteresis > instead of stage in the status register.  There are two GEN2 > states corresponding

Re: [PATCH v1 5/6] zram: remove zram_rw_page

2017-08-08 Thread Minchan Kim
Hi Sergey, On Tue, Aug 08, 2017 at 04:02:26PM +0900, Sergey Senozhatsky wrote: > On (08/08/17 15:50), Minchan Kim wrote: > > With on-stack-bio, rw_page interface doesn't provide a clear performance > > benefit for zram and surely has a maintenance burden, so remove the > > last user to remove rw_p

[PATCH v1 5/5] soc: mediatek: add MT6755 scpsys support

2017-08-08 Thread Mars Cheng
This adds scpsys support for MT6755 Signed-off-by: Mars Cheng --- drivers/soc/mediatek/mtk-scpsys.c| 116 ++ include/dt-bindings/power/mt6755-power.h | 26 +++ 2 files changed, 142 insertions(+) create mode 100644 include/dt-bindings/power/mt6755-power

Re: [PATCH] f2fs: fix some cases with reserved_blocks

2017-08-08 Thread Chao Yu
On 2017/8/8 14:33, Yunlong Song wrote: > Does this means the reserved_blocks cannot be used by users by can be > used by filesystem? Yup. > If it can be used by filesystem, then this cannot ensure the flash > device really reserve the > reserved_blocks space, right? The reserved_blocks is just

[PATCH v1 4/5] clk: mediatek: add clk support for MT6755

2017-08-08 Thread Mars Cheng
Add MT6755 clock support, include topckgen, apmixedsys, infracfg, and subsystem clocks Signed-off-by: Mars Cheng --- drivers/clk/mediatek/Kconfig | 32 ++ drivers/clk/mediatek/Makefile |5 + drivers/clk/mediatek/clk-mt6755-img.c | 81 drivers/clk/mediatek/clk-mt6

[PATCH 0/5] Add clk and scpsys support for MT6755

2017-08-08 Thread Mars Cheng
Mars Cheng (3): clk: mediatek: add mt6755 clock ID clk: mediatek: add clk support for MT6755 soc: mediatek: add MT6755 scpsys support wendell.lin (2): dt-bindings: mediatek: add MT6755 power dt-bindings dt-bindings: arm: mediatek: document clk bindings for MT6755 .../bindings/arm/medi

[PATCH v1 3/5] clk: mediatek: add mt6755 clock ID

2017-08-08 Thread Mars Cheng
Signed-off-by: Mars Cheng --- include/dt-bindings/clock/mt6755-clk.h | 293 1 file changed, 293 insertions(+) create mode 100644 include/dt-bindings/clock/mt6755-clk.h diff --git a/include/dt-bindings/clock/mt6755-clk.h b/include/dt-bindings/clock/mt6755-clk.h

Re: [PATCH v2 0/4] KVM: optimize the kvm_vcpu_on_spin

2017-08-08 Thread Longpeng (Mike)
On 2017/8/8 15:41, Cornelia Huck wrote: > On Tue, 8 Aug 2017 12:05:31 +0800 > "Longpeng(Mike)" wrote: > >> This is a simple optimization for kvm_vcpu_on_spin, the >> main idea is described in patch-1's commit msg. > > I think this generally looks good now. > >> >> I did some tests base on th

Re: [PATCH] i2c: imx: Remove a useless test in 'i2c_imx_init_recovery_info()'

2017-08-08 Thread Uwe Kleine-König
On Tue, Aug 08, 2017 at 09:40:59AM +0200, Christophe JAILLET wrote: > Le 07/08/2017 à 08:36, Uwe Kleine-König a écrit : > > On Mon, Aug 07, 2017 at 01:49:53AM +0200, Christophe JAILLET wrote: > > > 'devm_pinctrl_get()' never returns NULL, so this test can be simplified. > > That's wrong. If CONFIG_

Re: [PATCH v3] iwlwifi: Demote messages about fw flags size to info

2017-08-08 Thread Coelho, Luciano
On Thu, 2017-08-03 at 07:47 -0700, João Paulo Rechi Vita wrote: > These messages are not reporting a real error, just the fact that the > firmware knows about more flags than the driver. > > Currently these messages are presented to the user during boot if there > is no bootsplash covering the con

Re: [PATCH v1 5/6] zram: remove zram_rw_page

2017-08-08 Thread Sergey Senozhatsky
Hello Minchan, On (08/08/17 17:13), Minchan Kim wrote: > Hi Sergey, > > On Tue, Aug 08, 2017 at 04:02:26PM +0900, Sergey Senozhatsky wrote: > > On (08/08/17 15:50), Minchan Kim wrote: > > > With on-stack-bio, rw_page interface doesn't provide a clear performance > > > benefit for zram and surely

Re: [PATCH 15/18] power: supply: bq24190_charger: Get input_current_limit from our supplier

2017-08-08 Thread Liam Breck
Hallo Hans :-) On Sun, Aug 6, 2017 at 5:35 AM, Hans de Goede wrote: > On some devices the USB Type-C port power (USB PD 2.0) negotiation is > done by a separate port-controller IC, while the current limit is > controlled through another (charger) IC. > > It has been decided to model this by mode

Re: [PATCH 16/18] power: supply: bq24190_charger: Remove extcon handling

2017-08-08 Thread Liam Breck
Hi Hans, On Sun, Aug 6, 2017 at 5:35 AM, Hans de Goede wrote: > Now that drivers/i2c/busses/i2c-cht-wc.c uses > "input-current-limit-from-supplier" instead of "extcon-name" the last > user of the bq24190 extcon code is gone, remove it. > > Signed-off-by: Hans de Goede > --- > drivers/power/supp

Re: [PATCH v4] printk: Add monotonic, boottime, and realtime timestamps

2017-08-08 Thread Peter Zijlstra
On Mon, Aug 07, 2017 at 01:36:39PM -0700, Paul E. McKenney wrote: > On Mon, Aug 07, 2017 at 04:06:09PM -0400, Prarit Bhargava wrote: > > peterz? Want to offer a suggestion? The issue is that I'm changing a bool > > config option to an int and that impacts all the arch's defconfigs. John > > po

Re: block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init()

2017-08-08 Thread SF Markus Elfring
>> https://patchwork.ozlabs.org/patch/798575/ > > I submitted your patch Thanks for your constructive feedback. https://patchwork.ozlabs.org/patch/798850/ > and a fix to ps3vram_probe() with the other patches in my queue. I find it nice that you picked this change opportunity up after a bit of

RE: [U-Boot] [PATCH] config: ls1012aqds: Add USB EHCI support for ls1012aqds

2017-08-08 Thread Prabhakar Kushwaha
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of > yinbo@nxp.com > Sent: Thursday, July 27, 2017 3:19 PM > To: u-b...@lists.denx.de > Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS > ; Mihai Emilian Bantea ; > Horia Geantă ; Marc Zy

Re: [PATCH v2] usb: quirks: Add no-lpm quirk for Moshi USB to Ethernet Adapter

2017-08-08 Thread Oliver Neukum
Am Dienstag, den 08.08.2017, 14:32 +0800 schrieb Kai-Heng Feng: > Moshi USB to Ethernet Adapter internally uses a Genesys Logic hub to > connect to Realtek r8153. > > The Realtek r8153 ethernet does not work on the internal hub, no-lpm quirk > can make it work. > > Since another r8153 dongle at m

Re: [PATCH v2] scheduler: enhancement to show_state_filter

2017-08-08 Thread Peter Zijlstra
On Tue, Aug 08, 2017 at 08:53:10PM +0800, Yafang Shao wrote: > Sometimes we want to get tasks in TASK_RUNNING sepcifically, > instead of dump all tasks. > For example, when the loadavg are high, we want to dump > tasks in TASK_RUNNING and TASK_UNINTERRUPTIBLE, which contribute > to system load. But

Re: [PATCH v2 2/4] KVM: X86: implement the logic for spinlock optimization

2017-08-08 Thread Longpeng (Mike)
On 2017/8/8 15:30, Paolo Bonzini wrote: > On 08/08/2017 06:05, Longpeng(Mike) wrote: >> diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c >> index cd0e6e6..dec5e8a 100644 >> --- a/arch/x86/kvm/hyperv.c >> +++ b/arch/x86/kvm/hyperv.c >> @@ -1268,7 +1268,7 @@ int kvm_hv_hypercall(struct k

Re: [PATCH] memory: mtk-smi: Handle return value of clk_prepare_enable

2017-08-08 Thread Honghui Zhang
On Tue, 2017-08-08 at 11:06 +0530, Arvind Yadav wrote: > clk_prepare_enable() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav > --- Hi, Arvind, please rebase this to my latest patchset[1], it's been applied by Joerg. And please send this one to Joerg and iommu m

Re: [PATCH v2 3/4] KVM: s390: implements the kvm_arch_vcpu_in_kernel()

2017-08-08 Thread David Hildenbrand
On 08.08.2017 06:05, Longpeng(Mike) wrote: > This implements the kvm_arch_vcpu_in_kernel() for s390. > > Signed-off-by: Longpeng(Mike) > --- > arch/s390/kvm/kvm-s390.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c >

Re: [PATCH 1/3] thermal: core: Fix a memory leak in 'thermal_zone_device_register()' error handling path

2017-08-08 Thread Zhang Rui
On Sun, 2017-07-16 at 08:59 +0200, Christophe JAILLET wrote: > 'tz' is freed in some error handling paths but not in the main one. > So free it also here to avoid a memory leak. > After device registered, tz is freed in thermal_release(). thanks, rui > Signed-off-by: Christophe JAILLET > --- >  

Re: [PATCH v2 2/4] KVM: X86: implement the logic for spinlock optimization

2017-08-08 Thread Paolo Bonzini
On 08/08/2017 10:31, Longpeng (Mike) wrote: > > > On 2017/8/8 15:30, Paolo Bonzini wrote: > >> On 08/08/2017 06:05, Longpeng(Mike) wrote: >>> diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c >>> index cd0e6e6..dec5e8a 100644 >>> --- a/arch/x86/kvm/hyperv.c >>> +++ b/arch/x86/kvm/hyperv

Re: [PATCH 13/18] power: supply: bq24190_charger: Export 5V boost converter as regulator

2017-08-08 Thread Liam Breck
Hi Hans, On Sun, Aug 6, 2017 at 5:35 AM, Hans de Goede wrote: > Register the 5V boost converter as a regulator named > "regulator-bq24190-usb-vbus". Note the name includes "bq24190" because > the bq24190 family is also used on ACPI devices where there are no > device-tree phandles, so regulator_g

Re: [PATCH v2 1/4] KVM: add spinlock optimization framework

2017-08-08 Thread David Hildenbrand
> +bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu) > +{ > + return false; > +} why don't we need an EXPORT_SYMBOL here? > + > /* Just ensure a guest exit from a particular CPU */ > static void exit_vm_noop(void *info) > { > diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c > inde

[v2 PATCH] powerpc/powernv/idle: Disable LOSE_FULL_CONTEXT states when stop-api fails

2017-08-08 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Currently, we use the opal call opal_slw_set_reg() to inform the Sleep-Winkle Engine (SLW) to restore the contents of some of the Hypervisor state on wakeup from deep idle states that lose full hypervisor context (characterized by the flag OPAL_PM_LOSE_FULL_CONTEXT). Ho

Re: [PATCH 2/2] sched/debug: intruduce task_state_to_char helper function

2017-08-08 Thread Xie XiuQi
testing, I'll fix it in v2. -- Xie XiuQi > > url: > https://github.com/0day-ci/linux/commits/Xie-XiuQi/sched-debug-show-task-state-on-proc-sched_debug/20170808-135825 > config: i386-randconfig-x019-201732 (attached as .config) > compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 2016

Re: [PATCH v2 1/4] KVM: add spinlock optimization framework

2017-08-08 Thread David Hildenbrand
On 08.08.2017 10:42, David Hildenbrand wrote: > >> +bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu) >> +{ >> +return false; >> +} > > why don't we need an EXPORT_SYMBOL here? > >> + >> /* Just ensure a guest exit from a particular CPU */ >> static void exit_vm_noop(void *info) >> { >>

Re: [PATCH] append Qualcomm GOBI 2K chipset ID for Panasonic CF-U1 Toughbook

2017-08-08 Thread Bjørn Mork
Johan Hovold writes: > On Mon, Aug 07, 2017 at 04:22:27PM +0200, Oleg Kokorin wrote: >> From 336f8adb0292a25ea41f0515a80850031f814b9b Mon Sep 17 00:00:00 2001 >> From: Oleg Kokorin >> Date: Mon, 7 Aug 2017 15:35:53 +0200 >> Subject: [PATCH] append Qualcomm GOBI 2K chipset ID for Panasonic CF-U1

[PATCH v3 00/49] block: support multipage bvec

2017-08-08 Thread Ming Lei
Hi, This patchset brings multipage bvec into block layer: 1) what is multipage bvec? Multipage bvecs means that one 'struct bio_bvec' can hold multiple pages which are physically contiguous instead of one single page used in linux kernel for long time. 2) why is multipage bvec introduced? Kent

[PATCH v3 01/49] block: drbd: comment on direct access bvec table

2017-08-08 Thread Ming Lei
Signed-off-by: Ming Lei --- drivers/block/drbd/drbd_bitmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c index 809fd245c3dc..70890d950dc9 100644 --- a/drivers/block/drbd/drbd_bitmap.c +++ b/drivers/block/drbd/drbd_bitmap.

[PATCH v3 02/49] block: loop: comment on direct access to bvec table

2017-08-08 Thread Ming Lei
Signed-off-by: Ming Lei --- drivers/block/loop.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index ef8334949b42..58df9ed70328 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -487,6 +487,11 @@ static int lo_rw_aio(struct loop

Re: [RFC PATCH 2/2] bpf: Initialise mod[] in bpf_trace_printk

2017-08-08 Thread Daniel Borkmann
On 08/08/2017 12:25 AM, James Hogan wrote: In bpf_trace_printk(), the elements in mod[] are left uninitialised, but they are then incremented to track the width of the formats. Zero initialise the array just in case the memory contains non-zero values on entry. Fixes: 9c959c863f82 ("tracing: All

[PATCH v3 06/49] f2fs: f2fs_read_end_io: comment on direct access to bvec table

2017-08-08 Thread Ming Lei
Cc: Jaegeuk Kim Cc: Chao Yu Cc: linux-f2fs-de...@lists.sourceforge.net Signed-off-by: Ming Lei --- fs/f2fs/data.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 87c1f4150c64..99fa8e9780e8 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -56,6 +5

[PATCH v3 03/49] kernel/power/swap.c: comment on direct access to bvec table

2017-08-08 Thread Ming Lei
Cc: "Rafael J. Wysocki" Cc: linux...@vger.kernel.org Signed-off-by: Ming Lei --- kernel/power/swap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/power/swap.c b/kernel/power/swap.c index 57d22571f306..aa52ccc03fcc 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c @@ -238

[PATCH v3 05/49] fs/buffer: comment on direct access to bvec table

2017-08-08 Thread Ming Lei
Signed-off-by: Ming Lei --- fs/buffer.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/buffer.c b/fs/buffer.c index 5715dac7821f..c821ed6a6f0e 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -3054,8 +3054,13 @@ static void end_bio_bh_io_sync(struct bio *bio) void guar

[PATCH v3 08/49] block: comment on bio_alloc_pages()

2017-08-08 Thread Ming Lei
This patch adds comment on usage of bio_alloc_pages(). Signed-off-by: Ming Lei --- block/bio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/block/bio.c b/block/bio.c index e241bbc49f14..826b5d173416 100644 --- a/block/bio.c +++ b/block/bio.c @@ -981,7 +981,9 @@ EXPORT_S

[PATCH v3 07/49] bcache: comment on direct access to bvec table

2017-08-08 Thread Ming Lei
Looks all are safe after multipage bvec is supported. Cc: linux-bca...@vger.kernel.org Signed-off-by: Ming Lei --- drivers/md/bcache/btree.c | 1 + drivers/md/bcache/super.c | 6 ++ drivers/md/bcache/util.c | 7 +++ 3 files changed, 14 insertions(+) diff --git a/drivers/md/bcache/btree

[PATCH v3 09/49] block: comment on bio_iov_iter_get_pages()

2017-08-08 Thread Ming Lei
bio_iov_iter_get_pages() used unused bvec spaces for storing page pointer array temporarily, and this patch comments on this usage wrt. multipage bvec support. Signed-off-by: Ming Lei --- block/bio.c | 4 1 file changed, 4 insertions(+) diff --git a/block/bio.c b/block/bio.c index 826b5d17

[PATCH v3 11/49] btrfs: avoid access to .bi_vcnt directly

2017-08-08 Thread Ming Lei
BTRFS uses bio->bi_vcnt to figure out page numbers, this way becomes not correct once we start to enable multipage bvec. So use bio_for_each_segment_all() to do that instead. Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Cc: linux-bt...@vger.kernel.org Acked-by: David Sterba Signed-off-by:

[PATCH v3 13/49] btrfs: comment on direct access bvec table

2017-08-08 Thread Ming Lei
Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Cc: linux-bt...@vger.kernel.org Acked: David Sterba Signed-off-by: Ming Lei --- fs/btrfs/compression.c | 4 fs/btrfs/inode.c | 12 2 files changed, 16 insertions(+) diff --git a/fs/btrfs/compression.c b/fs/btrfs/compre

[PATCH v3 15/49] bvec_iter: introduce BVEC_ITER_ALL_INIT

2017-08-08 Thread Ming Lei
Introduce BVEC_ITER_ALL_INIT for iterating one bio from start to end. Signed-off-by: Ming Lei --- include/linux/bvec.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/linux/bvec.h b/include/linux/bvec.h index ec8a4d7af6bd..fe7a22dd133b 100644 --- a/include/linux/bvec.h +++ b

[PATCH v3 14/49] block: bounce: avoid direct access to bvec table

2017-08-08 Thread Ming Lei
We will support multipage bvecs in the future, so change to iterator way for getting bv_page of bvec from original bio. Cc: Matthew Wilcox Signed-off-by: Ming Lei --- block/bounce.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/block/bounce.c b/block/boun

  1   2   3   4   5   6   7   8   9   10   >