[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

Re: [PATCH] usb: hub: Per-port setting to use old enumeration scheme

2018-05-23 Thread Greg Kroah-Hartman
On Wed, May 23, 2018 at 10:03:55AM -0400, Alan Stern wrote: > On Wed, 23 May 2018, Nicolas Boichat wrote: > > > The "old" enumeration scheme is considerably faster (it takes > > ~294ms instead of ~439ms to get the descriptor). > > > > It is currently only possible to use the old scheme globally >

Re: [PATCH 1/2] slimbus: ngd: dt-bindings: Add slim ngd dt bindings

2018-05-23 Thread Rob Herring
On Wed, May 16, 2018 at 05:51:17PM +0100, Srinivas Kandagatla wrote: > This patch adds bindings for Qualcomm SLIMBus NGD controller found in > all new SoCs starting from B family. > SLIMBus NGD controller is a light-weight driver responsible for > communicating with SLIMBus slaves directly over the

Re: [PATCH] perf/ring_buffer: ensure atomicity and order of updates

2018-05-23 Thread Will Deacon
On Thu, May 10, 2018 at 02:06:32PM +0100, Mark Rutland wrote: > Userspace can read/write the user page at any point in time, and in > perf_output_put_handle() we're very careful to use memory barriers to > ensure ordering between updates to data and the user page. > > We don't use barriers when up

Re: [PATCH 01/14] memory: ti-emif-sram: Add resume function to recopy sram code

2018-05-23 Thread Santosh Shilimkar
On 5/23/2018 1:47 AM, Keerthy wrote: On Monday 16 April 2018 03:59 PM, Keerthy wrote: [..] Instead of this indirect method , why can't just check the previous deep sleep mode and based on that do copy or not. EMIF power status register should have something like that ? I will check if w

Re: [PATCH] of: overlay: validate offset from property fixups

2018-05-23 Thread Rob Herring
On Wed, May 16, 2018 at 09:19:51PM -0700, frowand.l...@gmail.com wrote: > From: Frank Rowand > > The smatch static checker marks the data in offset as untrusted, > leading it to warn: > > drivers/of/resolver.c:125 update_usages_of_a_phandle_reference() > error: buffer underflow 'prop->value'

Re: [PATCH v3] usbip: dynamically allocate idev by nports found in sysfs

2018-05-23 Thread Shuah Khan
On 05/23/2018 03:22 AM, Michael Grzeschik wrote: > As the amount of available ports varies by the kernels build > configuration. To remove the limitation of the fixed 128 ports > we allocate the amount of idevs by using the number we get > from the kernel. > > Signed-off-by: Michael Grzeschik > -

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

2018-05-23 Thread Steven Rostedt
On Wed, 23 May 2018 08:57:34 -0700 "Paul E. McKenney" wrote: > 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 task

Re: [PATCH v3 7/9] dax: report bytes remaining in dax_iomap_actor()

2018-05-23 Thread Ross Zwisler
On Wed, May 23, 2018 at 09:39:04AM -0700, Dan Williams wrote: > On Wed, May 23, 2018 at 9:34 AM, Ross Zwisler > wrote: > > On Thu, May 03, 2018 at 05:06:42PM -0700, Dan Williams wrote: > >> In preparation for protecting the dax read(2) path from media errors > >> with copy_to_iter_mcsafe() (via da

Re: [PATCH 2/4] arcnet: com20020: bindings for smsc com20020

2018-05-23 Thread Rob Herring
On Thu, May 17, 2018 at 03:06:26PM +0200, Andrea Greco wrote: > From: Andrea Greco > > Add devicetree bindings for smsc com20020 > > Signed-off-by: Andrea Greco > --- > .../devicetree/bindings/net/smsc-com20020.txt | 21 > + > 1 file changed, 21 insertions(+) > crea

[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

Re: [PATCH v3 7/9] dax: report bytes remaining in dax_iomap_actor()

2018-05-23 Thread Dan Williams
On Wed, May 23, 2018 at 9:47 AM, Ross Zwisler wrote: > On Wed, May 23, 2018 at 09:39:04AM -0700, Dan Williams wrote: >> On Wed, May 23, 2018 at 9:34 AM, Ross Zwisler >> wrote: >> > On Thu, May 03, 2018 at 05:06:42PM -0700, Dan Williams wrote: >> >> In preparation for protecting the dax read(2) pa

[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

Re: [PATCH v7 0/7] KVM: x86: Allow Qemu/KVM to use PVH entry point

2018-05-23 Thread Maran Wilson
On 5/18/2018 4:31 AM, Paolo Bonzini wrote: On 16/05/2018 22:27, Maran Wilson wrote: Friendly ping. I am hopeful one of the x86 and/or KVM maintainers has a few cycles to spare to look this over. And thanks to everyone who has helped thus far by providing valuable feedback and reviewing.    ht

Re: [PATCH net] net: phy: broadcom: Fix bcm_write_exp()

2018-05-23 Thread Florian Fainelli
On 05/22/2018 06:20 PM, Florian Fainelli wrote: > Hi Andrew, > > On 05/22/2018 05:15 PM, Andrew Lunn wrote: >> On Tue, May 22, 2018 at 05:04:49PM -0700, Florian Fainelli wrote: >>> On newer PHYs, we need to select the expansion register to write with >>> setting bits [11:8] to 0xf. This was done c

Re: [PATCH 2/2] PM / devfreq: Generic cpufreq governor

2018-05-23 Thread Rob Herring
On Fri, May 18, 2018 at 01:24:48AM -0700, Saravana Kannan wrote: > This devfreq governor is a generic implementation that can scale any > devfreq device based on the current CPU frequency of all ONLINE CPUs. It > allows for specifying CPU freq to devfreq mapping for specific devices. > When such a

Re: [PATCH] clk: aspeed: Add 24MHz fixed clock

2018-05-23 Thread Rob Herring
On Fri, May 18, 2018 at 04:57:02PM +0800, Lei YU wrote: > Add a 24MHz fixed clock. > This clock will be used for certain devices, e.g. pwm. > > Signed-off-by: Lei YU > --- > drivers/clk/clk-aspeed.c | 9 - > include/dt-bindings/clock/aspeed-clock.h | 1 + > 2 files change

Re: [PATCH v3 7/9] dax: report bytes remaining in dax_iomap_actor()

2018-05-23 Thread Ross Zwisler
On Wed, May 23, 2018 at 09:53:38AM -0700, Dan Williams wrote: > On Wed, May 23, 2018 at 9:47 AM, Ross Zwisler > wrote: > > On Wed, May 23, 2018 at 09:39:04AM -0700, Dan Williams wrote: > >> On Wed, May 23, 2018 at 9:34 AM, Ross Zwisler > >> wrote: > >> > On Thu, May 03, 2018 at 05:06:42PM -0700,

Re: [PATCH v2 0/4] ARM64: dts: meson-axg: i2c updates

2018-05-23 Thread Kevin Hilman
Jerome Brunet writes: > This patchset fixes a few problems found in the i2c nodes of > amlogic's meson-axg platform. It also adds the missing pins for > AO controller so we can use it on the S400 > > This series has been tested on the S400 board. > > Jerome Brunet (4): > ARM64: dts: meson-axg:

[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

Re: Suggestion: „spectre_v2=off“ and „nopti“ per default in "Intel Atom N270" case?

2018-05-23 Thread Johannes Hirte
On 2018 Mai 23, Pavel Machek wrote: > On Sat 2018-05-19 21:53:02, Christian Krüger wrote: > > Hi, > > > > Since the old "in-order-execution" Intel CPUs like the Intel Atom N270 > > (known for being installed in many Netbooks and Nettops) are not sensitive > > for "Meltdown" & "Spectre" , wouldn't

[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

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

2018-05-23 Thread Kent Overstreet
On Wed, May 23, 2018 at 08:22:39AM -0700, Christoph Hellwig wrote: > 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 > > > ov

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

2018-05-23 Thread Paul E. McKenney
On Wed, May 23, 2018 at 12:45:31PM -0400, Steven Rostedt wrote: > On Wed, 23 May 2018 08:57:34 -0700 > "Paul E. McKenney" wrote: > > > 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

[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

Re: [PATCH 3/5] watchdog: sp805: set WDOG_HW_RUNNING when appropriate

2018-05-23 Thread Robin Murphy
On 23/05/18 17:29, Ray Jui wrote: Hi Robin, On 5/23/2018 4:48 AM, Robin Murphy wrote: On 23/05/18 08:52, Scott Branden wrote: On 18-05-22 04:24 PM, Ray Jui wrote: Hi Guenter, On 5/22/2018 1:54 PM, Guenter Roeck wrote: On Tue, May 22, 2018 at 11:47:18AM -0700, Ray Jui wrote: If the watchd

Re: [PATCH 3/5] watchdog: sp805: set WDOG_HW_RUNNING when appropriate

2018-05-23 Thread Scott Branden
Raym On 18-05-23 09:29 AM, Ray Jui wrote: Hi Robin, On 5/23/2018 4:48 AM, Robin Murphy wrote: On 23/05/18 08:52, Scott Branden wrote: On 18-05-22 04:24 PM, Ray Jui wrote: Hi Guenter, On 5/22/2018 1:54 PM, Guenter Roeck wrote: On Tue, May 22, 2018 at 11:47:18AM -0700, Ray Jui wrote: If

[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

Re: [RFC PATCH] mtd: spi-nor: add support to non-uniform SPI NOR flash memories

2018-05-23 Thread Marek Vasut
On 05/23/2018 02:52 PM, Tudor Ambarus wrote: > Hi, Marek, Hi, > On 05/23/2018 12:56 PM, Marek Vasut wrote: > [...] [...] >>> +    while (len) { >>> +    cmd = spi_nor_find_best_erase_cmd(map, region, addr, len); >>> +    if (!cmd) >>> +    return -EINVAL;

Re: [PATCH 1/2] slimbus: ngd: dt-bindings: Add slim ngd dt bindings

2018-05-23 Thread Srinivas Kandagatla
Thanks Rob for review, On 23/05/18 17:40, Rob Herring wrote: On Wed, May 16, 2018 at 05:51:17PM +0100, Srinivas Kandagatla wrote: This patch adds bindings for Qualcomm SLIMBus NGD controller found in all new SoCs starting from B family. SLIMBus NGD controller is a light-weight driver responsibl

Re: [PATCH 00/13] atomics: API cleanups

2018-05-23 Thread Peter Zijlstra
On Wed, May 23, 2018 at 02:35:20PM +0100, Mark Rutland wrote: > This series contains a few cleanups of the atomic API, fixing an > inconsistency between atomic_* and atomic64_*, and minimizing repetition > in arch code. This is nicer for arch code, and the improved regularity > will help when gener

Re: [PATCH V4 34/38] x86/intel_rdt: Create debugfs files for pseudo-locking testing

2018-05-23 Thread Reinette Chatre
Hi Greg, On 5/23/2018 1:05 AM, Greg KH wrote: > On Tue, May 22, 2018 at 02:02:37PM -0700, Reinette Chatre wrote: >> On 5/22/2018 12:43 PM, Greg KH wrote: >>> On Tue, May 22, 2018 at 04:29:22AM -0700, Reinette Chatre wrote: + ret = strtobool(buf, &bv); + if (ret == 0 && bv) { +

Re: [PATCH 6/6] Drop flex_arrays

2018-05-23 Thread Dave Hansen
Thanks for the heads-up, Matthew! On 05/22/2018 06:18 PM, Kent Overstreet wrote: > All existing users have been converted to generic radix trees Well, flex_arrays had a good run, and the new radix trees do look quite a bit nicer. Feel free to add my ack.

Re: [PATCH v3 net-next 0/2] bpfilter

2018-05-23 Thread David Miller
From: Alexei Starovoitov Date: Mon, 21 May 2018 19:22:28 -0700 > v2->v3: > - followed Luis's suggestion and significantly simplied first patch > with shmem_kernel_file_setup+kernel_write. Added kdoc for new helper > - fixed typos and race to access pipes with mutex > - tested with bpfilter bein

Re: [PATCH V4 34/38] x86/intel_rdt: Create debugfs files for pseudo-locking testing

2018-05-23 Thread Greg KH
On Wed, May 23, 2018 at 10:19:41AM -0700, Reinette Chatre wrote: > Hi Greg, > > On 5/23/2018 1:05 AM, Greg KH wrote: > > On Tue, May 22, 2018 at 02:02:37PM -0700, Reinette Chatre wrote: > >> On 5/22/2018 12:43 PM, Greg KH wrote: > >>> On Tue, May 22, 2018 at 04:29:22AM -0700, Reinette Chatre wrote

Re: [PATCH] sched,tracing: Correct trace_sched_pi_setprio() for deboosting

2018-05-23 Thread Peter Zijlstra
On Wed, May 23, 2018 at 04:11:07PM +0200, Sebastian Andrzej Siewior wrote: > Since that commit I see during a deboost a task this: > |futex sched_pi_setprio: comm=futex_requeue_p pid=2234 oldprio=98 newprio=98 > |futex sched_switch: prev_comm=futex_requeue_p prev_pid=2234 prev_prio=120 > > and af

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

2018-05-23 Thread Gerhard Wiesinger
On 23.05.2018 17:50, Florian Fainelli wrote: 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

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-23 Thread Dave Hansen
On 05/22/2018 10:51 AM, Matthew Wilcox wrote: > But CR3 is a per-CPU register. So it'd be *possible* to allocate one > PGD per CPU (per process). Have them be identical in all but one of > the PUD entries. Then you've reserved 1/512 of your address space for > per-CPU pages. > > Complicated, ug

Re: [PATCH v3 net-next 0/2] bpfilter

2018-05-23 Thread Greg KH
On Wed, May 23, 2018 at 01:26:48PM -0400, David Miller wrote: > From: Alexei Starovoitov > Date: Mon, 21 May 2018 19:22:28 -0700 > > > v2->v3: > > - followed Luis's suggestion and significantly simplied first patch > > with shmem_kernel_file_setup+kernel_write. Added kdoc for new helper > > - f

Re: [PATCH v8 4/6] cpuset: Make generate_sched_domains() recognize isolated_cpus

2018-05-23 Thread Patrick Bellasi
Hi Waiman, On 17-May 16:55, Waiman Long wrote: [...] > @@ -672,13 +672,14 @@ static int generate_sched_domains(cpumask_var_t > **domains, > int ndoms = 0; /* number of sched domains in result */ > int nslot; /* next empty doms[] struct cpumask slot */ > s

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

2018-05-23 Thread Gerhard Wiesinger
On 23.05.2018 17:28, Florian Fainelli wrote: And in the future (time plan)? If you don't care about multicast then you can use those patches: https://github.com/ffainelli/linux/commit/de055bf5f34e9806463ab2793e0852f5dfc380df and you have to change the part of drivers/net/dsa/b53/b53_common.c

Re: [PATCH net V2 0/4] Fix several issues of virtio-net mergeable XDP

2018-05-23 Thread David Miller
From: Jason Wang Date: Tue, 22 May 2018 11:44:27 +0800 > Please review the patches that tries to fix sevreal issues of > virtio-net mergeable XDP. > > Changes from V1: > - check against 1 before decreasing instead of resetting to 1 > - typoe fixes Series applied and queued up for -stable.

Re: [PATCH 07/11] dts: juno: Add scatter-gather support for all revisions

2018-05-23 Thread Mathieu Poirier
On 18 May 2018 at 10:39, Suzuki K Poulose wrote: > Advertise that the scatter-gather is properly integrated on > all revisions of Juno board. > > Cc: Mathieu Poirier > Cc: Sudeep Holla > Cc: Liviu Dudau > Cc: Lorenzo Pieralisi > Signed-off-by: Suzuki K Poulose Reviewed-by: Mathieu Poirier

semantics of rhashtable and sysvipc

2018-05-23 Thread Davidlohr Bueso
Hi, In sysvipc we have an ids->tables_initialized regarding the rhashtable, introduced in 0cfb6aee70b (ipc: optimize semget/shmget/msgget for lots of keys). It's there, specifically, to prevent nil pointer dereferences, from using an uninitialized api. Considering how rhashtable_init() can fail (

RE: [PATCH v11 1/2] cpufreq: Add Kryo CPU scaling driver

2018-05-23 Thread ilialin
> -Original Message- > From: Sudeep Holla > Sent: Wednesday, May 23, 2018 16:25 > To: Ilia Lin ; vire...@kernel.org; n...@ti.com; > sb...@kernel.org; r...@kernel.org; mark.rutl...@arm.com; > r...@rjwysocki.net; linux...@vger.kernel.org; devicet...@vger.kernel.org; > linux-kernel@vger.ker

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-23 Thread Nadav Amit
Dave Hansen wrote: > On 05/22/2018 10:51 AM, Matthew Wilcox wrote: >> But CR3 is a per-CPU register. So it'd be *possible* to allocate one >> PGD per CPU (per process). Have them be identical in all but one of >> the PUD entries. Then you've reserved 1/512 of your address space for >> per-CPU

Re: [PATCH] arm64: kvm: use -fno-jump-tables with clang

2018-05-23 Thread Nick Desaulniers
On Wed, May 23, 2018 at 4:54 AM Andrey Konovalov wrote: > On Tue, May 22, 2018 at 8:28 PM, Nick Desaulniers > wrote: > > On Fri, May 18, 2018 at 11:13 AM Marc Zyngier wrote: > >> > - you have checked that with a released version of the compiler, you > > > > On Tue, May 22, 2018 at 10:58 AM Andre

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

2018-05-23 Thread Florian Fainelli
On 05/23/2018 10:29 AM, Gerhard Wiesinger wrote: > On 23.05.2018 17:50, Florian Fainelli wrote: >> >> 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

Re: [PATCH 3/8] md: raid5: use refcount_t for reference counting instead atomic_t

2018-05-23 Thread Peter Zijlstra
On Wed, May 23, 2018 at 06:21:19AM -0700, Matthew Wilcox wrote: > On Wed, May 09, 2018 at 09:36:40PM +0200, Sebastian Andrzej Siewior wrote: > > refcount_t type and corresponding API should be used instead of atomic_t > > when > > the variable is used as a reference counter. This allows to avoid a

Re: semantics of rhashtable and sysvipc

2018-05-23 Thread Davidlohr Bueso
On Wed, 23 May 2018, Davidlohr Bueso wrote: I see two possible fixes. I guess a third option would be to make the hashtable static, but I'm not against using rhashtables so I'm not really considering this.

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

2018-05-23 Thread Florian Fainelli
On 05/23/2018 10:35 AM, Gerhard Wiesinger wrote: > On 23.05.2018 17:28, Florian Fainelli wrote: >> >>> And in the future (time plan)? >> If you don't care about multicast then you can use those patches: >> >> https://github.com/ffainelli/linux/commit/de055bf5f34e9806463ab2793e0852f5dfc380df >> >> >

[PATCH] bdi: Move cgroup bdi_writeback to a dedicated low concurrency workqueue

2018-05-23 Thread Tejun Heo
>From 0aa2e9b921d6db71150633ff290199554f0842a8 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Wed, 23 May 2018 10:29:00 -0700 cgwb_release() punts the actual release to cgwb_release_workfn() on system_wq. Depending on the number of cgroups or block devices, there can be a lot of cgwb_release_wor

Re: [PATCH] tpm: fix race condition in tpm_common_write()

2018-05-23 Thread Tadeusz Struk
On 05/23/2018 06:23 AM, Jarkko Sakkinen wrote: > Ouch o_O Do you have a fixes tag for this one? > This one is quite tricky. The original bug was introduced by abce9ac292e13 (tpm: Propagate error from tpm_transmit to fix a timeout hang) and the code back then was in drivers/char/tpm/tpm-interface

[PATCH v2 5/5] Documentation/ABI: Add details of PCI AER statistics

2018-05-23 Thread Rajat Jain
Add the PCI AER statistics details to Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats and provide a pointer to it in Documentation/PCI/pcieaer-howto.txt Signed-off-by: Rajat Jain --- v2: Move the documentation to Documentation/ABI/ .../testing/sysfs-bus-pci-devices-aer_stats | 103 +

[PATCH v2 3/5] PCI/AER: Add sysfs attributes to provide breakdown of AERs

2018-05-23 Thread Rajat Jain
Add sysfs attributes to provide breakdown of the AERs seen, into different type of correctable or uncorrectable errors: dev_breakdown_correctable dev_breakdown_uncorrectable Signed-off-by: Rajat Jain --- v2: Use tabs instead of spaces, fix the subject, and print all non zero counters. driv

Re: [PATCH] powerpc/xmon: really enable xmon when a breakpoint is set

2018-05-23 Thread Michal Suchánek
On Tue, 22 May 2018 12:53:53 +0530 Vaibhav Jain wrote: > Thanks for the patch Michal, > > Michal Suchanek writes: > > > When single-stepping kernel code from xmon without a debug hook > > enabled the kernel crashes. This can happen when kernel starts with > > xmon on crash disabled but xmon is

Re: [PATCH v7 2/2] drivers: soc: Add LLCC driver

2018-05-23 Thread rishabhb
On 2018-05-22 12:38, Andy Shevchenko wrote: On Tue, May 22, 2018 at 9:33 PM, wrote: On 2018-05-18 14:01, Andy Shevchenko wrote: On Wed, May 16, 2018 at 8:43 PM, Rishabh Bhatnagar wrote: +#define ACTIVATE 0x1 +#define DEACTIVATE0x2 +#define ACT_CTRL

[PATCH v2 0/5] Expose PCIe AER stats via sysfs

2018-05-23 Thread Rajat Jain
This patchset exposes the AER stats via the sysfs attributes. Patchset v2 has minor changes to v1 based on the review comments, no functional change. Primarily: * Fix license header * Use tabs instead of spaces * Remove use on unlikely() etc * Move documentation to Documentation/ABI/ Rajat Ja

Re: [PATCH v1 0/3] console, serial8250: Disable PM and DMA ops

2018-05-23 Thread Tony Lindgren
* Andy Shevchenko [180522 21:42]: > On Thu, May 17, 2018 at 10:30 PM, Tony Lindgren wrote: > > So how about add some "noidle" kernel command line parameter for console > > that calls > > pm_runtime_forbid() and then you have the UART permanently > > on. > > IIUC _forbid() can be overwritten via

[PATCH v2 2/5] PCI/AER: Add sysfs stats for AER capable devices

2018-05-23 Thread Rajat Jain
Add the following AER sysfs stats to represent the counters for each kind of error as seen by the device: dev_total_cor_errs dev_total_fatal_errs dev_total_nonfatal_errs Signed-off-by: Rajat Jain --- v2: Use tabs instead of spaces at the end of macro lines, and remove the use of unlikely() a

[PATCH v2 4/5] PCI/AER: Add sysfs attributes for rootport cumulative stats

2018-05-23 Thread Rajat Jain
Add sysfs attributes for rootport statistics (that are cumulative of all the ERR_* messages seen on this PCI hierarchy). Signed-off-by: Rajat Jain --- v2: same as v1 drivers/pci/pcie/aer/aerdrv.h | 2 ++ drivers/pci/pcie/aer/aerdrv_core.c | 2 ++ drivers/pci/pcie/aer/aerdrv_stats.c | 3

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

2018-05-23 Thread Rajat Jain
Define a structure to hold the AER statistics. There are 2 groups of statistics: dev_* counters that are to be collected for all AER capable devices and rootport_* counters that are collected for all (AER capable) rootports only. Allocate and free this structure when device is added or released (th

[PATCH v2] powerpc/xmon: Also setup debugger hooks when single-stepping

2018-05-23 Thread Michal Suchanek
When single-stepping kernel code from xmon without a debug hook enabled the kernel crashes. This can happen when kernel starts with xmon on crash disabled but xmon is entered using sysrq. Call force_enable_xmon when single-stepping in xmon to install the xmon debug hooks. Fixes: e1368d0c9edb ("po

Re: [PATCH v1 0/3] console, serial8250: Disable PM and DMA ops

2018-05-23 Thread Tony Lindgren
* Andy Shevchenko [180522 21:54]: > On Thu, May 17, 2018 at 10:48 PM, Tony Lindgren wrote: > > * Andy Shevchenko [180517 16:38]: > >> On Thu, May 17, 2018 at 4:48 PM, Tony Lindgren wrote: > >> > * Sebastian Andrzej Siewior [180516 10:49]: > > >> > The idea breaking PM seems silly to me consid

Re: INFO: task hung in xlog_grant_head_check

2018-05-23 Thread Eric Sandeen
On 5/23/18 11:20 AM, Eric Biggers wrote: Hi Darrick, ... Now, if you *really* don't want syzbot to report XFS bugs as you believe XFS contains known unfixable bugs or for other reasons, you can formally ask Dmitry to remove CONFIG_XFS_FS from the syzbot config. But of course that doesn't mak

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

2018-05-23 Thread Hans de Goede
Hi, On 23-05-18 16:37, Heikki Krogerus wrote: 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

Re: [PATCH v2] ath10k: transmit queued frames after waking queues

2018-05-23 Thread Rajkumar Manoharan
On 2018-05-23 09:25, Erik Stromdahl wrote: On 05/22/2018 11:15 PM, Niklas Cassel wrote: [...] Perhaps it would be possible to call ath10k_mac_tx_push_pending() from the equivalent to ath10k_htt_txrx_compl_task(), but from SDIO's point of view. An equivalent for SDIO would most likely be *ath

Re: [PATCH RFC] timekeeping: Update multiplier when NTP frequency is set directly

2018-05-23 Thread John Stultz
On Wed, May 23, 2018 at 4:33 AM, Miroslav Lichvar wrote: > When the NTP frequency is set directly from userspace using the > ADJ_FREQUENCY or ADJ_TICK timex mode, immediately update the > timekeeper's multiplier instead of waiting for the next tick. > > This removes a hidden non-deterministic dela

Re: [REGRESSION] v4.17-rc4: xgalaga fails to start in fullscreen (default) mode

2018-05-23 Thread Vito Caputo
On Wed, May 23, 2018 at 04:18:05PM +0300, Ville Syrjälä wrote: > On Wed, May 23, 2018 at 02:49:19AM -0700, Vito Caputo wrote: > > On Mon, May 21, 2018 at 02:57:18PM -0700, Vito Caputo wrote: > > > On Mon, May 21, 2018 at 12:53:20PM -0700, Vito Caputo wrote: > > > > Hello all, > > > > > > > > 4.17-

Re: [PATCH 3/5] watchdog: sp805: set WDOG_HW_RUNNING when appropriate

2018-05-23 Thread Guenter Roeck
On Wed, May 23, 2018 at 12:48:10PM +0100, Robin Murphy wrote: > On 23/05/18 08:52, Scott Branden wrote: > > > > > >On 18-05-22 04:24 PM, Ray Jui wrote: > >>Hi Guenter, > >> > >>On 5/22/2018 1:54 PM, Guenter Roeck wrote: > >>>On Tue, May 22, 2018 at 11:47:18AM -0700, Ray Jui wrote: > If the watc

Re: [PATCH v2 3/4] mm: add find_alloc_contig_pages() interface

2018-05-23 Thread Reinette Chatre
Hi Vlastimil, On 5/23/2018 4:18 AM, Vlastimil Babka wrote: > On 05/22/2018 06:41 PM, Reinette Chatre wrote: >> On 5/21/2018 4:48 PM, Mike Kravetz wrote: >>> I'm guessing that most (?all?) allocations will be order based. The use >>> cases I am aware of (hugetlbfs, Intel Cache Pseudo-Locking, RDMA

Re: [PATCH 3/5] watchdog: sp805: set WDOG_HW_RUNNING when appropriate

2018-05-23 Thread Guenter Roeck
On Wed, May 23, 2018 at 06:15:14PM +0100, Robin Murphy wrote: > On 23/05/18 17:29, Ray Jui wrote: > >Hi Robin, > > > >On 5/23/2018 4:48 AM, Robin Murphy wrote: > >>On 23/05/18 08:52, Scott Branden wrote: > >>> > >>> > >>>On 18-05-22 04:24 PM, Ray Jui wrote: > Hi Guenter, > > On 5/22/20

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-23 Thread Mark Rutland
On Tue, May 22, 2018 at 07:05:48PM +0300, Boaz Harrosh wrote: > On 18/05/18 17:14, Christopher Lameter wrote: > > On Tue, 15 May 2018, Boaz Harrosh wrote: > > > >>> I don't think page tables work the way you think they work. > >>> > >>> + err = vm_insert_pfn_prot(zt->vma, zt_addr, pf

Re: [PATCH 1/5] Documentation: DT: Add optional 'timeout-sec' property for sp805

2018-05-23 Thread Guenter Roeck
On Wed, May 23, 2018 at 11:57:25AM +0100, Robin Murphy wrote: > On 22/05/18 19:47, Ray Jui wrote: > >Update the SP805 binding document to add optional 'timeout-sec' > >devicetree property > > > >Signed-off-by: Ray Jui > >Reviewed-by: Scott Branden > >--- > > Documentation/devicetree/bindings/wat

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

2018-05-23 Thread Gerhard Wiesinger
On 23.05.2018 19:47, Florian Fainelli wrote: On 05/23/2018 10:29 AM, Gerhard Wiesinger wrote: On 23.05.2018 17:50, Florian Fainelli wrote: 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/20

Re: [PATCH 1/2] slimbus: ngd: dt-bindings: Add slim ngd dt bindings

2018-05-23 Thread Srinivas Kandagatla
On 23/05/18 17:40, Rob Herring wrote: + +- qcom,ngd-id + Usage: required + Value type: + Definition: ngd instance id in the controller Why do you need this? Please ignore my comment from previous reply. There are more than one instances of ngd in this slim controller. We

Subject: [PATCH] cgroup: css_set_lock should nest inside tasklist_lock

2018-05-23 Thread Tejun Heo
Applied the following patch to cgroup/for-4.18. Thanks. -- 8< -- >From d8742e22902186e30c346b1ba881cb52942ae3e4 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Wed, 23 May 2018 11:04:54 -0700 cgroup_enable_task_cg_lists() incorrectly nests non-irq-safe tasklist_lock inside irq-safe css_s

Re: [PATCH] workqueue: move function definitions within CONFIG_SMP block

2018-05-23 Thread Tejun Heo
On Tue, May 22, 2018 at 09:47:32PM +0200, Mathieu Malaterre wrote: > In commit 7ee681b25284 ("workqueue: Convert to state machine callbacks"), > three new function definitions were added: ‘workqueue_prepare_cpu’, > ‘workqueue_online_cpu’ and ‘workqueue_offline_cpu’. > > Move these function definit

Re: [PATCH 06/11] dts: bindings: Restrict coresight tmc-etr scatter-gather mode

2018-05-23 Thread Rob Herring
On Fri, May 18, 2018 at 05:39:22PM +0100, Suzuki K Poulose wrote: > We are about to add the support for ETR builtin scatter-gather mode > for dealing with large amount of trace buffers. However, on some of > the platforms, using the ETR SG mode can lock up the system due to > the way the ETR is con

Re: [v3] platform: chrome: Add Tablet Switch ACPI driver

2018-05-23 Thread Guenter Roeck
What happened with this driver ? It is not upstream, yet the comments on patchwork seem to suggest that it was accepted. Guenter On Mon, Jan 30, 2017 at 03:47:22PM -0800, Gwendal Grignou wrote: > Add a kernel driver for GOOG0006, an ACPI driver reporting an event when > the tablet switch status c

Re: [PATCH 03/15] clk: sunxi-ng: r40: Export video PLLs

2018-05-23 Thread Rob Herring
On Sat, May 19, 2018 at 08:31:15PM +0200, Jernej Skrabec wrote: > Video PLLs need to be referenced in R40 DT as possible HDMI PHY parent. > > Export them. > > Signed-off-by: Jernej Skrabec > --- > drivers/clk/sunxi-ng/ccu-sun8i-r40.h | 8 ++-- > include/dt-bindings/clock/sun8i-r40-ccu.

Re: [REGRESSION] v4.17-rc4: xgalaga fails to start in fullscreen (default) mode

2018-05-23 Thread Ville Syrjälä
On Wed, May 23, 2018 at 11:06:00AM -0700, Vito Caputo wrote: > On Wed, May 23, 2018 at 04:18:05PM +0300, Ville Syrjälä wrote: > > On Wed, May 23, 2018 at 02:49:19AM -0700, Vito Caputo wrote: > > > On Mon, May 21, 2018 at 02:57:18PM -0700, Vito Caputo wrote: > > > > On Mon, May 21, 2018 at 12:53:20P

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

2018-05-23 Thread Florian Fainelli
On 05/23/2018 11:11 AM, Gerhard Wiesinger wrote: > On 23.05.2018 19:47, Florian Fainelli wrote: >> On 05/23/2018 10:29 AM, Gerhard Wiesinger wrote: >>> On 23.05.2018 17:50, Florian Fainelli wrote: On 05/23/2018 08:28 AM, Florian Fainelli wrote: > On 05/22/2018 09:49 PM, Gerhard Wiesinger w

Re: [PATCH v2] powerpc/xmon: Also setup debugger hooks when single-stepping

2018-05-23 Thread Vaibhav Jain
Michal Suchanek writes: > When single-stepping kernel code from xmon without a debug hook enabled > the kernel crashes. This can happen when kernel starts with xmon on > crash disabled but xmon is entered using sysrq. > > Call force_enable_xmon when single-stepping in xmon to install the xmon > d

Re: [PATCH 05/15] drm/sun4i: Add TCON TOP driver

2018-05-23 Thread Rob Herring
On Sat, May 19, 2018 at 08:31:17PM +0200, Jernej Skrabec wrote: > As already described in DT binding, TCON TOP is responsible for > configuring display pipeline. In this initial driver focus is on HDMI > pipeline, so TVE and LCD configuration is not implemented. > > Implemented features: > - HDMI

[PATCH RFCv2 1/4] ACPI: NUMA: export pxm_to_node

2018-05-23 Thread David Hildenbrand
Will be needed by paravirtualized memory devices. Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: linux-a...@vger.kernel.org Signed-off-by: David Hildenbrand --- drivers/acpi/numa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index 85167603b9c9..7ffe

[PATCH RFCv2 2/4] s390: mm: support removal of memory

2018-05-23 Thread David Hildenbrand
With virtio-mem, we actually want to remove memory again. Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Vlastimil Babka Cc: Michal Hocko Cc: Andrew Morton Cc: Greg Kroah-Hartman Cc: linux-s...@vger.kernel.org Signed-off-by: David Hildenbrand --- arch/s390/mm/init.c | 18 --

Re: [v3] platform: chrome: Add Tablet Switch ACPI driver

2018-05-23 Thread Benson Leung
On Wed, May 23, 2018 at 11:19 AM Guenter Roeck wrote: > What happened with this driver ? It is not upstream, yet the comments > on patchwork seem to suggest that it was accepted. My bad. I dropped this last year. I'll pick this now. -- Benson Leung Staff Software Engineer Chrome OS Kernel Goo

[PATCH RFCv2 4/4] virtio-mem: paravirtualized memory

2018-05-23 Thread David Hildenbrand
Each virtio-mem device owns exactly one memory region. It is responsible for adding/removing memory from that memory region on request in a certain fixed chunk size. When the device driver starts up, the requested amount of memory is queried and then added to Linux. On request, further memory can

[PATCH RFCv2 3/4] s390: numa: implement memory_add_physaddr_to_nid()

2018-05-23 Thread David Hildenbrand
The common interface to be used with add_memory(). Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Michal Hocko Cc: Andrew Morton Cc: Vlastimil Babka Cc: Greg Kroah-Hartman Cc: linux-s...@vger.kernel.org Signed-off-by: David Hildenbrand --- arch/s390/numa/numa.c | 12 1 file cha

[PATCH RFCv2 0/4] virtio-mem: paravirtualized memory

2018-05-23 Thread David Hildenbrand
This is the Linux driver side of virtio-mem. Compared to the QEMU side, it is in a pretty complete and clean state. virtio-mem is a paravirtualized mechanism of adding/removing memory to/from a VM. We can do this on a 4MB granularity right now. In Linux, all memory is added to the ZONE_NORMAL, so

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

2018-05-23 Thread Gerhard Wiesinger
On 23.05.2018 19:55, Florian Fainelli wrote: On 05/23/2018 10:35 AM, Gerhard Wiesinger wrote: On 23.05.2018 17:28, Florian Fainelli wrote: And in the future (time plan)? If you don't care about multicast then you can use those patches: https://github.com/ffainelli/linux/commit/de055bf5f34e980

Re: [PATCH RFCv2 0/4] virtio-mem: paravirtualized memory

2018-05-23 Thread David Hildenbrand
On 23.05.2018 20:24, David Hildenbrand wrote: > This is the Linux driver side of virtio-mem. Compared to the QEMU side, > it is in a pretty complete and clean state. > > virtio-mem is a paravirtualized mechanism of adding/removing memory to/from > a VM. We can do this on a 4MB granularity right no

[PATCH] cros_ec_keyb: Increment the wakeup count to the specific mfd device.

2018-05-23 Thread Ravi Chandra Sadineni
If the IRQ is processed during resume, increment the wakeup count to the specific mfd device based on the event, if the mfd device is wake enabled. This helps in identifying the specific device that caused the wake. Signed-off-by: Ravi Chandra Sadineni --- drivers/input/keyboard/cros_ec_keyb.c |

Re: WARNING in ip_recv_error

2018-05-23 Thread Willem de Bruijn
On Wed, May 23, 2018 at 11:40 AM, Willem de Bruijn wrote: > 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

Re: [PATCH net] tuntap: correctly set SOCKWQ_ASYNC_NOSPACE

2018-05-23 Thread David Miller
From: Jason Wang Date: Tue, 22 May 2018 14:21:04 +0800 > When link is down, writes to the device might fail with > -EIO. Userspace needs an indication when the status is resolved. As a > fix, tun_net_open() attempts to wake up writers - but that is only > effective if SOCKWQ_ASYNC_NOSPACE has be

Re: [PATCH v1 0/3] console, serial8250: Disable PM and DMA ops

2018-05-23 Thread Tony Lindgren
* Tony Lindgren [180523 10:58]: > * Andy Shevchenko [180522 21:42]: > > Have you seen entire series which I keep here: > > https://bitbucket.org/andy-shev/linux/branch/topic/uart/rpm? > > Among other things it gets rid of those specific callbacks entirely. > > Well I was not Cc:ed on it, I brows

Re: [PATCH net-next v2 0/3] net: sfp: small improvements

2018-05-23 Thread David Miller
From: Antoine Tenart Date: Tue, 22 May 2018 12:17:58 +0200 > A small series of patches improving the SFP support by adding a warning > when no Tx disable pin is available, and making the i2c-bus property > mandatory. ... > Since v1: > - Removed the patch fixing the sfp driver when no i2c bus w

Re: [PATCH v3] powerpc: Implement csum_ipv6_magic in assembly

2018-05-23 Thread Segher Boessenkool
On Tue, May 22, 2018 at 08:57:01AM +0200, Christophe Leroy wrote: > The generic csum_ipv6_magic() generates a pretty bad result Please try with a more recent compiler, what you used is pretty ancient. It's not like recent compilers do great on this either, but it's not *that* bad anymore ;-) >

Re: semantics of rhashtable and sysvipc

2018-05-23 Thread Linus Torvalds
On Wed, May 23, 2018 at 10:41 AM Davidlohr Bueso wrote: > The second alternative would be to add a BUG_ON() if the initialization fails > and we get rid of all the tables_initialized hack. I see absolutely no value in an early boot BUG_ON(). Either we know the allocation cannot fail - which is

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