Re: [PATCH 1/3] soc: amlogic: Add Meson GX Clock Measure driver

2018-07-03 Thread Martin Blumenstingl
Hi Neil, On Tue, Jul 3, 2018 at 3:23 PM Neil Armstrong wrote: > > The Amlogic Meson GX SoCs embeds a clock measurer IP to measure the internal > clock paths frequencies. > The precision is in the order of the MHz. > > Signed-off-by: Neil Armstrong > --- > drivers/soc/amlogic/Kconfig

Re: [PATCH v8 03/17] mm: Assign id to every memcg-aware shrinker

2018-07-03 Thread Shakeel Butt
On Tue, Jul 3, 2018 at 12:13 PM Kirill Tkhai wrote: > > On 03.07.2018 20:58, Matthew Wilcox wrote: > > On Tue, Jul 03, 2018 at 06:46:57PM +0300, Kirill Tkhai wrote: > >> shrinker_idr now contains only memcg-aware shrinkers, so all bits from > >> memcg map > >> may be potentially populated. In cas

Re: [PATCH] misc: ti-st: remove redundant variable 'type'

2018-07-03 Thread Arnd Bergmann
On Tue, Jul 3, 2018 at 9:32 AM, Colin King wrote: > From: Colin Ian King > > Variable type is being assigned but is never used hence it is > redundant and can be removed. > > Cleans up clang warning: > warning: variable 'type' set but not used [-Wunused-but-set-variable] > > Signed-off-by: Colin

Re: [PATCH v8 03/17] mm: Assign id to every memcg-aware shrinker

2018-07-03 Thread Matthew Wilcox
On Tue, Jul 03, 2018 at 12:19:35PM -0700, Shakeel Butt wrote: > On Tue, Jul 3, 2018 at 12:13 PM Kirill Tkhai wrote: > > > Do we really have so very many !memcg-aware shrinkers? > > > > > > $ git grep -w register_shrinker |wc > > > 32 1192221 > > > $ git grep -w register_shrinker_prepa

Re: [PATCH 1/2] clk: imx6sll: add GPIO LPCGs

2018-07-03 Thread Rob Herring
On Fri, Jun 22, 2018 at 02:32:33PM +0800, Anson Huang wrote: > According to Reference Manual Rev.0, 06/2017, > there are GPIO LPCGs defined in CCM CCGRs, > add them into clock tree. > > Signed-off-by: Anson Huang > --- > drivers/clk/imx/clk-imx6sll.c | 6 ++ > include/dt-binding

Re: [PATCH 00/14] dma-jz4780 improvements

2018-07-03 Thread Mathieu Malaterre
On Tue, Jul 3, 2018 at 2:32 PM Paul Cercueil wrote: > > Hi, > > This set of patches by myself and Daniel extends the dma-jz4780 driver > to support other SoCs (JZ4770, JZ4740, JZ4725B). > > Some fixes are also included, for proper residue reporting, which fixes > errors with ALSA. > > Finally, the

Re: [PATCH] sgi-xp: remove redundant pointers ch and rp

2018-07-03 Thread Arnd Bergmann
On Tue, Jul 3, 2018 at 9:23 AM, Colin King wrote: > From: Colin Ian King > > The pointers ch and rp are set but are never used hence they are > redundant and can be removed. > > Cleans up clang warnings: > warning: variable 'ch' set but not used [-Wunused-but-set-variable] > warning: variable 'rp

[PATCH] iio:imu:adis: Mark expected switch fall-throughs

2018-07-03 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/iio/imu/adis.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iio/imu/adis.c b/drivers/iio/imu/adis.c index ad6f91d..c771ae6

[RFC][PATCH] selftest: timers: Tweak raw_skew to SKIP when ADJ_OFFSET is in progress

2018-07-03 Thread John Stultz
In the past we've warned when ADJ_OFFSET was in progress, usually caused by ntpd or some other time adjusting daemon running in non steady sate, which can cause the skew calculations to be incorrect Thus, this patch sets a flag which we check when we fail so that we don't cause false negatives. C

Re: Linux 4.4.139

2018-07-03 Thread Philip Müller
On 03.07.2018 21:05, Greg Kroah-Hartman wrote: > On Tue, Jul 03, 2018 at 07:32:06PM +0200, Philip Müller wrote: >> Hi Greg, >> >> for this kernel there are now patches generated on kernel.org homepage. >> >> Best, Philip > > Ugh, let me push them all out again. I did it on a train today with > li

Re: [PATCH] checkpatch: Check for illegal return codes

2018-07-03 Thread Joe Perches
On Tue, 2018-07-03 at 12:07 -0700, pher...@codeaurora.org wrote: > On 2018-07-03 11:19, Joe Perches wrote: > > On Tue, 2018-07-03 at 11:09 -0700, Prakruthi Deepak Heragu wrote: > > > The only legal integer return is 0, anything else > > > following "return" should be -ERRCODE or a function. > > >

[RFC] soc: imx: gpc: Unregister pgc children on remove

2018-07-03 Thread Leonard Crestez
If the gpc device is removed the platform_devices for its imx-pgc-power-domains are still registered and trying to probe gpc again results in an error. Fix this by iterating children inside imx_gpc_remove and calling platfrom_device_unregister. Signed-off-by: Leonard Crestez --- drivers/soc/imx

[PATCH] iio: sca3000: Mark expected switch fall-through

2018-07-03 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/iio/accel/sca3000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/accel/sca3000.c b/drivers/iio/accel/sca3000.c index 4dce

Re: [PATCH] dma: ste_dma40: Remove VLA usage

2018-07-03 Thread Arnd Bergmann
On Mon, Jul 2, 2018 at 5:28 PM, Geert Uytterhoeven wrote: > On Mon, Jul 2, 2018 at 4:22 PM Linus Walleij wrote: >> On Fri, Jun 29, 2018 at 11:22 PM Arnd Bergmann wrote: >> >> > - Nobody uses this driver in practice, as the hardware platform >> > was a dead end >> >> Depends what you mean with

[PATCH v7] add param that allows bootline control of hardened usercopy

2018-07-03 Thread Chris von Recklinghausen
Enabling HARDENED_USERCOPY causes measurable regressions in networking performance, up to 8% under UDP flood. I'm running an a small packet UDP flood using pktgen vs. a host b2b connected. On the receiver side the UDP packets are processed by a simple user space process that just reads and drops

[PATCH] iio: mma8452: Mark expected switch fall-through

2018-07-03 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Warning level 2 was used in this case: -Wimplicit-fallthrough=2 Signed-off-by: Gustavo A. R. Silva --- drivers/iio/accel/mma8452.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dri

Re: [PATCH v12 07/13] x86/sgx: data structures for tracking available EPC pages

2018-07-03 Thread Thomas Gleixner
On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > SGX has a set of data structures to maintain information about the enclaves > and their security properties. BIOS reserves a fixed size region of > physical memory for these structures by setting Processor Reserved Memory > Range Registers (PRMRR). This

[PATCH] ide: mark expected switch fall-throughs

2018-07-03 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/ide/hpt366.c | 5 +++-- drivers/ide/ide-floppy.c | 1 + drivers/ide/ide-probe.c| 1 + drivers/ide/ide-taskfile.c | 3 ++- driver

Re: [PATCH] reed_solomon: Fix kernel-doc

2018-07-03 Thread Kees Cook
On Tue, Jul 3, 2018 at 12:43 PM, Matthew Wilcox wrote: > The current doc build warns: > ./lib/reed_solomon/reed_solomon.c:287: WARNING: Unknown target name: "gfp". > > This is because it misinterprets the "GFP_" that is part of the > description. Change the description to avoid the problem. > > S

Re: [PATCH V2 05/19] csky: System Call

2018-07-03 Thread Arnd Bergmann
On Sun, Jul 1, 2018 at 7:30 PM, Guo Ren wrote: > Signed-off-by: Guo Ren We really need all new architectures to use the generic syscall ABI, see below for the details. > diff --git a/arch/csky/include/uapi/asm/unistd.h > b/arch/csky/include/uapi/asm/unistd.h > new file mode 100644 > index

Re: [PATCH v8 03/17] mm: Assign id to every memcg-aware shrinker

2018-07-03 Thread Shakeel Butt
On Tue, Jul 3, 2018 at 12:25 PM Matthew Wilcox wrote: > > On Tue, Jul 03, 2018 at 12:19:35PM -0700, Shakeel Butt wrote: > > On Tue, Jul 3, 2018 at 12:13 PM Kirill Tkhai wrote: > > > > Do we really have so very many !memcg-aware shrinkers? > > > > > > > > $ git grep -w register_shrinker |wc > > >

[PATCH] RAID/s390: Remove VLA usage

2018-07-03 Thread Kees Cook
In the quest to remove all stack VLA usage from the kernel[1], this moves the "$#" replacement from being an argument to being inside the function, which avoids generating VLAs. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qpxydaacu1rq...@mail.gmail.com Cc: Martin Schwidefsk

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-03 Thread Andrew Morton
On Tue, 3 Jul 2018 20:05:06 +0300 Mike Rapoport wrote: > Most functions in memblock already use phys_addr_t to represent a physical > address with __memblock_free_late() being an exception. > > This patch replaces u64 with phys_addr_t in __memblock_free_late() and > switches several format str

[PATCH 0/6] use irqsafe variant of refcount_dec_and_lock() / atomic_dec_and_lock()

2018-07-03 Thread Sebastian Andrzej Siewior
The irqsave variant of refcount_dec_and_lock() and atomic_dec_and_lock() made it into v4.18-rc2. This is just a repost of the users so that they can be routed through the individual subsystems. Sebastian Cc: Andrew Morton Cc: linux...@kvack.org Cc: Shaohua Li Cc: linux-r...@vger.kernel.org

[PATCH 4/6] bdi: Use irqsave variant of refcount_dec_and_lock()

2018-07-03 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner The irqsave variant of refcount_dec_and_lock handles irqsave/restore when taking/releasing the spin lock. With this variant the call of local_irq_save/restore is no longer required. Cc: linux...@kvack.org Cc: Andrew Morton Acked-by: Peter Zijlstra (Intel) Signed-off-b

[PATCH 5/6] userns: Use refcount_t for reference counting instead atomic_t

2018-07-03 Thread Sebastian Andrzej Siewior
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 accidental refcounter overflows that might lead to use-after-free situations. Cc: Andrew Morton Suggested-by: Peter Zijlstra Acked-by: Peter Zijlstra (I

[PATCH 2/6] drivers/md/raid5: Do not disable irq on release_inactive_stripe_list() call

2018-07-03 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner There is no need to invoke release_inactive_stripe_list() with interrupts disabled. All call sites, except raid5_release_stripe(), unlock ->device_lock and enable interrupts before invoking the function. Make it consistent. Cc: Shaohua Li Cc: linux-r...@vger.kernel.or

[PATCH 6/6] userns: Use irqsave variant of refcount_dec_and_lock()

2018-07-03 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner The irqsave variant of refcount_dec_and_lock handles irqsave/restore when taking/releasing the spin lock. With this variant the call of local_irq_save/restore is no longer required. Cc: Andrew Morton Acked-by: Peter Zijlstra (Intel) Signed-off-by: Anna-Maria Gleixner

[PATCH 1/6] drivers/md/raid5: Use irqsave variant of atomic_dec_and_lock()

2018-07-03 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner The irqsave variant of atomic_dec_and_lock handles irqsave/restore when taking/releasing the spin lock. With this variant the call of local_irq_save is no longer required. Cc: Shaohua Li Cc: linux-r...@vger.kernel.org Acked-by: Peter Zijlstra (Intel) Signed-off-by: An

[PATCH 3/6] bdi: Use refcount_t for reference counting instead atomic_t

2018-07-03 Thread Sebastian Andrzej Siewior
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 accidental refcounter overflows that might lead to use-after-free situations. Cc: linux...@kvack.org Cc: Andrew Morton Suggested-by: Peter Zijlstra Acke

[GIT PULL 2/4] bcm2835-drivers-next-2018-07-03

2018-07-03 Thread Eric Anholt
The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the Git repository at: git://github.com/anholt/linux tags/bcm2835-drivers-next-2018-07-03 for you to fetch changes up to 5bfdc1097654eb31bcf2d10421ed769ef

[GIT PULL 3/4] bcm2835-defconfig-next-2018-07-03

2018-07-03 Thread Eric Anholt
The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the Git repository at: git://github.com/anholt/linux tags/bcm2835-defconfig-next-2018-07-03 for you to fetch changes up to 7b54aafff3ef4571567ff6a7d13ed51

[GIT PULL 4/4] bcm2835-defconfig-64-next-2018-07-03

2018-07-03 Thread Eric Anholt
The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the Git repository at: git://github.com/anholt/linux tags/bcm2835-defconfig-64-next-2018-07-03 for you to fetch changes up to 79db60a8bb0b32fdda90a338f09f

Re: [PATCH] gpiolib: Defer on non-DT find_chip_by_name() failure

2018-07-03 Thread Andy Shevchenko
On Tue, Jul 3, 2018 at 8:26 PM, Janusz Krzysztofik wrote: > Avoid replication of error code conversion in non-DT GPIO consumers' > code by returning -EPROBE_DEFER from gpiod_find() in case a chip > identified by its label in a registered lookup table is not ready. > > See https://lkml.org/lkml/201

Re: [PATCH V2 13/19] csky: Library functions

2018-07-03 Thread Arnd Bergmann
On Sun, Jul 1, 2018 at 7:30 PM, Guo Ren wrote: > > diff --git a/arch/csky/kernel/cskyksyms.c b/arch/csky/kernel/cskyksyms.c > new file mode 100644 > index 000..3f13594 > --- /dev/null > +++ b/arch/csky/kernel/cskyksyms.c > @@ -0,0 +1,31 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright

[GIT PULL 1/4] bcm2835-dt-next-2018-07-03

2018-07-03 Thread Eric Anholt
Hi Florian, The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the Git repository at: git://github.com/anholt/linux tags/bcm2835-dt-next-2018-07-03 for you to fetch changes up to 7503668f7287a359f234cd000

Re: [PATCH] x86/MCE: Fix CPU microcode version output

2018-07-03 Thread Prarit Bhargava
On 07/03/2018 12:58 PM, Luck, Tony wrote: > On Tue, Jul 03, 2018 at 12:48:44PM -0400, Prarit Bhargava wrote: >> On systems where a runtime microcode update has occurred the >> microcode version is wrong because boot_cpu_data.microcode is >> not updated during runtime. >> >> Use the per-CPU micro

Re: [PATCH 2/3] dt-bindings: interrupt-controller: RISC-V local interrupt controller docs

2018-07-03 Thread Rob Herring
On Fri, Jun 22, 2018 at 04:20:05PM -0700, Palmer Dabbelt wrote: > From: Palmer Dabbelt > > This patch adds documentation on the RISC-V local interrupt controller, > which is a per-hart interrupt controller that manages all interrupts > entering a RISC-V hart. This interrupt controller is present

Re: WARN_ON_ONCE() in process_one_work()?

2018-07-03 Thread Tejun Heo
Hello, Paul. On Tue, Jul 03, 2018 at 09:40:44AM -0700, Paul E. McKenney wrote: > > I will apply this, but be advised that I have not seen that WARN_ON_ONCE() > > trigger since. :-/ > > But I get a build error: > > kernel/workqueue.o: In function `worker_attach_to_pool': > workqueue.c:(.text+0x6

Re: [PATCH v12 08/13] x86/sgx: wrappers for ENCLS opcode leaf functions

2018-07-03 Thread Thomas Gleixner
On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > This commit adds wrappers for Intel(R) SGX ENCLS opcode leaf functions Add... > except for ENCLS(EINIT). The ENCLS instruction invokes the privileged > functions for managing (creation, initialization and swapping) and > debugging enclaves. > > +#de

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-03 Thread Joe Perches
On Tue, 2018-07-03 at 12:57 -0700, Andrew Morton wrote: > Did you see all this checkpatch noise? > > : WARNING: Deprecated vsprintf pointer extension '%pF' - use %pS instead > : #54: FILE: mm/memblock.c:1348: > : + memblock_dbg("%s: %llu bytes align=0x%llx nid=%d from=%pa max_addr=%pa > %pF\n",

Re: [PATCH] cgroup: use irqsave in cgroup_rstat_flush_locked()

2018-07-03 Thread Tejun Heo
(cc'ing Peter and Ingo for lockdep) Hello, Sebastian. On Tue, Jul 03, 2018 at 06:45:44PM +0200, Sebastian Andrzej Siewior wrote: > All callers of cgroup_rstat_flush_locked() acquire cgroup_rstat_lock > either with spin_lock_irq() or spin_lock_irqsave(). So, irq is always disabled in cgroup_rstat

Re: 4.17.x won't boot due to "x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G"

2018-07-03 Thread Kirill A. Shutemov
On Tue, Jul 03, 2018 at 11:03:07AM -0700, Andi Kleen wrote: > On Tue, Jul 03, 2018 at 05:21:50PM +0300, Kirill A. Shutemov wrote: > > On Tue, Jul 03, 2018 at 03:44:03PM +0300, Kirill A. Shutemov wrote: > > > On Tue, Jul 03, 2018 at 01:24:49PM +0200, Gabriel C wrote: > > > > 2018-07-01 23:32 GMT+02:

Re: [PATCH v12 07/13] x86/sgx: data structures for tracking available EPC pages

2018-07-03 Thread Randy Dunlap
On 07/03/18 12:46, Thomas Gleixner wrote: > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > >> SGX has a set of data structures to maintain information about the enclaves >> and their security properties. BIOS reserves a fixed size region of >> physical memory for these structures by setting Processo

Re: [PATCH 5/6] perf/core: Use ioctl to communicate driver configuration to kernel

2018-07-03 Thread Mathieu Poirier
Hi Alex, On Tue, 3 Jul 2018 at 04:03, Alexander Shishkin wrote: > > On Mon, Jul 02, 2018 at 04:33:29PM -0600, Mathieu Poirier wrote: > > This patch follows what has been done for filters by adding an ioctl() > > option to communicate to the kernel arbitrary PMU specific configuration > > that don

RE: 4.18rc3 TX2 boot failure with "ACPICA: AML parser: attempt to continue loading table after error"

2018-07-03 Thread Schmauss, Erik
> -Original Message- > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > ow...@vger.kernel.org] On Behalf Of Rafael J. Wysocki > Sent: Tuesday, July 3, 2018 12:52 AM > To: Jeremy Linton > Cc: Rafael J. Wysocki ; Schmauss, Erik > ; linux-a...@vger.kernel.org; linux- > ker...@vg

Re: [PATCH] arm64: Clear the stack

2018-07-03 Thread Alexander Popov
On 03.07.2018 18:03, Catalin Marinas wrote: > On Tue, Jul 03, 2018 at 01:14:41PM +0100, Mark Rutland wrote: >> On Mon, Jul 02, 2018 at 11:48:05AM -0700, Laura Abbott wrote: >>> On 07/02/2018 06:02 AM, Alexander Popov wrote: Could you rename the macro to STACKLEAK_ERASE for similarity with x86?

Re: [PATCH v8 03/17] mm: Assign id to every memcg-aware shrinker

2018-07-03 Thread Al Viro
On Tue, Jul 03, 2018 at 10:47:44AM -0700, Matthew Wilcox wrote: > On Tue, Jul 03, 2018 at 08:46:28AM -0700, Shakeel Butt wrote: > > On Tue, Jul 3, 2018 at 8:27 AM Matthew Wilcox wrote: > > > This will actually reduce the size of each shrinker and be more > > > cache-efficient when calling the shri

Re: [PATCH v12 09/13] x86/sgx: EPC page allocation routines

2018-07-03 Thread Thomas Gleixner
On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > +#define SGX_NR_TO_SCAN 16 > +#define SGX_NR_LOW_PAGES 32 > +#define SGX_NR_HIGH_PAGES 64 > + > bool sgx_enabled __ro_after_init; > EXPORT_SYMBOL(sgx_enabled); > bool sgx_lc_enabled __ro_after_init; > EXPORT_SYMBOL(sgx_lc_enabled); > +LIST_

Re: [PATCH v12 07/13] x86/sgx: data structures for tracking available EPC pages

2018-07-03 Thread Thomas Gleixner
On Tue, 3 Jul 2018, Randy Dunlap wrote: > On 07/03/18 12:46, Thomas Gleixner wrote: > > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > > >> SGX has a set of data structures to maintain information about the enclaves > >> and their security properties. BIOS reserves a fixed size region of > >> phys

Re: [PATCH v8 05/17] mm: Assign memcg-aware shrinkers bitmap to memcg

2018-07-03 Thread Andrew Morton
On Tue, 03 Jul 2018 18:09:26 +0300 Kirill Tkhai wrote: > Imagine a big node with many cpus, memory cgroups and containers. > Let we have 200 containers, every container has 10 mounts, > and 10 cgroups. All container tasks don't touch foreign > containers mounts. If there is intensive pages write,

Re: [PATCH v8 13/17] mm: Set bit in memcg shrinker bitmap on first list_lru item apearance

2018-07-03 Thread Andrew Morton
On Tue, 03 Jul 2018 18:10:56 +0300 Kirill Tkhai wrote: > Introduce set_shrinker_bit() function to set shrinker-related > bit in memcg shrinker bitmap, and set the bit after the first > item is added and in case of reparenting destroyed memcg's items. > > This will allow next patch to make shrink

Re: [PATCH 1/4] leds: lm3692x: Update license header to SPDX

2018-07-03 Thread Jacek Anaszewski
Hi Dan, Thank you for the patch set, applied. Best regards, Jacek Anaszewski On 07/02/2018 08:12 PM, Dan Murphy wrote: Update the license header to the current SPDX licensing format. Signed-off-by: Dan Murphy --- drivers/leds/leds-lm3692x.c | 17 +++-- 1 file changed, 3 insert

Re: [PATCH v8 14/17] mm: Iterate only over charged shrinkers during memcg shrink_slab()

2018-07-03 Thread Andrew Morton
On Tue, 03 Jul 2018 18:11:06 +0300 Kirill Tkhai wrote: > Using the preparations made in previous patches, in case of memcg > shrink, we may avoid shrinkers, which are not set in memcg's shrinkers > bitmap. To do that, we separate iterations over memcg-aware and > !memcg-aware shrinkers, and memcg

Re: [PATCH 4/8] dt-bindings: add bindings for TI PRU as remoteproc

2018-07-03 Thread Rob Herring
On Sat, Jun 23, 2018 at 04:08:06PM -0500, David Lechner wrote: > This adds a new binding for the TI Programmable Runtime Unit (PRU) > as a remoteproc device. > > Signed-off-by: David Lechner > --- > .../bindings/remoteproc/ti_pru_rproc.txt | 51 +++ > 1 file changed, 51 inse

[PATCH] Input: mark expected switch fall-throughs

2018-07-03 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Warning level 2 was used: -Wimplicit-fallthrough=2 Signed-off-by: Gustavo A. R. Silva --- drivers/input/joystick/db9.c | 5 + drivers/input/keyboard/adp5589-keys.c | 1 + dr

Re: 4.17.x won't boot due to "x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G"

2018-07-03 Thread Andi Kleen
On Tue, Jul 03, 2018 at 11:26:09PM +0300, Kirill A. Shutemov wrote: > On Tue, Jul 03, 2018 at 11:03:07AM -0700, Andi Kleen wrote: > > On Tue, Jul 03, 2018 at 05:21:50PM +0300, Kirill A. Shutemov wrote: > > > On Tue, Jul 03, 2018 at 03:44:03PM +0300, Kirill A. Shutemov wrote: > > > > On Tue, Jul 03,

Re: [PATCH 0/5] i2c: smbus: add unlocked __i2c_smbus_xfer variant

2018-07-03 Thread Wolfram Sang
On Wed, Jun 20, 2018 at 10:51:52AM +0200, Peter Rosin wrote: > Hi! > > There are a couple of users that could benefit from an unlocked variant > of i2c_smbus_xfer. In response to [1] I dusted off an old series that I > have had in a branch for a while that adds such a beast. It also converts > ove

Re: [PATCH v12 09/11] x86/tsc: prepare for early sched_clock

2018-07-03 Thread Thomas Gleixner
On Fri, 29 Jun 2018, Pavel Tatashin wrote: > On 18-06-29 09:30:10, Thomas Gleixner wrote: > For now, in my series, I would like check in tsc_early_init() if we are > running xen, and set tsc_khz to 0 if so. Later in tsc_init() we will get > a proper calibration. The question is how to make this che

Re: [PATCH v4 2/3] ioremap: Update pgtable free interfaces with addr

2018-07-03 Thread Thomas Gleixner
On Fri, 29 Jun 2018, Kani, Toshi wrote: > On Fri, 2018-06-29 at 13:23 +0100, Will Deacon wrote: > > Hi Toshi, Thomas, > > > > On Wed, Jun 27, 2018 at 04:13:22PM +, Kani, Toshi wrote: > > > On Wed, 2018-06-27 at 16:56 +0100, Will Deacon wrote: > > > > On Wed, Jun 27, 2018 at 08:13:47AM -0600, T

nfs: possible sync issue between nfs_call_unlink <-> nfs_async_unlink_release

2018-07-03 Thread Rafael Tinoco
BUG: https://bugs.linaro.org/show_bug.cgi?id=3731 During Linaro's Kernel Functional tests, we have observed the following situation: [ 52.651490] DEBUG_LOCKS_WARN_ON(sem->owner != ((struct task_struct *)1UL)) [ 52.651506] WARNING: CPU: 2 PID: 1457 at ./kernel/locking/rwsem.c:217 up_read_non_o

Re: [PATCH v2 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-03 Thread Andy Shevchenko
On Tue, Jul 3, 2018 at 8:41 AM, Nikolaus Voss wrote: > Use device_get_match_data API to simplify access to driver data. ..._data() But. You actually don't use it below. > Let acpi_device_id table entries point to the same driver data as > of_device_id table entries and uniquify access to driver

[PATCH] x86/numa_emulation: Fix uniform size build failure

2018-07-03 Thread Dan Williams
The calculation of a uniform numa-node size attempted to perform division with a 64-bit diviser leading to the following failure on 32-bit: arch/x86/mm/numa_emulation.o: In function `split_nodes_size_interleave_uniform': arch/x86/mm/numa_emulation.c:239: undefined reference to `__udivdi3'

I am looking forward to your prompt reply !!!

2018-07-03 Thread Mr Ambrose Fred
Dear Friend, I need your urgent attention for a business Proposal. Hope to hear from you for more details. Warmest regards Mr. Ambrose Fred

[PATCH] fsi: sbefifo: Add missing mutex_unlock

2018-07-03 Thread Eddie James
There was no unlock of the FFDC mutex. Fixes: 9f4a8a2d7f9d ("fsi/sbefifo: Add driver for the SBE FIFO") Signed-off-by: Eddie James --- drivers/fsi/fsi-sbefifo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c index 4f076fd..a34ff99 100644

Re: [PATCH v12 05/13] x86/sgx: architectural structures

2018-07-03 Thread Dave Hansen
On 07/03/2018 11:19 AM, Jarkko Sakkinen wrote: > +enum sgx_cpuid { > + SGX_CPUID_CAPABILITIES = 0, > + SGX_CPUID_ATTRIBUTES= 1, > + SGX_CPUID_EPC_BANKS = 2, > +}; I made a review comment about these last time. I don't remember receiving any kind of response from you on it, or

Re: [PATCH] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-03 Thread Andy Shevchenko
On Tue, Jul 3, 2018 at 9:09 AM, Nikolaus Voss wrote: > When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to > of_device_id table "compatible" strings in DSD, a pointer to the > corresponding DT table entry should be returned instead of a null > pointer. An acpi_device_id match

Re: [PATCH] cgroup: use irqsave in cgroup_rstat_flush_locked()

2018-07-03 Thread Sebastian Andrzej Siewior
On 2018-07-03 13:24:24 [-0700], Tejun Heo wrote: > (cc'ing Peter and Ingo for lockdep) > > Hello, Sebastian. Hi Tejun, > On Tue, Jul 03, 2018 at 06:45:44PM +0200, Sebastian Andrzej Siewior wrote: > > All callers of cgroup_rstat_flush_locked() acquire cgroup_rstat_lock > > either with spin_lock_ir

[PATCH] memstick: host: tifm_ms: mark expected switch fall-throughs

2018-07-03 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/memstick/host/tifm_ms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/memstick/host/tifm_ms.c b/drivers/memstick/host/tifm_m

Re: [PATCH] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-03 Thread Andy Shevchenko
On Wed, Jul 4, 2018 at 12:31 AM, Andy Shevchenko wrote: > On Tue, Jul 3, 2018 at 9:09 AM, Nikolaus Voss > wrote: >> When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to >> of_device_id table "compatible" strings in DSD, a pointer to the >> corresponding DT table entry should b

[PATCH] memstick: host: jmb38x_ms: mark expected switch fall-throughs

2018-07-03 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/memstick/host/jmb38x_ms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/memstick/host/jmb38x_ms.c b/drivers/memstick/host/j

Re: [PATCH] fs: iomap: Change return type to vm_fault_t

2018-07-03 Thread Darrick J. Wong
On Mon, Jul 02, 2018 at 07:52:41PM +0200, Andreas Gruenbacher wrote: > On 2 July 2018 at 17:43, Souptick Joarder wrote: > > Return type has been changed to vm_fault_t type for > > iomap_page_mkwrite(). > > > > see commit 1c8f422059ae ("mm: change return type to > > vm_fault_t") for reference. > >

[PATCH] isdn: mark expected switch fall-throughs

2018-07-03 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Warning level 2 was used: -Wimplicit-fallthrough=2 Signed-off-by: Gustavo A. R. Silva --- drivers/isdn/gigaset/bas-gigaset.c | 3 +++ drivers/isdn/hardware/mISDN/avmfritz.c

Re: WARN_ON_ONCE() in process_one_work()?

2018-07-03 Thread Paul E. McKenney
On Tue, Jul 03, 2018 at 01:12:05PM -0700, Tejun Heo wrote: > Hello, Paul. > > On Tue, Jul 03, 2018 at 09:40:44AM -0700, Paul E. McKenney wrote: > > > I will apply this, but be advised that I have not seen that WARN_ON_ONCE() > > > trigger since. :-/ > > > > But I get a build error: > > > > kern

Re: [PATCH] x86/MCE: Fix CPU microcode version output

2018-07-03 Thread Borislav Petkov
On Tue, Jul 03, 2018 at 09:58:49AM -0700, Luck, Tony wrote: > On Tue, Jul 03, 2018 at 12:48:44PM -0400, Prarit Bhargava wrote: > > On systems where a runtime microcode update has occurred the > > microcode version is wrong because boot_cpu_data.microcode is > > not updated during runtime. > > > >

Re: [PATCH v4 6/6] arm64: dts: sdm845: Add tsens nodes

2018-07-03 Thread Matthias Kaehlcke
Hi, On Mon, Jul 02, 2018 at 06:14:09PM +0530, Amit Kucheria wrote: > SDM845 has two tsens blocks, one with 13 sensors and the other with 8 > sensors. > > Signed-off-by: Amit Kucheria > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 > 1 file changed, 16 insertions(+) > > diff

Re: [PATCH v2 1/4] iio: hx711: add data-ready-delay-ns property in DT

2018-07-03 Thread Rob Herring
On Sat, Jun 30, 2018 at 06:32:32PM +0100, Jonathan Cameron wrote: > On Mon, 25 Jun 2018 17:18:02 +0200 > Andreas Klinger wrote: > > > add data-ready-delay-ns property for hx711 ADC > > this is the delay after rising PD_SCK until DOUT is read and assumed to be > > ready > > > > Signed-off-by: And

Re: [PATCH] fs: iomap: Change return type to vm_fault_t

2018-07-03 Thread Andreas Gruenbacher
On 3 July 2018 at 23:39, Darrick J. Wong wrote: > On Mon, Jul 02, 2018 at 07:52:41PM +0200, Andreas Gruenbacher wrote: >> On 2 July 2018 at 17:43, Souptick Joarder wrote: >> > Return type has been changed to vm_fault_t type for >> > iomap_page_mkwrite(). >> > >> > see commit 1c8f422059ae ("mm: ch

Re: [PATCH 10/32] VFS: Implement a filesystem superblock creation/configuration context [ver #8]

2018-07-03 Thread David Howells
Eric Biggers wrote: > ->s_umount is released once here and again in destroy_unused_super(). Good catch, thanks. The interface has changed over the lifetime of the patches. How about the attached patch? David --- commit b3899e214a6a0e0551f6dc707b28d61b11e718a5 Author: David Howells Date: Tu

Re: [PATCH v2] vmw_pvrdma: Release netdev when vmxnet3 module is removed

2018-07-03 Thread Jason Gunthorpe
On Fri, Jun 29, 2018 at 07:52:06AM -0400, Neil Horman wrote: > On repeated module load/unload cycles, its possible for the pvrmda > driver to encounter this crash: > > ... > 297.032448] RIP: 0010:[] [] > netdev_walk_all_upper_dev_rcu+0x50/0xb0 > [ 297.034078] RSP: 0018:95087780bd08 EFLAGS:

Re: [PATCH 10/32] VFS: Implement a filesystem superblock creation/configuration context [ver #8]

2018-07-03 Thread Al Viro
On Tue, Jul 03, 2018 at 10:53:22PM +0100, David Howells wrote: > - if (s) { > - up_write(&s->s_umount); > + if (s) > destroy_unused_super(s); static void destroy_unused

[PATCH v2 30/32] mtd: rawnand: jz4740: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v2 29/32] mtd: rawnand: qcom: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v2 15/32] mtd: rawnand: mtk: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v2 31/32] mtd: rawnand: do not export nand_scan_[ident|tail]() anymore

2018-07-03 Thread Miquel Raynal
Both nand_scan_ident() and nand_scan_tail() helpers used to be called directly from controller drivers that needed to tweak some ECC-related parameters before nand_scan_tail(). This separation prevented dynamic allocations during the phase of NAND identification, which was inconvenient. All contro

[PATCH v2 32/32] mtd: rawnand: allocate dynamically ONFI parameters during detection

2018-07-03 Thread Miquel Raynal
Now that it is possible to do dynamic allocations during the identification phase, convert the onfi_params structure (which is only needed with ONFI compliant chips) into a pointer that will be allocated only if needed. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/raw/nand_base.c| 54 ++

[PATCH v2 11/32] mtd: rawnand: jz4780: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal Acked-by: Harvey Hunt

[PATCH v2 00/32] Allow dynamic allocations during NAND chip identification phase

2018-07-03 Thread Miquel Raynal
Hello, This series make a quite deep change in the NAND framework. Until now, the NAND chip identification phase could be done in two manners from the controller driver perspective: 1/ Call nand_scan() or 1/ Call nand_scan_ident() 2/ Do some controller-dependent configuration 3/ Call nand_sca

[PATCH v2 21/32] mtd: rawnand: sh_flctl: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v2 27/32] mtd: rawnand: sm_common: convert driver to nand_scan_with_ids()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan_with_ids() (alternative to nand_scan() for passing a flash IDs table) instead of both nand_scan_ident() and nan

[PATCH v3] stop_machine: Disable preemption when waking two stopper threads

2018-07-03 Thread Isaac J. Manjarres
When cpu_stop_queue_two_works() begins to wake the stopper threads, it does so without preemption disabled, which leads to the following race condition: The source CPU calls cpu_stop_queue_two_works(), with cpu1 as the source CPU, and cpu2 as the destination CPU. When adding the stopper threads to

[PATCH v2 25/32] mtd: rawnand: vf610: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v2 20/32] mtd: rawnand: sh_flctl: move all NAND chip related setup in one function

2018-07-03 Thread Miquel Raynal
Prepare the conversion of the sh_flctl driver to nand_scan() by moving all the configuration that must be made after nand_scan_ident() in one single function. Create a pdata entry in the controller structure for that. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/raw/sh_flctl.c | 38

[PATCH v2 26/32] mtd: rawnand: atmel: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v2 22/32] mtd: rawnand: sunxi: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v2 24/32] mtd: rawnand: txx9ndfmc: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v2 28/32] mtd: rawnand: docg4: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v2 23/32] mtd: rawnand: tango: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

Re: [PATCH 5/6] perf/core: Use ioctl to communicate driver configuration to kernel

2018-07-03 Thread Mathieu Poirier
On Tue, 3 Jul 2018 at 04:03, Alexander Shishkin wrote: > > On Mon, Jul 02, 2018 at 04:33:29PM -0600, Mathieu Poirier wrote: > > This patch follows what has been done for filters by adding an ioctl() > > option to communicate to the kernel arbitrary PMU specific configuration > > that don't fit in

[PATCH v2 18/32] mtd: rawnand: omap2: convert driver to nand_scan()

2018-07-03 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

<    2   3   4   5   6   7   8   9   >