Re: [PATCH 3/4] rcu: Use better variable names in funnel locking loop

2018-05-23 Thread Paul E. McKenney
On Tue, May 22, 2018 at 11:38:14PM -0700, Joel Fernandes wrote: > From: "Joel Fernandes (Google)" > > The funnel locking loop in rcu_start_this_gp uses rcu_root as a > temporary variable while walking the combining tree. This causes a > tiresome exercise of a code reader reminding themselves that

Re: [PATCH] staging: wilc1000: fix spelling mistake: "Preamle" -> "Preamble"

2018-05-23 Thread Claudiu Beznea
On 22.05.2018 19:49, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in netdev_err error message > > Signed-off-by: Colin Ian King Reviewed-by: Claudiu Beznea > --- > drivers/staging/wilc1000/host_interface.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH v5 3/3] dt-bindings: phy-qcom-qmp: Add UFS phy compatible string for sdm845

2018-05-23 Thread Rob Herring
On Wed, May 23, 2018 at 11:47:12AM +0800, Can Guo wrote: > Update the compatible string for UFS QMP PHY on SDM845. > > Signed-off-by: Can Guo > --- > Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Rob Herring

Re: [PATCH 2/4] rcu: Add comment documenting how rcu_seq_snap works

2018-05-23 Thread Paul E. McKenney
On Tue, May 22, 2018 at 11:38:13PM -0700, Joel Fernandes wrote: > From: "Joel Fernandes (Google)" > > rcu_seq_snap may be tricky to decipher. Lets document how it works with > an example to make it easier. > > Signed-off-by: Joel Fernandes (Google) Very good, queued for further review, thank y

Re: [PATCH v3 6/9] dax: introduce a ->copy_to_iter dax operation

2018-05-23 Thread Ross Zwisler
On Thu, May 03, 2018 at 05:06:37PM -0700, Dan Williams wrote: > Similar to the ->copy_from_iter() operation, a platform may want to > deploy an architecture or device specific routine for handling reads > from a dax_device like /dev/pmemX. On x86 this routine will point to a > machine check safe ve

Re: [PATCH] fuse: Ensure posix acls are translated outside of init_user_ns

2018-05-23 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > Ensure the translation happens by failing to read or write > posix acls when the filesystem has not indicated it supports > posix acls. > > This ensures that modern cached posix acl support is available > and used when dealing with posix acls. T

Re: [PATCH v2 1/3] usb: roles: intel_xhci: Always allow user control

2018-05-23 Thread Sergei Shtylyov
On 05/23/2018 05:37 PM, Heikki Krogerus wrote: > Trying to determine the USB port type with this mux is very > difficult. To simplify the situation, always allowing user s/allowing/allow/? Else the statement doesn't parse for me. :-) > control, even if the port is USB Type-C port. > > Signed

[PATCH] mtd: atmel-quadspi: add suspend/resume hooks

2018-05-23 Thread Claudiu Beznea
Implement suspend/resume hooks. Signed-off-by: Claudiu Beznea --- drivers/mtd/spi-nor/atmel-quadspi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/mtd/spi-nor/atmel-quadspi.c b/drivers/mtd/spi-nor/atmel-quadspi.c index 6c5708bacad8..85d7610fb920 100644 --

Re: [PATCH v2] PM / devfreq: Add support for QCOM devfreq firmware

2018-05-23 Thread Sudeep Holla
As mentioned on the thread that add firmware based cpufreq support, IMO these 2 bindings look too similar and can be combined or at-least aligned. On Fri, May 18, 2018 at 12:52:40AM -0700, Saravana Kannan wrote: > The firmware present in some QCOM chipsets offloads the steps necessary for > changi

Re: [PATCH v2 3/3] usb: typec: fusb302: Fix debugfs issue

2018-05-23 Thread Sergei Shtylyov
Hello! On 05/23/2018 05:37 PM, Heikki Krogerus wrote: > Removing the "fusb302" debugfs directory when unloading > the driver. That allows the driver to be loaded more then > ones. The directory will not get actually removed until it s/ones/once/? > is empty, so only after the last instance h

RE: [External] Re: [RFC PATCH v2 00/12] get rid of GFP_ZONE_TABLE/BAD

2018-05-23 Thread Huaisheng HS1 Ye
From: Michal Hocko [mailto:mho...@kernel.org] Sent: Wednesday, May 23, 2018 2:37 AM > > On Mon 21-05-18 23:20:21, Huaisheng Ye wrote: > > From: Huaisheng Ye > > > > Replace GFP_ZONE_TABLE and GFP_ZONE_BAD with encoded zone number. > > > > Delete ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 from GF

Re: [PATCH 1/4] rcu: Speed up calling of RCU tasks callbacks

2018-05-23 Thread Paul E. McKenney
On Tue, May 22, 2018 at 11:38:12PM -0700, Joel Fernandes wrote: > From: "Joel Fernandes (Google)" > > RCU tasks callbacks can take at least 1 second before the callbacks are > executed. This happens even if the hold-out tasks enter their quiescent states > quickly. I noticed this when I was testi

[PATCH] HID: Add support for 146b:0902 Bigben Interactive Kids' gamepad

2018-05-23 Thread Hanno Zulla
Hello, this is a driver for the "BigBen Interactive Kid-friendly Wired Controller PS3OFMINIPAD SONY" [1] with USB id 146b:0902. It was originally sold as a PS3 accessory and serves as a very nice gamepad for Retropie. With the help of serialusb [2], it was possible to analyze the protocol used by

[PATCH v1 2/2] cpufreq: tegra20: Use PLL_C as intermediate clock source

2018-05-23 Thread Dmitry Osipenko
PLL_C is running at 600MHz which is significantly higher than the 216MHz of the PLL_P and it is known that PLL_C is always-ON because AHB BUS is running on that PLL. Let's use PLL_C as intermediate clock source, making CPU snappier a tad during of the frequency transition. Signed-off-by: Dmitry Os

[PATCH v1 1/2] cpufreq: tegra20: Constify rate value of the intermediate clk

2018-05-23 Thread Dmitry Osipenko
PLL_P is known to be always running at 216MHz, hence there is no need to query its rate. Signed-off-by: Dmitry Osipenko --- drivers/cpufreq/tegra20-cpufreq.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/cpufreq/tegra20-cpufreq.c b/drivers/cpufreq/tegr

[PATCH v6 3/3] driver-core: print bus registration error value

2018-05-23 Thread Florian Schmaus
If driver_register() is called with an device driver which previously called bus_register() but failed, then print out the bus_register() error code. Signed-off-by: Florian Schmaus --- Notes: Make it clear in the error message that the error code is from the bus registration and *not* fr

[PATCH v6 2/3] driver-core: record error on bus registration

2018-05-23 Thread Florian Schmaus
If bus_register() fails on a driver then record the error code so that it can be inspected later on. Signed-off-by: Florian Schmaus --- Notes: Also record ENOMEM error drivers/base/bus.c | 9 +++-- include/linux/device.h | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff

[PATCH v6 1/3] driver-core: return EINVAL error instead of BUG_ON()

2018-05-23 Thread Florian Schmaus
I triggerd the BUG_ON() in driver_register() when booting a domU Xen domain. Since there was no contextual information logged, I needed to attach kgdb to determine the culprit (the wmi-bmof driver in my case). The BUG_ON() was added in commit f48f3febb2cb ("driver-core: do not register a driver wit

[PATCH v6 0/3] driver-core: return EINVAL error instead of BUG_ON()

2018-05-23 Thread Florian Schmaus
This patch series makes driver_register() emit an error message and return a failure code instead of triggering a BUG_ON(). The first patch will cause driver_register() to fail gracefully if the driver's bus was not initialized while printing out the name of the faulty driver *and* the name of the

Re: [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-05-23 Thread Mark Brown
On Wed, May 23, 2018 at 08:54:18AM -0700, Guenter Roeck wrote: > On Wed, May 23, 2018 at 6:56 AM Mark Brown wrote: > > On Wed, May 23, 2018 at 03:54:54PM +0200, Takashi Iwai wrote: > > > And I'm wondering whether we should move these definitions to uapi > > > headers. > > Yes, we should. > Are

Re: [PATCH] kernel: sys: fix potential Spectre v1

2018-05-23 Thread Dan Williams
On Wed, May 23, 2018 at 8:07 AM, Mark Rutland wrote: > On Wed, May 23, 2018 at 11:08:40AM +0200, Peter Zijlstra wrote: >> >> Sorry for being late to the party.. > > Likewise! > >> On Wed, May 23, 2018 at 12:03:57AM -0500, Gustavo A. R. Silva wrote: >> > +#define validate_index_nospec(index, size)

Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-23 Thread Mark Brown
On Wed, May 23, 2018 at 08:50:22AM -0700, Doug Anderson wrote: > On Wed, May 23, 2018 at 8:40 AM, Mark Brown wrote: > > It's got to be valid to think about the voltage of a disabled regulator > > since drivers want to be able make sure that the regulator gets enabled > > with a sensible config.

Re: [PATCH] ppp: remove the PPPIOCDETACH ioctl

2018-05-23 Thread David Miller
From: Guillaume Nault Date: Wed, 23 May 2018 15:57:08 +0200 > I'd rather add > + if (cmd == PPPIOCDETACH) { > + err = -EINVAL; > + goto out; > + } > > Making PPPIOCDETACH unknown to ppp_generic means that the ioctl would > be handled by the underlying channel when

Re: [PATCH v2 3/7] mm, devm_memremap_pages: Fix shutdown handling

2018-05-23 Thread Dan Williams
On Wed, May 23, 2018 at 8:47 AM, Logan Gunthorpe wrote: > > > On 22/05/18 11:10 PM, Dan Williams wrote: >> diff --git a/include/linux/memremap.h b/include/linux/memremap.h >> index 7b4899c06f49..b5e894133cf6 100644 >> --- a/include/linux/memremap.h >> +++ b/include/linux/memremap.h >> @@ -106,6 +1

Re: [PATCH] kdump: add default crashkernel reserve kernel config options

2018-05-23 Thread Eric W. Biederman
Dave Young writes: > [snip] > >> > >> > +config CRASHKERNEL_DEFAULT_THRESHOLD_MB >> > + int "System memory size threshold for kdump memory default reserving" >> > + depends on CRASH_CORE >> > + default 0 >> > + help >> > +CRASHKERNEL_DEFAULT_MB is used as default crashkernel value if >>

Re: [PATCH v2] packet: track ring entry use using a shadow ring to prevent RX ring overrun

2018-05-23 Thread Willem de Bruijn
On Wed, May 23, 2018 at 11:29 AM, Jon Rosen (jrosen) wrote: > > >> -Original Message- >> From: Willem de Bruijn [mailto:willemdebruijn.ker...@gmail.com] >> Sent: Wednesday, May 23, 2018 9:37 AM >> To: Jon Rosen (jrosen) >> Cc: David S. Miller ; Willem de Bruijn >> ; Eric Dumazet >> ; Kee

Re: [alsa-devel] [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-05-23 Thread Mark Brown
On Wed, May 23, 2018 at 07:49:35AM -0700, Guenter Roeck wrote: > I want to be able to swap kernel versions without having to update the root > file system. That doesn't work if I have to use v4 configuration files for > v4.4 and older kernels, and v5 configuration files for v4.9 and later > kernel

Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-23 Thread Doug Anderson
Hi, On Wed, May 23, 2018 at 8:40 AM, Mark Brown wrote: > On Wed, May 23, 2018 at 08:23:22AM -0700, Doug Anderson wrote: >> Hi, >> >> On Wed, May 23, 2018 at 1:29 AM, Mark Brown wrote: >> >> > It's arguable either way - you could say that the client gets to specify >> > a safe range at all times

Re: B53 DSA switch problem on Banana Pi-R1 on Fedora 26

2018-05-23 Thread Florian Fainelli
On 05/23/2018 08:28 AM, Florian Fainelli wrote: > > > On 05/22/2018 09:49 PM, Gerhard Wiesinger wrote: >> On 22.05.2018 22:42, Florian Fainelli wrote: >>> On 05/22/2018 01:16 PM, Andrew Lunn wrote: > Planned network structure will be as with 4.7.x kernels: > > br0 <=> eth0.101 <=> e

Re: [PATCH v2] PCI: qcom: add runtime pm support to pcie_port

2018-05-23 Thread Lorenzo Pieralisi
On Wed, May 23, 2018 at 11:44:25AM +0100, Srinivas Kandagatla wrote: > This patch is required when the pcie controller sits on a bus with > its own power domain and clocks which are controlled via a bus driver > like simple pm bus. As these bus driver have runtime pm enabled, it makes > sense to up

Re: [PATCH v2 4/7] mm, devm_memremap_pages: Add MEMORY_DEVICE_PRIVATE support

2018-05-23 Thread Logan Gunthorpe
On 22/05/18 11:10 PM, Dan Williams wrote: > In preparation for consolidating all ZONE_DEVICE enabling via > devm_memremap_pages(), teach it how to handle the constraints of > MEMORY_DEVICE_PRIVATE ranges. > > Cc: Christoph Hellwig > Cc: "Jérôme Glisse" > Reported-by: Logan Gunthorpe > Signed-

Re: [PATCH v2 3/7] mm, devm_memremap_pages: Fix shutdown handling

2018-05-23 Thread Logan Gunthorpe
On 22/05/18 11:10 PM, Dan Williams wrote: > diff --git a/include/linux/memremap.h b/include/linux/memremap.h > index 7b4899c06f49..b5e894133cf6 100644 > --- a/include/linux/memremap.h > +++ b/include/linux/memremap.h > @@ -106,6 +106,7 @@ typedef void (*dev_page_free_t)(struct page *page, void >

Re: [RFC PATCH 0/6] net: ethernet: ti: cpsw: add MQPRIO and CBS Qdisc offload

2018-05-23 Thread Grygorii Strashko
Hi Ivan, On 05/18/2018 04:15 PM, Ivan Khoronzhuk wrote: This series adds MQPRIO and CBS Qdisc offload for TI cpsw driver. It potentially can be used in audio video bridging (AVB) and time sensitive networking (TSN). Patchset was tested on AM572x EVM and BBB boards. Last patch from this series a

Re: [PATCH v6 3/6] dt-bindings: clock: renesas,rzn1-clocks: document RZ/N1 clock driver

2018-05-23 Thread Rob Herring
On Wed, May 23, 2018 at 1:52 AM, M P wrote: > Hi Rob, > > On Tue, 22 May 2018 at 17:09, Rob Herring wrote: > >> On Tue, May 22, 2018 at 11:01:23AM +0100, Michel Pollet wrote: >> > The Renesas RZ/N1 Family (Part #R9A06G0xx) requires a driver >> > to provide the SoC clock infrastructure for Linux.

Re: [PATCH v11 0/2] Kryo CPU scaling driver

2018-05-23 Thread Sudeep Holla
On Wed, May 23, 2018 at 06:34:06PM +0300, Ilia Lin wrote: > It may be merged alone safely. However to actually work, it needs a clock > driver as well, and the OPP tables in tue device tree. Those are submitted now > 8n 2 separate series. This is in order to provide each maintainer with domain > sp

Re: [PATCH v5 1/2] xen/PVH: Set up GS segment for stack canary

2018-05-23 Thread Jan Beulich
>>> On 23.05.18 at 16:30, wrote: > @@ -98,6 +101,12 @@ ENTRY(pvh_start_xen) > /* 64-bit entry point. */ > .code64 > 1: > + /* Set base address in stack canary descriptor. */ > + mov $MSR_GS_BASE,%ecx > + mov $_pa(canary), %rax > + xor %rdx, %rdx Why rax and rdx instea

Re: WARNING in ip_recv_error

2018-05-23 Thread Willem de Bruijn
On Sun, May 20, 2018 at 7:13 PM, Willem de Bruijn wrote: > On Fri, May 18, 2018 at 2:59 PM, Willem de Bruijn > wrote: >> On Fri, May 18, 2018 at 2:46 PM, Willem de Bruijn >> wrote: >>> On Fri, May 18, 2018 at 2:44 PM, Willem de Bruijn >>> wrote: On Fri, May 18, 2018 at 1:09 PM, Willem de B

Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-23 Thread Mark Brown
On Wed, May 23, 2018 at 08:23:22AM -0700, Doug Anderson wrote: > Hi, > > On Wed, May 23, 2018 at 1:29 AM, Mark Brown wrote: > > > It's arguable either way - you could say that the client gets to specify > > a safe range at all times or you could say that the machine constraints > > should cover

Re: [PATCH v5 20/28] fpga: dfl: add fpga bridge platform driver for FME

2018-05-23 Thread Wu Hao
On Wed, May 23, 2018 at 10:15:00AM -0500, Alan Tull wrote: > On Tue, May 1, 2018 at 9:50 PM, Wu Hao wrote: > > Hi Hao, > > > This patch adds fpga bridge platform driver for FPGA Management Engine. > > It implements the enable_set callback for fpga bridge. > > > > Signed-off-by: Tim Whisonant >

Re: [PATCH net-next v3 0/7] Add support for QCA8334 switch

2018-05-23 Thread Florian Fainelli
On 05/22/2018 11:20 PM, Michal Vokáč wrote: > This series basically adds support for a QCA8334 ethernet switch to the > qca8k driver. It is a four-port variant of the already supported seven > port QCA8337. Register map is the same for the whole familly and all chips > have the same device ID. >

[ANNOUNCE] 3.18.109-rt102

2018-05-23 Thread Tom Zanussi
Hello RT Folks! I'm pleased to announce the 3.18.109-rt102 stable release. This release is just an update to the new stable 3.18.109 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-r

Re: [PATCH net-next v3 2/7] net: dsa: qca8k: Add support for QCA8334 switch

2018-05-23 Thread Florian Fainelli
On 05/22/2018 11:20 PM, Michal Vokáč wrote: > Add support for the four-port variant of the Qualcomm QCA833x switch. > > Signed-off-by: Michal Vokáč > Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next v3 1/7] net: dsa: qca8k: Add QCA8334 binding documentation

2018-05-23 Thread Florian Fainelli
On 05/22/2018 11:20 PM, Michal Vokáč wrote: > Add support for the four-port variant of the Qualcomm QCA833x switch. > > The CPU port default link settings can be reconfigured using > a fixed-link sub-node. > > Signed-off-by: Michal Vokáč > Reviewed-by: Rob Herring > Reviewed-by: Andrew Lunn

linux-kernel@vger.kernel.org

2018-05-23 Thread Will Deacon
[+Boqun] On Wed, May 23, 2018 at 08:25:06AM -0700, Linus Torvalds wrote: > On Wed, May 23, 2018 at 6:05 AM Will Deacon wrote: > > > Please use a newer kernel. We've addressed this in mainline by moving > > arm64 over to the qrwlock implementation which (after some other changes) > > guarantees f

[PATCH v2] fs: ocfs2: Adding new return type vm_fault_t

2018-05-23 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Ref-> commit 1c8f422059ae ("mm: change return type to vm_fault_t") vmf_err

RE: [PATCH v2] packet: track ring entry use using a shadow ring to prevent RX ring overrun

2018-05-23 Thread Jon Rosen (jrosen)
> -Original Message- > From: Willem de Bruijn [mailto:willemdebruijn.ker...@gmail.com] > Sent: Wednesday, May 23, 2018 9:37 AM > To: Jon Rosen (jrosen) > Cc: David S. Miller ; Willem de Bruijn > ; Eric Dumazet > ; Kees Cook ; David Windsor > ; Rosen, > Rami ; Reshetova, Elena ; > Mike

Re: B53 DSA switch problem on Banana Pi-R1 on Fedora 26

2018-05-23 Thread Florian Fainelli
On 05/22/2018 09:49 PM, Gerhard Wiesinger wrote: > On 22.05.2018 22:42, Florian Fainelli wrote: >> On 05/22/2018 01:16 PM, Andrew Lunn wrote: Planned network structure will be as with 4.7.x kernels: br0 <=> eth0.101 <=> eth0 (vlan 101 tagged) <=> lan 1-lan4 (vlan 101 untagged

linux-kernel@vger.kernel.org

2018-05-23 Thread Linus Torvalds
On Wed, May 23, 2018 at 6:05 AM Will Deacon wrote: > Please use a newer kernel. We've addressed this in mainline by moving > arm64 over to the qrwlock implementation which (after some other changes) > guarantees forward progress for well-behaved readers and writers. Oh, I didn't even realize tha

Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-23 Thread Doug Anderson
Hi, On Wed, May 23, 2018 at 1:29 AM, Mark Brown wrote: > It's arguable either way - you could say that the client gets to specify > a safe range at all times or you could say that the machine constraints > should cover all cases where the hardware is idling. Of course RPMh > is missing anything

Re: [PATCH 01/10] mm: pagecache add lock

2018-05-23 Thread Christoph Hellwig
On Sun, May 20, 2018 at 06:45:24PM -0400, Kent Overstreet wrote: > > > > Honestly I think this probably should be in the core. But IFF we move > > it to the core the existing users of per-fs locks need to be moved > > over first. E.g. XFS as the very first one, and at least ext4 and f2fs > > tha

Re: [PATCH 06/12] arm64: Implement hw_breakpoint_arch_parse()

2018-05-23 Thread Will Deacon
On Sat, May 19, 2018 at 04:45:43AM +0200, Frederic Weisbecker wrote: > Migrate to the new API in order to remove arch_validate_hwbkpt_settings() > that clumsily mixes up architecture validation and commit. > > Signed-off-by: Frederic Weisbecker > Cc: Linus Torvalds > Cc: Andy Lutomirski > Cc: Y

[RFC PATCH v3 0/9] get rid of GFP_ZONE_TABLE/BAD

2018-05-23 Thread Huaisheng Ye
From: Huaisheng Ye Changes since v2: [2] * According to Christoph's suggestion, rebase patches to current mainline from v4.16. * Follow the advice of Matthew, create macros like GFP_NORMAL and GFP_NORMAL_UNMOVABLE to clear bottom 3 and 4 bits of GFP bitmask. * Delete some patches because of

[RFC PATCH v3 2/9] include/linux/dma-mapping: update usage of zone modifiers

2018-05-23 Thread Huaisheng Ye
From: Huaisheng Ye Use __GFP_ZONE_MASK to replace (__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32). ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 have been deleted from GFP bitmasks, the bottom three bits of GFP mask is reserved for storing encoded zone number. __GFP_DMA, __GFP_HIGHMEM and __GFP_DMA32 sh

[RFC PATCH v3 9/9] arch/x86/include/asm/page.h: update usage of movableflags

2018-05-23 Thread Huaisheng Ye
From: Huaisheng Ye GFP_HIGHUSER_MOVABLE doesn't equal to GFP_HIGHUSER | __GFP_MOVABLE, modify it to adapt patch of getting rid of GFP_ZONE_TABLE/BAD. Signed-off-by: Huaisheng Ye Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Kate Stewart Cc: Greg Kroah-Hartman Cc: x...@kernel

[RFC PATCH v3 4/9] fs/btrfs/extent_io: update usage of zone modifiers

2018-05-23 Thread Huaisheng Ye
From: Huaisheng Ye Use __GFP_ZONE_MASK to replace (__GFP_DMA32 | __GFP_HIGHMEM). In function alloc_extent_state, it is obvious that __GFP_DMA is not the expecting zone type. ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 have been deleted from GFP bitmasks, the bottom three bits of GFP mask is res

[RFC PATCH v3 8/9] include/linux/highmem.h: update usage of movableflags

2018-05-23 Thread Huaisheng Ye
From: Huaisheng Ye GFP_HIGHUSER_MOVABLE doesn't equal to GFP_HIGHUSER | __GFP_MOVABLE, modify it to adapt patch of getting rid of GFP_ZONE_TABLE/BAD. Signed-off-by: Huaisheng Ye Cc: Kate Stewart Cc: Greg Kroah-Hartman Cc: Thomas Gleixner Cc: Philippe Ombredanne Cc: Christoph Hellwig --- i

[RFC PATCH v3 7/9] mm/zsmalloc: update usage of zone modifiers

2018-05-23 Thread Huaisheng Ye
From: Huaisheng Ye Use __GFP_ZONE_MOVABLE to replace (__GFP_HIGHMEM | __GFP_MOVABLE). ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 have been deleted from GFP bitmasks, the bottom three bits of GFP mask is reserved for storing encoded zone number. __GFP_ZONE_MOVABLE contains encoded ZONE_MOVABLE

[RFC PATCH v3 1/9] include/linux/gfp.h: get rid of GFP_ZONE_TABLE/BAD

2018-05-23 Thread Huaisheng Ye
From: Huaisheng Ye Replace GFP_ZONE_TABLE and GFP_ZONE_BAD with encoded zone number. Delete ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 from GFP bitmasks, the bottom three bits of GFP mask is reserved for storing encoded zone number. The encoding method is XOR. Get zone number from enum zone_ty

[RFC PATCH v3 5/9] drivers/block/zram/zram_drv: update usage of zone modifiers

2018-05-23 Thread Huaisheng Ye
From: Huaisheng Ye Use __GFP_ZONE_MOVABLE to replace (__GFP_HIGHMEM | __GFP_MOVABLE). ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 have been deleted from GFP bitmasks, the bottom three bits of GFP mask is reserved for storing encoded zone number. __GFP_ZONE_MOVABLE contains encoded ZONE_MOVABLE

[RFC PATCH v3 3/9] drivers/xen/swiotlb-xen: update usage of zone modifiers

2018-05-23 Thread Huaisheng Ye
From: Huaisheng Ye Use __GFP_ZONE_MASK to replace (__GFP_DMA | __GFP_HIGHMEM). In function xen_swiotlb_alloc_coherent, it is obvious that __GFP_DMA32 is not the expecting zone type. ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 have been deleted from GFP bitmasks, the bottom three bits of GFP mas

[PATCH v1 02/10] mm/page_ext.c: support online/offline of memory < section size

2018-05-23 Thread David Hildenbrand
Right now, we would free the extended page data if parts of a section are offlined or if onlining is aborted, although still some pages are online. We can simply check if the section is online to see if we are allowed to free. init_section_page_ext() already takes care of the allocation part for s

[RFC PATCH v3 6/9] mm/vmpressure: update usage of zone modifiers

2018-05-23 Thread Huaisheng Ye
From: Huaisheng Ye Use __GFP_ZONE_MOVABLE to replace (__GFP_HIGHMEM | __GFP_MOVABLE). ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 have been deleted from GFP bitmasks, the bottom three bits of GFP mask is reserved for storing encoded zone number. __GFP_ZONE_MOVABLE contains encoded ZONE_MOVABLE

Re: [PATCH v5 20/28] fpga: dfl: add fpga bridge platform driver for FME

2018-05-23 Thread Alan Tull
On Tue, May 1, 2018 at 9:50 PM, Wu Hao wrote: Hi Hao, > This patch adds fpga bridge platform driver for FPGA Management Engine. > It implements the enable_set callback for fpga bridge. > > Signed-off-by: Tim Whisonant > Signed-off-by: Enno Luebbers > Signed-off-by: Shiva Rao > Signed-off-by:

Re: [PATCH] nvme: host: core: fix precedence of ternary operator

2018-05-23 Thread Keith Busch
Thanks, applied.

Re: [v4 07/11] dt-bindings: hwmon: Add documents for PECI hwmon client drivers

2018-05-23 Thread Rob Herring
On Tue, May 22, 2018 at 12:18 PM, Jae Hyun Yoo wrote: > On 5/22/2018 9:42 AM, Rob Herring wrote: >> >> On Mon, May 21, 2018 at 12:59:05PM -0700, Jae Hyun Yoo wrote: >>> >>> This commit adds dt-bindings documents for PECI hwmon client drivers. >>> >>> Signed-off-by: Jae Hyun Yoo >>> Reviewed-by: H

[PATCH v1 04/10] kdump: include PAGE_OFFLINE_MAPCOUNT_VALUE in VMCOREINFO

2018-05-23 Thread David Hildenbrand
This allows dump tools to skip pages that are offline. Cc: Andrew Morton Cc: Dave Young Cc: Baoquan He Cc: Hari Bathini Cc: "Kirill A. Shutemov" Signed-off-by: David Hildenbrand --- kernel/crash_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/crash_core.c b/kernel/crash_co

Re: [PATCH v2 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ FW bindings

2018-05-23 Thread Sudeep Holla
On 19/05/18 18:34, Taniya Das wrote: > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > SoCs. This is required for managing the cpu frequency transitions which are > controlled by firmware. > > Signed-off-by: Taniya Das > --- > .../bindings/cpufreq/cpufreq-qcom-fw.txt

[PATCH v1 01/10] mm: introduce and use PageOffline()

2018-05-23 Thread David Hildenbrand
offline_pages() theoretically works on sub-section sizes. Problem is that we have no way to know which pages are actually offline. So right now, offline_pages() will always mark the whole section as offline. In addition, in virtualized environments, we might soon have pages that are logically offl

[PATCH v1 05/10] mm/memory_hotplug: limit offline_pages() to sizes we can actually handle

2018-05-23 Thread David Hildenbrand
We have to take care of MAX_ORDER. Page blocks might contain references to the next page block. So sometimes a page block cannot be offlined independently. E.g. on x86: page block size is 2MB, MAX_ORDER -1 (10) allows 4MB allocations. E.g. a buddy page could either overlap at the beginning or the

[PATCH v1 06/10] mm/memory_hotplug: onlining pages can only fail due to notifiers

2018-05-23 Thread David Hildenbrand
Onlining pages can only fail if a notifier reported a problem (e.g. -ENOMEM). Remove and restructure error handling. While at it, document how online_pages() can be used right now. Cc: Andrew Morton Cc: Michal Hocko Cc: Vlastimil Babka Cc: Dan Williams Cc: Reza Arbab Cc: Pavel Tatashin Cc: T

[PATCH v1 07/10] mm/memory_hotplug: print only with DEBUG_VM in online/offline_pages()

2018-05-23 Thread David Hildenbrand
Let's try to minimze the noise. Cc: Andrew Morton Cc: Michal Hocko Cc: Vlastimil Babka Cc: Dan Williams Cc: Reza Arbab Cc: Pavel Tatashin Cc: Thomas Gleixner Signed-off-by: David Hildenbrand --- mm/memory_hotplug.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/mm/memory_hotplu

[PATCH v1 10/10] mm/memory_hotplug: allow online/offline memory by a kernel module

2018-05-23 Thread David Hildenbrand
Kernel modules that want to control how/when memory is onlined/offlined need a proper interface to these functions. Also, for adding memory properly, memory_block_size_bytes is required. Cc: Greg Kroah-Hartman Cc: Andrew Morton Cc: Vlastimil Babka Cc: Michal Hocko Cc: Dan Williams Cc: Pavel T

[PATCH v1 08/10] mm/memory_hotplug: allow to control onlining/offlining of memory by a driver

2018-05-23 Thread David Hildenbrand
Some devices (esp. paravirtualized) might want to control - when to online/offline a memory block - how to online memory (MOVABLE/NORMAL) - in which granularity to online/offline memory So let's add a new flag "driver_managed" and disallow to change the state by user space. Device onlining/offlini

[PATCH v1 09/10] mm/memory_hotplug: teach offline_pages() to not try forever

2018-05-23 Thread David Hildenbrand
It can easily happen that we get stuck forever trying to offline pages - e.g. on persistent errors. Let's add a way to change this behavior and fail fast. This is interesting if offline_pages() is called from a driver and we just want to find some block to offline. Cc: Benjamin Herrenschmidt Cc

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Heiko Stübner
Hi Rob, Levin, sorry for being late to the party. Am Mittwoch, 23. Mai 2018, 16:43:07 CEST schrieb Rob Herring: > On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: > > On 2018-05-23 2:02 AM, Rob Herring wrote: > >> On Fri, May 18, 2018 at 11:52:05AM +0800, d...@t-chip.com.cn wrote: > >>> From: Le

[PATCH v1 00/10] mm: online/offline 4MB chunks controlled by device driver

2018-05-23 Thread David Hildenbrand
This is now the !RFC version. I did some additional tests and inspected all memory notifiers. At least page_ext and kasan need fixes. == I am right now working on a paravirtualized memory device ("virtio-mem"). These devices control a memory region and the amount of memory available via i

[PATCH v1 03/10] kasan: prepare for online/offline of different start/size

2018-05-23 Thread David Hildenbrand
The memory notifier has an important restriction right now: it only works if offline_pages() is called with the same parameters as online_pages(). To overcome this restriction, let's handle it per section. We could do it in smaller granularity, but then we get more vm_area overhead and cannot chec

Re: [PATCH 2/3] drm/scheduler: Don't call wait_event_killable for signaled process.

2018-05-23 Thread Andrey Grodzovsky
On 05/01/2018 10:35 AM, Oleg Nesterov wrote: On 04/30, Andrey Grodzovsky wrote: On 04/30/2018 12:00 PM, Oleg Nesterov wrote: On 04/30, Andrey Grodzovsky wrote: What about changing PF_SIGNALED to  PF_EXITING in drm_sched_entity_do_release -   if ((current->flags & PF_SIGNALED) && current

Re: [PATCH] kernel: sys: fix potential Spectre v1

2018-05-23 Thread Mark Rutland
On Wed, May 23, 2018 at 11:08:40AM +0200, Peter Zijlstra wrote: > > Sorry for being late to the party.. Likewise! > On Wed, May 23, 2018 at 12:03:57AM -0500, Gustavo A. R. Silva wrote: > > +#define validate_index_nospec(index, size)\ > > +({

Re: [PATCH] nvme: host: core: fix precedence of ternary operator

2018-05-23 Thread Max Gurtovoy
On 5/23/2018 5:56 PM, Ivan Bornyakov wrote: Ternary operator have lower precedence then bitwise or, so 'cdw10' was calculated wrong. Signed-off-by: Ivan Bornyakov --- drivers/nvme/host/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nvme/host/core.c b

Re: [PATCH v3] nvme: fix lockdep warning in nvme_mpath_clear_current_path

2018-05-23 Thread Keith Busch
Thanks for the ping. I started a new branch, nvme-4.18-2, based off of Jens' for-next with this being the first new commit. I'm certain we're still missing a lot of reviewed commits. I'll try to go through the mail history and apply by the end of the week, but any friendly reminders would not be u

Re: [alsa-devel] [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-05-23 Thread Takashi Iwai
On Wed, 23 May 2018 16:49:35 +0200, Guenter Roeck wrote: > > On Wed, May 23, 2018 at 6:56 AM Takashi Iwai wrote: > > > > > > > > My point was a bit different: distributions like Gallium start without > > > the relevant topology files and UCM settings, and we should have a > > > reference to quick

Re: [PATCH RT] arm64: fpsimd: use a local_lock() in addition to local_bh_disable()

2018-05-23 Thread Dave Martin
On Wed, May 23, 2018 at 04:31:56PM +0200, Sebastian Andrzej Siewior wrote: > On 2018-05-17 19:19:43 [+0100], Dave Martin wrote: > > On Thu, May 17, 2018 at 02:40:06PM +0200, Sebastian Andrzej Siewior wrote: > > > In v4.16-RT I noticed a number of warnings from task_fpsimd_load(). The > > > code dis

Re: [PATCH v3] nvme: fix lockdep warning in nvme_mpath_clear_current_path

2018-05-23 Thread Johannes Thumshirn
Keith, Sagi, Christoph ping? -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fin

[PATCH] nvme: host: core: fix precedence of ternary operator

2018-05-23 Thread Ivan Bornyakov
Ternary operator have lower precedence then bitwise or, so 'cdw10' was calculated wrong. Signed-off-by: Ivan Bornyakov --- drivers/nvme/host/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index b070c659391f..1eba

Re: [RFC PATCH 5/5] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-05-23 Thread Sricharan R
Hi Bjorn, On 5/23/2018 1:07 PM, Vinod wrote: > On 22-05-18, 23:58, Bjorn Andersson wrote: >> On Tue 22 May 23:05 PDT 2018, Vinod wrote: >> >>> On 22-05-18, 22:20, Bjorn Andersson wrote: >>> +static int q6v5_wcss_reset(struct q6v5_wcss *wcss) +{ + int ret; + u32 val; + i

Re: [PATCH 1/5] PCI/AER: Define and allocate aer_stats structure for AER capable devices

2018-05-23 Thread Steven Rostedt
On Wed, 23 May 2018 09:33:30 -0500 "Alex G." wrote: > > Well I'll agree to disagree with Linus on this one. It's ugly as fsck > > and allows for ambiguous statements in the code. > > You misspelled "fuck". No, Jes is Danish. That's how they spell it. -- Steve

Re: [PATCH] Use 'imply' with SEV Kconfig CRYPTO dependencies

2018-05-23 Thread Borislav Petkov
+ Tom and Brijesh. On Mon, May 21, 2018 at 10:12:53AM -0500, Janakarajan Natarajan wrote: > Use Kconfig imply 'option' when specifying SEV CRYPTO dependencies. > > Example configuration: > . > . > CONFIG_CRYPTO_DEV_CCP=y > CONFIG_CRYPTO_DEV_CCP_DD=m > CONFIG_CRYPTO_DEV_SP_CCP=y > CONFIG_CRYPTO_DE

Re: [PATCH v1] cpufreq: tegra20: Fix imbalanced clock enable count

2018-05-23 Thread Dmitry Osipenko
On 23.05.2018 13:44, Dmitry Osipenko wrote: > On 23.05.2018 08:58, Viresh Kumar wrote: >> On 23-05-18, 00:14, Dmitry Osipenko wrote: >>> Tegra20-cpufreq driver missed enabling the CPU clocks. This results in a >>> clock-enable refcount disbalance on PLL_P <-> PLL_X reparent, causing >>> PLL_X to ge

Re: [PATCH v5 11/13] KVM: s390: implement mediated device open callback

2018-05-23 Thread Tony Krowiak
On 05/16/2018 04:03 AM, Pierre Morel wrote: On 07/05/2018 17:11, Tony Krowiak wrote: Implements the open callback on the mediated matrix device. The function registers a group notifier to receive notification of the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the vfio_ap device driver will g

[PATCH v2] gpu: drm: gma500: Change return type to vm_fault_t

2018-05-23 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Ref-> commit 1c8f422059ae ("mm: change return type to vm_fault_t") Previou

Re: [PATCH v2 2/5] gpio: syscon: Add gpio-syscon for rockchip

2018-05-23 Thread Rob Herring
On Tue, May 22, 2018 at 9:02 PM, Levin Du wrote: > On 2018-05-23 2:02 AM, Rob Herring wrote: >> >> On Fri, May 18, 2018 at 11:52:05AM +0800, d...@t-chip.com.cn wrote: >>> >>> From: Levin Du >>> >>> Some GPIOs sit in the GRF_SOC_CON registers of Rockchip SoCs, >>> which do not belong to the genera

Re: [PATCH 25/33] ima: use match_string() helper

2018-05-23 Thread Mimi Zohar
On Mon, 2018-05-21 at 19:58 +0800, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used intead of open coded variant. > > Cc: Mimi Zohar > Cc: Dmitry Kasatkin > Cc: James Morris > Cc: "Serge E. Hallyn" > Cc: linux-integr...@vger.kernel.or

Re: [PATCH v2] PM / devfreq: Add support for QCOM devfreq firmware

2018-05-23 Thread Rob Herring
On Tue, May 22, 2018 at 1:30 PM, Saravana Kannan wrote: > On 05/22/2018 11:08 AM, Rob Herring wrote: >> >> On Fri, May 18, 2018 at 12:52:40AM -0700, Saravana Kannan wrote: >>> >>> The firmware present in some QCOM chipsets offloads the steps necessary >>> for >>> changing the frequency of some dev

[PATCH v2 1/3] usb: roles: intel_xhci: Always allow user control

2018-05-23 Thread Heikki Krogerus
Trying to determine the USB port type with this mux is very difficult. To simplify the situation, always allowing user control, even if the port is USB Type-C port. Signed-off-by: Heikki Krogerus --- .../usb/roles/intel-xhci-usb-role-switch.c| 21 +-- 1 file changed, 1 insert

[PATCH v2 2/3] platform: x86: intel_cht_int33fe: Fix dependencies

2018-05-23 Thread Heikki Krogerus
The driver will not probe unless bq24190 is loaded, so making it a dependency. Signed-off-by: Heikki Krogerus Cc: Wolfram Sang Cc: Darren Hart Cc: Andy Shevchenko --- drivers/i2c/busses/Kconfig | 3 +-- drivers/platform/x86/Kconfig | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-)

Re: [PATCH v5 10/13] s390: vfio-ap: sysfs interface to view matrix mdev matrix

2018-05-23 Thread Tony Krowiak
On 05/16/2018 03:55 AM, Pierre Morel wrote: On 07/05/2018 17:11, Tony Krowiak wrote: Provides a sysfs interface to view the AP matrix configured for the mediated matrix device. The relevant sysfs structures are: /sys/devices/vfio_ap ... [matrix] .. [mdev_supported_types] . [vfio_ap

[PATCH v2 3/3] usb: typec: fusb302: Fix debugfs issue

2018-05-23 Thread Heikki Krogerus
Removing the "fusb302" debugfs directory when unloading the driver. That allows the driver to be loaded more then ones. The directory will not get actually removed until it is empty, so only after the last instance has been removed. This fixes an issue where the driver can't be re-loaded if it has

[PATCH v2 0/3] [PATCH 0/4] usb: typec: fixes for Cherry Trails

2018-05-23 Thread Heikki Krogerus
Hi, This is second version of the remaining patches that fix various problems I encountered while testing my USB Type-C Alternate Mode patches with GPD Win board (Intel Cherry Trail based). In this version I've addressed the problems pointed out by Hans and Guenter. Link to the original version:

Re: [PATCH RT] arm64: fpsimd: use a local_lock() in addition to local_bh_disable()

2018-05-23 Thread Sebastian Andrzej Siewior
On 2018-05-18 13:46:36 [+0100], Dave Martin wrote: > On Thu, May 17, 2018 at 07:19:43PM +0100, Dave Martin wrote: > > [...] > > > kernel_neon_begin() could then do > > > > local_fpsimd_context_lock(); > > > > /* ... */ > > > > preempt_disable(); > > local_unlock(fpsimd_context_

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