[PATCH v13 15/18] x86/tsc: use tsc early

2018-07-11 Thread Pavel Tatashin
get timestamps and high resultion clock available to us as early as possible. native_sched_clock() outputs time based either on tsc after tsc_init() is called later in boot, or using jiffies when clock interrupts are enabled, which is also happens later in boot. On the other hand, tsc frequency i

[PATCH v13 01/18] x86: text_poke() may access uninitialized struct pages

2018-07-11 Thread Pavel Tatashin
It supposed to be safe to modify static branches after jump_label_init(). But, because static key modifying code eventually calls text_poke() we may end up with accessing struct page that have not been initialized. Here is how to quickly reproduce the problem. Insert code like this into init/main.

[PATCH v13 16/18] sched: move sched clock initialization and merge with generic clock

2018-07-11 Thread Pavel Tatashin
sched_clock_postinit() initializes a generic clock on systems where no other clock is porvided. This function may be called only after timekeeping_init(). Rename sched_clock_postinit to generic_clock_inti() and call it from sched_clock_init(). Move the call for sched_clock_init() until after time_

[PATCH v13 18/18] sched: use static key for sched_clock_running

2018-07-11 Thread Pavel Tatashin
sched_clock_running may be read every time sched_clock_cpu() is called. Yet, this variable is updated only twice during boot, and never changes again, therefore it is better to make it a static key. Signed-off-by: Pavel Tatashin --- kernel/sched/clock.c | 16 kernel/sched/debug.

[PATCH v13 13/18] x86/tsc: calibrate tsc only once

2018-07-11 Thread Pavel Tatashin
During boot tsc is calibrated twice: once in tsc_early_delay_calibrate(), and the second time in tsc_init(). Rename tsc_early_delay_calibrate() to tsc_early_init(), and rework it so the calibration is done only early, and make tsc_init() to use the values already determined in tsc_early_init(). S

Re: [PATCH 3/3] arm64: dts: qcom: pm8998: Add thermal zone

2018-07-11 Thread David Collins
Hello Doug, On 07/11/2018 03:43 PM, Doug Anderson wrote: > On Wed, Jul 11, 2018 at 3:36 PM, David Collins > wrote: >>> On Tue, Jul 10, 2018 at 10:45 AM, David Collins >>> wrote: On 06/29/2018 04:54 PM, Matthias Kaehlcke wrote: > On Fri, Jun 29, 2018 at 02:29:55PM -0700, David Collins

Re: [PATCH 1/3] tty/serial_core: add ISO7816 infrastructure

2018-07-11 Thread kbuild test robot
Hi Nicolas, I love your patch! Yet something to improve: [auto build test ERROR on tty/tty-testing] [also build test ERROR on v4.18-rc4 next-20180711] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

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 th

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 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) > > > { > > > + synchronize_srcu(&t

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 > 2

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 > > prob

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 ne

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

[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 b

答复: [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; linux-kernel@vger.

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

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: 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 f

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 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 t

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' > s

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 inco

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] 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 pr

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 ver

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 w

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 on_thread_stac

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!

[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 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 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 +++ include/linux/serial_core.h

[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, th

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 Stanley

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; th

[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 cha

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; >> + >> + stac

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 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 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 comments

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 11

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 f

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 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 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 LPCG

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' > s

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 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

[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 lin

[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: linux-ker

[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: devicet...@vger

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 d

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 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 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 > >> >> Signed-off-by

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 6/7] x86/kvmclock: Move kvmclock vsyscall param and init to kvmclock

2018-07-11 Thread Pavel Tatashin
+#include Can be removed, because as Paolo, noticed X86_HYPER_KVM check is not needed. > +static int __init kvm_setup_vsyscall_timeinfo(void) > +{ > +#ifdef CONFIG_X86_64 > + u8 flags; > + > + if (!hv_clock || !kvmclock_vsyscall) > + return 0; > + > + flags = pvcl

Re: [PATCH] ring_buffer: Update logging to use single line output

2018-07-11 Thread Steven Rostedt
On Fri, 11 May 2018 14:39:18 -0700 Joe Perches wrote: > With a possible change to pr_fmt coming, the logging output can > become unbalanced when an initial line has a prefix and subsequent > lines do not when a multiple line pr_ is emitted. > > Fix it by emitting a single line. > > Miscel

[GIT PULL] FSI updates round 2 for 4.19

2018-07-11 Thread Benjamin Herrenschmidt
Hi Greg ! This is the second round of updates of the FSI stack. These comprise of: - Some build fixes detected with COMPILE_TEST when used on "other" archs - Sparse warning fixes - Some object lifetime fixes - A new feature to control some of the protocol delays - Overheaul of the "SCOM

Re: [PATCH v2 2/2] ARM: dts: am335x: add am335x-sancloud-bbe board support

2018-07-11 Thread Robert Nelson
On Wed, Jul 11, 2018 at 8:31 AM, Tony Lindgren wrote: > * Koen Kooi [180711 07:36]: >> +&cpu0_opp_table { >> + /* >> + * All PG 2.0 silicon may not support 1GHz but some of the early >> + * BeagleBone Blacks have PG 2.0 silicon which is guaranteed >> + * to support 1GHz OPP so

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

2018-07-11 Thread Steven Rostedt
On Thu, 12 Jul 2018 10:58:48 +0900 Sergey Senozhatsky wrote: > 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

Re: [patch 7/7] x86/kvmclock: Switch kvmclock data to a PER_CPU variable

2018-07-11 Thread Pavel Tatashin
> /* Aligned to page sizes to match whats mapped via vsyscalls to userspace */ > #define HV_CLOCK_SIZE (sizeof(struct pvclock_vsyscall_time_info) * NR_CPUS) HV_CLOCK_SIZE is not used anywhere anymore, can be deleted. > +#define HVC_BOOT_ARRAY_SIZE \ > + (PAGE_SIZE / sizeof(struct pvclock

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

2018-07-11 Thread Steven Rostedt
On Wed, 11 Jul 2018 13:52:49 -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) \ > > {

[PATCH] arm64: neon: Fix function may_use_simd() return error status

2018-07-11 Thread Yandong.Zhao
From: Yandong Zhao It does not matter if the caller of may_use_simd() migrates to another cpu after the call, but it is still important that the kernel_neon_busy percpu instance that is read matches the cpu the task is running on at the time of the read. This means that raw_cpu_read() is not suf

[PATCH 0/5] fsi: Coldfire coprocessor offload

2018-07-11 Thread Benjamin Herrenschmidt
This series implements support for offloading the FSI protocol bitbanging to the ColdFire secondary core of the Aspeed SoCs. The result increases FSI performance by a factor of 4, and on systems that don't support async FSI clock, provide much more regular and continuous clocking which helps reliab

RE: [PATCH V4 3/5] mailbox: imx: add imx mu support

2018-07-11 Thread A.s. Dong
Hi Jassi, > -Original Message- > From: Jassi Brar [mailto:jassisinghb...@gmail.com] > Sent: Thursday, July 12, 2018 1:01 AM > To: A.s. Dong > Cc: Sascha Hauer ; linux-arm- > ker...@lists.infradead.org; donga...@gmail.com; linux- > ker...@vger.kernel.org; Oleksij Rempel ; dl- > linux-imx ;

[PATCH v3 3/6] dt-bindings: xilinx: zynq: Improve boards description

2018-07-11 Thread Luis Araneda
Change the description of some boards to make it similar to the value of the model property from their respective device-tree, using the format " " Signed-off-by: Luis Araneda --- Documentation/devicetree/bindings/arm/xilinx.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --g

[PATCH v3 1/6] arm: dts: zynq: Set correct manufacturer for ZedBoard and MicroZed boards

2018-07-11 Thread Luis Araneda
Both boards are made by Avnet, Inc. So add an additional value to the compatible property Signed-off-by: Luis Araneda --- arch/arm/boot/dts/zynq-microzed.dts | 2 +- arch/arm/boot/dts/zynq-zed.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/zynq-

[PATCH v3 2/6] arm: dts: zynq: correct and improve the model property of dt files

2018-07-11 Thread Luis Araneda
Replace the current value of the model property by a more accurate description of each board (which includes the manufacturer), as some of the boards had the same value ("Xilinx Zynq") Signed-off-by: Luis Araneda --- arch/arm/boot/dts/zynq-cc108.dts | 2 +- arch/arm/boot/dts/zynq-microzed.

[PATCH v3 0/6] arm: dts: zynq: improvements and cleanup

2018-07-11 Thread Luis Araneda
This series attempts to standardize device naming and improve its information for better identification The values of the "compatible" and "model" device-tree properties are corrected for some devices, adding complementary information when necessary Changes since v2: - Split dt-bindings patch (to

[PATCH v3 4/6] dt-bindings: xilinx: zynq: Sort entries alphabetically

2018-07-11 Thread Luis Araneda
Sort additional compatible strings (boards) alphabetically by their manufacturer and model number This will help when finding a board because they will be grouped by their manufacturer Signed-off-by: Luis Araneda --- Documentation/devicetree/bindings/arm/xilinx.txt | 6 +++--- 1 file changed, 3

[PATCH v3 6/6] dt-bindings: xilinx: zynq: Add missing boards

2018-07-11 Thread Luis Araneda
The bindings were missing when the device-tree files were added Signed-off-by: Luis Araneda --- .../devicetree/bindings/arm/xilinx.txt | 17 + 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/xilinx.txt b/Documentation/devicetree/bind

[PATCH v3 5/6] dt-bindings: Move Paralella board to Xilinx

2018-07-11 Thread Luis Araneda
Move the Adapteva Parallela board to Xilinx dt-bindings, as it's based on a Zynq SoC from Xilinx Signed-off-by: Luis Araneda --- Documentation/devicetree/bindings/arm/adapteva.txt | 7 --- Documentation/devicetree/bindings/arm/xilinx.txt | 3 +++ 2 files changed, 3 insertions(+), 7 deletio

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

2018-07-11 Thread Sergey Senozhatsky
On (07/11/18 23:09), Steven Rostedt wrote: > > 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 > >

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

2018-07-11 Thread Joel Fernandes
On Wed, Jul 11, 2018 at 11:21:20PM -0400, Steven Rostedt wrote: > On Wed, 11 Jul 2018 13:52:49 -0700 > Joel Fernandes wrote: > > > > #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ > > > extern struct tracepoint __tracepoint_##name; \ > > > static i

Re: linux-next: manual merge of the scsi-mkp tree with Linus' tree

2018-07-11 Thread Stephen Rothwell
Hi all, On Wed, 11 Jul 2018 14:04:57 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the scsi-mkp tree got a conflict in: > > MAINTAINERS > > between commit: > > 54e45716a84a ("scsi: remove NCR_D700 driver") > > from Linus' tree and commit: > > 01a21986f8ed ("MAINTAINERS

Re: linux-next: build warning after merge of the scsi-mkp tree

2018-07-11 Thread Stephen Rothwell
Hi all, On Wed, 11 Jul 2018 14:17:37 +1000 Stephen Rothwell wrote: > > After merging the scsi-mkp tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > In file included from include/linux/spinlock_types.h:18:0, > from include/linux/spinlock.h:82, >

Re: [PATCH v6 2/7] thermal: tsens: Add support to split up register address space into two

2018-07-11 Thread Amit Kucheria
On Thu, Jul 12, 2018 at 12:07 AM, Doug Anderson wrote: > Hi, > > On Mon, Jul 9, 2018 at 4:43 AM, Amit Kucheria > wrote: >> There are two banks of registers for v2 TSENS IPs: SROT and TM. On older >> SoCs these were contiguous, leading to DTs mapping them as one register >> address space of size

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

2018-07-11 Thread Stephen Rothwell
Hi Andreas, On Thu, 12 Jul 2018 04:30:07 +0200 Andreas Gruenbacher wrote: > > this is what I'm seeing (git log --pretty=oneline --abbrev-commit > --graph ^origin/master gfs2/for-next): > > * f79caf101801 (gfs2/for-next) gfs2: use iomap_readpage for blocksize > == PAGE_SIZE > * af58827ee500 gfs2

Re: [PATCH] ring_buffer: Update logging to use single line output

2018-07-11 Thread Joe Perches
On Wed, 2018-07-11 at 22:57 -0400, Steven Rostedt wrote: > On Fri, 11 May 2018 14:39:18 -0700 > Joe Perches wrote: > > > With a possible change to pr_fmt coming, the logging output can > > become unbalanced when an initial line has a prefix and subsequent > > lines do not when a multiple line pr_

[PATCH v3 5/5] arm: dts: OpenPower Palmetto system can use coprocessor for FSI

2018-07-11 Thread Benjamin Herrenschmidt
This switches away from userspace bitbanging to kernel FSI using the coprocessor. Signed-off-by: Benjamin Herrenschmidt --- arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | 28 ++- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-palm

[PATCH v3 4/5] arm: dts: OpenPower Romulus system can use coprocessor for FSI

2018-07-11 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt --- arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts index 347938673c83..4f4e42e47e3f 10

[PATCH v3 1/5] dt-bindings: fsi: Document binding for the fsi-master-ast-cf "device"

2018-07-11 Thread Benjamin Herrenschmidt
This isn't per-se a real device, it's a pseudo-device that represents the use of the Aspeed built-in ColdFire to implement the FSI protocol by bitbanging the GPIOs instead of doing it from the ARM core. Thus it's a drop-in replacement for the existing fsi-master-gpio pseudo-device for use on syste

[PATCH v3 3/5] fsi: master-ast-cf: Add new FSI master using Aspeed ColdFire

2018-07-11 Thread Benjamin Herrenschmidt
The Aspeed AST2x00 can contain a ColdFire v1 coprocessor which is currently unused on OpenPower systems. This adds an alternative to the fsi-master-gpio driver that uses that coprocessor instead of bit banging from the ARM core itself. The end result is about 4 times faster. The firmware for the

[PATCH v3 2/5] devres: Add devm_of_iomap()

2018-07-11 Thread Benjamin Herrenschmidt
There are still quite a few cases where a device might want to get to a different node of the device-tree, obtain the resources and map them. We have of_iomap() and of_io_request_and_map() but they both have shortcomings, such as not returning the size of the resource found (which can be useful) a

Re: [PATCH v6 3/7] dt: qcom: 8996: thermal: Move to DT initialisation

2018-07-11 Thread Amit Kucheria
On Thu, Jul 12, 2018 at 12:09 AM Doug Anderson wrote: > > Hi, > > On Mon, Jul 9, 2018 at 4:43 AM, Amit Kucheria > wrote: > > We also split up the regmap address space into two, one for the TM > > registers, the other for the SROT registers. This was required to deal with > > different address of

[PATCH v4 1/4] rtc: omap: Cut down the shutdown time from 2 seconds to 1 sec

2018-07-11 Thread Keerthy
Cut down the shutdown time from 2 seconds to 1 sec. In case of roll over try again. Signed-off-by: Keerthy --- Changes in v4: * Fixed a compilation issue. * Extended the roll over check post interrupt programming. drivers/rtc/rtc-omap.c | 13 +++-- 1 file changed, 11 insertions(+)

[PATCH v4 0/4] rtc: OMAP: Add support for rtc-only mode

2018-07-11 Thread Keerthy
Prepare rtc driver for rtc-only with DDR in self-refresh mode. The patch series is based on top of Johan Hovald's series: https://lkml.kernel.org/r/20180704090558.16647-1-jo...@kernel.org Tested for suspend/resume and poweroff on am437x-gp-evm. Keerthy (4): rtc: omap: Cut down the shutdown ti

[PATCH v4 4/4] rtc: interface: Add power_off_program to rtc_class_ops

2018-07-11 Thread Keerthy
Add an interface function to set up the rtc for a power_off mode. Signed-off-by: Keerthy --- drivers/rtc/interface.c | 12 drivers/rtc/rtc-omap.c | 1 + include/linux/rtc.h | 2 ++ 3 files changed, 15 insertions(+) diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface

[PATCH v4 3/4] rtc: omap: use of_device_is_system_power_controller function

2018-07-11 Thread Keerthy
Use of_device_is_system_power_controller instead of manually reading the system-power-controller property from the device tree node. Signed-off-by: Keerthy --- drivers/rtc/rtc-omap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-om

[PATCH v4 2/4] rtc: OMAP: Add support for rtc-only mode

2018-07-11 Thread Keerthy
Prepare rtc driver for rtc-only with DDR in self-refresh mode. omap_rtc_power_off now should cater to two features: 1) RTC plus DDR in self-refresh is power a saving mode where in the entire system including the different voltage rails from PMIC are shutdown except the ones feeding on to RTC and D

Re: [PATCH v6 5/7] thermal: tsens: Add generic support for TSENS v2 IP

2018-07-11 Thread Amit Kucheria
On Thu, Jul 12, 2018 at 12:10 AM Doug Anderson wrote: > > Hi, > > On Mon, Jul 9, 2018 at 4:43 AM, Amit Kucheria > wrote: > > SDM845 uses v2 of the TSENS IP block but the get_temp() function > > appears to be identical across v2.x.y in code seen so far. We use the > > generic get_temp() function

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

2018-07-11 Thread Andreas Gruenbacher
Hi Stephen, On 12 July 2018 at 06:41, Stephen Rothwell wrote: > Hi Andreas, > > On Thu, 12 Jul 2018 04:30:07 +0200 Andreas Gruenbacher > wrote: >> >> this is what I'm seeing (git log --pretty=oneline --abbrev-commit >> --graph ^origin/master gfs2/for-next): >> >> * f79caf101801 (gfs2/for-next)

Re: [PATCH v6 7/7] arm64: dts: sdm845: Add tsens nodes

2018-07-11 Thread Amit Kucheria
On Thu, Jul 12, 2018 at 3:30 AM Doug Anderson wrote: > > Hi Matthias, > > On Wed, Jul 11, 2018 at 2:51 PM, Matthias Kaehlcke wrote: > > On Wed, Jul 11, 2018 at 11:44:13AM -0700, Doug Anderson wrote: > >> Hi, > >> > >> On Mon, Jul 9, 2018 at 4:43 AM, Amit Kucheria > >> wrote: > >> > SDM845 has t

[PATCH] samples: fix compilation of mpssd

2018-07-11 Thread Constantine Shulyupin
Errors: In file included from /usr/include/x86_64-linux-gnu/sys/types.h:194:0, from /usr/include/stdlib.h:394, from mpssd.c:23: mpssd.c:93:10: error: initializer element is not constant .num = htole16(MIC_VRING_ENTRIES), mpssd.c:610:10: warning: implicit decla

[PATCH 28/31] usb: usbssp: implemented usbssp_gadget_ep_disable function.

2018-07-11 Thread Pawel Laszczak
Patch implements function responsible for disabling USB endpoint. This function is called from USB core gadget during handling SET_CONFIGURATION or SET_INTERFACE request, or after such events as USB_RESET or detaching device from host. Signed-off-by: Pawel Laszczak --- drivers/usb/usbssp/gadget-

[PATCH] pinctrl: mt7622: fix probe fail by misuse the selector

2018-07-11 Thread sean.wang
From: Sean Wang After the commit acf137951367 ("pinctrl: core: Return selector to the pinctrl driver") and the commit 47f1242d19c3 ("pinctrl: pinmux: Return selector to the pinctrl driver"), it's necessary to add the fixes needed for the pin controller drivers to use the appropriate returned sele

Re: Bug report about KASLR and ZONE_MOVABLE

2018-07-11 Thread Dou Liyang
Hi Baoquan, At 07/11/2018 08:40 PM, 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 find_zone_m

[PATCH 09/31] usb: usbssp: add implementation of usbssp_mem_cleanup

2018-07-11 Thread Pawel Laszczak
Patch add implementation of usbssp_mem_cleanup and all other functions used during cleaning driver during unloading module. Signed-off-by: Pawel Laszczak --- drivers/usb/usbssp/gadget-mem.c | 180 ++- drivers/usb/usbssp/gadget-ring.c | 21 drivers/usb/usbssp/ga

<    1   2   3   4   5   6   7   8   9   >