[PATCH v9 9/9] gpio: uniphier: Utilize for_each_set_clump8 macro

2019-03-02 Thread William Breathitt Gray
Replace verbose implementation in set_multiple callback with for_each_set_clump8 macro to simplify code and improve clarity. An improvement in this case is that banks that are not masked will now be skipped. Cc: Masahiro Yamada Signed-off-by: William Breathitt Gray ---

[PATCH v9 8/9] gpio: pcie-idio-24: Utilize for_each_set_clump8 macro

2019-03-02 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pcie-idio-24.c | 111 --- 1 file

[PATCH v9 7/9] gpio: pci-idio-16: Utilize for_each_set_clump8 macro

2019-03-02 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pci-idio-16.c | 75 - 1 file

[PATCH v9 6/9] gpio: ws16c48: Utilize for_each_set_clump8 macro

2019-03-02 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-ws16c48.c | 72 +++-- 1 file

[PATCH v9 5/9] gpio: gpio-mm: Utilize for_each_set_clump8 macro

2019-03-02 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-gpio-mm.c | 73 +++-- 1 file

[PATCH v9 3/9] gpio: 104-dio-48e: Utilize for_each_set_clump8 macro

2019-03-02 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-dio-48e.c | 73 ++--- 1 file

[PATCH v9 4/9] gpio: 104-idi-48: Utilize for_each_set_clump8 macro

2019-03-02 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Reviewed-by: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-idi-48.c | 37 -- 1 file

[PATCH v9 1/9] bitops: Introduce the for_each_set_clump8 macro

2019-03-02 Thread William Breathitt Gray
This macro iterates for each 8-bit group of bits (clump) with set bits, within a bitmap memory region. For each iteration, "start" is set to the bit offset of the found clump, while the respective clump value is stored to the location pointed by "clump". Additionally, the bitmap_get_value8 and

[PATCH v9 2/9] lib/test_bitmap.c: Add for_each_set_clump8 test cases

2019-03-02 Thread William Breathitt Gray
The introduction of the for_each_set_clump8 macro warrants test cases to verify the implementation. This patch adds test case checks for whether an out-of-bounds clump index is returned, a zero clump is returned, or the returned clump value differs from the expected clump value. Cc: Andrew Morton

[PATCH v9 0/9] Introduce the for_each_set_clump8 macro

2019-03-02 Thread William Breathitt Gray
Changes in v9: - Return unsigned long for bitmap_get_value8 for consistency While adding GPIO get_multiple/set_multiple callback support for various drivers, I noticed a pattern of looping manifesting that would be useful standardized as a macro. This patchset introduces the

[PATCH v3] mm/memory.c: do_fault: avoid usage of stale vm_area_struct

2019-03-02 Thread Jan Stancek
LTP testcase mtest06 [1] can trigger a crash on s390x running 5.0.0-rc8. This is a stress test, where one thread mmaps/writes/munmaps memory area and other thread is trying to read from it: CPU: 0 PID: 2611 Comm: mmap1 Not tainted 5.0.0-rc8+ #51 Hardware name: IBM 2964 N63 400 (z/VM 6.4.0)

Re: [PATCH v2] mm/memory.c: do_fault: avoid usage of stale vm_area_struct

2019-03-02 Thread Jan Stancek
- Original Message - > Hello Jan, > > On Sat, Mar 02, 2019 at 07:19:39PM +0100, Jan Stancek wrote: > > + struct mm_struct *vm_mm = READ_ONCE(vma->vm_mm); > > The vma->vm_mm cannot change under gcc there, so no need of > READ_ONCE. The release of mmap_sem has release semantics so the

Re: [PATCH v2 03/13] mm: Add generic p?d_large() macros

2019-03-02 Thread Mike Rapoport
On Fri, Mar 01, 2019 at 01:39:30PM +, Steven Price wrote: > On 01/03/2019 12:30, Kirill A. Shutemov wrote: > > On Fri, Mar 01, 2019 at 01:53:01PM +0200, Mike Rapoport wrote: > >> Him Kirill, > >> > >> On Fri, Feb 22, 2019 at 12:06:18AM +0300, Kirill A. Shutemov wrote: > >>> On Thu, Feb 21,

RE: [PATCH 10/12] percpu: make pcpu_block_md generic

2019-03-02 Thread Peng Fan
> -Original Message- > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On > Behalf Of Dennis Zhou > Sent: 2019年2月28日 10:19 > To: Dennis Zhou ; Tejun Heo ; Christoph > Lameter > Cc: Vlad Buslov ; kernel-t...@fb.com; > linux...@kvack.org; linux-kernel@vger.kernel.org >

Re

2019-03-02 Thread Pablo Mancilla
Good day, I did send you an email on charity works and I dont know if you got it.Please reach me for updates or let me know if to resend Pablo Mancilla

RE: [PATCH 07/12] percpu: add block level scan_hint

2019-03-02 Thread Peng Fan
Hi Dennis > -Original Message- > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On > Behalf Of Dennis Zhou > Sent: 2019年2月28日 10:19 > To: Dennis Zhou ; Tejun Heo ; Christoph > Lameter > Cc: Vlad Buslov ; kernel-t...@fb.com; > linux...@kvack.org;

RE: [PATCH 06/12] percpu: set PCPU_BITMAP_BLOCK_SIZE to PAGE_SIZE

2019-03-02 Thread Peng Fan
> -Original Message- > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On > Behalf Of Dennis Zhou > Sent: 2019年2月28日 10:19 > To: Dennis Zhou ; Tejun Heo ; Christoph > Lameter > Cc: Vlad Buslov ; kernel-t...@fb.com; > linux...@kvack.org; linux-kernel@vger.kernel.org >

[PATCH -next] lockdep: skip debugobjects for lock_classes[] init

2019-03-02 Thread Qian Cai
The linux-next commit a0b0fd53e1e6 ("locking/lockdep: Free lock classes that are no longer in use") let init_data_structures_once() call init_rcu_head(). As the result, smp_setup_processor_id() calls debug_object_init() before debug_objects_early_init() triggering errors below on arm64 and

Re: x86 VM Boot hang with latest linux-next

2019-03-02 Thread Mike Snitzer
On Sat, Mar 02 2019 at 6:34pm -0500, Alexander Duyck wrote: > So I have been seeing an issue with an intermittent boot hang on my > x86 KVM VM with the latest linux-next and have bisected it down to the > following commit: > 1efa3bb79d3de8ca1b7f6770313a1fc0bebe25c7 is the first bad commit >

Re: [PATCH v2] RDMA/umem: minor bug fix and cleanup in error handling paths

2019-03-02 Thread Ira Weiny
FWIW I don't have ODP hardware either. So I can't test this either. On Sat, Mar 02, 2019 at 12:24:35PM -0800, john.hubb...@gmail.com wrote: > From: John Hubbard > > 1. Bug fix: the error handling release pages starting > at the first page that experienced an error. > > 2. Refinement:

[git pull] vfs.git fixes

2019-03-02 Thread Al Viro
Assorted fixes that sat in -next for a while, all over the place. The following changes since commit 1c7fc5cbc33980acd13d668f1c8f0313d6ae9fd8: Linux 5.0-rc2 (2019-01-14 10:41:12 +1200) are available in the git repository at:

Re: [PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking

2019-03-02 Thread Nicholas Piggin
Linus Torvalds's on March 3, 2019 12:18 pm: > On Sat, Mar 2, 2019 at 5:43 PM Nicholas Piggin wrote: >> >> Is there a reason to call this "mmiowb"? We already have wmb that >> orders cacheable stores vs mmio stores don't we? > > Sadly no it doesn't. Not on ia64, and people tried to make that the

Re: [PATCH] x86/KASLR: always return a value from process_mem_region

2019-03-02 Thread Nathan Chancellor
On Sat, Mar 02, 2019 at 06:49:29PM +, Louis Taylor wrote: > When compiling with -Wreturn-type, clang warns: > > arch/x86/boot/compressed/kaslr.c:704:1: warning: control may reach end of > non-void function [-Wreturn-type] > > This function's return statement should probably have been

Re: [PATCH] rsi: Fix NULL pointer dereference in kmalloc

2019-03-02 Thread Joe Perches
On Sat, 2019-03-02 at 14:31 -0600, Aditya Pakki wrote: > kmalloc can fail in rsi_register_rates_channels but memcpy still attempts > to write to channels. The patch checks and avoids such a situation. [] > diff --git a/drivers/net/wireless/rsi/rsi_91x_mac80211.c >

Re: [PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking

2019-03-02 Thread Linus Torvalds
On Sat, Mar 2, 2019 at 5:43 PM Nicholas Piggin wrote: > > Is there a reason to call this "mmiowb"? We already have wmb that > orders cacheable stores vs mmio stores don't we? Sadly no it doesn't. Not on ia64, and people tried to make that the new rule because of the platform breakage on what

Re: [PATCH v4 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-03-02 Thread kbuild test robot
Hi Joel, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc8] [cannot apply to next-20190301] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH v2 0/1] PINCTRL: Mediatek pinctrl patch for mt8183

2019-03-02 Thread Zhiyong Tao
This series includes one patche: 1.Add drive for I2C related pins on MT8183. Changes in patch v2: 1)add the details strength specification description of the I2C pin. 2)change "mt8183_pin_drv_en_dis_range" to "mt8183_pin_e1e0en_range". 3)change "mt8183_pin_drv_e0_range" to "mt8183_pin_e0_range".

[PATCH] pinctrl: add drive for I2C related pins on MT8183

2019-03-02 Thread Zhiyong Tao
This patch provides the advanced drive for I2C used pins on MT8183. The detail strength specification description of the I2C pin is as follows. When E1=0/E0=0, the strength is 0.125mA. When E1=0/E0=1, the strength is 0.25mA. When E1=1/E0=0, the strength is 0.5mA. When E1=1/E0=1, the strength is

Re: [PATCH 03/20] mmiowb: Hook up mmiowb helpers to spinlocks and generic I/O accessors

2019-03-02 Thread Nicholas Piggin
Will Deacon's on March 2, 2019 12:03 am: > @@ -177,6 +178,7 @@ do { > \ > static inline void do_raw_spin_lock(raw_spinlock_t *lock) __acquires(lock) > { > __acquire(lock); > + mmiowb_spin_lock(); >

Re: [PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking

2019-03-02 Thread Nicholas Piggin
Will Deacon's on March 2, 2019 12:03 am: > In preparation for removing all explicit mmiowb() calls from driver > code, implement a tracking system in asm-generic based loosely on the > PowerPC implementation. This allows architectures with a non-empty > mmiowb() definition to have the barrier

Re: [PATCH 3/6] x86: clean up _TIF_SYSCALL_EMU handling using ptrace_syscall_enter hook

2019-03-02 Thread Andy Lutomirski
On Thu, Feb 28, 2019 at 10:32 AM Sudeep Holla wrote: > > Now that we have a new hook ptrace_syscall_enter that can be called from > syscall entry code and it handles PTRACE_SYSEMU in generic code, we > can do some cleanup using the same in syscall_trace_enter. > > Further the extra logic to find

Re: a.out coredumping: fix or delete?

2019-03-02 Thread Andy Lutomirski
On Fri, Mar 1, 2019 at 3:57 PM Jann Horn wrote: > > In theory, Linux can dump cores for a.out binaries. In practice, that > code is pretty bitrotten and buggy. Does anyone want that code so much > that they'd like to fix it, or can we just delete it? I would propose just deleting it.

Re: [GIT PULL] ARM: SoC fixes for v5.0

2019-03-02 Thread pr-tracker-bot
The pull request you sent on Sat, 2 Mar 2019 23:28:17 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git tags/armsoc-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c027c7cf1577bc2333449447c6e48c93126a56b0 Thank you! -- Deet-doot-dot, I am a

Re: [RFC PATCH 2/2] ceph: quota: fix quota subdir mounts

2019-03-02 Thread Jeff Layton
On Fri, 2019-03-01 at 17:57 +, Luis Henriques wrote: > The CephFS kernel client doesn't enforce quotas that are set in a > directory that isn't visible in the mount point. For example, given the > path '/dir1/dir2', if quotas are set in 'dir1' and the mount is done in with > > mount -t

[PATCH v10 22/27] MIPS: qi_lb60: Reduce system timer and clocksource to 750 kHz

2019-03-02 Thread Paul Cercueil
The default clock (12 MHz) is too fast for the system timer, which fails to report time accurately. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: Remove ingenic,clocksource-channel property

[PATCH v10 21/27] MIPS: qi_lb60: Move PWM devices to devicetree

2019-03-02 Thread Paul Cercueil
Probe the few drivers using PWMs from devicetree, now that we have a devicetree node for the PWM driver. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: No change v7: No change v8:

[PATCH v10 27/27] MIPS: jz4740: Drop obsolete code

2019-03-02 Thread Paul Cercueil
The old clocksource/timer platform code is now obsoleted by the newly introduced ingenic-timer and ingenic-ost drivers. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: No change v7: No change

[PATCH v10 23/27] MIPS: CI20: Reduce system timer and clocksource to 3 MHz

2019-03-02 Thread Paul Cercueil
The default clock (48 MHz) is too fast for the system timer. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: Set also the rate for the clocksource channel's clock v7: No change v8:

[PATCH v10 26/27] MIPS: GCW0: defconfig: Enable OST, watchdog, PWM drivers

2019-03-02 Thread Paul Cercueil
The OST driver provides a clocksource and sched_clock that are much more accurate than the default ones. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v8: New patch v9: No change v10: No change

[PATCH v10 25/27] MIPS: GCW0: Reduce system timer and clocksource to 750 kHz

2019-03-02 Thread Paul Cercueil
The default clock (12 MHz) is too fast for the system timer. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v8: New patch v9: Don't configure clock timer1, as the OS Timer is used as clocksource on this SoC

[PATCH v10 24/27] MIPS: CI20: defconfig: enable OST driver

2019-03-02 Thread Paul Cercueil
The OST driver provides a clocksource and sched_clock that are much more accurate than the default ones. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: No change v7: No change v8:

[PATCH v10 15/27] pwm: jz4740: Allow selection of PWM channels 0 and 1

2019-03-02 Thread Paul Cercueil
The TCU channels 0 and 1 were previously reserved for system tasks, and thus unavailable for PWM. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v6: New patch v7: No change v8:

[PATCH v10 19/27] MIPS: Kconfig: Select TCU timer driver when MACH_INGENIC is set

2019-03-02 Thread Paul Cercueil
We cannot boot to userspace (not even initramfs) if the timer driver is not present; so it makes sense to enable it unconditionally when MACH_INGENIC is set. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: No

[PATCH v10 16/27] pwm: jz4740: Drop dependency on MACH_INGENIC, use COMPILE_TEST

2019-03-02 Thread Paul Cercueil
Depending on MACH_INGENIC prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being set. On other architectures, this driver can still be built, thanks to COMPILE_TEST. This is used by automated tools to find bugs, for instance.

[PATCH v10 14/27] pwm: jz4740: Improve algorithm of clock calculation

2019-03-02 Thread Paul Cercueil
The previous algorithm hardcoded details about how the TCU clocks work. The new algorithm will use clk_round_rate to find the perfect clock rate for the PWM channel. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v9: New patch

[PATCH v10 11/27] pwm: jz4740: Apply configuration atomically

2019-03-02 Thread Paul Cercueil
This is cleaner, more future-proof, and incidentally it also fixes the PWM resetting its config when stopped/started several times. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v9: New patch v10: No change

[PATCH v10 13/27] pwm: jz4740: Use clocks from TCU driver

2019-03-02 Thread Paul Cercueil
The ingenic-timer "TCU" driver provides us with clocks, that can be (un)gated, reparented or reclocked from devicetree, instead of having these settings hardcoded in this driver. While this driver is devicetree-compatible, it is never (as of now) probed from devicetree, so this change does not

[PATCH v10 17/27] pwm: jz4740: Remove unused devicetree compatible strings

2019-03-02 Thread Paul Cercueil
Right now none of the Ingenic-based boards probe this driver from devicetree. This driver defined three compatible strings for the exact same behaviour. Before these strings are used, we can remove two of them. Signed-off-by: Paul Cercueil Acked-by: Thierry Reding Tested-by: Mathieu Malaterre

[PATCH v10 20/27] MIPS: jz4740: Add DTS nodes for the TCU drivers

2019-03-02 Thread Paul Cercueil
Add DTS nodes for the JZ4780, JZ4770 and JZ4740 devicetree files. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: Fix register lengths in watchdog/pwm nodes v7: No change v8: - Fix

[PATCH v10 18/27] clk: jz4740: Add TCU clock

2019-03-02 Thread Paul Cercueil
Add the missing TCU clock to the list of clocks supplied by the CGU for the JZ4740 SoC. Signed-off-by: Paul Cercueil Acked-by: Stephen Boyd Acked-by: Rob Herring Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: No change

[PATCH v10 09/27] watchdog: jz4740: Avoid starting watchdog in set_timeout

2019-03-02 Thread Paul Cercueil
Previously the jz4740_wdt_set_timeout() function was starting the timer unconditionally, even if it was stopped when that function was entered. Now, the timer will be restarted only if it was already running before this function is called. Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck

[PATCH v10 12/27] pwm: jz4740: Use regmap from TCU driver

2019-03-02 Thread Paul Cercueil
The ingenic-timer "TCU" driver provides us with a regmap, that we can use to safely access the TCU registers. While this driver is devicetree-compatible, it is never (as of now) probed from devicetree, so this change does not introduce a ABI problem with current devicetree files. Signed-off-by:

[PATCH v10 10/27] watchdog: jz4740: Drop dependency on MACH_JZ47xx, use COMPILE_TEST

2019-03-02 Thread Paul Cercueil
Depending on MACH_JZ47xx prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being set. On other architectures, this driver can still be built, thanks to COMPILE_TEST. This is used by automated tools to find bugs, for instance.

[PATCH v10 05/27] clocksource: Add driver for the Ingenic JZ47xx OST

2019-03-02 Thread Paul Cercueil
From: Maarten ter Huurne OST is the OS Timer, a 64-bit timer/counter with buffered reading. SoCs before the JZ4770 had (if any) a 32-bit OST; the JZ4770 and JZ4780 have a 64-bit OST. This driver will register both a clocksource and a sched_clock to the system. Signed-off-by: Maarten ter

[PATCH v10 06/27] MAINTAINERS: Add myself as maintainer for Ingenic TCU drivers

2019-03-02 Thread Paul Cercueil
Add myself as maintainer for the ingenic-timer and ingenic-ost drivers. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v2: No change v3: No change v4: No change v5: Update with new files

[PATCH v10 08/27] watchdog: jz4740: Use regmap provided by TCU driver

2019-03-02 Thread Paul Cercueil
Since we broke the ABI by changing the clock, the driver was also updated to use the regmap provided by the TCU driver. Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v6: New patch v7: No change

[PATCH v10 02/27] doc: Add doc for the Ingenic TCU hardware

2019-03-02 Thread Paul Cercueil
Add a documentation file about the Timer/Counter Unit (TCU) present in the Ingenic JZ47xx SoCs. The Timer/Counter Unit (TCU) in Ingenic JZ47xx SoCs is a multi-function hardware block. It features up to to eight channels, that can be used as counters, timers, or PWM. - JZ4725B, JZ4750, JZ4755

[PATCH v10 07/27] watchdog: jz4740: Use WDT clock provided by TCU driver

2019-03-02 Thread Paul Cercueil
Instead of requesting the "ext" clock and handling the watchdog clock divider and gating in the watchdog driver, we now request and use the "wdt" clock that is supplied by the ingenic-timer "TCU" driver. The major benefit is that the watchdog's clock rate and parent can now be specified from

[PATCH v10 03/27] dt-bindings: Add doc for the Ingenic TCU drivers

2019-03-02 Thread Paul Cercueil
Add documentation about how to properly use the Ingenic TCU (Timer/Counter Unit) drivers from devicetree. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v4: New patch in this series. Corresponds to V2 patches

[PATCH v10 04/27] clocksource: Add a new timer-ingenic driver

2019-03-02 Thread Paul Cercueil
This driver handles the TCU (Timer Counter Unit) present on the Ingenic JZ47xx SoCs, and provides the kernel with a system timer, and optionally with a clocksource and a sched_clock. It also provides clocks and interrupt handling to client drivers. Signed-off-by: Paul Cercueil Tested-by:

[5.2][PATCH v10 00/27] Ingenic TCU patchset

2019-03-02 Thread Paul Cercueil
Hi, This is the Ingenic JZ47xx TCU patchset version 10. Changes from v9: - [04/27]: - The clocksource is now created unconditionally, even if the SoC has the better OS Timer. This gives the choice back to the user. - Simplify the set_rate/set_parent callbacks

x86 VM Boot hang with latest linux-next

2019-03-02 Thread Alexander Duyck
So I have been seeing an issue with an intermittent boot hang on my x86 KVM VM with the latest linux-next and have bisected it down to the following commit: 1efa3bb79d3de8ca1b7f6770313a1fc0bebe25c7 is the first bad commit commit 1efa3bb79d3de8ca1b7f6770313a1fc0bebe25c7 Author: Mike Snitzer Date:

[PATCH v10 01/27] dt-bindings: ingenic: Add DT bindings for TCU clocks

2019-03-02 Thread Paul Cercueil
This header provides clock numbers for the ingenic,tcu DT binding. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring Acked-by: Stephen Boyd Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v2: Use SPDX identifier for the license v3: No change

Re: [PATCH] net/bluetooth: Fix bound check in event handling

2019-03-02 Thread Tomas Bortoli
Hi Marcel, On 3/2/19 5:46 PM, Marcel Holtmann wrote: > Hi Tomas, > >> hci_inquiry_result_with_rssi_evt() can perform out of bound reads >> on skb->data as a bound check is missing. >> >> Signed-off-by: Tomas Bortoli >> Reported-by: syzbot+cec7a50c412a2c03f...@syzkaller.appspotmail.com >>

Re: [PATCH v4 2/7] dt-bindings: ti-lmu: Modify dt bindings for the LM3697

2019-03-02 Thread Pavel Machek
Hi! > I just want to follow up here and let you know that I have not abandoned this. > I am trying to rework and fix up the ti lmu binding as asked by Pavel. Its > proving > to be a bit of a challenge based on looking forward to what will be the > implementation. > > I also did go offline and

[PATCH 2/2] ARM: uaccess: use unified assembler language syntax

2019-03-02 Thread Stefan Agner
Convert the conditional infix to a postfix to make sure this inline assembly is unified syntax. Since gcc assumes non-unified syntax when emitting ARM instructions, make sure to define the syntax as unified. This allows to use LLVM's integrated assembler. Additionally, for GCC ".syntax unified"

[PATCH 1/2] ARM: add TUSERCOND() macro for conditional postfix

2019-03-02 Thread Stefan Agner
Unified assembly syntax requires conditionals to be postfixes. TUSER() currently only takes a single argument which then gets appended t (with translation) on every instruction. This fixes a build error when using LLVM's integrated assembler: In file included from kernel/futex.c:72:

[PATCH][next] RDMA/nes: remove redundant check on udata

2019-03-02 Thread Colin King
From: Colin Ian King The non-null check on udata is redundant as this check was performed just a few statements earlier and the check is always true as udata must be non-null at this point. Remove redundant the check on udata and the redundant else part that can never be executed. Detected by

Re: [PATCH] mm: compaction: show gfp flag names in try_to_compact_pages tracepoint

2019-03-02 Thread kbuild test robot
-ci/linux/commits/Yafang-Shao/mm-compaction-show-gfp-flag-names-in-try_to_compact_pages-tracepoint/20190302-212241 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' All warnings (new ones prefixed

[PATCH] mm/hotplug: don't reset pagetype flags for offline

2019-03-02 Thread Qian Cai
The commit f1dd2cd13c4b ("mm, memory_hotplug: do not associate hotadded memory to zones until online") introduced move_pfn_range_to_zone() which calls memmap_init_zone() during onlining a memory block. memmap_init_zone() will reset pagetype flags and makes migrate type to be MOVABLE. However, in

[PATCH] ARM: dts: imx7s-warp: PMIC swbst boot-on/always-on

2019-03-02 Thread Pierre-Jean Texier
PMIC swbst regulator is used for the MikroBUS socket (pin +5V). We have to set the regulator to "boot-on" and "always-on" to output a voltage of 5V on this socket. Signed-off-by: Pierre-Jean Texier --- arch/arm/boot/dts/imx7s-warp.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 05/12] percpu: relegate chunks unusable when failing small allocations

2019-03-02 Thread Dennis Zhou
On Sat, Mar 02, 2019 at 01:55:54PM +, Peng Fan wrote: > Hi Dennis, > > > -Original Message- > > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On > > Behalf Of Dennis Zhou > > Sent: 2019年2月28日 10:19 > > To: Dennis Zhou ; Tejun Heo ; Christoph > > Lameter > > Cc:

Re: [PATCH 04/12] percpu: manage chunks based on contig_bits instead of free_bytes

2019-03-02 Thread Dennis Zhou
On Sat, Mar 02, 2019 at 01:48:20PM +, Peng Fan wrote: > > > > -Original Message- > > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On > > Behalf Of Dennis Zhou > > Sent: 2019年2月28日 10:19 > > To: Dennis Zhou ; Tejun Heo ; Christoph > > Lameter > > Cc: Vlad Buslov ;

[GIT PULL] ARM: SoC fixes for v5.0

2019-03-02 Thread Arnd Bergmann
The following changes since commit 5908e6b738e3357af42c10e1183753c70a0117a9: Linux 5.0-rc8 (2019-02-24 16:46:45 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git tags/armsoc-fixes for you to fetch changes up to

Re: [PATCH 03/12] percpu: introduce helper to determine if two regions overlap

2019-03-02 Thread Dennis Zhou
On Sat, Mar 02, 2019 at 01:37:37PM +, Peng Fan wrote: > Hi Dennis, > > > -Original Message- > > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On > > Behalf Of Dennis Zhou > > Sent: 2019年2月28日 10:19 > > To: Dennis Zhou ; Tejun Heo ; Christoph > > Lameter > > Cc:

[PATCH][next] HID: uclogic: remove redudant duplicated null check on ver_ptr

2019-03-02 Thread Colin King
From: Colin Ian King Currently ver_ptr is being null checked twice, once before calling usb_string and once afterwards. The second null check is redundant and can be removed, remove it. Detected by CoverityScan, CID#1477308 ("Logically dead code") Signed-off-by: Colin Ian King ---

Re: [PATCH 02/12] percpu: do not search past bitmap when allocating an area

2019-03-02 Thread Dennis Zhou
On Sat, Mar 02, 2019 at 01:32:04PM +, Peng Fan wrote: > Hi Dennis, > > > -Original Message- > > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On > > Behalf Of Dennis Zhou > > Sent: 2019年2月28日 10:18 > > To: Dennis Zhou ; Tejun Heo ; Christoph > > Lameter > > Cc:

[PATCH][drm-next] drm/amdgpu: fix missing assignment of error return code to variable ret

2019-03-02 Thread Colin King
From: Colin Ian King An earlier commit replaced ttm_bo_wait with amdgpu_bo_sync_wait and removed the error return assignment to variable ret. Fix this by adding the assignment back. Also break line to clean up checkpatch overly long line warning. Detected by CoverityScan, CID#1477327

Re: [PATCH 1/2] gcc-plugins: structleak: Generalize to all variable types

2019-03-02 Thread Arnd Bergmann
On Sat, Mar 2, 2019 at 4:43 PM Kees Cook wrote: > > On Sat, Mar 2, 2019 at 1:05 AM Ard Biesheuvel > wrote: > > > > On Thu, 28 Feb 2019 at 21:27, Arnd Bergmann wrote: > > > I get similar results with asan-stack=1 but without your plugin, only > > > the combination of the two has the explosive

Re: [PATCH v4 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-03-02 Thread kbuild test robot
Hi Joel, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc8] [cannot apply to next-20190301] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] isdn: mISDN: Fix potential NULL pointer dereference of kzalloc

2019-03-02 Thread Kangjie Lu
On 3/2/19 3:26 PM, Gustavo A. R. Silva wrote: On 3/2/19 3:20 PM, Aditya Pakki wrote: Allocating memory via kzalloc for phi may fail and causes a NULL pointer dereference. This patch avoids such a scenario. Was this detected by Coccinelle? It was detected by an LLVM-based static analyzer

Re: [PATCH] staging: speakup: i18n: fix spelling mistake "phoneticly" -> "phonetically"

2019-03-02 Thread Christopher Brannon
Samuel Thibault writes: > Hello, > > Colin King, le mer. 28 nov. 2018 16:12:32 +, a ecrit: > > From: Colin Ian King > > > > There is a spelling mistake in array speakup_default_msgs at index > > MSG_FUNCNAME_SPELL_WORD_PHONETICALLY, fix this. > > > > Signed-off-by: Colin Ian King > > We

[mt76/mt7603/mac] Question about missing variable assignment

2019-03-02 Thread Gustavo A. R. Silva
Hi all, The following piece of code in drivers/net/wireless/mediatek/mt76/mt7603/mac.c is missing a variable assignment before line 1058. Notice that there is a potential execution path in which variable *i* is compared against magic number 15 at line 1075 without being initialized previously

[PATCH] mfd: sm501: Fix potential NULL pointer dereference

2019-03-02 Thread Aditya Pakki
lookup variable on failure of allocating memory via devm_kzalloc can cause a NULL pointer dereference. This patch avoids such a scenario. Signed-off-by: Aditya Pakki --- drivers/mfd/sm501.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index

Re: [PATCH] isdn: mISDN: Fix potential NULL pointer dereference of kzalloc

2019-03-02 Thread Gustavo A. R. Silva
On 3/2/19 3:20 PM, Aditya Pakki wrote: > Allocating memory via kzalloc for phi may fail and causes a > NULL pointer dereference. This patch avoids such a scenario. > Was this detected by Coccinelle? If so, please mention it in the commit log. Thanks -- Gustavo > Signed-off-by: Aditya Pakki

Re: [PATCH v2 6/8] clk: Allow parents to be specified without string names

2019-03-02 Thread Jeffrey Hugo
On 2/26/2019 3:34 PM, Stephen Boyd wrote: The common clk framework is lacking in ability to describe the clk topology without specifying strings for every possible parent-child link. There are a few drawbacks to the current approach: 1) String comparisons are used for everything, including

Re: [PATCH] x86: uv: Fix potential NULL pointer dereference of kmalloc_node

2019-03-02 Thread Gustavo A. R. Silva
Hi Aditya, On 3/2/19 3:09 PM, Aditya Pakki wrote: > kmalloc_node might fail to allocate memory for thp field. This fix > attempts to avoid a potential NULL pointer dereference. > If this was detected by any static analyzer, please mention the tool in the commit log. Also, notice that this code

[PATCH] isdn: mISDN: Fix potential NULL pointer dereference of kzalloc

2019-03-02 Thread Aditya Pakki
Allocating memory via kzalloc for phi may fail and causes a NULL pointer dereference. This patch avoids such a scenario. Signed-off-by: Aditya Pakki --- drivers/isdn/hardware/mISDN/hfcsusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/isdn/hardware/mISDN/hfcsusb.c

Re: [PATCH] x86: uv: Fix potential NULL pointer dereference of kmalloc_node

2019-03-02 Thread Joe Perches
On Sat, 2019-03-02 at 15:09 -0600, Aditya Pakki wrote: > kmalloc_node might fail to allocate memory for thp field. This fix > attempts to avoid a potential NULL pointer dereference. right > diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c [] > @@ -2011,6 +2011,9 @@

[PATCH] x86: uv: Fix potential NULL pointer dereference of kmalloc_node

2019-03-02 Thread Aditya Pakki
kmalloc_node might fail to allocate memory for thp field. This fix attempts to avoid a potential NULL pointer dereference. Signed-off-by: Aditya Pakki --- arch/x86/platform/uv/tlb_uv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/platform/uv/tlb_uv.c

Re: [PATCH] rtc: pcf85063: remove dead code

2019-03-02 Thread Alexandre Belloni
On 19/02/2019 15:39:29+0700, Alexey Roslyakov wrote: > Some of defines are not in use since > 7b5768486a910532885f01b9d2dad4818c8b3be1. Remove it to make the code > easier to read and understand. > > Signed-off-by: Alexey Roslyakov > --- > drivers/rtc/rtc-pcf85063.c | 7 --- > 1 file

[PATCH] omapfb: Fix potential NULL pointer dereference in kmalloc

2019-03-02 Thread Aditya Pakki
Memory allocated, using kmalloc, for new_compat may fail. This patch checks for such an error and prevents potential NULL pointer dereference. Signed-off-by: Aditya Pakki --- drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH] rsi: Fix NULL pointer dereference in kmalloc

2019-03-02 Thread Aditya Pakki
kmalloc can fail in rsi_register_rates_channels but memcpy still attempts to write to channels. The patch checks and avoids such a situation. Signed-off-by: Aditya Pakki --- drivers/net/wireless/rsi/rsi_91x_mac80211.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [PATCH] staging: speakup: i18n: fix spelling mistake "phoneticly" -> "phonetically"

2019-03-02 Thread Samuel Thibault
Hello, Colin King, le mer. 28 nov. 2018 16:12:32 +, a ecrit: > From: Colin Ian King > > There is a spelling mistake in array speakup_default_msgs at index > MSG_FUNCNAME_SPELL_WORD_PHONETICALLY, fix this. > > Signed-off-by: Colin Ian King We never got any feedback from the speakup

[PATCH v2] RDMA/umem: minor bug fix and cleanup in error handling paths

2019-03-02 Thread john . hubbard
From: John Hubbard 1. Bug fix: the error handling release pages starting at the first page that experienced an error. 2. Refinement: release_pages() is better than put_page() in a loop. 3. Dead code removal: the check for (user_virt & ~page_mask) is checking for a condition that can never

Re: kernel BUG at include/linux/mm.h:LINE! (4)

2019-03-02 Thread Eric Biggers
On Fri, Mar 01, 2019 at 11:05:05PM -0800, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:42fd8df9d1d9 Add linux-next specific files for 20190228 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=16c3cd5cc0 > kernel

[PATCH] mtd: ubi: wl: Fix uninitialized variable

2019-03-02 Thread Gustavo A. R. Silva
There is a potential execution path in which variable *err* is compared against UBI_IO_BITFLIPS without being properly initialized previously. Fix this by initializing variable *err* to 0. Addresses-Coverity-ID: 1477298 "(Uninitialized scalar variable") Fixes: 663586c0a892 ("ubi: Expose the

Re: [GIT pull] x86 fixes for 5.0

2019-03-02 Thread pr-tracker-bot
The pull request you sent on Sat, 2 Mar 2019 20:19:57 +0100 (CET): > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e7c42a89e9f16039684418dfe3c43b068734ff8f Thank you! -- Deet-doot-dot,

Re: [GIT PULL] SCSI fixes for 5.0-rc7

2019-03-02 Thread pr-tracker-bot
The pull request you sent on Sat, 02 Mar 2019 07:49:48 -0800: > git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/df49fd0ff83a0c20c5ce68a790a4f43601ecdc4a Thank you! -- Deet-doot-dot, I am a bot.

[PATCH][next] net/mlx5e: Remove redundant assignment

2019-03-02 Thread Gustavo A. R. Silva
Remove redundant assignment to tun_entropy->enabled. Addesses-Coverity-ID: 1477328 ("Unused value") Fixes: 97417f6182f8 ("net/mlx5e: Fix GRE key by controlling port tunnel entropy calculation") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c | 6

  1   2   3   >