Re: [PATCH 2/2] ARM: dts: imx6sll: add gpio clocks

2018-07-11 Thread Shawn Guo
On Fri, Jun 22, 2018 at 02:32:34PM +0800, Anson Huang wrote: > i.MX6SLL has GPIO clock gates in CCM CCGR, add > clock property for GPIO driver to make sure all > GPIO banks work as expected. > > Signed-off-by: Anson Huang I tried to create a topic branch for this patch with dependent clk branch

Re: [PATCH 2/2] ARM: dts: imx6sll: add gpio clocks

2018-07-11 Thread Shawn Guo
On Fri, Jun 22, 2018 at 02:32:34PM +0800, Anson Huang wrote: > i.MX6SLL has GPIO clock gates in CCM CCGR, add > clock property for GPIO driver to make sure all > GPIO banks work as expected. > > Signed-off-by: Anson Huang I tried to create a topic branch for this patch with dependent clk branch

Re: [PATCH v2 2/3] clk: meson: add sub MMC clock dt-bindings IDs

2018-07-11 Thread Yixun Lan
Hi Rob On 07/12/18 03:45, Rob Herring wrote: > On Tue, Jul 10, 2018 at 04:36:57PM +, Yixun Lan wrote: >> Add two clock bindings IDs which provided by the MMC clock controller, >> These two clocks will be used by MMC or NAND driver. > > I count 3 ids. I will update this > >> >>

Re: [PATCH v2 2/3] clk: meson: add sub MMC clock dt-bindings IDs

2018-07-11 Thread Yixun Lan
Hi Rob On 07/12/18 03:45, Rob Herring wrote: > On Tue, Jul 10, 2018 at 04:36:57PM +, Yixun Lan wrote: >> Add two clock bindings IDs which provided by the MMC clock controller, >> These two clocks will be used by MMC or NAND driver. > > I count 3 ids. I will update this > >> >>

Re: [PATCH v2 1/3] clk: meson: add DT documentation for emmc clock controller

2018-07-11 Thread Yixun Lan
Hi Rob see my comments On 07/12/18 03:43, Rob Herring wrote: > On Tue, Jul 10, 2018 at 04:36:56PM +, Yixun Lan wrote: >> Document the MMC sub clock controller driver, the potential consumer >> of this driver is MMC or NAND. > > So you all have decided to properly model this now? > Yes, ;-)

Re: [PATCH v2 1/3] clk: meson: add DT documentation for emmc clock controller

2018-07-11 Thread Yixun Lan
Hi Rob see my comments On 07/12/18 03:43, Rob Herring wrote: > On Tue, Jul 10, 2018 at 04:36:56PM +, Yixun Lan wrote: >> Document the MMC sub clock controller driver, the potential consumer >> of this driver is MMC or NAND. > > So you all have decided to properly model this now? > Yes, ;-)

Re: [PATCH v9 4/7] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-07-11 Thread Joel Fernandes
On Wed, Jul 11, 2018 at 09:22:37PM -0400, Steven Rostedt wrote: > On Wed, 11 Jul 2018 13:56:39 -0700 > Joel Fernandes wrote: > > > > > #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) > > > > \ > > > > extern struct tracepoint __tracepoint_##name;

Re: [PATCH v9 4/7] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-07-11 Thread Joel Fernandes
On Wed, Jul 11, 2018 at 09:22:37PM -0400, Steven Rostedt wrote: > On Wed, 11 Jul 2018 13:56:39 -0700 > Joel Fernandes wrote: > > > > > #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) > > > > \ > > > > extern struct tracepoint __tracepoint_##name;

RE: Re: Re: devfreq relation with pm qos

2018-07-11 Thread MyungJoo Ham
>MyungJo, I am trying to understand the relationship of PM QOS with >devfreq drivers. I don't see any relation of PM QOS api's with devfreq drivers >directly as there are no QOS apis used in the devfreq framework. > >The only explanation I have is that PM QOS has direct relationship >with CPUFREQ

RE: Re: Re: devfreq relation with pm qos

2018-07-11 Thread MyungJoo Ham
>MyungJo, I am trying to understand the relationship of PM QOS with >devfreq drivers. I don't see any relation of PM QOS api's with devfreq drivers >directly as there are no QOS apis used in the devfreq framework. > >The only explanation I have is that PM QOS has direct relationship >with CPUFREQ

[PATCH 1/2] ARM: dts: imx51-zii-scu3-esb: Add switch IRQ line pinumx config

2018-07-11 Thread Andrey Smirnov
Add DT code to explicitly configure PAD_AUD3_BB_CK and avoid relying on defaults. Cc: Fabio Estevam Cc: Nikita Yushchenko Cc: Lucas Stach Cc: cphe...@gmail.com Cc: Shawn Guo Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc:

[PATCH 2/2] ARM: dts: imx51-zii-scu3-esb: Fix RAVE SP watchdog compatible string

2018-07-11 Thread Andrey Smirnov
It looks like I made a nasty typo in the original patch which resulted in missing watchdog device. Fix it. Cc: Fabio Estevam Cc: Nikita Yushchenko Cc: Lucas Stach Cc: cphe...@gmail.com Cc: Shawn Guo Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCH 1/2] ARM: dts: imx51-zii-scu3-esb: Add switch IRQ line pinumx config

2018-07-11 Thread Andrey Smirnov
Add DT code to explicitly configure PAD_AUD3_BB_CK and avoid relying on defaults. Cc: Fabio Estevam Cc: Nikita Yushchenko Cc: Lucas Stach Cc: cphe...@gmail.com Cc: Shawn Guo Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc:

[PATCH 2/2] ARM: dts: imx51-zii-scu3-esb: Fix RAVE SP watchdog compatible string

2018-07-11 Thread Andrey Smirnov
It looks like I made a nasty typo in the original patch which resulted in missing watchdog device. Fix it. Cc: Fabio Estevam Cc: Nikita Yushchenko Cc: Lucas Stach Cc: cphe...@gmail.com Cc: Shawn Guo Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCH 0/2] Follow up fixes for SCU3 ESB

2018-07-11 Thread Andrey Smirnov
Shawn: Here's a couple of fixes for things I missed in the [original-submission]. Sorry about the inconvenience. Thanks, Andrey Smirnov [original-submission] lkml.kernel.org/r/20180711050704.11492-1-andrew.smir...@gmail.com Andrey Smirnov (2): ARM: dts: imx51-zii-scu3-esb: Add switch IRQ

[PATCH 0/2] Follow up fixes for SCU3 ESB

2018-07-11 Thread Andrey Smirnov
Shawn: Here's a couple of fixes for things I missed in the [original-submission]. Sorry about the inconvenience. Thanks, Andrey Smirnov [original-submission] lkml.kernel.org/r/20180711050704.11492-1-andrew.smir...@gmail.com Andrey Smirnov (2): ARM: dts: imx51-zii-scu3-esb: Add switch IRQ

Re: [PATCH v9 4/7] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-07-11 Thread Joel Fernandes
On Wed, Jul 11, 2018 at 02:53:22PM +0200, Peter Zijlstra wrote: > On Thu, Jun 28, 2018 at 11:21:46AM -0700, Joel Fernandes wrote: > > - rcu_read_lock_sched_notrace(); \ > > - it_func_ptr = rcu_dereference_sched((tp)->funcs); \ > > +

Re: [patch 5/7] x86/kvmclock: Mark variables __initdata and __ro_after_init

2018-07-11 Thread Pavel Tatashin
On Fri, Jul 6, 2018 at 12:25 PM Thomas Gleixner wrote: > > The kvmclock parameter is init data and the other variables are not > modified after init. LGTM: Reviewed-by: Pavel Tatashin

Re: [PATCH v9 4/7] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-07-11 Thread Joel Fernandes
On Wed, Jul 11, 2018 at 02:53:22PM +0200, Peter Zijlstra wrote: > On Thu, Jun 28, 2018 at 11:21:46AM -0700, Joel Fernandes wrote: > > - rcu_read_lock_sched_notrace(); \ > > - it_func_ptr = rcu_dereference_sched((tp)->funcs); \ > > +

Re: [patch 5/7] x86/kvmclock: Mark variables __initdata and __ro_after_init

2018-07-11 Thread Pavel Tatashin
On Fri, Jul 6, 2018 at 12:25 PM Thomas Gleixner wrote: > > The kvmclock parameter is init data and the other variables are not > modified after init. LGTM: Reviewed-by: Pavel Tatashin

Re: linux-next: duplicate patches in the gfs2 and xfs trees

2018-07-11 Thread Andreas Gruenbacher
Hi, On 12 July 2018 at 03:37, Stephen Rothwell wrote: > Hi all, > > It looks like part of the xfs tree (the iomap-4.19-merge branch) that > was merge into the gfs2 tree has been rebased and the gfs2 tree has not > been updated to cope. The rebase commits are exactly the same patches > (though I

Re: linux-next: duplicate patches in the gfs2 and xfs trees

2018-07-11 Thread Andreas Gruenbacher
Hi, On 12 July 2018 at 03:37, Stephen Rothwell wrote: > Hi all, > > It looks like part of the xfs tree (the iomap-4.19-merge branch) that > was merge into the gfs2 tree has been rebased and the gfs2 tree has not > been updated to cope. The rebase commits are exactly the same patches > (though I

Re: [PATCH] extcon: max3355: include mod_devicetable.h

2018-07-11 Thread Randy Dunlap
On 07/11/2018 08:50 AM, Arnd Bergmann wrote: > Another driver turned up that is missing linux/mod_devicetable.h after > the device IDs are split out from linux/platform_device.h: > > drivers/extcon/extcon-max3355.c:127:34: error: array type has incomplete > element type 'struct of_device_id' >

Re: [PATCH] extcon: max3355: include mod_devicetable.h

2018-07-11 Thread Randy Dunlap
On 07/11/2018 08:50 AM, Arnd Bergmann wrote: > Another driver turned up that is missing linux/mod_devicetable.h after > the device IDs are split out from linux/platform_device.h: > > drivers/extcon/extcon-max3355.c:127:34: error: array type has incomplete > element type 'struct of_device_id' >

Re: [PATCH 1/2] clk: imx6sll: add GPIO LPCGs

2018-07-11 Thread Shawn Guo
On Wed, Jul 11, 2018 at 09:33:45AM -0700, Stephen Boyd wrote: > Quoting Shawn Guo (2018-07-11 01:43:03) > > On Fri, Jul 06, 2018 at 01:58:46PM -0700, Stephen Boyd wrote: > > > Quoting Anson Huang (2018-06-21 23:32:33) > > > > According to Reference Manual Rev.0, 06/2017, > > > > there are GPIO

Re: [PATCH 1/2] clk: imx6sll: add GPIO LPCGs

2018-07-11 Thread Shawn Guo
On Wed, Jul 11, 2018 at 09:33:45AM -0700, Stephen Boyd wrote: > Quoting Shawn Guo (2018-07-11 01:43:03) > > On Fri, Jul 06, 2018 at 01:58:46PM -0700, Stephen Boyd wrote: > > > Quoting Anson Huang (2018-06-21 23:32:33) > > > > According to Reference Manual Rev.0, 06/2017, > > > > there are GPIO

Re: [patch 3/7] x86/kvmclock: Decrapify kvm_register_clock()

2018-07-11 Thread Pavel Tatashin
In addition to what Paolo's noticed, may be change printk to pr_info() while editing around it: > - > printk(KERN_INFO "kvm-clock: Using msrs %x and %x", > msr_kvm_system_time, msr_kvm_wall_clock); > > + hv_clock = (struct pvclock_vsyscall_time_info *)hv_clock_mem; >

Re: [patch 3/7] x86/kvmclock: Decrapify kvm_register_clock()

2018-07-11 Thread Pavel Tatashin
In addition to what Paolo's noticed, may be change printk to pr_info() while editing around it: > - > printk(KERN_INFO "kvm-clock: Using msrs %x and %x", > msr_kvm_system_time, msr_kvm_wall_clock); > > + hv_clock = (struct pvclock_vsyscall_time_info *)hv_clock_mem; >

Re: [V9fs-developer] [PATCH v2 2/6] 9p: Change p9_fid_create calling convention

2018-07-11 Thread piaojun
LGTM On 2018/7/12 5:02, Matthew Wilcox wrote: > Return NULL instead of ERR_PTR when we can't allocate a FID. The ENOSPC > return value was getting all the way back to userspace, and that's > confusing for a userspace program which isn't expecting read() to tell it > there's no space left on the

Re: [patch 2/7] x86/kvmclock: Remove page size requirement from wall_clock

2018-07-11 Thread Pavel Tatashin
On Fri, Jul 6, 2018 at 12:26 PM Thomas Gleixner wrote: > > There is no requirement for wall_clock data to be page aligned or page > sized. > Reviewed-by: Pavel Tatashin

Re: [V9fs-developer] [PATCH v2 2/6] 9p: Change p9_fid_create calling convention

2018-07-11 Thread piaojun
LGTM On 2018/7/12 5:02, Matthew Wilcox wrote: > Return NULL instead of ERR_PTR when we can't allocate a FID. The ENOSPC > return value was getting all the way back to userspace, and that's > confusing for a userspace program which isn't expecting read() to tell it > there's no space left on the

Re: [patch 2/7] x86/kvmclock: Remove page size requirement from wall_clock

2018-07-11 Thread Pavel Tatashin
On Fri, Jul 6, 2018 at 12:26 PM Thomas Gleixner wrote: > > There is no requirement for wall_clock data to be page aligned or page > sized. > Reviewed-by: Pavel Tatashin

Re: [PATCH v2] kvm/x86: Inform RCU of quiescent state when entering guest mode

2018-07-11 Thread Paul E. McKenney
On Wed, Jul 11, 2018 at 04:37:27PM -0700, Paul E. McKenney wrote: > On Wed, Jul 11, 2018 at 02:32:59PM -0700, Paul E. McKenney wrote: > > On Wed, Jul 11, 2018 at 11:11:19PM +0200, Christian Borntraeger wrote: > > > > > > > > > On 07/11/2018 10:27 PM, Paul E. McKenney wrote: > > > > On Wed, Jul

Re: [PATCH v2] kvm/x86: Inform RCU of quiescent state when entering guest mode

2018-07-11 Thread Paul E. McKenney
On Wed, Jul 11, 2018 at 04:37:27PM -0700, Paul E. McKenney wrote: > On Wed, Jul 11, 2018 at 02:32:59PM -0700, Paul E. McKenney wrote: > > On Wed, Jul 11, 2018 at 11:11:19PM +0200, Christian Borntraeger wrote: > > > > > > > > > On 07/11/2018 10:27 PM, Paul E. McKenney wrote: > > > > On Wed, Jul

Re: [PATCH v3 05/12] kconfig: make syncconfig update .config regardless of sym_change_count

2018-07-11 Thread Masahiro Yamada
2018-07-09 20:39 GMT+09:00 Dirk Gouders : > Dirk Gouders writes: > >> Dirk Gouders writes: >> >>> Masahiro Yamada writes: >>> syncconfig updates the .config only when sym_change_count > 0, i.e. any change in config symbols has been detected. Not only symbols but also

Re: [PATCH v3 05/12] kconfig: make syncconfig update .config regardless of sym_change_count

2018-07-11 Thread Masahiro Yamada
2018-07-09 20:39 GMT+09:00 Dirk Gouders : > Dirk Gouders writes: > >> Dirk Gouders writes: >> >>> Masahiro Yamada writes: >>> syncconfig updates the .config only when sym_change_count > 0, i.e. any change in config symbols has been detected. Not only symbols but also

Re: [patch 0/7] x86/kvmclock: Remove memblock dependency and further cleanups

2018-07-11 Thread Pavel Tatashin
> So this still will have some overhead when kvmclock is not in use, but > bringing it down to zero would be a massive trainwreck and even more > indirections. Hi Thomas, In my opinion, having kvmclock page in __initdata for boot cpu, and setup it in init_hypervisor_platform(). Later, switch to

Re: [patch 0/7] x86/kvmclock: Remove memblock dependency and further cleanups

2018-07-11 Thread Pavel Tatashin
> So this still will have some overhead when kvmclock is not in use, but > bringing it down to zero would be a massive trainwreck and even more > indirections. Hi Thomas, In my opinion, having kvmclock page in __initdata for boot cpu, and setup it in init_hypervisor_platform(). Later, switch to

Re: [PATCH v2 1/2] dt: bindings: Add bindings for SDHCI Synopsys DWC MSHC

2018-07-11 Thread Jisheng Zhang
Hi Rob, On Wed, 11 Jul 2018 10:12:06 -0600 Rob Herring wrote: > On Fri, Jul 06, 2018 at 03:20:47PM +0800, Jisheng Zhang wrote: > > Synopsys SDHCI compatible DesignWare Cores Mobile Storage Host > > Controller can support eMMC/SD/SDIO. Add the bindings. > > > > Signed-off-by: Jisheng Zhang > >

Re: [PATCH v2 1/2] dt: bindings: Add bindings for SDHCI Synopsys DWC MSHC

2018-07-11 Thread Jisheng Zhang
Hi Rob, On Wed, 11 Jul 2018 10:12:06 -0600 Rob Herring wrote: > On Fri, Jul 06, 2018 at 03:20:47PM +0800, Jisheng Zhang wrote: > > Synopsys SDHCI compatible DesignWare Cores Mobile Storage Host > > Controller can support eMMC/SD/SDIO. Add the bindings. > > > > Signed-off-by: Jisheng Zhang > >

Re: [PATCH] arm64: Add support for STACKLEAK gcc plugin

2018-07-11 Thread Kees Cook
On Wed, Jul 11, 2018 at 6:45 PM, Laura Abbott wrote: >> +#ifdef CONFIG_GCC_PLUGIN_STACKLEAK >> +#define MIN_STACK_LEFT 256 >> + >> +void __used stackleak_check_alloca(unsigned long size) >> +{ >> + unsigned long sp, stack_left; >> + >> + sp = current_stack_pointer; >> + >> +

Re: [PATCH] arm64: Add support for STACKLEAK gcc plugin

2018-07-11 Thread Kees Cook
On Wed, Jul 11, 2018 at 6:45 PM, Laura Abbott wrote: >> +#ifdef CONFIG_GCC_PLUGIN_STACKLEAK >> +#define MIN_STACK_LEFT 256 >> + >> +void __used stackleak_check_alloca(unsigned long size) >> +{ >> + unsigned long sp, stack_left; >> + >> + sp = current_stack_pointer; >> + >> +

[PATCH v6 2/3] serial: 8250: export serial8250_do_set_divisor()

2018-07-11 Thread Jisheng Zhang
Some drivers could call serial8250_do_set_divisor() to complete its own set_divisor routine. Export this symbol for code reusing. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_port.c | 5 +++-- include/linux/serial_8250.h | 3 +++ 2 files

[PATCH v6 2/3] serial: 8250: export serial8250_do_set_divisor()

2018-07-11 Thread Jisheng Zhang
Some drivers could call serial8250_do_set_divisor() to complete its own set_divisor routine. Export this symbol for code reusing. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_port.c | 5 +++-- include/linux/serial_8250.h | 3 +++ 2 files

Re: [PATCH] console: Replace #if 1 with a bool to ignore WARN_CONSOLE_UNLOCKED()

2018-07-11 Thread Sergey Senozhatsky
On (07/11/18 15:17), Steven Rostedt wrote: > +bool ignore_console_lock_warning __read_mostly; > +EXPORT_SYMBOL(ignore_console_lock_warning); OK. So, to recap, We made is_console_locked() EXPORT_SYMBOL recently [it's still in linux-next], so people could use WARN_CONSOLE_UNLOCKED in more places;

Re: [PATCH] console: Replace #if 1 with a bool to ignore WARN_CONSOLE_UNLOCKED()

2018-07-11 Thread Sergey Senozhatsky
On (07/11/18 15:17), Steven Rostedt wrote: > +bool ignore_console_lock_warning __read_mostly; > +EXPORT_SYMBOL(ignore_console_lock_warning); OK. So, to recap, We made is_console_locked() EXPORT_SYMBOL recently [it's still in linux-next], so people could use WARN_CONSOLE_UNLOCKED in more places;

[PATCH v6 3/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. Now the preparation is done, it's easy to add the feature support. This patch firstly tries to get the fractional divisor width during probe,

Re: [PATCH 06/14] fsi: master-gpio: Add more tracepoints

2018-07-11 Thread Benjamin Herrenschmidt
On Thu, 2018-06-28 at 13:41 +0930, Joel Stanley wrote: > On 27 June 2018 at 08:55, Benjamin Herrenschmidt > wrote: > > This adds a few more tracepoints that have proven useful when > > debugging issues with the FSI bus. > > > > Signed-off-by: Benjamin Herrenschmidt > > Reviewed-by: Joel

[PATCH v6 3/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. Now the preparation is done, it's easy to add the feature support. This patch firstly tries to get the fractional divisor width during probe,

Re: [PATCH 06/14] fsi: master-gpio: Add more tracepoints

2018-07-11 Thread Benjamin Herrenschmidt
On Thu, 2018-06-28 at 13:41 +0930, Joel Stanley wrote: > On 27 June 2018 at 08:55, Benjamin Herrenschmidt > wrote: > > This adds a few more tracepoints that have proven useful when > > debugging issues with the FSI bus. > > > > Signed-off-by: Benjamin Herrenschmidt > > Reviewed-by: Joel

[PATCH v6 1/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-11 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++

[PATCH v6 1/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-11 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++

[PATCH v2] KVM: Add coalesced PIO support

2018-07-11 Thread Wanpeng Li
From: Peng Hao Windows I/O, such as the real-time clock. The address register (port 0x70 in the RTC case) can use coalesced I/O, cutting the number of userspace exits by half when reading or writing the RTC. Guest access rtc like this: write register index to 0x70, then write or read data from

[PATCH v2] KVM: Add coalesced PIO support

2018-07-11 Thread Wanpeng Li
From: Peng Hao Windows I/O, such as the real-time clock. The address register (port 0x70 in the RTC case) can use coalesced I/O, cutting the number of userspace exits by half when reading or writing the RTC. Guest access rtc like this: write register index to 0x70, then write or read data from

[PATCH v6 0/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. patch1 introduces necessary hooks to 8250 core. patch2 exports serial8250_do_set_divisor() patch3 implements the fractional divisor support for

[PATCH v6 0/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. patch1 introduces necessary hooks to 8250 core. patch2 exports serial8250_do_set_divisor() patch3 implements the fractional divisor support for

Re: [RFC PATCH] mm, page_alloc: double zone's batchsize

2018-07-11 Thread Andrew Morton
On Thu, 12 Jul 2018 01:40:41 + "Lu, Aaron" wrote: > Thanks Andrew. > I think the credit goes to Dave Hansen Oh. In that case, I take it all back. The patch sucks!

Re: [RFC PATCH] mm, page_alloc: double zone's batchsize

2018-07-11 Thread Andrew Morton
On Thu, 12 Jul 2018 01:40:41 + "Lu, Aaron" wrote: > Thanks Andrew. > I think the credit goes to Dave Hansen Oh. In that case, I take it all back. The patch sucks!

Re: [PATCH] arm64: Add support for STACKLEAK gcc plugin

2018-07-11 Thread Laura Abbott
On 07/11/2018 05:03 PM, Kees Cook wrote: From: Laura Abbott This adds support for the STACKLEAK gcc plugin to arm64 by implementing stackleak_check_alloca(), based heavily on the x86 version, and adding the two helpers used by the stackleak common code: current_top_of_stack() and

Re: [PATCH] arm64: Add support for STACKLEAK gcc plugin

2018-07-11 Thread Laura Abbott
On 07/11/2018 05:03 PM, Kees Cook wrote: From: Laura Abbott This adds support for the STACKLEAK gcc plugin to arm64 by implementing stackleak_check_alloca(), based heavily on the x86 version, and adding the two helpers used by the stackleak common code: current_top_of_stack() and

Re: [PATCH] thp: fix data loss when splitting a file pmd

2018-07-11 Thread Yang Shi
On 7/11/18 5:48 PM, Hugh Dickins wrote: __split_huge_pmd_locked() must check if the cleared huge pmd was dirty, and propagate that to PageDirty: otherwise, data may be lost when a huge tmpfs page is modified then split then reclaimed. How has this taken so long to be noticed? Because there

Re: [PATCH] thp: fix data loss when splitting a file pmd

2018-07-11 Thread Yang Shi
On 7/11/18 5:48 PM, Hugh Dickins wrote: __split_huge_pmd_locked() must check if the cleared huge pmd was dirty, and propagate that to PageDirty: otherwise, data may be lost when a huge tmpfs page is modified then split then reclaimed. How has this taken so long to be noticed? Because there

Re: [RFC PATCH] mm, page_alloc: double zone's batchsize

2018-07-11 Thread Lu, Aaron
On Wed, 2018-07-11 at 14:35 -0700, Andrew Morton wrote: > On Wed, 11 Jul 2018 13:58:55 +0800 Aaron Lu wrote: > > > [550 lines of changelog] > > OK, I'm convinced ;) That was a lot of work - thanks for being exhaustive. Thanks Andrew. I think the credit goes to Dave Hansen since he has been

Re: [RFC PATCH] mm, page_alloc: double zone's batchsize

2018-07-11 Thread Lu, Aaron
On Wed, 2018-07-11 at 14:35 -0700, Andrew Morton wrote: > On Wed, 11 Jul 2018 13:58:55 +0800 Aaron Lu wrote: > > > [550 lines of changelog] > > OK, I'm convinced ;) That was a lot of work - thanks for being exhaustive. Thanks Andrew. I think the credit goes to Dave Hansen since he has been

Re: [PATCH] x86/kvm/vmx: don't read current->thread.{fs,gs}base of legacy tasks

2018-07-11 Thread Wanpeng Li
On Thu, 12 Jul 2018 at 08:07, Vitaly Kuznetsov wrote: > > When we switched from doing rdmsr() to reading FS/GS base values from > current->thread we completely forgot about legacy 32-bit userspaces which > we still support in KVM (why?). task->thread.{fsbase,gsbase} are only > synced for 64-bit

Re: [PATCH] x86/kvm/vmx: don't read current->thread.{fs,gs}base of legacy tasks

2018-07-11 Thread Wanpeng Li
On Thu, 12 Jul 2018 at 08:07, Vitaly Kuznetsov wrote: > > When we switched from doing rdmsr() to reading FS/GS base values from > current->thread we completely forgot about legacy 32-bit userspaces which > we still support in KVM (why?). task->thread.{fsbase,gsbase} are only > synced for 64-bit

linux-next: duplicate patches in the gfs2 and xfs trees

2018-07-11 Thread Stephen Rothwell
Hi all, It looks like part of the xfs tree (the iomap-4.19-merge branch) that was merge into the gfs2 tree has been rebased and the gfs2 tree has not been updated to cope. The rebase commits are exactly the same patches (though I didn't check to see if any of the commit messages had changed).

linux-next: duplicate patches in the gfs2 and xfs trees

2018-07-11 Thread Stephen Rothwell
Hi all, It looks like part of the xfs tree (the iomap-4.19-merge branch) that was merge into the gfs2 tree has been rebased and the gfs2 tree has not been updated to cope. The rebase commits are exactly the same patches (though I didn't check to see if any of the commit messages had changed).

Re: [PATCH] extcon: max3355: include mod_devicetable.h

2018-07-11 Thread Chanwoo Choi
On 2018년 07월 12일 10:30, Chanwoo Choi wrote: > On 2018년 07월 12일 00:50, Arnd Bergmann wrote: >> Another driver turned up that is missing linux/mod_devicetable.h after >> the device IDs are split out from linux/platform_device.h: >> >> drivers/extcon/extcon-max3355.c:127:34: error: array type has

Re: [PATCH] extcon: max3355: include mod_devicetable.h

2018-07-11 Thread Chanwoo Choi
On 2018년 07월 12일 10:30, Chanwoo Choi wrote: > On 2018년 07월 12일 00:50, Arnd Bergmann wrote: >> Another driver turned up that is missing linux/mod_devicetable.h after >> the device IDs are split out from linux/platform_device.h: >> >> drivers/extcon/extcon-max3355.c:127:34: error: array type has

Re: [PATCH] extcon: max3355: include mod_devicetable.h

2018-07-11 Thread Chanwoo Choi
On 2018년 07월 12일 00:50, Arnd Bergmann wrote: > Another driver turned up that is missing linux/mod_devicetable.h after > the device IDs are split out from linux/platform_device.h: > > drivers/extcon/extcon-max3355.c:127:34: error: array type has incomplete > element type 'struct of_device_id' >

Re: [PATCH] extcon: max3355: include mod_devicetable.h

2018-07-11 Thread Chanwoo Choi
On 2018년 07월 12일 00:50, Arnd Bergmann wrote: > Another driver turned up that is missing linux/mod_devicetable.h after > the device IDs are split out from linux/platform_device.h: > > drivers/extcon/extcon-max3355.c:127:34: error: array type has incomplete > element type 'struct of_device_id' >

Re: [PATCH v9 4/7] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-07-11 Thread Steven Rostedt
On Wed, 11 Jul 2018 17:31:00 -0700 Joel Fernandes wrote: > On Wed, Jul 11, 2018 at 09:06:49AM -0400, Steven Rostedt wrote: > > On Wed, 11 Jul 2018 14:56:47 +0200 > > Peter Zijlstra wrote: > > > > > On Thu, Jun 28, 2018 at 11:21:46AM -0700, Joel Fernandes wrote: > > > > static inline void

Re: [PATCH v9 4/7] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-07-11 Thread Steven Rostedt
On Wed, 11 Jul 2018 17:31:00 -0700 Joel Fernandes wrote: > On Wed, Jul 11, 2018 at 09:06:49AM -0400, Steven Rostedt wrote: > > On Wed, 11 Jul 2018 14:56:47 +0200 > > Peter Zijlstra wrote: > > > > > On Thu, Jun 28, 2018 at 11:21:46AM -0700, Joel Fernandes wrote: > > > > static inline void

Re: [PATCH v9 4/7] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-07-11 Thread Steven Rostedt
On Wed, 11 Jul 2018 13:56:39 -0700 Joel Fernandes wrote: > > > #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ > > > extern struct tracepoint __tracepoint_##name; \ > > > static inline void trace_##name(proto) \ > > > {

Re: [PATCH v9 4/7] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-07-11 Thread Steven Rostedt
On Wed, 11 Jul 2018 13:56:39 -0700 Joel Fernandes wrote: > > > #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ > > > extern struct tracepoint __tracepoint_##name; \ > > > static inline void trace_##name(proto) \ > > > {

Re: Bug report about KASLR and ZONE_MOVABLE

2018-07-11 Thread Chao Fan
On Wed, Jul 11, 2018 at 08:40:08PM +0800, Baoquan He wrote: >Please try this v3 patch: > >From 9850d3de9c02e570dc7572069a9749a8add4c4c7 Mon Sep 17 00:00:00 2001 >From: Baoquan He >Date: Wed, 11 Jul 2018 20:31:51 +0800 >Subject: [PATCH v3] mm, page_alloc: find movable zone after kernel text > >In

Re: Bug report about KASLR and ZONE_MOVABLE

2018-07-11 Thread Chao Fan
On Wed, Jul 11, 2018 at 08:40:08PM +0800, Baoquan He wrote: >Please try this v3 patch: > >From 9850d3de9c02e570dc7572069a9749a8add4c4c7 Mon Sep 17 00:00:00 2001 >From: Baoquan He >Date: Wed, 11 Jul 2018 20:31:51 +0800 >Subject: [PATCH v3] mm, page_alloc: find movable zone after kernel text > >In

Re: linux-next: Signed-off-by missing for commit in the imx-mxs tree

2018-07-11 Thread Shawn Guo
Hi Stephen, On Thu, Jul 12, 2018 at 5:41 AM Stephen Rothwell wrote: > > Hi Shawn, > > Commit > > 3a27f1ac04df ("ARM: dts: imx6ul: add GPIO clocks") > > is missing a Signed-off-by from its committer. Thanks for spotting that. I just fixed it. Thanks. Shawn

Re: linux-next: Signed-off-by missing for commit in the imx-mxs tree

2018-07-11 Thread Shawn Guo
Hi Stephen, On Thu, Jul 12, 2018 at 5:41 AM Stephen Rothwell wrote: > > Hi Shawn, > > Commit > > 3a27f1ac04df ("ARM: dts: imx6ul: add GPIO clocks") > > is missing a Signed-off-by from its committer. Thanks for spotting that. I just fixed it. Thanks. Shawn

答复: [PATCH v7 1/1] PCI: kirin: Add MSI support

2018-07-11 Thread Songxiaowei (Kirin_DRV)
Hi Lorenzo, Thanks a lot. Best Regards, Xiaowei Song. > -邮件原件- > 发件人: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > 发送时间: 2018年7月11日 19:33 > 收件人: Songxiaowei (Kirin_DRV) > 抄送: Wangbinghui ; bhelg...@google.com; > robh...@kernel.org; linux-...@vger.kernel.org;

Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields

2018-07-11 Thread Andrew Jeffery
Hi Rob, Thanks for the response. On Thu, 12 Jul 2018, at 05:34, Rob Herring wrote: > On Wed, Jul 11, 2018 at 03:01:19PM +0930, Andrew Jeffery wrote: > > Baseboard Management Controllers (BMCs) are embedded SoCs that exist to > > provide remote management of (primarily) server platforms. BMCs are

答复: [PATCH v7 1/1] PCI: kirin: Add MSI support

2018-07-11 Thread Songxiaowei (Kirin_DRV)
Hi Lorenzo, Thanks a lot. Best Regards, Xiaowei Song. > -邮件原件- > 发件人: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > 发送时间: 2018年7月11日 19:33 > 收件人: Songxiaowei (Kirin_DRV) > 抄送: Wangbinghui ; bhelg...@google.com; > robh...@kernel.org; linux-...@vger.kernel.org;

Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields

2018-07-11 Thread Andrew Jeffery
Hi Rob, Thanks for the response. On Thu, 12 Jul 2018, at 05:34, Rob Herring wrote: > On Wed, Jul 11, 2018 at 03:01:19PM +0930, Andrew Jeffery wrote: > > Baseboard Management Controllers (BMCs) are embedded SoCs that exist to > > provide remote management of (primarily) server platforms. BMCs are

[PATCH] thp: fix data loss when splitting a file pmd

2018-07-11 Thread Hugh Dickins
__split_huge_pmd_locked() must check if the cleared huge pmd was dirty, and propagate that to PageDirty: otherwise, data may be lost when a huge tmpfs page is modified then split then reclaimed. How has this taken so long to be noticed? Because there was no problem when the huge page is written

[PATCH] thp: fix data loss when splitting a file pmd

2018-07-11 Thread Hugh Dickins
__split_huge_pmd_locked() must check if the cleared huge pmd was dirty, and propagate that to PageDirty: otherwise, data may be lost when a huge tmpfs page is modified then split then reclaimed. How has this taken so long to be noticed? Because there was no problem when the huge page is written

Re: [PATCH 00/32] VFS: Introduce filesystem context [ver #9]

2018-07-11 Thread David Howells
Linus Torvalds wrote: > All your documentation (both commit logs, man-pages and in-kernel > actual docs you add) only talk about "what". > > They don't talk about _why_. > > I can imagine why's. But I think that the "why" is actually way mnore > important than the what. At no point did I see a

Re: [PATCH 00/32] VFS: Introduce filesystem context [ver #9]

2018-07-11 Thread David Howells
Linus Torvalds wrote: > All your documentation (both commit logs, man-pages and in-kernel > actual docs you add) only talk about "what". > > They don't talk about _why_. > > I can imagine why's. But I think that the "why" is actually way mnore > important than the what. At no point did I see a

Re: [PATCH v9 5/7] tracing: Centralize preemptirq tracepoints and unify their usage

2018-07-11 Thread Joel Fernandes
On Wed, Jul 11, 2018 at 03:12:56PM +0200, Peter Zijlstra wrote: > On Thu, Jun 28, 2018 at 11:21:47AM -0700, Joel Fernandes wrote: > > One note, I have to check for lockdep recursion in the code that calls > > the trace events API and bail out if we're in lockdep recursion > > I'm not seeing any

Re: [PATCH v9 5/7] tracing: Centralize preemptirq tracepoints and unify their usage

2018-07-11 Thread Joel Fernandes
On Wed, Jul 11, 2018 at 03:12:56PM +0200, Peter Zijlstra wrote: > On Thu, Jun 28, 2018 at 11:21:47AM -0700, Joel Fernandes wrote: > > One note, I have to check for lockdep recursion in the code that calls > > the trace events API and bail out if we're in lockdep recursion > > I'm not seeing any

Re: [PATCH 2/2] kprobe: fix: Add ftrace_ops_assist_func to kprobe blacklist

2018-07-11 Thread Francis Deslauriers
Le mer. 11 juill. 2018, à 15 h 56, Steven Rostedt a écrit : > > On Wed, 11 Jul 2018 15:34:30 -0400 > Francis Deslauriers wrote: > > > Hi Steven, > > I tested it and it prevents the kernel crash I am witnessing. > > As for the side-effect that Masami mentioned regarding not being able to > >

Re: [PATCH 2/2] kprobe: fix: Add ftrace_ops_assist_func to kprobe blacklist

2018-07-11 Thread Francis Deslauriers
Le mer. 11 juill. 2018, à 15 h 56, Steven Rostedt a écrit : > > On Wed, 11 Jul 2018 15:34:30 -0400 > Francis Deslauriers wrote: > > > Hi Steven, > > I tested it and it prevents the kernel crash I am witnessing. > > As for the side-effect that Masami mentioned regarding not being able to > >

Re: [PATCH v3] iio: chemical: Add support for Bosch BME680 sensor

2018-07-11 Thread Matt Ranostay
On Wed, Jul 11, 2018 at 5:13 AM, Himanshu Jha wrote: > Bosch BME680 is a 4-in-1 sensor with temperature, pressure, humidity > and gas sensing capability. It supports both I2C and SPI communication > protocol for effective data communication. > > The device supports two modes: > > 1. Sleep mode >

Re: [PATCH v3] iio: chemical: Add support for Bosch BME680 sensor

2018-07-11 Thread Matt Ranostay
On Wed, Jul 11, 2018 at 5:13 AM, Himanshu Jha wrote: > Bosch BME680 is a 4-in-1 sensor with temperature, pressure, humidity > and gas sensing capability. It supports both I2C and SPI communication > protocol for effective data communication. > > The device supports two modes: > > 1. Sleep mode >

Re: [PATCH v9 4/7] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-07-11 Thread Joel Fernandes
On Wed, Jul 11, 2018 at 09:06:49AM -0400, Steven Rostedt wrote: > On Wed, 11 Jul 2018 14:56:47 +0200 > Peter Zijlstra wrote: > > > On Thu, Jun 28, 2018 at 11:21:46AM -0700, Joel Fernandes wrote: > > > static inline void tracepoint_synchronize_unregister(void) > > > { > > > +

Re: [PATCH v9 4/7] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-07-11 Thread Joel Fernandes
On Wed, Jul 11, 2018 at 09:06:49AM -0400, Steven Rostedt wrote: > On Wed, 11 Jul 2018 14:56:47 +0200 > Peter Zijlstra wrote: > > > On Thu, Jun 28, 2018 at 11:21:46AM -0700, Joel Fernandes wrote: > > > static inline void tracepoint_synchronize_unregister(void) > > > { > > > +

Re: [PATCH] gcc-plugins: split out Kconfig entries to scripts/gcc-plugins/Kconfig

2018-07-11 Thread Kees Cook
On Wed, Jul 4, 2018 at 11:24 PM, Masahiro Yamada wrote: > Collect relevant code into the scripts/gcc-plugins directory. > > Signed-off-by: Masahiro Yamada > --- > > arch/Kconfig| 146 > +--- > scripts/gcc-plugins/Kconfig | 141

Re: [PATCH] gcc-plugins: split out Kconfig entries to scripts/gcc-plugins/Kconfig

2018-07-11 Thread Kees Cook
On Wed, Jul 4, 2018 at 11:24 PM, Masahiro Yamada wrote: > Collect relevant code into the scripts/gcc-plugins directory. > > Signed-off-by: Masahiro Yamada > --- > > arch/Kconfig| 146 > +--- > scripts/gcc-plugins/Kconfig | 141

Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields

2018-07-11 Thread Benjamin Herrenschmidt
On Wed, 2018-07-11 at 14:04 -0600, Rob Herring wrote: > On Wed, Jul 11, 2018 at 03:01:19PM +0930, Andrew Jeffery wrote: > > Baseboard Management Controllers (BMCs) are embedded SoCs that exist to > > provide remote management of (primarily) server platforms. BMCs are > > often tightly coupled to

Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields

2018-07-11 Thread Benjamin Herrenschmidt
On Wed, 2018-07-11 at 14:04 -0600, Rob Herring wrote: > On Wed, Jul 11, 2018 at 03:01:19PM +0930, Andrew Jeffery wrote: > > Baseboard Management Controllers (BMCs) are embedded SoCs that exist to > > provide remote management of (primarily) server platforms. BMCs are > > often tightly coupled to

<    1   2   3   4   5   6   7   8   9   10   >