Re: [PATCH tip/core/rcu 04/13] rcu: Make RCU_FANOUT_LEAF help text more explicit about skew_tick

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 11:15:35AM +0200, Peter Zijlstra wrote: > On Wed, Apr 12, 2017 at 09:55:40AM -0700, Paul E. McKenney wrote: > > If you set RCU_FANOUT_LEAF too high, you can get lock contention > > on the leaf rcu_node, and you should boot with the skew_tick kernel > > parameter set in order

Re: RFC: WMI Enhancements

2017-04-13 Thread Darren Hart
On Thu, Apr 13, 2017 at 03:40:08PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Andy Lutomirski [mailto:l...@kernel.org] > > Sent: Thursday, April 13, 2017 10:35 AM > > To: Pali Rohár > > Cc: Limonciello, Mario ; Hans de Goede > > ; Michał Kępień ; Darren Hart

Re: [GIT PULL] TTY/Serial driver fixes for 4.11-rc4

2017-04-13 Thread Linus Torvalds
On Thu, Apr 13, 2017 at 3:50 AM, Vegard Nossum wrote: > > I've bisected a syzkaller crash down to this commit > (5362544bebe85071188dd9e479b5a5040841c895). The crash is: > > [ 25.137552] BUG: unable to handle kernel paging request at 2280 > [ 25.137579] IP: mutex_lock_interruptible

Re: RFC: WMI Enhancements

2017-04-13 Thread Darren Hart
On Thu, Apr 13, 2017 at 08:32:48AM -0700, Andy Lutomirski wrote: > On Thu, Apr 13, 2017 at 12:32 AM, Michał Kępień wrote: > >> Hi All, > >> > >> There are a few parallel efforts involving the Windows Management > >> Instrumentation (WMI)[1] and dependent/related drivers. I'd like to have a > >> r

Re: RFC: WMI Enhancements

2017-04-13 Thread Darren Hart
On Thu, Apr 13, 2017 at 08:44:28AM -0700, Andy Lutomirski wrote: > On Thu, Apr 13, 2017 at 8:39 AM, Pali Rohár wrote: > > On Thursday 13 April 2017 17:32:48 Andy Lutomirski wrote: > >> On Thu, Apr 13, 2017 at 12:32 AM, Michał Kępień > >> wrote: > >> > What we still need, though, is an open source

Re: [PATCH 2/3] rtmutex: deboost priority conditionally when rt-mutex unlock

2017-04-13 Thread Steven Rostedt
On Thu, 13 Apr 2017 16:39:52 +0200 Peter Zijlstra wrote: > On Thu, Apr 13, 2017 at 10:02:53PM +0800, Alex Shi wrote: > > /* > > +* 'current' release this lock, so 'current' should be a higher prio > > +* task than the next top waiter, unless the current prio was gotten > > +* from

Re: [PATCH] mux: mux-gpio: fix compatible according to binding documentation

2017-04-13 Thread Peter Rosin
On 2017-04-13 16:24, Philipp Zabel wrote: > According to the device tree binding documentation, the compatible > should be "gpio-mux", not "mux-gpio". > > Signed-off-by: Philipp Zabel > --- > drivers/mux/mux-gpio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers

Re: [PATCH tip/core/rcu 07/13] rcu: Add smp_mb__after_atomic() to sync_exp_work_done()

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 11:18:32AM +0200, Peter Zijlstra wrote: > On Wed, Apr 12, 2017 at 09:55:43AM -0700, Paul E. McKenney wrote: > > However, a little future-proofing is a good thing, > > especially given that smp_mb__before_atomic() is only required to > > provide acquire semantics rather than

Re: [PATCH v2] sched/fair: update scale invariance of PELT

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 05:16:20PM +0200, Vincent Guittot wrote: > On 13 April 2017 at 15:39, Peter Zijlstra wrote: > > OK, so the reason util_avg varies is because we compute it wrong. And I > > think we can easily fix that once we pull out all the factors (which > > would mean your patch and th

Re: [PATCH] mux: mux-gpio: fix compatible according to binding documentation

2017-04-13 Thread Peter Rosin
On 2017-04-13 18:10, Peter Rosin wrote: > On 2017-04-13 16:24, Philipp Zabel wrote: >> According to the device tree binding documentation, the compatible >> should be "gpio-mux", not "mux-gpio". >> >> Signed-off-by: Philipp Zabel >> --- >> drivers/mux/mux-gpio.c | 2 +- >> 1 file changed, 1 inser

Re: [PATCH 2/2] crypto: chcr - Fix error checking

2017-04-13 Thread Dan Carpenter
On Thu, Apr 13, 2017 at 08:37:50PM +0530, Harsh Jain wrote: > On Thu, Apr 13, 2017 at 8:20 PM, Christophe JAILLET > wrote: > > Le 13/04/2017 à 16:04, Dan Carpenter a écrit : > >> > >> On Thu, Apr 13, 2017 at 02:14:30PM +0200, Christophe JAILLET wrote: > >>> > >>> If 'chcr_alloc_shash()' a few line

Re: [PATCH 3/3] rtmutex: remove unnecessary adjust prio

2017-04-13 Thread Steven Rostedt
On Thu, 13 Apr 2017 22:02:54 +0800 Alex Shi wrote: > We don't need to adjust prio before new pi_waiter adding. The prio > only need update after pi_waiter change or task normal_prio change. > > Signed-off-by: Alex Shi > Cc: Steven Rostedt > Cc: Sebastian Siewior > To: linux-kernel@vger.kernel

Re: [PATCH tip/core/rcu 01/40] rcu: Maintain special bits at bottom of ->dynticks counter

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 11:20:44AM +0200, Peter Zijlstra wrote: > On Wed, Apr 12, 2017 at 10:39:46AM -0700, Paul E. McKenney wrote: > > Currently, IPIs are used to force other CPUs to invalidate their TLBs > > in response to a kernel virtual-memory mapping change. This works, but > > degrades both

Re: [PATCH tip/core/rcu 01/13] mm: Rename SLAB_DESTROY_BY_RCU to SLAB_TYPESAFE_BY_RCU

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 01:06:56PM +0200, Vlastimil Babka wrote: > On 04/13/2017 11:12 AM, Peter Zijlstra wrote: > > On Wed, Apr 12, 2017 at 09:55:37AM -0700, Paul E. McKenney wrote: > >> A group of Linux kernel hackers reported chasing a bug that resulted > >> from their assumption that SLAB_DESTR

Re: [PATCH tip/core/rcu 02/40] rcu: Make arch select smp_mb__after_unlock_lock() strength

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 11:21:53AM +0200, Peter Zijlstra wrote: > On Wed, Apr 12, 2017 at 10:39:47AM -0700, Paul E. McKenney wrote: > > > CONFIG_ARCH_WEAK_RELACQ Kconfig option. > > Naming in the changelog and patch don't match. Good eyes! Fixed.

Re: [PATCH tip/core/rcu 04/13] rcu: Make RCU_FANOUT_LEAF help text more explicit about skew_tick

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 09:03:33AM -0700, Paul E. McKenney wrote: > On Thu, Apr 13, 2017 at 11:15:35AM +0200, Peter Zijlstra wrote: > > On Wed, Apr 12, 2017 at 09:55:40AM -0700, Paul E. McKenney wrote: > > > If you set RCU_FANOUT_LEAF too high, you can get lock contention > > > on the leaf rcu_node

Re: KMS question

2017-04-13 Thread Ville Syrjälä
On Thu, Apr 13, 2017 at 11:37:45AM -0400, Ilia Mirkin wrote: > On Thu, Apr 13, 2017 at 11:36 AM, Alex Deucher wrote: > > On Thu, Apr 13, 2017 at 11:03 AM, Boszormenyi Zoltan wrote: > >> 2017-04-13 16:05 keltezéssel, Alex Deucher írta: > >>> > >>> On Thu, Apr 13, 2017 at 9:03 AM, Boszormenyi Zolta

Re: [PATCH 2/3] rtmutex: deboost priority conditionally when rt-mutex unlock

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 12:09:25PM -0400, Steven Rostedt wrote: > On Thu, 13 Apr 2017 16:39:52 +0200 > Peter Zijlstra wrote: > > > On Thu, Apr 13, 2017 at 10:02:53PM +0800, Alex Shi wrote: > > > /* > > > + * 'current' release this lock, so 'current' should be a higher prio > > > + * task than

Re: [PATCH v2 2/4] gpio - Add EXAR XRA1403 SPI GPIO expander driver

2017-04-13 Thread kbuild test robot
Hi Nandor, [auto build test ERROR on gpio/for-next] [also build test ERROR on v4.11-rc6 next-20170413] [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/commits/Nandor-Han/XRA1403-gpio-add-XRA1403-gpio

Re: [PATCH tip/core/rcu 07/13] rcu: Add smp_mb__after_atomic() to sync_exp_work_done()

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 09:10:42AM -0700, Paul E. McKenney wrote: > On Thu, Apr 13, 2017 at 11:18:32AM +0200, Peter Zijlstra wrote: > > On Wed, Apr 12, 2017 at 09:55:43AM -0700, Paul E. McKenney wrote: > > > However, a little future-proofing is a good thing, > > > especially given that smp_mb__befo

Re: [stable-4.10: PATCH] xen: revert commits 72a9b186292 and da72ff5bfcb0

2017-04-13 Thread Greg KH
On Thu, Apr 13, 2017 at 04:49:49PM +0200, Juergen Gross wrote: > Revert commit 72a9b186292 ("xen: Remove event channel notification > through Xen PCI platform device") as the original analysis was wrong > that all the removed code isn't in use any more. As commit da72ff5bfcb0 > ("partially revert x

Re: [PATCH tip/core/rcu 02/40] rcu: Make arch select smp_mb__after_unlock_lock() strength

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 11:24:18AM +0200, Peter Zijlstra wrote: > On Wed, Apr 12, 2017 at 10:39:47AM -0700, Paul E. McKenney wrote: > > The definition of smp_mb__after_unlock_lock() is currently smp_mb() > > for CONFIG_PPC and a no-op otherwise. It would be better to instead > > provide an archite

Re: [stable-4.10: PATCH] xen: revert commits 72a9b186292 and da72ff5bfcb0

2017-04-13 Thread Juergen Gross
On 13/04/17 18:24, Greg KH wrote: > On Thu, Apr 13, 2017 at 04:49:49PM +0200, Juergen Gross wrote: >> Revert commit 72a9b186292 ("xen: Remove event channel notification >> through Xen PCI platform device") as the original analysis was wrong >> that all the removed code isn't in use any more. As com

Re: [RFC] Re: Costless huge virtual memory? /dev/same, /dev/null?

2017-04-13 Thread Samuel Thibault
(Ideally we'd be able to take the MAP_HUGETLB mmap flag into account to map a single huge page repeatedly, even lowering the populating cost, but AIUI of the current hugepage support it would be far from easy) Samuel

Re: [PATCH tip/core/rcu 37/40] srcu: Create a tiny SRCU

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 11:48:30AM +0200, Peter Zijlstra wrote: > On Wed, Apr 12, 2017 at 10:40:22AM -0700, Paul E. McKenney wrote: > > In response to automated complaints about modifications to SRCU > > increasing its size, this commit creates a tiny SRCU that is > > used in SMP=y && PREEMPT=n bui

Re: [RFC] Re: Costless huge virtual memory? /dev/same, /dev/null?

2017-04-13 Thread Matthew Wilcox
On Thu, Apr 13, 2017 at 06:29:46PM +0200, Samuel Thibault wrote: > (Ideally we'd be able to take the MAP_HUGETLB mmap flag into account to > map a single huge page repeatedly, even lowering the populating cost, > but AIUI of the current hugepage support it would be far from easy) You could impleme

Re: [PATCH v9 2/5] virtio-balloon: VIRTIO_BALLOON_F_BALLOON_CHUNKS

2017-04-13 Thread Michael S. Tsirkin
On Thu, Apr 13, 2017 at 05:35:05PM +0800, Wei Wang wrote: > Add a new feature, VIRTIO_BALLOON_F_BALLOON_CHUNKS, which enables Let's find a better name here. VIRTIO_BALLOON_F_PAGE_CHUNK > the transfer of the ballooned (i.e. inflated/deflated) pages in > chunks to the host. > > The implementation

Re: [PATCH tip/core/rcu 40/40] srcu: Parallelize callback handling

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 11:50:29AM +0200, Peter Zijlstra wrote: > On Wed, Apr 12, 2017 at 10:40:25AM -0700, Paul E. McKenney wrote: > > Peter Zijlstra proposed using SRCU to reduce mmap_sem contention [1], > > Bugger, now you're making me feel bad for not having updated those > patches in ages.. I

Re: [PATCH tip/core/rcu 02/40] rcu: Make arch select smp_mb__after_unlock_lock() strength

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 09:26:51AM -0700, Paul E. McKenney wrote: > ARCH_WEAK_RELEASE_ACQUIRE actually works both ways. > > To see this, imagine some strange alternate universe in which the Power > hardware guys actually did decide to switch PPC to doing RCsc as you > suggest. There would still

Re: [PATCH 2/2] crypto: chcr - Fix error checking

2017-04-13 Thread Christophe JAILLET
Le 13/04/2017 à 18:13, Dan Carpenter a écrit : On Thu, Apr 13, 2017 at 08:37:50PM +0530, Harsh Jain wrote: On Thu, Apr 13, 2017 at 8:20 PM, Christophe JAILLET wrote: Le 13/04/2017 à 16:04, Dan Carpenter a écrit : On Thu, Apr 13, 2017 at 02:14:30PM +0200, Christophe JAILLET wrote: If 'chcr_al

[PATCH v2] arm64: allwinner: h5: add support for Orange Pi Prime board

2017-04-13 Thread Icenowy Zheng
Orange Pi Prime is a new Allwinner H5-based SBC by Xunlong. It's like a Orange Pi Plus 2E with H3 replaced with H5, eMMC replaced with onboard SPI NOR Flash and wireless card changed to Realtek RTL8723BS (with Bluetooth functionality). Signed-off-by: Icenowy Zheng --- Changes since v1: - Fixed c

[PATCH] KVM: nVMX: fix AD condition when handling EPT violation

2017-04-13 Thread Radim Krčmář
I have introduced this bug when applying and simplifying Paolo's patch as we agreed on the list. The original was "x &= ~y; if (z) x |= y;". Here is the story of a bad workflow: A maintainer was already testing with the intended change, but it was applied only to a testing repo on a differen

Re: [PATCH 2/3] rtmutex: deboost priority conditionally when rt-mutex unlock

2017-04-13 Thread Steven Rostedt
On Thu, 13 Apr 2017 18:21:13 +0200 Peter Zijlstra wrote: > On Thu, Apr 13, 2017 at 12:09:25PM -0400, Steven Rostedt wrote: > > On Thu, 13 Apr 2017 16:39:52 +0200 > > Peter Zijlstra wrote: > > > > > On Thu, Apr 13, 2017 at 10:02:53PM +0800, Alex Shi wrote: > > > > /* > > > > +

Re: [PATCH 40/40] media: imx: set and propagate empty field, colorimetry params

2017-04-13 Thread Steve Longerbeam
On 04/13/2017 03:09 AM, Philipp Zabel wrote: Hi Steve, thanks for cleaning this up. Apart from the comments below, this looks good to me. On Wed, 2017-04-12 at 17:45 -0700, Steve Longerbeam wrote: This patch adds a call to imx_media_fill_empty_mbus_fields() in the *_try_fmt() functions at th

Re: [PATCH net-next] net: stmmac: set total length of the packet to be transmitted in TDES3

2017-04-13 Thread David Miller
From: Niklas Cassel Date: Mon, 10 Apr 2017 20:33:29 +0200 > From: Niklas Cassel > > Field FL/TPL in register TDES3 is not correctly set on GMAC4. > TX appears to be functional on GMAC 4.10a even if this field is not set, > however, to avoid relying on undefined behavior, set the length in TDES3

[PATCH v13 00/10] mux controller abstraction and iio/i2c muxes

2017-04-13 Thread Peter Rosin
Hi Greg! Please apply. This adds a new mux controller subsystem with an interface for accessing mux controllers, along with two drivers providing the interface (gpio and adg792) and two consumers (iio and i2c). This is done in such a way that several consumers can independently access the same mu

[PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-13 Thread Peter Rosin
Add a new minimalistic subsystem that handles multiplexer controllers. When multiplexers are used in various places in the kernel, and the same multiplexer controller can be used for several independent things, there should be one place to implement support for said multiplexer controller. A singl

[PATCH v13 04/10] iio: inkern: api for manipulating ext_info of iio channels

2017-04-13 Thread Peter Rosin
Extend the inkern api with functions for reading and writing ext_info of iio channels. Acked-by: Jonathan Cameron Signed-off-by: Peter Rosin --- drivers/iio/inkern.c | 60 include/linux/iio/consumer.h | 37 +++ 2 files

[PATCH v13 01/10] devres: trivial whitespace fix

2017-04-13 Thread Peter Rosin
Everything else is indented with two spaces, so fix the odd one out. Acked-by: Jonathan Cameron Signed-off-by: Peter Rosin --- Documentation/driver-model/devres.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-

[PATCH v13 07/10] dt-bindings: i2c: i2c-mux: document general purpose i2c-mux bindings

2017-04-13 Thread Peter Rosin
Describe how a general purpose multiplexer controller is used to mux an i2c bus. Acked-by: Jonathan Cameron Reviewed-by: Rob Herring Signed-off-by: Peter Rosin --- .../devicetree/bindings/i2c/i2c-mux-gpmux.txt | 99 ++ 1 file changed, 99 insertions(+) create mode 1006

[PATCH v13 05/10] dt-bindings: iio: io-channel-mux: document io-channel-mux bindings

2017-04-13 Thread Peter Rosin
Describe how a multiplexer can be used to select which signal is fed to an io-channel. Acked-by: Jonathan Cameron Acked-by: Rob Herring Signed-off-by: Peter Rosin --- .../bindings/iio/multiplexer/io-channel-mux.txt| 39 ++ MAINTAINERS

[PATCH v13 09/10] dt-bindings: mux-adg792a: document devicetree bindings for ADG792A/G mux

2017-04-13 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Acked-by: Jonathan Cameron Reviewed-by: Rob Herring Signed-off-by: Peter Rosin --- .../devicetree/bindings/mux/adi,adg792a.txt| 75 ++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/binding

[PATCH v13 10/10] mux: adg792a: add mux controller driver for ADG792A/G

2017-04-13 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Reviewed-by: Jonathan Cameron Signed-off-by: Peter Rosin --- drivers/mux/Kconfig | 12 drivers/mux/Makefile | 1 + drivers/mux/mux-adg792a.c | 141 ++ 3 files changed, 154 insertions(+)

[PATCH v13 06/10] iio: multiplexer: new iio category and iio-mux driver

2017-04-13 Thread Peter Rosin
When a multiplexer changes how an iio device behaves (for example by feeding different signals to an ADC), this driver can be used to create one virtual iio channel for each multiplexer state. Depends on the generic multiplexer subsystem. Cache any ext_info values from the parent iio channel, cre

[PATCH v13 08/10] i2c: i2c-mux-gpmux: new driver

2017-04-13 Thread Peter Rosin
This is a general purpose i2c mux that uses a multiplexer controlled by the multiplexer subsystem to do the muxing. The user can select if the mux is to be mux-locked and parent-locked as described in Documentation/i2c/i2c-topology. Acked-by: Jonathan Cameron Acked-by: Wolfram Sang Signed-off-b

[PATCH v13 02/10] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-04-13 Thread Peter Rosin
Allow specifying that a single multiplexer controller can be used to control several parallel multiplexers, thus enabling sharing of the multiplexer controller by different consumers. Add a binding for a first mux controller in the form of a GPIO based mux controller. Acked-by: Jonathan Cameron

Re: [RFC net-next] of: mdio: Honor hints from MDIO bus drivers

2017-04-13 Thread David Miller
From: Florian Fainelli Date: Mon, 10 Apr 2017 14:42:58 -0700 > A MDIO bus driver can set phy_mask to indicate which PHYs should be > probed and which should not. Right now, of_mdiobus_register() always > sets mdio->phy_mask to ~0 which means: don't probe anything yourself, > and let the Device Tr

Re: [PATCH tip/core/rcu 40/40] srcu: Parallelize callback handling

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 11:54:20AM +0200, Peter Zijlstra wrote: > On Wed, Apr 12, 2017 at 10:40:25AM -0700, Paul E. McKenney wrote: > > Peter Zijlstra proposed using SRCU to reduce mmap_sem contention [1], > > however, there are workloads that could result in a high volume of > > concurrent invocat

Re: [PATCH 2/3] rtmutex: deboost priority conditionally when rt-mutex unlock

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 12:40:14PM -0400, Steven Rostedt wrote: > On Thu, 13 Apr 2017 18:21:13 +0200 > Peter Zijlstra wrote: > > > On Thu, Apr 13, 2017 at 12:09:25PM -0400, Steven Rostedt wrote: > > > On Thu, 13 Apr 2017 16:39:52 +0200 > > > Peter Zijlstra wrote: > > > > > > > On Thu, Apr 13,

RE: RFC: WMI Enhancements

2017-04-13 Thread Mario.Limonciello
> -Original Message- > From: Andy Lutomirski [mailto:l...@kernel.org] > Sent: Thursday, April 13, 2017 10:58 AM > To: Limonciello, Mario > Cc: Andrew Lutomirski ; Michał Kępień ; > Darren Hart ; Rafael J. Wysocki ; > Len > Brown ; Pali Rohár ; Corentin > Chary ; Andy Shevchenko > ; linux-

Re: [PATCH tip/core/rcu 04/13] rcu: Make RCU_FANOUT_LEAF help text more explicit about skew_tick

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 06:19:48PM +0200, Peter Zijlstra wrote: > On Thu, Apr 13, 2017 at 09:03:33AM -0700, Paul E. McKenney wrote: > > On Thu, Apr 13, 2017 at 11:15:35AM +0200, Peter Zijlstra wrote: > > > On Wed, Apr 12, 2017 at 09:55:40AM -0700, Paul E. McKenney wrote: > > > > If you set RCU_FANO

[PATCH 0/4] selftests: Fix trivial nitpicks

2017-04-13 Thread SeongJae Park
This patchset fixes trivial nitpicks under selftests. SeongJae Park (4): selftests/Makefile: Add missed closing `"` in comment selftests/Makefile: Add missed PHONY targets selftests/vm/run_vmtests: Polish output text selftests/vm/run_vmtests: Fix wrong comment tools/testing/selftests/Mak

Re: [stable-4.10: PATCH] xen: revert commits 72a9b186292 and da72ff5bfcb0

2017-04-13 Thread Greg KH
On Thu, Apr 13, 2017 at 06:28:33PM +0200, Juergen Gross wrote: > On 13/04/17 18:24, Greg KH wrote: > > On Thu, Apr 13, 2017 at 04:49:49PM +0200, Juergen Gross wrote: > >> Revert commit 72a9b186292 ("xen: Remove event channel notification > >> through Xen PCI platform device") as the original analys

[PATCH 1/4] selftests/Makefile: Add missed closing `"` in comment

2017-04-13 Thread SeongJae Park
Signed-off-by: SeongJae Park --- tools/testing/selftests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index d8593f1251ec..395ab296c084 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/test

[PATCH 2/4] selftests/Makefile: Add missed PHONY targets

2017-04-13 Thread SeongJae Park
Signed-off-by: SeongJae Park --- tools/testing/selftests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 395ab296c084..26ce4f7168be 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/test

Re: RFC: WMI Enhancements

2017-04-13 Thread Darren Hart
On Thu, Apr 13, 2017 at 09:33:39AM +0200, Pali Rohár wrote: > On Wednesday 12 April 2017 16:08:54 Darren Hart wrote: > > In Windows, applications interact with WMI more or less directly. We don't > > do > > this in Linux currently, although it has been discussed in the past [3]. > > Some > > vend

Re: [PATCH tip/core/rcu 07/13] rcu: Add smp_mb__after_atomic() to sync_exp_work_done()

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 06:24:09PM +0200, Peter Zijlstra wrote: > On Thu, Apr 13, 2017 at 09:10:42AM -0700, Paul E. McKenney wrote: > > On Thu, Apr 13, 2017 at 11:18:32AM +0200, Peter Zijlstra wrote: > > > On Wed, Apr 12, 2017 at 09:55:43AM -0700, Paul E. McKenney wrote: > > > > However, a little f

Re: RFC: WMI Enhancements

2017-04-13 Thread Darren Hart
On Thu, Apr 13, 2017 at 03:55:01PM +, mario.limoncie...@dell.com wrote: > > > > -Original Message- > > From: Andy Lutomirski [mailto:l...@kernel.org] > > Sent: Thursday, April 13, 2017 10:33 AM > > To: Michał Kępień > > Cc: Darren Hart ; Rafael Wysocki ; > > Len Brown ; Pali Rohár ;

Re: [PATCH v9 2/5] virtio-balloon: VIRTIO_BALLOON_F_BALLOON_CHUNKS

2017-04-13 Thread Matthew Wilcox
On Thu, Apr 13, 2017 at 07:34:19PM +0300, Michael S. Tsirkin wrote: > So we don't need the bitmap to talk to host, it is just > a data structure we chose to maintain lists of pages, right? > OK as far as it goes but you need much better isolation for it. > Build a data structure with APIs such as _

Re: [PATCH tip/core/rcu 02/40] rcu: Make arch select smp_mb__after_unlock_lock() strength

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 06:37:57PM +0200, Peter Zijlstra wrote: > On Thu, Apr 13, 2017 at 09:26:51AM -0700, Paul E. McKenney wrote: > > > ARCH_WEAK_RELEASE_ACQUIRE actually works both ways. > > > > To see this, imagine some strange alternate universe in which the Power > > hardware guys actually

Re: [PATCH] tools: bpf_jit_disasm: Add option to dump JIT image to a file.

2017-04-13 Thread David Miller
From: David Daney Date: Tue, 11 Apr 2017 14:30:52 -0700 > When debugging the JIT on an embedded platform or cross build > environment, libbfd may not be available, making it impossible to run > bpf_jit_disasm natively. > > Add an option to emit a binary image of the JIT code to a file. This > f

Re: [RFC] Re: Costless huge virtual memory? /dev/same, /dev/null?

2017-04-13 Thread Samuel Thibault
Matthew Wilcox, on jeu. 13 avril 2017 09:34:11 -0700, wrote: > On Thu, Apr 13, 2017 at 06:29:46PM +0200, Samuel Thibault wrote: > > (Ideally we'd be able to take the MAP_HUGETLB mmap flag into account to > > map a single huge page repeatedly, even lowering the populating cost, > > but AIUI of the c

Re: [PATCH tip/core/rcu 04/13] rcu: Make RCU_FANOUT_LEAF help text more explicit about skew_tick

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 09:55:16AM -0700, Paul E. McKenney wrote: > > > To avoid people tuning huge machines having to wait for me to give > > > them an answer as to why they are suffering lock contention after > > > cranking up the value of RCU_FANOUT_LEAF. So is there a good reason to increase F

[PATCH v2] cfg80211: Fix array-bounds warning in fragment copy

2017-04-13 Thread Matthias Kaehlcke
__ieee80211_amsdu_copy_frag intentionally initializes a pointer to array[-1] to increment it later to valid values. clang rightfully generates an array-bounds warning on the initialization statement. Initialize the pointer to array[0] and change the algorithm from increment before to increment aft

Re: RFC: WMI Enhancements

2017-04-13 Thread Darren Hart
On Thu, Apr 13, 2017 at 04:54:25PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Andy Lutomirski [mailto:l...@kernel.org] > > Sent: Thursday, April 13, 2017 10:58 AM > > To: Limonciello, Mario > > Cc: Andrew Lutomirski ; Michał Kępień ; > > Darren Hart ; Rafael

Re: kvm/arm64: use-after-free in kvm_unmap_hva_handler/unmap_stage2_pmds

2017-04-13 Thread Andrey Konovalov
On Thu, Apr 13, 2017 at 5:50 PM, Suzuki K. Poulose wrote: > On Thu, Apr 13, 2017 at 10:17:54AM +0100, Suzuki K Poulose wrote: >> On 12/04/17 19:43, Marc Zyngier wrote: >> > On 12/04/17 17:19, Andrey Konovalov wrote: >> > >> > Hi Andrey, >> > >> > > Apparently this wasn't fixed, I've got this repor

Re: [PATCH v9 5/5] virtio-balloon: VIRTIO_BALLOON_F_MISC_VQ

2017-04-13 Thread Michael S. Tsirkin
On Thu, Apr 13, 2017 at 05:35:08PM +0800, Wei Wang wrote: > Add a new vq, miscq, to handle miscellaneous requests between the device > and the driver. > > This patch implemnts the VIRTIO_BALLOON_MISCQ_INQUIRE_UNUSED_PAGES implements > request sent from the device. Commands are sent from host an

[PATCH v6] Allow user probes on versioned symbols

2017-04-13 Thread Paul Clarke
Symbol versioning, as in glibc, results in symbols being defined as: @[@] (Note that "@@" identifies a default symbol, if the symbol name is repeated.) perf is currently unable to deal with this, and is unable to create user probes at such symbols: -- $ nm /lib/powerpc64le-linux-gnu/libpthread.so

Re: [PATCH tip/core/rcu 07/13] rcu: Add smp_mb__after_atomic() to sync_exp_work_done()

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 09:57:55AM -0700, Paul E. McKenney wrote: > On Thu, Apr 13, 2017 at 06:24:09PM +0200, Peter Zijlstra wrote: > > On Thu, Apr 13, 2017 at 09:10:42AM -0700, Paul E. McKenney wrote: > > > On Thu, Apr 13, 2017 at 11:18:32AM +0200, Peter Zijlstra wrote: > > > > On Wed, Apr 12, 201

Re: [PATCH v2 5/5] drm/vc4: Expose dma-buf fences for V3D rendering.

2017-04-13 Thread Eric Anholt
Daniel Vetter writes: > On Wed, Apr 12, 2017 at 12:12:02PM -0700, Eric Anholt wrote: >> This is needed for proper synchronization with display on another DRM >> device (pl111 or tinydrm) with buffers produced by vc4 V3D. Fixes the >> new igt vc4_dmabuf_poll testcase, and rendering of one of the

[PATCH v4 1/2] dt-bindings: Document the STM32 QSPI bindings

2017-04-13 Thread Ludovic Barre
From: Ludovic Barre This patch adds documentation of device tree bindings for the STM32 QSPI controller. Signed-off-by: Ludovic Barre --- .../devicetree/bindings/mtd/stm32-quadspi.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetre

[PATCH v4 0/2] mtd: spi-nor: add stm32 qspi driver

2017-04-13 Thread Ludovic Barre
From: Ludovic Barre This patch set adds a SPI-NOR driver for stm32 QSPI controller. It is a specialized SPI interface for serial Flash devices. It supports 1 or 2 Flash device with single, dual and quad SPI Flash memories. It can operate in any of the following modes: -indirect mode: all the ope

[PATCH v4 2/2] mtd: spi-nor: add driver for STM32 quad spi flash controller

2017-04-13 Thread Ludovic Barre
From: Ludovic Barre The quadspi is a specialized communication interface targeting single, dual or quad SPI Flash memories. It can operate in any of the following modes: -indirect mode: all the operations are performed using the quadspi registers -read memory-mapped mode: the external Flash mem

[PATCH] irq/affinity: Fix extra vecs calculation

2017-04-13 Thread Keith Busch
This fixes a math error calculating the extra_vecs. The error assumed only 1 cpu per vector, but the value needs to account for the actual number of cpus per vector in order to get the correct remainder for extra CPU assignment. Fixes: 7bf8222b9bd0 ("irq/affinity: Fix CPU spread for unbalanced nod

Re: [PATCH 0/2] hp-wmi: Fix dock status and tablet mode reporting

2017-04-13 Thread Darren Hart
On Thu, Apr 13, 2017 at 08:28:38AM +0200, Carlo Caione wrote: > On Sun, Apr 9, 2017 at 3:56 PM, Carlo Caione wrote: > > From: Carlo Caione > > > > Several HP laptops cannot be put to sleep using the LID since systemd > > complains > > that the system is docked even though the laptop is not even

Re: [PATCH tip/core/rcu 01/13] mm: Rename SLAB_DESTROY_BY_RCU to SLAB_TYPESAFE_BY_RCU

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 06:17:09PM +0200, Peter Zijlstra wrote: > On Thu, Apr 13, 2017 at 01:06:56PM +0200, Vlastimil Babka wrote: > > On 04/13/2017 11:12 AM, Peter Zijlstra wrote: > > > On Wed, Apr 12, 2017 at 09:55:37AM -0700, Paul E. McKenney wrote: > > >> A group of Linux kernel hackers reporte

[PATCH] x86/kbuild: Use cc-option to enable -falign-{jumps/loops}

2017-04-13 Thread Matthias Kaehlcke
clang currently does not support these optimizations, only enable them when they are available. Signed-off-by: Matthias Kaehlcke --- arch/x86/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index a94a4d10f2df..73604e18447a 10

Re: [PATCH v2 1/2] thermal: core: Allow orderly_poweroff to be called only once

2017-04-13 Thread Keerthy
On Thursday 13 April 2017 08:46 PM, Eduardo Valentin wrote: > Hey, > > On Thu, Apr 13, 2017 at 01:32:35PM +0530, Keerthy wrote: >> thermal_zone_device_check --> thermal_zone_device_update --> >> handle_thermal_trip --> handle_critical_trips --> orderly_poweroff >> >> The above sequence happens e

Re: [PATCH tip/core/rcu 04/13] rcu: Make RCU_FANOUT_LEAF help text more explicit about skew_tick

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 07:04:34PM +0200, Peter Zijlstra wrote: > On Thu, Apr 13, 2017 at 09:55:16AM -0700, Paul E. McKenney wrote: > > > > To avoid people tuning huge machines having to wait for me to give > > > > them an answer as to why they are suffering lock contention after > > > > cranking u

Re: [PATCH v2 2/2] thermal: core: Add a back up thermal shutdown mechanism

2017-04-13 Thread Keerthy
On Thursday 13 April 2017 08:55 PM, Eduardo Valentin wrote: > > Hey, > > On Thu, Apr 13, 2017 at 01:32:36PM +0530, Keerthy wrote: >> orderly_poweroff is triggered when a graceful shutdown >> of system is desired. This may be used in many critical states of the >> kernel such as when subsystems

Re: KMS question

2017-04-13 Thread Boszormenyi Zoltan
2017-04-13 18:20 keltezéssel, Ville Syrjälä írta: On Thu, Apr 13, 2017 at 11:37:45AM -0400, Ilia Mirkin wrote: On Thu, Apr 13, 2017 at 11:36 AM, Alex Deucher wrote: On Thu, Apr 13, 2017 at 11:03 AM, Boszormenyi Zoltan wrote: 2017-04-13 16:05 keltezéssel, Alex Deucher írta: On Thu, Apr 13,

Re: RFC: WMI Enhancements

2017-04-13 Thread Andy Lutomirski
On Thu, Apr 13, 2017 at 10:02 AM, Darren Hart wrote: > On Thu, Apr 13, 2017 at 03:55:01PM +, mario.limoncie...@dell.com wrote: >> >> >> > -Original Message- >> > From: Andy Lutomirski [mailto:l...@kernel.org] >> > Sent: Thursday, April 13, 2017 10:33 AM >> > To: Michał Kępień >> > Cc:

Re: [PATCH 2/2] pwm: tegra: Set maximum pwm clock source per SoC tapeout

2017-04-13 Thread Laxman Dewangan
On Thursday 13 April 2017 08:57 PM, Thierry Reding wrote: * PGP Signed by an unknown key On Thu, Apr 13, 2017 at 07:40:28PM +0530, Laxman Dewangan wrote: The PWM hardware IP is taped-out with different maximum frequency on different SoCs. From HW team: For Tegra210, it is 38.4MHz.

Re: [PATCH] selftests/vm: Set mmap()'s fd as -1 for MAP_ANONYMOUS flag

2017-04-13 Thread Shuah Khan
On 03/28/2017 05:42 PM, Andrew Morton wrote: > On Fri, 24 Mar 2017 10:47:55 -0600 Shuah Khan wrote: > >>> On Wed, Mar 15, 2017 at 10:19 PM, SeongJae Park wrote: Man page of mmap() says that portable applications should ensure fd argument to be -1 if MAP_ANONYMOUS flag is set as below:

Re: [PATCH tip/core/rcu 07/13] rcu: Add smp_mb__after_atomic() to sync_exp_work_done()

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 07:10:27PM +0200, Peter Zijlstra wrote: > On Thu, Apr 13, 2017 at 09:57:55AM -0700, Paul E. McKenney wrote: > > On Thu, Apr 13, 2017 at 06:24:09PM +0200, Peter Zijlstra wrote: > > > On Thu, Apr 13, 2017 at 09:10:42AM -0700, Paul E. McKenney wrote: > > > > On Thu, Apr 13, 201

RE: RFC: WMI Enhancements

2017-04-13 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Thursday, April 13, 2017 12:06 PM > To: Limonciello, Mario > Cc: l...@kernel.org; ker...@kempniu.pl; r...@rjwysocki.net; > len.br...@intel.com; pali.ro...@gmail.com; corentin.ch...@gmail.com; > andriy.shevche...

Re: [PATCH 0/3] selftests: config fragments update

2017-04-13 Thread Shuah Khan
On 03/20/2017 04:18 AM, Fathi Boudra wrote: > kselftest-merge target allows to enable the dependencies of kernel config > for kselftest testcases. Add config dependencies to run ftrace, lib and vm > tests. > > Fathi Boudra (3): > selftests: lib: add config fragment for bitmap, printf and prime >

Re: [PATCH tip/core/rcu 40/40] srcu: Parallelize callback handling

2017-04-13 Thread Paul E. McKenney
On Thu, Apr 13, 2017 at 09:37:10AM -0700, Paul E. McKenney wrote: > On Thu, Apr 13, 2017 at 11:50:29AM +0200, Peter Zijlstra wrote: > > On Wed, Apr 12, 2017 at 10:40:25AM -0700, Paul E. McKenney wrote: > > > Peter Zijlstra proposed using SRCU to reduce mmap_sem contention [1], > > > > Bugger, now

Re: RFC: WMI Enhancements

2017-04-13 Thread Andy Lutomirski
On Thu, Apr 13, 2017 at 10:39 AM, wrote: >> -Original Message- >> From: Darren Hart [mailto:dvh...@infradead.org] >> Sent: Thursday, April 13, 2017 12:06 PM >> To: Limonciello, Mario >> Cc: l...@kernel.org; ker...@kempniu.pl; r...@rjwysocki.net; >> len.br...@intel.com; pali.ro...@gmail.c

RE: RFC: WMI Enhancements

2017-04-13 Thread Mario.Limonciello
> -Original Message- > From: Andy Lutomirski [mailto:l...@kernel.org] > Sent: Thursday, April 13, 2017 12:33 PM > To: Darren Hart > Cc: Limonciello, Mario ; Andrew Lutomirski > ; Michał Kępień ; Rafael J. Wysocki > ; Len Brown ; Pali Rohár > ; Corentin Chary ; Andy > Shevchenko ; linux-ker

Re: [PATCH tip/core/rcu 04/13] rcu: Make RCU_FANOUT_LEAF help text more explicit about skew_tick

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 10:31:00AM -0700, Paul E. McKenney wrote: > On Thu, Apr 13, 2017 at 07:04:34PM +0200, Peter Zijlstra wrote: > > On Thu, Apr 13, 2017 at 09:55:16AM -0700, Paul E. McKenney wrote: > > > > > To avoid people tuning huge machines having to wait for me to give > > > > > them an an

Re: [PATCH v2 net-next] net: dwc-xlgmac: add the initial ethtool support

2017-04-13 Thread David Miller
From: Jie Deng Date: Wed, 12 Apr 2017 13:10:06 +0800 > It is necessary to provide ethtool support for displaying and > modifying parameters of dwc-xlgmac. > > Signed-off-by: Jie Deng > --- > v1->v2: > - remove begin() method which is unnecessary Applied, thank you.

RE: RFC: WMI Enhancements

2017-04-13 Thread Mario.Limonciello
> -Original Message- > From: Andy Lutomirski [mailto:l...@kernel.org] > Sent: Thursday, April 13, 2017 12:44 PM > To: Limonciello, Mario > Cc: Darren Hart ; Andrew Lutomirski ; > Michał Kępień ; Rafael J. Wysocki ; Len > Brown ; Pali Rohár ; Corentin > Chary ; Andy Shevchenko > ; linux-ker

Re: [PATCH tip/core/rcu 07/13] rcu: Add smp_mb__after_atomic() to sync_exp_work_done()

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 10:39:51AM -0700, Paul E. McKenney wrote: > Well, if there are no objections, I will fix up the smp_mb__before_atomic() > and smp_mb__after_atomic() pieces. Feel free. > I suppose that one alternative is the new variant of kerneldoc, though > very few of these functions h

Re: Is it safe for kthreadd to drain_all_pages?

2017-04-13 Thread Andrea Arcangeli
Hello, On Sat, Apr 08, 2017 at 07:09:10PM +0100, Mel Gorman wrote: > On Sat, Apr 08, 2017 at 10:04:20AM -0700, Hugh Dickins wrote: > > On Fri, 7 Apr 2017, Hugh Dickins wrote: > > > On Fri, 7 Apr 2017, Michal Hocko wrote: > > > > On Fri 07-04-17 09:58:17, Hugh Dickins wrote: > > > > > On Fri, 7 Apr

[PATCH] xen/9pfs: initialize len to 0 to detect xenbus_read errors

2017-04-13 Thread Stefano Stabellini
In order to use "len" to check for xenbus_read errors properly, we need to initialize len to 0 before passing it to xenbus_read. Signed-off-by: Stefano Stabellini CC: dan.carpen...@oracle.com CC: jgr...@suse.com CC: boris.ostrov...@oracle.com CC: Eric Van Hensbergen CC: Ron Minnich CC: Latchesa

Re: [PATCH tip/core/rcu 07/13] rcu: Add smp_mb__after_atomic() to sync_exp_work_done()

2017-04-13 Thread Peter Zijlstra
On Thu, Apr 13, 2017 at 07:51:36PM +0200, Peter Zijlstra wrote: > > I suppose that one alternative is the new variant of kerneldoc, though > > very few of these functions have comment headers, let alone kerneldoc > > headers. Which reminds me, the question of spin_unlock_wait() and > > spin_is_lo

Re: [PATCH v2 5/5] drm/vc4: Expose dma-buf fences for V3D rendering.

2017-04-13 Thread Eric Anholt
Daniel Vetter writes: > On Wed, Apr 12, 2017 at 12:12:02PM -0700, Eric Anholt wrote: >> This is needed for proper synchronization with display on another DRM >> device (pl111 or tinydrm) with buffers produced by vc4 V3D. Fixes the >> new igt vc4_dmabuf_poll testcase, and rendering of one of the

[PATCH 1/2] regulator: core: Only propagate voltage changes to if it can change voltages

2017-04-13 Thread Mark Brown
When we are propagating voltage changes to parent regulators don't bother if the parent does not have permission to change voltages. This simplifies error checking in the function for cases where the regulator lacks some of the voltage operations. Reported-by: Dong Aisheng Signed-off-by: Mark Br

[PATCH 2/2] regulator: core: Allow dummy regulators for supplies

2017-04-13 Thread Mark Brown
Rather than just not resolving the supply when there is explicitly no supply mapping fall through and allow a dummy supply to be substituted. Signed-off-by: Mark Brown --- drivers/regulator/core.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regul

<    1   2   3   4   5   6   7   8   9   >