RE: [tip:x86/pti] x86/entry/64: Introduce the PUSH_AND_CLEAN_REGS macro

2018-02-12 Thread David Laight
From: Denys Vlasenko > Sent: 12 February 2018 13:29 ... > > > > x86/entry/64: Introduce the PUSH_AND_CLEAN_REGS macro > > > > Those instances where ALLOC_PT_GPREGS_ON_STACK is called just before > > SAVE_AND_CLEAR_REGS can trivially be replaced by PUSH_AND_CLEAN_REGS. > > This macro uses PUSH inste

[PATCH] clk: fix mux clock documentation

2018-02-12 Thread Jerome Brunet
The mux documentation mentions the non-existing parameter width instead of mask. Just sed this. Fixes: 9d9f78ed9af0 ("clk: basic clock hardware types") Signed-off-by: Jerome Brunet --- include/linux/clk-provider.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/

Re: [PATCH 08/21] regulator: max77686: Pass descriptor instead of GPIO number

2018-02-12 Thread Krzysztof Kozlowski
On Mon, Feb 12, 2018 at 2:17 PM, Linus Walleij wrote: > Instead of passing a global GPIO number, pass a descriptor looked > up from the device tree configuration node. > > Cc: Chanwoo Choi > Cc: Krzysztof Kozlowski > Cc: Bartlomiej Zolnierkiewicz > Signed-off-by: Linus Walleij > --- > drivers

samples/seccomp/ broken when cross compiling s390, ppc allyesconfig

2018-02-12 Thread Michal Hocko
Hi, my build test machinery chokes on samples/seccomp when cross compiling s390 and ppc64 allyesconfig. This has been the case for quite some time already but I never found time to look at the problem and report it. It seems this is not new issue and similar thing happend for MIPS e9107f88c985 ("sa

Re: ext4 iomap SEEK broken [was: [GIT PULL] ext4 updates for 4.15]

2018-02-12 Thread Jiri Slaby
On 02/12/2018, 02:34 PM, Jiri Slaby wrote: > @@ -3523,7 +3523,7 @@ static int ext4_iomap_begin(struct inode *inode, > loff_t offset, loff_t length, > iomap->flags |= IOMAP_F_DIRTY; > iomap->bdev = inode->i_sb->s_bdev; > iomap->dax_dev = sbi->s_daxdev; > - iomap

Re: [PATCH v4 4/8] PCI: brcmstb: Add dma-range mapping for inbound traffic

2018-02-12 Thread Jim Quinlan
On Fri, Jan 26, 2018 at 12:46 PM, Jim Quinlan wrote: > On Fri, Jan 26, 2018 at 2:53 AM, Christoph Hellwig wrote: >> On Wed, Jan 24, 2018 at 12:04:58PM -0800, Florian Fainelli wrote: >>> This looks nicer than the current shape, but this still requires to >>> register a PCI fixup to override phys_t

Re: [PATCH] net: phy: fix wrong mask to phy_modify()

2018-02-12 Thread Andrew Lunn
On Mon, Feb 12, 2018 at 12:02:52PM +0100, Ingo van Lil wrote: > When forcing a specific link mode, the PHY driver must clear the > existing speed and duplex bits in BMCR while preserving some other > control bits. This logic was accidentally inverted with the introduction > of phy_modify(). > > Si

Re: [PATCH 2/2] pvcalls-front: wait for other operations to return when release passive sockets

2018-02-12 Thread Juergen Gross
On 05/02/18 23:51, Stefano Stabellini wrote: > Passive sockets can have ongoing operations on them, specifically, we > have two wait_event_interruptable calls in pvcalls_front_accept. > > Add two wake_up calls in pvcalls_front_release, then wait for the > potential waiters to return and release th

Re: [PATCH v6 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-12 Thread Thomas Gleixner
On Fri, 9 Feb 2018, Lina Iyer wrote: > +/* > + * GIC does not handle falling edge or active low. To allow falling edge and > + * active low interrupts to be handled at GIC, PDC has an inverter that > inverts > + * falling edge into a rising edge and active low into an active high. > + * For the in

[RFC PATCH 2/3] sched/deadline: add task groups bandwidth management support

2018-02-12 Thread Juri Lelli
One of the missing features of DEADLINE (w.r.t. RT) is some way of controlling CPU bandwidth allocation for task groups. Such feature would be especially useful to be able to let normal users use DEADLINE, as the sys admin (with root privilegies) could reserve a fraction of the total available band

[RFC PATCH 0/3] SCHED_DEADLINE cgroups support

2018-02-12 Thread Juri Lelli
Hi, A long time ago there was a patch [1] (written by Dario) adding DEADLINE bandwidth management control for task groups. That was then removed from the set of patches that made to mainline because outside of the bare minimum of features to possibly start playing with SCHED_DEADLINE, and because

[RFC PATCH 3/3] Documentation/scheduler/sched-deadline: add info about cgroup support

2018-02-12 Thread Juri Lelli
Add documentation for SCHED_DEADLINE cgroup support (CONFIG_DEADLINE_ GROUP_SCHED config option). Signed-off-by: Juri Lelli Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Tejun Heo Cc: Jonathan Corbet Cc: Luca Abeni Cc: linux-kernel@vger.kernel.org Cc: linux-...@vger.kernel.org --- Documentation/sc

[RFC PATCH 1/3] sched/deadline: merge dl_bw into dl_bandwidth

2018-02-12 Thread Juri Lelli
Both dl_bandwidth and dl_bw hold information about DEADLINE bandwidth admitted to the system (at different levels). However, they are separate and threated as two different beasts. Merge them as it makes more sense, it's easier to manage and to better align with RT (that already has a single rt_ba

Re: [PATCH 4/6] Protectable Memory

2018-02-12 Thread Igor Stoppa
On 12/02/18 14:53, Mike Rapoport wrote: > 'scripts/kernel-doc -v -none That has a quite interesting behavior. I run it on genalloc.c while I am in the process of adding the brackets to the function names in the kernel-doc description. The brackets confuse the script and it fails to output the

Re: [tip:x86/pti] x86/entry/64: Introduce the PUSH_AND_CLEAN_REGS macro

2018-02-12 Thread Denys Vlasenko
On 02/12/2018 02:36 PM, David Laight wrote: From: Denys Vlasenko Sent: 12 February 2018 13:29 ... x86/entry/64: Introduce the PUSH_AND_CLEAN_REGS macro Those instances where ALLOC_PT_GPREGS_ON_STACK is called just before SAVE_AND_CLEAR_REGS can trivially be replaced by PUSH_AND_CLEAN_REGS. T

[PATCH v2] .gitignore: ignore ASN.1 auto generated files

2018-02-12 Thread Zhu Lingshan
when build kernel with default configure, files: generatenet/ipv4/netfilter/nf_nat_snmp_basic-asn1.c net/ipv4/netfilter/nf_nat_snmp_basic-asn1.h will be automatically generated by ASN.1 compiler, so No need to track them in git, it's better to ignore them. Signed-off-by: Zhu Lingshan --- Change

Re: [PATCH] acpi, spcr: Make SPCR available to x86

2018-02-12 Thread Prarit Bhargava
On 02/12/2018 08:34 AM, Peter Zijlstra wrote: > On Thu, Jan 18, 2018 at 10:09:51AM -0500, Prarit Bhargava wrote: >> config ACPI_SPCR_TABLE >> +bool "ACPI Serial Port Console Redirection Support" >> +default y if X86 >> +help >> + Enable support for Serial Port Console Redirectio

Re: [PATCH v2] lockdep: Fix fs_reclaim warning.

2018-02-12 Thread Tetsuo Handa
Nikolay Borisov wrote: > I think I've hit another incarnation of that one. The call stack is: > http://paste.opensuse.org/3f22d013 > > The cleaned up callstack of all the ? entries look like: > > __lock_acquire+0x2d8a/0x4b70 > lock_acquire+0x110/0x330 > kmem_cache_alloc+0x29/0x2c0 > __clear_exten

[PATCH] ata: add Amiga Gayle PATA controller driver

2018-02-12 Thread Bartlomiej Zolnierkiewicz
Add Amiga Gayle PATA controller driver. It enables libata support for the on-board IDE interfaces on some Amiga models (A600, A1200, A4000 and A4000T) and also for IDE interfaces on the Zorro expansion bus (M-Tech E-Matrix 530 expansion card). Thanks to John Paul Adrian Glaubitz and Michael Schmit

Re: [PATCH] x86/xen: Calculate __max_logical_packages on PV domains

2018-02-12 Thread Juergen Gross
On 08/02/18 00:49, Prarit Bhargava wrote: > The kernel panics on PV domains because native_smp_cpus_done() is > only called for HVM domains. > > Calculate __max_logical_packages for PV domains. > > Fixes: b4c0a7326f5d ("x86/smpboot: Fix __max_logical_packages estimate") > Signed-off-by: Prarit Bh

Re: [PATCH v2] xenbus: track caller request id

2018-02-12 Thread Juergen Gross
On 02/02/18 18:42, Joao Martins wrote: > Commit fd8aa9095a95 ("xen: optimize xenbus driver for multiple concurrent > xenstore accesses") optimized xenbus concurrent accesses but in doing so > broke UABI of /dev/xen/xenbus. Through /dev/xen/xenbus applications are in > charge of xenbus message excha

Re: [PATCH v2] auxdisplay: img-ascii-lcd: kconfig: Remove MIPS_SEAD3 reference

2018-02-12 Thread Miguel Ojeda
On Sun, Feb 11, 2018 at 5:40 PM, Miguel Ojeda wrote: > On Sat, Feb 10, 2018 at 3:14 PM, Ulf Magnusson wrote: >> Commit 3f5f0a4475e1 ("MIPS: generic: Convert SEAD-3 to a generic board") >> removed the MIPS_SEAD3 symbol and moved the setting of IMG_ASCII_LCD to >> the board-sead-3.config defconfig

[PATCH] selftests/bpf/test_maps: exit child process without error in ENOMEM case

2018-02-12 Thread Li Zhijian
From: Li Zhijian test_maps contains a series of stress tests, and previously it will break the reset tests when it failed to alloc memory. --- Failed to create hashmap key=8 value=262144 'Cannot allocate memory' Failed to create hashmap key=16 value=262144 'Cannot allocate mem

[PATCH] crypto: arm/aes-cipher - move S-box to .rodata section

2018-02-12 Thread Jinbum Park
Move the AES inverse S-box to the .rodata section where it is safe from abuse by speculation. Signed-off-by: Jinbum Park --- arch/arm/crypto/aes-cipher-core.S | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/arm/crypto/aes-cipher-core.S b/arch/arm/cr

Re: [PATCH] auxdisplay: img-ascii-lcd: fix typo on select SYSCON/MFD_SYSCON

2018-02-12 Thread Miguel Ojeda
On Thu, Feb 8, 2018 at 4:58 PM, Miguel Ojeda wrote: > On Thu, Jan 18, 2018 at 9:13 PM, Corentin Labbe > wrote: >> img-ascii-lcd select un-existing SYSCON kconfig name. >> This patch fix this error by using the correct MFD_SYSCON kconfig name. >> > > CC'ing Paul & Ralf in case they want to ack. >

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Masahiro Yamada
2018-02-12 20:44 GMT+09:00 Ulf Magnusson : >> >> I think Linus's comment was dismissed here. >> >> >> Linus said: >> >>> But yes, I also reacted to your earlier " It can't silently rewrite it >>> to _REGULAR because the compiler support for _STRONG regressed." >>> Because it damn well can. If the

[PATCH v3 0/3] renesas: irqchip: Use wakeup_path i.s.o. explicit clock handling

2018-02-12 Thread Geert Uytterhoeven
Hi all, If an interrupt controller in a Renesas ARM SoC is part of a Clock Domain, and it is part of the wakeup path, it must be kept active during system suspend. Currently this is handled in all interrupt controller drivers by explicitly increasing the use count of the module clock when

[PATCH v3 2/3] irqchip/renesas-irqc: Use wakeup_path i.s.o. explicit clock handling

2018-02-12 Thread Geert Uytterhoeven
Since commit 6f46aedb9c85873b ("irqchip: renesas-irqc: Add wake-up support"), when an IRQ is used for wakeup, the INTC block's module clock is manually kept running during system suspend, to make sure the device stays active. However, this explicit clock handling is merely a workaround for a failu

[PATCH v3 3/3] gpio: rcar: Use wakeup_path i.s.o. explicit clock handling

2018-02-12 Thread Geert Uytterhoeven
Since commit ab82fa7da4dce5c7 ("gpio: rcar: Prevent module clock disable when wake-up is enabled"), when a GPIO is used for wakeup, the GPIO block's module clock (if exists) is manually kept running during system suspend, to make sure the device stays active. However, this explicit clock handling

[PATCH v3 1/3] irqchip/renesas-intc-irqpin: Use wakeup_path i.s.o. explicit clock handling

2018-02-12 Thread Geert Uytterhoeven
Since commit 705bc96c2c15313c ("irqchip: renesas-intc-irqpin: Add minimal runtime PM support"), when an IRQ is used for wakeup, the INTC block's module clock (if exists) is manually kept running during system suspend, to make sure the device stays active. However, this explicit clock handling is m

RE: update spectre v2 microcodes blacklist

2018-02-12 Thread Van De Ven, Arjan
> > Raw diff between the mainline blacklist and the bulletin looks like: > > @@ -1,5 +1,6 @@ > >  { INTEL_FAM6_BROADWELL_CORE, 0x04, 0x28 }, > >  { INTEL_FAM6_BROADWELL_GT3E, 0x01, 0x1b }, > > +{ INTEL_FAM6_BROADWELL_X,0x01, 0x0b23 }, > >  { INTEL_FAM6_BROADWELL_X,0x01,

Re: [PATCH 1/3] auxdisplay: charlcd: fix hex literal ranges for graphics command

2018-02-12 Thread Miguel Ojeda
On Sat, Feb 10, 2018 at 10:41 AM, Miguel Ojeda wrote: > On Sat, Feb 10, 2018 at 10:20 AM, Willy Tarreau wrote: >> Hi Miguel, >> >> On Sat, Feb 10, 2018 at 09:58:44AM +0100, Miguel Ojeda wrote: >>> On Sat, Feb 10, 2018 at 12:50 AM, Robert Abel wrote: >>> > The graphics command expects 16 hexadeci

[PATCH v3 1/2] mm/page_ref: use atomic_set_release in page_ref_unfreeze

2018-02-12 Thread Konstantin Khlebnikov
page_ref_unfreeze() has exactly that semantic. No functional changes: just minus one barrier and proper handling of PPro errata. Signed-off-by: Konstantin Khlebnikov --- include/linux/page_ref.h |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/page_ref.h b/i

Re: [PATCH v3 1/2] drm/virtio: Add window server support

2018-02-12 Thread Tomeu Vizoso
On 02/12/2018 12:52 PM, Gerd Hoffmann wrote: Hi, can we reach agreement on whether vsock should be involved in this? I think the best approach would be to have guest proxy and host proxy use vsock for the wayland protocol. Use a wayland protocol extension to reference the buffers in stdvg

[PATCH v3 2/2] mm/huge_memory.c: reorder operations in __split_huge_page_tail()

2018-02-12 Thread Konstantin Khlebnikov
THP split makes non-atomic change of tail page flags. This is almost ok because tail pages are locked and isolated but this breaks recent changes in page locking: non-atomic operation could clear bit PG_waiters. As a result concurrent sequence get_page_unless_zero() -> lock_page() might block fore

Re: update spectre v2 microcodes blacklist

2018-02-12 Thread Alexander Sergeyev
+{ INTEL_FAM6_BROADWELL_X,0x01, 0x0b23 }, That's redundant since blacklisting 0x0b25 will also stop us from using 0x0b23 anyway. and 23 is the pre security version so known good. But 0x0b23 is listed under "stop deploying these MCU revs" (page 4, row 4). Has something

Re: [PATCH v3 1/2] mm/page_ref: use atomic_set_release in page_ref_unfreeze

2018-02-12 Thread Kirill A. Shutemov
On Mon, Feb 12, 2018 at 04:58:50PM +0300, Konstantin Khlebnikov wrote: > page_ref_unfreeze() has exactly that semantic. No functional > changes: just minus one barrier and proper handling of PPro errata. > > Signed-off-by: Konstantin Khlebnikov Acked-by: Kirill A. Shutemov -- Kirill A. Shute

Re: [PATCH v3 2/2] mm/huge_memory.c: reorder operations in __split_huge_page_tail()

2018-02-12 Thread Kirill A. Shutemov
On Mon, Feb 12, 2018 at 04:58:53PM +0300, Konstantin Khlebnikov wrote: > THP split makes non-atomic change of tail page flags. This is almost ok > because tail pages are locked and isolated but this breaks recent changes > in page locking: non-atomic operation could clear bit PG_waiters. > > As a

Re: [PATCH 4/4] staging: iio: accel: Move adis16201 driver out of staging

2018-02-12 Thread Philippe Ombredanne
On Mon, Feb 12, 2018 at 12:54 PM, Himanshu Jha wrote: > Move the adis16201 driver out of staging directory and merge to the > mainline IIO directory. > > Signed-off-by: Himanshu Jha > --- /dev/null > +++ b/drivers/iio/accel/adis16201.c > @@ -0,0 +1,315 @@ > +// SPDX-License-Identifier: GPL-2.0+

Re: [PATCH v3 1/3] KVM: Introduce dedicated vCPUs hint KVM_HINTS_DEDICATED

2018-02-12 Thread Eduardo Habkost
On Sun, Feb 11, 2018 at 11:29:44AM +0800, Wanpeng Li wrote: [...] > +KVM_HINTS_DEDICATED|| 0 || guest checks this feature bit > + || || to determine if they run on > dedicated > + || || vCPUs, allow

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Ulf Magnusson
On Mon, Feb 12, 2018 at 2:53 PM, Masahiro Yamada wrote: > 2018-02-12 20:44 GMT+09:00 Ulf Magnusson : > >>> >>> I think Linus's comment was dismissed here. >>> >>> >>> Linus said: >>> But yes, I also reacted to your earlier " It can't silently rewrite it to _REGULAR because the compiler s

[PATCH] net: make getname() functions return length rather than use int* parameter

2018-02-12 Thread Denys Vlasenko
Before: All these functions either return a negative error indicator, or store length of sockaddr into "int *socklen" parameter and return zero on success. "int *socklen" parameter is awkward. For example, if caller does not care, it still needs to provide on-stack storage for the value it does no

Re: [PATCH v2 1/6] x86/speculation: Update Speculation Control microcode blacklist

2018-02-12 Thread David Woodhouse
On Sat, 2018-02-10 at 23:39 +, David Woodhouse wrote: > > --- a/arch/x86/kernel/cpu/intel.c > +++ b/arch/x86/kernel/cpu/intel.c > @@ -123,8 +123,6 @@ static const struct sku_microcode > spectre_bad_microcodes[] = { > { INTEL_FAM6_KABYLAKE_MOBILE,   0x09,   0x84 }, > { INTEL_FAM

Re: [PATCH 2/6] mfd: Add ST Multi-Function eXpander core driver

2018-02-12 Thread Philippe Ombredanne
Amelie, On Mon, Feb 12, 2018 at 1:06 PM, Lee Jones wrote: > On Thu, 08 Feb 2018, Amelie Delaunay wrote: > >> ST Multi-Function eXpander (MFX) is a slave controller using I2C >> for communication with the main MCU. Main features are: >> - 16 fast GPIOs individually configurable in input/output >>

Re: [PATCH] ata: add Amiga Gayle PATA controller driver

2018-02-12 Thread Philippe Ombredanne
On Mon, Feb 12, 2018 at 2:49 PM, Bartlomiej Zolnierkiewicz wrote: > Add Amiga Gayle PATA controller driver. It enables libata support > for the on-board IDE interfaces on some Amiga models (A600, A1200, > A4000 and A4000T) and also for IDE interfaces on the Zorro expansion > bus (M-Tech E-Matrix 5

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Masahiro Yamada
2018-02-12 21:54 GMT+09:00 Ulf Magnusson : > On Sun, Feb 11, 2018 at 09:42:09PM +0100, Ulf Magnusson wrote: >> On Sun, Feb 11, 2018 at 9:29 PM, Ulf Magnusson wrote: >> > On Sun, Feb 11, 2018 at 6:56 PM, Kees Cook wrote: >> >> Another case I mentioned before that I just want to make sure we don't

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Masahiro Yamada
2018-02-12 23:21 GMT+09:00 Masahiro Yamada : > 2018-02-12 21:54 GMT+09:00 Ulf Magnusson : >> On Sun, Feb 11, 2018 at 09:42:09PM +0100, Ulf Magnusson wrote: >>> On Sun, Feb 11, 2018 at 9:29 PM, Ulf Magnusson wrote: >>> > On Sun, Feb 11, 2018 at 6:56 PM, Kees Cook wrote: >>> >> Another case I menti

[PATCH] clk: don't call __of_clk_get_by_name() unnecessarily from clk_get()

2018-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The way this function is implemented caused some confusion when converting the TI DaVinci platform to using the common clock framework. Current kernel supports booting DaVinci boards both in device tree as well as legacy, board-file mode. In the latter, we always end up

Re: [PATCH v3 1/2] drm/virtio: Add window server support

2018-02-12 Thread Gerd Hoffmann
On Mon, Feb 12, 2018 at 03:00:24PM +0100, Tomeu Vizoso wrote: > On 02/12/2018 12:52 PM, Gerd Hoffmann wrote: > >Hi, > > > > > can we reach agreement on whether vsock should be involved in this? > > > > I think the best approach would be to have guest proxy and host proxy > > use vsock for the

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Ulf Magnusson
On Mon, Feb 12, 2018 at 3:21 PM, Masahiro Yamada wrote: > 2018-02-12 21:54 GMT+09:00 Ulf Magnusson : >> On Sun, Feb 11, 2018 at 09:42:09PM +0100, Ulf Magnusson wrote: >>> On Sun, Feb 11, 2018 at 9:29 PM, Ulf Magnusson wrote: >>> > On Sun, Feb 11, 2018 at 6:56 PM, Kees Cook wrote: >>> >> Another

Re: [PATCH v2 1/6] x86/speculation: Update Speculation Control microcode blacklist

2018-02-12 Thread Thomas Gleixner
On Mon, 12 Feb 2018, David Woodhouse wrote: > On Sat, 2018-02-10 at 23:39 +, David Woodhouse wrote: > > > > --- a/arch/x86/kernel/cpu/intel.c > > +++ b/arch/x86/kernel/cpu/intel.c > > @@ -123,8 +123,6 @@ static const struct sku_microcode > > spectre_bad_microcodes[] = { > > { INTEL_FA

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Ulf Magnusson
On Mon, Feb 12, 2018 at 3:23 PM, Masahiro Yamada wrote: > 2018-02-12 23:21 GMT+09:00 Masahiro Yamada : >> 2018-02-12 21:54 GMT+09:00 Ulf Magnusson : >>> On Sun, Feb 11, 2018 at 09:42:09PM +0100, Ulf Magnusson wrote: On Sun, Feb 11, 2018 at 9:29 PM, Ulf Magnusson wrote: > On Sun, Feb 11,

Re: [PATCH v3 3/3] sched: update blocked load when newly idle

2018-02-12 Thread Vincent Guittot
Le Monday 12 Feb 2018 à 13:04:11 (+0100), Peter Zijlstra a écrit : > On Mon, Feb 12, 2018 at 09:07:54AM +0100, Vincent Guittot wrote: > > @@ -8863,12 +8866,26 @@ static int idle_balance(struct rq *this_rq, struct > > rq_flags *rf) > > > > if (this_rq->avg_idle < sysctl_sched_migration_cost |

Re: [PATCH 2/4] staging: iio: accel: Remove unnecessary comments and add suitable suffix

2018-02-12 Thread Himanshu Jha
Hi Dan, On Mon, Feb 12, 2018 at 03:53:12PM +0300, Dan Carpenter wrote: > On Mon, Feb 12, 2018 at 05:24:57PM +0530, Himanshu Jha wrote: > > Remove some unnecessary comments by giving appropriate name to macros. > > Therefore, add _REG suffix for control registers. Also, align function > > arguments

Re: [PATCH 09/10] dt-bindings: fsi: Add optional property no-scan-on-init

2018-02-12 Thread Rob Herring
On Mon, Feb 12, 2018 at 03:45:48PM +1030, Joel Stanley wrote: > From: Christopher Bostic > > Add an optional FSI master property 'no-scan-on-init. This > can be specified to indicate that a master should not be > automatically scanned at init time. This is required in cases > where a scan could

Re: [PATCH 4/4] staging: iio: accel: Move adis16201 driver out of staging

2018-02-12 Thread Himanshu Jha
On Mon, Feb 12, 2018 at 03:10:56PM +0100, Philippe Ombredanne wrote: > On Mon, Feb 12, 2018 at 12:54 PM, Himanshu Jha > wrote: > > Move the adis16201 driver out of staging directory and merge to the > > mainline IIO directory. > > > > Signed-off-by: Himanshu Jha > > > > --- /dev/null > > +++ b/

Re: [PATCH v3 0/3] renesas: irqchip: Use wakeup_path i.s.o. explicit clock handling

2018-02-12 Thread Ulf Hansson
On 12 February 2018 at 14:55, Geert Uytterhoeven wrote: > Hi all, > > If an interrupt controller in a Renesas ARM SoC is part of a Clock > Domain, and it is part of the wakeup path, it must be kept active during > system suspend. > > Currently this is handled in all interrupt controller dr

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Masahiro Yamada
2018-02-12 2:56 GMT+09:00 Kees Cook : > I think it would work to skip KBUILD_CPPFLAGS right up until it > didn't. Since we have the arch split, we can already add -m32 to the > 32-bit case, etc. However, I worry about interaction with other > selected build options. For example, while retpoline do

Re: [PATCH 4/4] staging: iio: accel: Move adis16201 driver out of staging

2018-02-12 Thread Himanshu Jha
On Mon, Feb 12, 2018 at 04:18:26PM +0300, Dan Carpenter wrote: > I think -M is prefered for these types of diffs? Not sure. I wrote about that in the cover letter if you missed. :) > On Mon, Feb 12, 2018 at 05:24:59PM +0530, Himanshu Jha wrote: > > +static int adis16201_probe(struct spi_device *

[PATCH v2 00/12] ARM: dts: STi: Fix DT dtc warnings

2018-02-12 Thread patrice.chotard
From: Patrice Chotard This series fixes all dtc warnings related to STi platforms dt files. It has been reported by Rob Herring [1] For most of implicated node, the addition of a fake reg property fixes these warnings. [1] https://www.spinics.net/lists/devicetree/msg206209.html v2: _ add a fak

Re: [PATCH v1] auxdisplay: Move arm-charlcd binding to correct folder

2018-02-12 Thread Rob Herring
On Wed, Jan 31, 2018 at 04:02:55PM +0200, Andy Shevchenko wrote: > This is a follow up to the commit > > 00846a4425d3 ("auxdisplay: Move arm-charlcd.c to drivers/auxdisplay folder") > > for Device Tree binding. > > No functional change. > > Signed-off-by: Andy Shevchenko > --- > Documentati

Re: [PATCH v2 4/7] dt-bindings: tegra: Add missing chips and NVIDIA boards

2018-02-12 Thread Rob Herring
On Sat, Feb 10, 2018 at 10:45:35AM +0200, Mikko Perttunen wrote: > On 02/10/2018 12:49 AM, Rob Herring wrote: > > On Tue, Feb 06, 2018 at 09:22:34AM +0200, Mikko Perttunen wrote: > > > Add compatibility strings for supported but undocumented Tegra chips > > > (Tegra114/124/132/210/186/194) and refe

Re: [PATCH v3 1/2] drm/virtio: Add window server support

2018-02-12 Thread Tomeu Vizoso
On 02/12/2018 03:27 PM, Gerd Hoffmann wrote: On Mon, Feb 12, 2018 at 03:00:24PM +0100, Tomeu Vizoso wrote: On 02/12/2018 12:52 PM, Gerd Hoffmann wrote: Hi, can we reach agreement on whether vsock should be involved in this? I think the best approach would be to have guest proxy and host

Re: [PATCH] acpi, spcr: Make SPCR available to x86

2018-02-12 Thread Timur Tabi
On 2/12/18 7:47 AM, Prarit Bhargava wrote: ACPI SPCR is used by a vendor to define the serial console for a system. If SPCR exists a user can add kernel parameter "earlycon" (no extra kernel parameters) and the console will work out-of-the-box. "earlycon" is needed only for an *early* console.

[PATCH v2 03/12] ARM: dts: STi: Add fake reg property for sti-display-subsystem

2018-02-12 Thread patrice.chotard
From: Patrice Chotard As sti-display-subsystem sub-nodes (sti-compositor, sti-tvout sti-hdmi, sti-hda and sti-hqvdp) are SoC's IP, we add a fake reg property. This allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih410-b2120.dtb: Warning (unit_address_v

[PATCH v2 11/12] ARM: dts: STi: Move clk_sysin clock ouside soc node

2018-02-12 Thread patrice.chotard
From: Patrice Chotard As clk_sysin node describes the external oscillator, there is no reason to put it into soc node. This allows to fix the following warnings when compiling dtb with W=1 option : arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): Node /clocks/clk-sysin missing or e

[PATCH v2 00/12] ARM: dts: STi: Fix DT dtc warnings

2018-02-12 Thread patrice.chotard
From: Patrice Chotard This series fixes all dtc warnings related to STi platforms dt files. It has been reported by Rob Herring [1] For most of implicated node, the addition of a fake reg property fixes these warnings. [1] https://www.spinics.net/lists/devicetree/msg206209.html v2: _ add a fak

Re: [PATCH v2 2/4] dt-bindings: soc: add header files required for MT7623A SCPSYS dt-binding

2018-02-12 Thread Rob Herring
On Wed, Feb 07, 2018 at 06:22:48PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > Add relevant header files required for dt-bindings of SCPSYS power domain > control for subsystems found on MT7623A SoC. > > v1 -> v2: fix typos and treat the patch as a dt-binding patch > > Signed-off

[PATCH v2 08/12] ARM: dts: STi: Add fake reg property for usb2_picophyX nodes

2018-02-12 Thread patrice.chotard
From: Patrice Chotard Add fake reg property for usb2_picophy nodes. This allows to fix the following warning when compiling dtb with W=1 option : arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): Node /soc/phy2 missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2120.dtb

[PATCH v2 0/2] /proc/kcore: Fix SMAP violation when dumping vsyscall user page

2018-02-12 Thread Jia Zhang
This patchset was validated with the combinations of pti=on/off and vsyscall=native/emulate/none. In addition, CONFIG_HARDENED_USERCOPY is always enabled. v2: - Use { } around kclist_add() when there's more than 1 line code Jia Zhang (2): /proc/kcore: Fix SMAP violation when dumping vsy

[PATCH 2/2] x86/mm/64: Add vsyscall page to /proc/kcore conditionally

2018-02-12 Thread Jia Zhang
The vsyscall page should be visible only if vsyscall=emulate/native when dumping /proc/kcore. Signed-off-by: Jia Zhang Reviewed-by: Jiri Olsa --- arch/x86/mm/init_64.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 1

[PATCH v2 07/12] ARM: dts: STi: Add fake reg for restart, powerdown and picophy/softreset

2018-02-12 Thread patrice.chotard
From: Patrice Chotard Add fake reg property for restart, powerdown, picophyreset and softreset. This allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg): Node /soc/restart missing or empty reg/ranges property arch/

[PATCH 1/2] /proc/kcore: Fix SMAP violation when dumping vsyscall user page

2018-02-12 Thread Jia Zhang
The commit df04abfd181a ("fs/proc/kcore.c: Add bounce buffer for ktext data") introduces a bounce buffer to work around CONFIG_HARDENED_USERCOPY=y. However, accessing vsyscall user page will cause SMAP violation in this way. In order to fix this issue, simply replace memcpy() with copy_from_user()

[PATCH v2 10/12] ARM: dts: STi: Add fake reg property for clocks

2018-02-12 Thread patrice.chotard
From: Patrice Chotard For all clock's element inside SoC, add a fake reg property, this allows to fix the following warnings when compiling dtb with W=1 option : arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): Node /clocks/clk-m-a9-periphs missing or empty reg/ranges property arch

[PATCH v2 09/12] ARM: dts: STi: Add fake reg property for sound related nodes

2018-02-12 Thread patrice.chotard
From: Patrice Chotard Add fake reg property to sound, simple-audio-card, dai-link and sti_sasg_codec nodes, this allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih407-b2120.dtb: Warning (unit_address_vs_reg): Node /soc/sound/simple-audio-card,dai-link@

[PATCH v2 12/12] ARM: dts: STi: Remove unused clk_ext2f_a9 clock

2018-02-12 Thread patrice.chotard
From: Patrice Chotard This clock node is unused, remove it. This allows to fix the following warnings when compiling dtb with W=1 option : arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): Node /clocks/clockgen-c0 missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2260

[PATCH v2 06/12] ARM: dts: STi: Add fake reg property for remote processors

2018-02-12 Thread patrice.chotard
From: Patrice Chotard As st231-gp0, st231-delta are part of SoC, we add a fake reg property instead of moving all these nodes outside soc node. This allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg): Node /soc/st

Re: [PATCH 4/4] staging: iio: accel: Move adis16201 driver out of staging

2018-02-12 Thread Dan Carpenter
On Mon, Feb 12, 2018 at 08:11:57PM +0530, Himanshu Jha wrote: > On Mon, Feb 12, 2018 at 04:18:26PM +0300, Dan Carpenter wrote: > > I think -M is prefered for these types of diffs? Not sure. > > I wrote about that in the cover letter if you missed. :) > Yeah. I seldom read cover letters. > > >

[PATCH v2 04/12] ARM: dts: STi: Add fake reg property for miphy28lp_phy

2018-02-12 Thread patrice.chotard
From: Patrice Chotard Add fake reg property to miphy28lp_phy. This allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg): Node /soc/miphy28lp missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2120.dtb:

[PATCH v2 05/12] ARM: dts: STi: Add fake reg property for irq-syscfg

2018-02-12 Thread patrice.chotard
From: Patrice Chotard Add fake reg property to irq-syscfg node. This allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg): Node /soc/irq-syscfg missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2120.dt

[PATCH v2 02/12] ARM: dts: STi: Move leds node outside soc node

2018-02-12 Thread patrice.chotard
From: Patrice Chotard Leds are not part of soc, so nove them outside soc node. This allows to fix the following warnings when compiling dtb with W=1 option : arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg): Node /soc/leds missing or empty reg/ranges property arch/arm/boot/dts/stih

[PATCH v2 01/12] ARM: dts: STi: Fix bindings notation

2018-02-12 Thread patrice.chotard
From: Patrice Chotard Remove leading 0x and 0s from bindings notation Add missing unit-address and remove some which are useless. This allows to fix several warnings like : Warning (unit_address_vs_reg): Node has a reg or ranges property, but no unit name Warning (simple_bus_reg): Node XX

Re: [PATCH] acpi, spcr: Make SPCR available to x86

2018-02-12 Thread Prarit Bhargava
On 02/12/2018 09:43 AM, Timur Tabi wrote: > On 2/12/18 7:47 AM, Prarit Bhargava wrote: >> ACPI SPCR is used by a vendor to define the serial console for a system. If >> SPCR exists a user can add kernel parameter "earlycon" (no extra kernel >> parameters) and the console will work out-of-the-box

Re: why scripts/link-vmlinux.sh has a final build of init/

2018-02-12 Thread Masahiro Yamada
2018-02-12 13:22 GMT+09:00 Cao jin : > Hi Masahiro-san, > > As I remember, init/ is already built during recursive make, and I did > a clean build(make mrproper, make localmodconfig) with all plugins > included on x86_64 with following patch, the kernel can boot without any > obvious problem. So,

Re: [PATCH 00/31 v2] PTI support for x86_32

2018-02-12 Thread Joerg Roedel
Hi Ingo, On Sun, Feb 11, 2018 at 08:13:12PM +0100, Ingo Molnar wrote: > Could you please measure the PTI kernel vs. vanilla kernel? Okay, did that, here is the data. The test machine is a Xeon E5-1620v2, which is Ivy Bridge based (no PCIE) and has 4C/8T. I ran the 2 tests you suggested:

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Ulf Magnusson
On Mon, Feb 12, 2018 at 3:21 PM, Masahiro Yamada wrote: > 'syncconfig' in a more proper name Wonder if --update-config-files-for-build or something would be an even better name. Kinda tough to compress it into something that adheres to *nix terseness while making it somewhat clear what kind of s

Re: [PATCH] acpi, spcr: Make SPCR available to x86

2018-02-12 Thread Peter Zijlstra
On Mon, Feb 12, 2018 at 08:47:57AM -0500, Prarit Bhargava wrote: > > > On 02/12/2018 08:34 AM, Peter Zijlstra wrote: > > On Thu, Jan 18, 2018 at 10:09:51AM -0500, Prarit Bhargava wrote: > >> config ACPI_SPCR_TABLE > >> + bool "ACPI Serial Port Console Redirection Support" > >> + default y if X

Re: [PATCH 15/21] regulator: tps65090: Pass descriptor instead of GPIO number

2018-02-12 Thread Lee Jones
On Mon, 12 Feb 2018, Linus Walleij wrote: > Instead of passing a global GPIO number for the enable GPIO, pass > a descriptor looked up from the device tree node for the > regulator. > > This regulator supports passing platform data, but enable/sleep > regulators are looked up from the device tree

[PATCH v2 00/19] clk: meson: use regmap in clock controllers

2018-02-12 Thread Jerome Brunet
This changeset is a rework of meson's clock controllers to use regmap instead of directly using io memory. It based clk-meson next/drivers and depends on few core clock patches, mainly to export generic clocks helpers: [0],[1]. The line count is pretty high but the changes are actually fairly simpl

[PATCH 2/4] sched/fair: Defer calculation of prev_eff_load in wake_affine until needed

2018-02-12 Thread Mel Gorman
On sync wakeups, the previous CPU effective load may not be used so delay the calculation until it's needed. Signed-off-by: Mel Gorman --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 4b3e86eb..c1091cb

[PATCH v2 04/19] clk: meson: remove obsolete comments

2018-02-12 Thread Jerome Brunet
Over time things changes in CCF and issues have been fixed in meson controllers. Now, clk81 is decently modeled by read-only PLLs, a mux, a divider and a gate. We can remove the FIXME comments related to clk81. Also remove the comment about devm_clk_hw_register, as there is apparently nothing wron

Re: [PATCH 16/21] regulator: wm8994: Pass descriptor instead of GPIO number

2018-02-12 Thread Lee Jones
On Mon, 12 Feb 2018, Linus Walleij wrote: > Instead of passing a global GPIO number for the enable GPIO, pass > a descriptor looked up from the device tree node or the board file > decriptor table for the regulator. > > There is a single board file passing the GPIOs for LDO1 and LDO2 > through pl

Re: [PATCH 14/21] regulator: s5m8767: Pass descriptor instead of GPIO number

2018-02-12 Thread Lee Jones
On Mon, 12 Feb 2018, Linus Walleij wrote: > Instead of passing a global GPIO number for the enable GPIO, pass > a descriptor looked up from the device tree node for the > regulator. > > This regulator supports passing platform data, but enable/sleep > regulators are looked up from the device tree

Re: [PATCH 04/21] regulator: da9055: Pass descriptor instead of GPIO number

2018-02-12 Thread Lee Jones
On Mon, 12 Feb 2018, Linus Walleij wrote: > When setting up a fixed regulator on the DA9055, pass a descriptor > instead of a global GPIO number. This facility is not used in the > kernel so we can easily just say that this should be a descriptor > if/when put to use. > > Cc: Lee Jones > Signed-

[PATCH v2 07/19] clk: meson: remove superseded aoclk_gate_regmap

2018-02-12 Thread Jerome Brunet
aoclk_gate_regmap has been replaced by meson's clk_regmap. It is no longer necessary so, remove it Signed-off-by: Jerome Brunet --- drivers/clk/meson/gxbb-aoclk-regmap.c | 46 --- drivers/clk/meson/gxbb-aoclk.h| 10 2 files changed, 56 deletions(-

[PATCH 1/4] sched/fair: Avoid an unnecessary lookup of current CPU ID during wake_affine

2018-02-12 Thread Mel Gorman
The only caller of wake_affine() knows the CPU ID. Pass it in instead of rechecking it. Signed-off-by: Mel Gorman --- kernel/sched/fair.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 5eb3ffc9be84..4b3e86eb 100644 ---

[PATCH v2 19/19] clk: meson: use hhi syscon if available

2018-02-12 Thread Jerome Brunet
On gxbb and axg, try to get the hhi regmap from the parent DT node, which should be the HHI system controller once the necessary changes have been made in amlogic's DTs Until then, if getting regmap through the system controller fails, the clock controller will fall back to the old way, requesting

[PATCH 0/4] Reduce migrations due to load imbalance and process exits

2018-02-12 Thread Mel Gorman
The following series was motivated by the fact that higher migrations were observed than expected. The first two patches are minor cleanups. The third patch avoids migrations on wakeup when two CPUs are equally loaded which is particularly important in the case where the measured load is 0. The las

Re: [PATCH v2 4/8] objtool: Retpoline validation tweaks

2018-02-12 Thread Peter Zijlstra
On Mon, Feb 12, 2018 at 12:57:40PM +, David Woodhouse wrote: > > > On Mon, 2018-02-12 at 13:48 +0100, Peter Zijlstra wrote: > > --- a/Makefile > > +++ b/Makefile > > @@ -486,6 +486,11 @@ KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG > >  KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) > >  endif

[PATCH v2 17/19] clk: meson: rework meson8b cpu clock

2018-02-12 Thread Jerome Brunet
Instead of migrating meson cpu_clk to clk_regmap, like the other meson clock drivers, we take advantage of the massive rework to get rid of it completely, and solve (the first part) of the related FIXME notice. As pointed out in the code comments, the cpu_clk should be modeled with dividers and mu

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