Race between MMIO writes and level IRQs

2019-06-06 Thread Marc Gonzalez
Hello everyone, There's something about interrupts I have never quite understood, which I'd like to clear up once and for all. What I'm about to write will probably sound trivial to anyone's who's already figured it out, but I need to walk through it. Consider a device, living on some peripheral

Re: [PATCH v6 2/5] mfd: ti-lmu: Add LM36274 support to the ti-lmu

2019-06-06 Thread Pavel Machek
On Wed 2019-06-05 07:56:31, Dan Murphy wrote: > Add the LM36274 register support to the ti-lmu MFD driver. > > Signed-off-by: Dan Murphy > Acked-by: Lee Jones > Signed-off-by: Jacek Anaszewski Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures)

Re: [PATCH v1 0/4] perf augmented_raw_syscalls: Support for arm64

2019-06-06 Thread Leo Yan
Hi all, On Thu, Jun 06, 2019 at 03:56:13PM +0800, Leo Yan wrote: > When I tried to run the trace on arm64 platform with eBPF program > augmented_raw_syscalls, it reports several failures for eBPF program > compilation. So tried to resolve these issues and this patch set is > the working result.

Re: [PATCH v5 2/6] dt-bindings: mfd: Add lm36274 bindings to ti-lmu

2019-06-06 Thread Pavel Machek
On Tue 2019-06-04 12:43:41, Dan Murphy wrote: > Add the LM36274 backlight driver with regulator support. > This is a multi-function device for backlight applications. > > Backlight properties will be documented in it's a supplemental > bindings document. > > Regulator support is documented in

[PATCH v2 4/4] perf augmented_raw_syscalls: Document clang configuration

2019-06-06 Thread Leo Yan
To build this program successfully with clang, there have three compiler options need to be specified: - Header file path: tools/perf/include/bpf; - Specify architecture; - Define macro __NR_CPUS__. This patch add comments to explain the reasons for building failure and give two examples

[PATCH v2 3/4] perf augmented_raw_syscalls: Support arm64 raw syscalls

2019-06-06 Thread Leo Yan
This patch adds support for arm64 raw syscall numbers so that we can use it on arm64 platform. After applied this patch, we need to specify macro -D__aarch64__ or -D__x86_64__ in compilation option so Clang can use the corresponding syscall numbers for arm64 or x86_64 respectively, other

[PATCH v2 2/4] perf augmented_raw_syscalls: Remove duplicate macros

2019-06-06 Thread Leo Yan
The macro SYS_EXECVE has been defined twice, remove the duplicate one. Signed-off-by: Leo Yan --- tools/perf/examples/bpf/augmented_raw_syscalls.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/examples/bpf/augmented_raw_syscalls.c

[PATCH v2 1/4] perf trace: Exit when build eBPF program failure

2019-06-06 Thread Leo Yan
On my Juno board with ARM64 CPUs, perf trace command reports the eBPF program building failure but the command will not exit and continue to run. If we define an eBPF event in config file, the event will be parsed with below flow: perf_config() `> trace__config() `>

[PATCH v2 0/4] perf augmented_raw_syscalls: Support for arm64

2019-06-06 Thread Leo Yan
When I tried to run the trace on arm64 platform with eBPF program augmented_raw_syscalls, it reports several failures for eBPF program compilation. So tried to resolve these issues and this patch set is the working result. 0001 patch lets perf command to exit directly if find eBPF program

Re: [PATCH v5 1/6] regulator: lm363x: Make the gpio register enable flexible

2019-06-06 Thread Pavel Machek
On Tue 2019-06-04 12:43:40, Dan Murphy wrote: > The use of and enablement of the GPIO can be used across devices. > Use the enable_reg in the regulator descriptor for the register to > write. > > Signed-off-by: Dan Murphy > Signed-off-by: Jacek Anaszewski Acked-by: Pavel Machek -- (english)

[PATCH 5/8] drivers: media: coda: fix warning same module names

2019-06-06 Thread Anders Roxell
When building with CONFIG_VIDEO_CODA and CONFIG_CODA_FS enabled as loadable modules, we see the following warning: warning: same module names found: fs/coda/coda.ko drivers/media/platform/coda/coda.ko Rework so media coda matches the config fragment. Leaving CODA_FS as is since thats a well

[PATCH 1/8] drivers: net: dsa: realtek: fix warning same module names

2019-06-06 Thread Anders Roxell
When building with CONFIG_NET_DSA_REALTEK_SMI and CONFIG_REALTEK_PHY enabled as loadable modules, we see the following warning: warning: same module names found: drivers/net/phy/realtek.ko drivers/net/dsa/realtek.ko Rework so the names matches the config fragment. Signed-off-by: Anders

[PATCH 3/8] drivers: (video|gpu): fix warning same module names

2019-06-06 Thread Anders Roxell
When building with CONFIG_DRM_MXSFB and CONFIG_FB_MXS enabled as loadable modules, we see the following warning: warning: same module names found: drivers/video/fbdev/mxsfb.ko drivers/gpu/drm/mxsfb/mxsfb.ko Rework so the names matches the config fragment. Signed-off-by: Anders Roxell ---

Re: [PATCH v8 02/13] clk: samsung: add new clocks for DMC for Exynos5422 SoC

2019-06-06 Thread Lukasz Luba
>From 9a7532004606875744eb67ad2ce17197ba2fe61e Mon Sep 17 00:00:00 2001 From: Lukasz Luba Date: Tue, 15 Jan 2019 17:12:16 +0100 Subject: [PATCH 02/13] clk: samsung: add new clocks for DMC for Exynos5422 SoC This patch provides support for clocks needed for Dynamic Memory Controller in Exynos5422

Re: single copy atomicity for double load/stores on 32-bit systems

2019-06-06 Thread Paul E. McKenney
On Tue, Jun 04, 2019 at 09:41:04AM +0200, Geert Uytterhoeven wrote: > Hi Paul, > > On Mon, Jun 3, 2019 at 10:14 PM Paul E. McKenney > wrote: > > On Mon, Jun 03, 2019 at 06:08:35PM +, Vineet Gupta wrote: > > > On 5/31/19 1:21 AM, Peter Zijlstra wrote: > > > >> I'm not sure how to interpret

[PATCH 04/10] vfs: Add a mount-notification facility [ver #3]

2019-06-06 Thread David Howells
Add a mount notification facility whereby notifications about changes in mount topology and configuration can be received. Note that this only covers vfsmount topology changes and not superblock events. A separate facility will be added for that. Firstly, an event queue needs to be created:

KMSAN: uninit-value in rt2500usb_bbp_read

2019-06-06 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f75e4cfe kmsan: use kmsan_handle_urb() in urb.c git tree: kmsan console output: https://syzkaller.appspot.com/x/log.txt?x=12f8b01ea0 kernel config: https://syzkaller.appspot.com/x/.config?x=602468164ccdc30a dashboard link:

Re: [PATCH] lockref: Limit number of cmpxchg loop retries

2019-06-06 Thread Will Deacon
On Thu, Jun 06, 2019 at 08:03:27AM +, Jan Glauber wrote: > On Wed, Jun 05, 2019 at 01:16:46PM -0700, Linus Torvalds wrote: > > On Wed, Jun 5, 2019 at 6:49 AM Jan Glauber wrote: > > > > > > Add an upper bound to the loop to force the fallback to spinlocks > > > after some time. A retry value

[PATCH v6 2/2] dt-bindings: net: bluetooth: Add device property firmware-name for QCA6174

2019-06-06 Thread Rocky Liao
This patch adds an optional device property "firmware-name" to allow the driver to load customized nvm firmware file based on this property. Signed-off-by: Rocky Liao --- Changes in v6: * Added read firmware-name property for both QCA6174 and WCN399X ---

Re: [PATCH 23/23] NFS: Add fs_context support.

2019-06-06 Thread David Howells
Schumaker, Anna wrote: > > 17 files changed, 1293 insertions(+), 1331 deletions(-) > > Can you please split this patch up? Um... Al and I have split it up somewhat. See the other 22 patches in the series ;-) Splitting it up further is going to be tricky because of the way stuff weaves

[PATCH v6 1/2] Bluetooth: hci_qca: Load customized NVM based on the device property

2019-06-06 Thread Rocky Liao
QCA BTSOC NVM is a customized firmware file and different vendors may want to have different BTSOC configuration (e.g. Configure SCO over PCM or I2S, Setting Tx power, etc.) via this file. This patch will allow vendors to download different NVM firmware file by reading a device property

Re: Building arm64 EFI stub with -fpie breaks build of 4.9.x (undefined reference to `__efistub__GLOBAL_OFFSET_TABLE_')

2019-06-06 Thread Rolf Eike Beer
Ard Biesheuvel wrote: > On Thu, 6 Jun 2019 at 09:50, Rolf Eike Beer wrote: > > Am Donnerstag, 6. Juni 2019, 09:38:41 CEST schrieb Rolf Eike Beer: > > > Greg KH wrote: > > > > On Wed, Jun 05, 2019 at 05:19:40PM +0200, Rolf Eike Beer wrote: > > > > > I decided to dig out a toy project which uses a

Re: [PATCH 1/3] ARM64: trivial: s/TIF_SECOMP/TIF_SECCOMP/ comment typo fix

2019-06-06 Thread Will Deacon
On Wed, Jun 05, 2019 at 03:04:06PM -0700, Kees Cook wrote: > On Wed, Jun 05, 2019 at 04:30:09PM -0400, George G. Davis wrote: > > Fix a s/TIF_SECOMP/TIF_SECCOMP/ comment typo > > > > Cc: Jiri Kosina > > Signed-off-by: George G. Davis > > Sneaky missing "C"! :) > > Reviewed-by: Kees Cook

Re: [PATCH V2 3/4] arm64/mm: Consolidate page fault information capture

2019-06-06 Thread Mark Rutland
On Tue, Jun 04, 2019 at 03:42:09PM +0100, Catalin Marinas wrote: > On Mon, Jun 03, 2019 at 12:11:24PM +0530, Anshuman Khandual wrote: > > diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c > > index da02678..4bb65f3 100644 > > --- a/arch/arm64/mm/fault.c > > +++ b/arch/arm64/mm/fault.c > >

[PATCH] VMCI: Fixup atomic64_t abuse

2019-06-06 Thread Peter Zijlstra
The VMCI driver is abusing atomic64_t and atomic_t, there is no actual atomic RmW operations around. Rewrite the code to use a regular u64 with READ_ONCE() and WRITE_ONCE() and a cast to 'unsigned long'. This fully preserves whatever broken there was (it's not endian-safe for starters, and also

[PATCH v3 8/8] arm64: Allow selecting Pseudo-NMI again

2019-06-06 Thread Julien Thierry
Now that Pseudo-NMI are fixed, allow the use of that option again This reverts commit 96a13f57b946be7a6c10405e4bd780c0b6b6fe63 ("arm64: Kconfig: Make ARM64_PSEUDO_NMI depend on BROKEN for now"). Signed-off-by: Julien Thierry Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/Kconfig | 1 - 1

[PATCH v3 4/8] arm64: Fix interrupt tracing in the presence of NMIs

2019-06-06 Thread Julien Thierry
In the presence of any form of instrumentation, nmi_enter() should be done before calling any traceable code and any instrumentation code. Currently, nmi_enter() is done in handle_domain_nmi(), which is much too late as instrumentation code might get called before. Move the nmi_enter/exit() calls

[PATCH v3 7/8] arm64: fix kernel stack overflow in kdump capture kernel

2019-06-06 Thread Julien Thierry
From: Wei Li When enabling ARM64_PSEUDO_NMI feature in kdump capture kernel, it will report a kernel stack overflow exception: [0.00] CPU features: detected: IRQ priority masking [0.00] alternatives: patching kernel code [0.00] Insufficient stack space to handle

[PATCH v3 3/8] arm64: irqflags: Add condition flags to inline asm clobber list

2019-06-06 Thread Julien Thierry
Some of the inline assembly instruction use the condition flags and need to include "cc" in the clobber list. Fixes: commit 4a503217ce37 ("arm64: irqflags: Use ICC_PMR_EL1 for interrupt masking") Suggested-by: Marc Zyngier Signed-off-by: Julien Thierry Cc: Catalin Marinas Cc: Will Deacon ---

[PATCH v3 5/8] arm64: Fix incorrect irqflag restore for priority masking

2019-06-06 Thread Julien Thierry
When using IRQ priority masking to disable interrupts, in order to deal with the PSR.I state, local_irq_save() would convert the I bit into a PMR value (GIC_PRIO_IRQOFF). This resulted in local_irq_restore() potentially modifying the value of PMR in undesired location due to the state of PSR.I

[PATCH v3 1/8] arm64: Do not enable IRQs for ct_user_exit

2019-06-06 Thread Julien Thierry
For el0_dbg and el0_error, DAIF bits get explicitly cleared before calling ct_user_exit. When context tracking is disabled, DAIF gets set (almost) immediately after. When context tracking is enabled, among the first things done is disabling IRQs. What is actually needed is: - PSR.D = 0 so the

Re: rcu_read_lock lost its compiler barrier

2019-06-06 Thread Herbert Xu
On Thu, Jun 06, 2019 at 10:38:56AM +0200, Andrea Parri wrote: > On Mon, Jun 03, 2019 at 10:46:40AM +0800, Herbert Xu wrote: > > > The case we were discussing is from net/ipv4/inet_fragment.c from > > the net-next tree: > > BTW, thank you for keeping me and other people who intervened in that >

[PATCH v3 6/8] arm64: irqflags: Introduce explicit debugging for IRQ priorities

2019-06-06 Thread Julien Thierry
Using IRQ priority masking to enable/disable interrupts is a bit sensitive as it requires to deal with both ICC_PMR_EL1 and PSR.I. Introduce some validity checks to both highlight the states in which functions dealing with IRQ enabling/disabling can (not) be called, and bark a warning when called

[PATCH v3 2/8] arm64: irqflags: Pass flags as readonly operand to restore instruction

2019-06-06 Thread Julien Thierry
Flags are only read by the instructions doing the irqflags restore operation. Pass the operand as read only to the asm inline instead of read-write. Signed-off-by: Julien Thierry Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/irqflags.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH v3 0/8] arm64: IRQ priority masking and Pseudo-NMI fixes

2019-06-06 Thread Julien Thierry
Version one[1] of this series attempted to fix the issue reported by Zenghui[2] when using the function_graph tracer with IRQ priority masking. Since then, I realized that priority masking and the use of Pseudo-NMIs was more broken than I thought. * Patch 1-2 are just some cleanup * Patch 3

Re: [BISECTED REGRESSION] b43legacy broken on G4 PowerBook

2019-06-06 Thread Aaro Koskinen
Hi, On Thu, Jun 06, 2019 at 10:54:51AM +1000, Benjamin Herrenschmidt wrote: > On Thu, 2019-06-06 at 01:50 +0300, Aaro Koskinen wrote: > > Hi, > > > > When upgrading from v5.0 -> v5.1 on G4 PowerBook, I noticed WLAN does > > not work anymore: > > > > [ 42.004303] b43legacy-phy0: Loading

Re: rcu_read_lock lost its compiler barrier

2019-06-06 Thread Herbert Xu
On Thu, Jun 06, 2019 at 02:06:19AM -0700, Paul E. McKenney wrote: > > Or is your point instead that given the initial value of "a" being > zero and the value stored to "a" being one, there is no way that > any possible load and store tearing (your slicing and dicing) could > possibly mess up the

Re: [PATCH 07/13] drivers: Add generic match helper by ACPI_COMPANION device

2019-06-06 Thread Suzuki K Poulose
On 06/06/2019 10:17, Rafael J. Wysocki wrote: On Wed, Jun 5, 2019 at 5:14 PM Suzuki K Poulose wrote: Add a generic helper to match a device by the acpi device. "by its ACPI companion device object", please. Sure. Also, it would be good to combine this patch with the patch(es) that

[PATCH v3] selinux: lsm: fix a missing-check bug in selinux_add_mnt_opt( )

2019-06-06 Thread Gen Zhang
In selinux_add_mnt_opt(), 'val' is allocated by kmemdup_nul(). It returns NULL when fails. So 'val' should be checked. And 'mnt_opts' should be freed when error. Signed-off-by: Gen Zhang Fixes: 757cbe597fe8 ("LSM: new method: ->sb_add_mnt_opt()") --- diff --git a/security/selinux/hooks.c

[PATCH v2 2/2] PCI: Create device link for NVIDIA GPU

2019-06-06 Thread Abhishek Sahu
NVIDIA Turing GPUs include hardware support for USB Type-C and VirtualLink. It helps in delivering the power, display, and data required to power VR headsets through a single USB Type-C connector. The Turing GPU is a multi-function PCI device. It has the following four functions: - VGA

[PATCH v2 1/2] PCI: Code reorganization for creating device link

2019-06-06 Thread Abhishek Sahu
In Multi-function PCI device, one function (consumer) can have hardware functional dependencies on another function (supplier). Whenever the consumer is active and in D0 state, the supplier should also be in D0 state. Currently, the device link is being created from HDA function to VGA function

[PATCH v2 0/2] PCI: device link quirk for NVIDIA GPU

2019-06-06 Thread Abhishek Sahu
* v2: 1. Make the pci device link helper function generic which can be used for other multi-function PCI devices also. 2. Minor changes in comments and commit logs. * v1: NVIDIA Turing GPU [1] has hardware support for USB Type-C and VirtualLink [2]. The Turing GPU is a multi-function PCI

Re: general protection fault in rb_erase (2)

2019-06-06 Thread syzbot
syzbot has bisected this bug to: commit e9db4ef6bf4ca9894bb324c76e01b8f1a16b2650 Author: John Fastabend Date: Sat Jun 30 13:17:47 2018 + bpf: sockhash fix omitted bucket lock in sock_close bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1644ea92a0 start commit:

Re: [PATCH 01/13] acpi: utils: Cleanup acpi_dev_match_cb

2019-06-06 Thread Suzuki K Poulose
Hi Rafael, On 06/06/2019 10:14, Rafael J. Wysocki wrote: On Wed, Jun 5, 2019 at 5:14 PM Suzuki K Poulose wrote: acpi_dev_match_cb match function modifies the "data" argument to pass on a result which could be easily deduced from the result of the bus_find_device() call at the caller site.

[PATCH -next] phy: tegra: xusb: Remove set but not used variable 'priv'

2019-06-06 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/phy/tegra/xusb-tegra210.c: In function 'tegra210_hsic_phy_power_on': drivers/phy/tegra/xusb-tegra210.c:1236:31: warning: variable 'priv' set but not used [-Wunused-but-set-variable] It's never used, so can be removed Signed-off-by:

Re: [PATCH 07/13] drivers: Add generic match helper by ACPI_COMPANION device

2019-06-06 Thread Rafael J. Wysocki
On Wed, Jun 5, 2019 at 5:14 PM Suzuki K Poulose wrote: > > Add a generic helper to match a device by the acpi device. "by its ACPI companion device object", please. Also, it would be good to combine this patch with the patch(es) that cause device_match_acpi_dev() to be actually used. Helpers

Re: [PATCH v2] ARM: configs: Remove useless UEVENT_HELPER_PATH

2019-06-06 Thread Nicolas.Ferre
On 04/06/2019 at 10:14, Krzysztof Kozlowski wrote: > Remove the CONFIG_UEVENT_HELPER_PATH because: > 1. It is disabled since commit 1be01d4a5714 ("driver: base: Disable > CONFIG_UEVENT_HELPER by default") as its dependency (UEVENT_HELPER) was > made default to 'n', > 2. It is not

Re: [PATCH 01/13] acpi: utils: Cleanup acpi_dev_match_cb

2019-06-06 Thread Rafael J. Wysocki
On Wed, Jun 5, 2019 at 5:14 PM Suzuki K Poulose wrote: > > acpi_dev_match_cb match function modifies the "data" argument > to pass on a result which could be easily deduced from the result > of the bus_find_device() call at the caller site. Clean this > up in preparation to convert the "match"

Re: [PATCH v8 02/13] clk: samsung: add new clocks for DMC for Exynos5422 SoC

2019-06-06 Thread Lukasz Luba
Hi Krzysztof, On 6/6/19 10:34 AM, Krzysztof Kozlowski wrote: > On Wed, 5 Jun 2019 at 18:54, Lukasz Luba wrote: >> >> This patch provides support for clocks needed for Dynamic Memory Controller >> in Exynos5422 SoC. It adds CDREX base register addresses, new DIV, MUX and >> GATE entries. >> >>

Re: [tip:locking/core] Documentation/atomic_t.txt: Clarify pure non-rmw usage

2019-06-06 Thread Andrea Parri
On Thu, Jun 06, 2019 at 11:04:39AM +0200, Peter Zijlstra wrote: > On Thu, Jun 06, 2019 at 10:44:21AM +0200, Andrea Parri wrote: > > On Mon, Jun 03, 2019 at 06:46:54AM -0700, tip-bot for Peter Zijlstra wrote: > > > Commit-ID: fff9b6c7d26943a8eb32b58364b7ec6b9369746a > > > Gitweb: > > >

[PATCH 1/2] clk: rockchip: add a type from SGRF-controlled gate clocks

2019-06-06 Thread Heiko Stuebner
Some clk gates on Rockchip SoCs are part of the SGRF (secure general register files) and thus only controllable from secure mode, with the most prominent example being the watchdog. In most cases we still want to define this as a real clock though, to have complete clock tree and not reference

Re: [PATCH v2] Add a document on rebasing and merging

2019-06-06 Thread Jani Nikula
On Tue, 04 Jun 2019, Jonathan Corbet wrote: > Every merge window seems to involve at least one episode where subsystem > maintainers don't manage their trees as Linus would like. Document the > expectations so that at least he has something to point people to. Good stuff. Some notes inline.

[PATCH 2/2] clk: rockchip: convert pclk_wdt boilerplat to new SGRF_GATE macro

2019-06-06 Thread Heiko Stuebner
Convert the boilerplate code for manual addition of the watchdog clock to the new SGRF_GATE macro for all affected socs. Signed-off-by: Heiko Stuebner --- drivers/clk/rockchip/clk-px30.c | 11 +++ drivers/clk/rockchip/clk-rk3288.c | 11 +++ drivers/clk/rockchip/clk-rk3368.c |

Re: rcu_read_lock lost its compiler barrier

2019-06-06 Thread Paul E. McKenney
On Thu, Jun 06, 2019 at 02:14:38PM +0800, Herbert Xu wrote: > On Wed, Jun 05, 2019 at 11:05:11PM -0700, Paul E. McKenney wrote: > > > > In case you were wondering, the reason that I was giving you such > > a hard time was that from what I could see, you were pushing for no > > {READ,WRITE}_ONCE()

[PATCH 1/1] ARM: dts: imx6ull-colibri: enable UHS-I for USDHC1

2019-06-06 Thread Igor Opaniuk
From: Igor Opaniuk Allows to use the SD interface at a higher speed mode if the card supports it. For this the signaling voltage is switched from 3.3V to 1.8V under the usdhc1's drivers control. Signed-off-by: Igor Opaniuk --- arch/arm/boot/dts/imx6ul.dtsi | 4

RE: [PATCH -mm 0/1] signal: simplify set_user_sigmask/restore_user_sigmask

2019-06-06 Thread David Laight
From: Linus Torvalds > Sent: 05 June 2019 18:25 > On Wed, Jun 5, 2019 at 8:58 AM Oleg Nesterov wrote: > > > > To simplify the review, please see the code with this patch applied. > > I am using epoll_pwait() as an example because it looks very simple. > > I like it. > > However. > > I think

Re: [PATCH] RISC-V: Break load reservations during switch_to

2019-06-06 Thread Christoph Hellwig
On Wed, Jun 05, 2019 at 04:17:35PM -0700, Palmer Dabbelt wrote: > REG_S ra, TASK_THREAD_RA_RA(a3) > + /* > + * The Linux ABI allows programs to depend on load reservations being > + * broken on context switches, but the ISA doesn't require that the > + * hardware ever

Re: [tip:locking/core] Documentation/atomic_t.txt: Clarify pure non-rmw usage

2019-06-06 Thread Peter Zijlstra
On Thu, Jun 06, 2019 at 10:44:21AM +0200, Andrea Parri wrote: > On Mon, Jun 03, 2019 at 06:46:54AM -0700, tip-bot for Peter Zijlstra wrote: > > Commit-ID: fff9b6c7d26943a8eb32b58364b7ec6b9369746a > > Gitweb: > > https://git.kernel.org/tip/fff9b6c7d26943a8eb32b58364b7ec6b9369746a > > Author:

Re: [PATCH v4 2/2] arm64: dts: qcom: Add Lenovo Miix 630

2019-06-06 Thread Lee Jones
On Thu, 06 Jun 2019, Marc Gonzalez wrote: > On 06/06/2019 10:13, Lee Jones wrote: > > > On Thu, 06 Jun 2019, Bjorn Andersson wrote: > > > >> On Wed 05 Jun 22:50 PDT 2019, Lee Jones wrote: > >> > >>> On Tue, 23 Apr 2019, Jeffrey Hugo wrote: > >>> > This adds the initial DT for the Lenovo

Re: [PATCH 02/13] bus_find_device: Unify the match callback with class_find_device

2019-06-06 Thread Srinivas Kandagatla
On 05/06/2019 16:13, Suzuki K Poulose wrote: There is an arbitrary difference between the prototypes of bus_find_device() and class_find_device() preventing their callers from passing the same pair of data and match() arguments to both of them, which is the const qualifier used in the

Re: [PATCH] ocxl: do not use C++ style comments in uapi header

2019-06-06 Thread Masahiro Yamada
Hi Michael, On Wed, Jun 5, 2019 at 3:18 PM Andrew Donnellan wrote: > > On 4/6/19 10:12 pm, Masahiro Yamada wrote: > > On Tue, Jun 4, 2019 at 8:54 PM Frederic Barrat > > wrote: > >> > >> > >> > >> Le 04/06/2019 à 13:16, Masahiro Yamada a écrit : > >>> Linux kernel tolerates C++ style comments

[PATCH v2 2/4] mfd: madera: Remove some unused registers and fix some defaults

2019-06-06 Thread Charles Keepax
Signed-off-by: Charles Keepax --- New since v1 of the series. Thanks, Charles drivers/mfd/cs47l35-tables.c | 54 +-- drivers/mfd/cs47l85-tables.c | 122 ++- drivers/mfd/cs47l90-tables.c | 76 --- 3 files

[PATCH v2 4/4] mfd: madera: Add Madera core support for CS47L92

2019-06-06 Thread Charles Keepax
From: Richard Fitzgerald This patch adds all the core support and defines for the Cirrus Logic CS42L92, CS47L92 and CS47L93 smart audio CODECs. Registers or fields are named MADERA_* if it is part of the common hardware platform and does not conflict with any other Madera codecs. It is named

[PATCH v2 3/4] mfd: madera: Add Madera core support for CS47L15

2019-06-06 Thread Charles Keepax
From: Richard Fitzgerald This patch adds all the core support and defines for the Cirrus Logic CS47L15 smart audio CODEC. Registers or fields are named MADERA_* if it is part of the common hardware platform and does not conflict with any other Madera codecs. It is named CS47L15_* if it is

[PATCH v2 1/4] mfd: madera: Update DT bindings to add additional CODECs

2019-06-06 Thread Charles Keepax
From: Richard Fitzgerald This adds the cs47l15, cs42l92, cs47l92 and cs47l93 to the list of compatible strings and updates some properties that need to note the new CODECs. Signed-off-by: Richard Fitzgerald Signed-off-by: Charles Keepax --- No change since v1. Thanks, Charles

Re: [PATCH] iio:core: Fix bug in length of event info_mask and catch unhandled bits set in masks.

2019-06-06 Thread Ardelean, Alexandru
On Tue, 2019-06-04 at 20:40 +0800, Young Xiao wrote: > [External] > > > The incorrect limit for the for_each_set_bit loop was noticed whilst fixing > this other case. Note that as we only have 3 possible entries a the moment > and the value was set to 4, the bug would not have any effect

Re: Building arm64 EFI stub with -fpie breaks build of 4.9.x (undefined reference to `__efistub__GLOBAL_OFFSET_TABLE_')

2019-06-06 Thread Ard Biesheuvel
On Thu, 6 Jun 2019 at 09:08, Greg KH wrote: > > On Thu, Jun 06, 2019 at 08:55:29AM +0200, Ard Biesheuvel wrote: > > On Wed, 5 Jun 2019 at 22:48, Nick Desaulniers > > wrote: > > > > > > On Wed, Jun 5, 2019 at 11:42 AM Ard Biesheuvel > > > wrote: > > > > For the record, this is an example of why

Re: [PATCH] RISC-V: defconfig: enable clocks, serial console

2019-06-06 Thread Christoph Hellwig
On Wed, Jun 05, 2019 at 10:50:42AM -0700, Kevin Hilman wrote: > Enable PRCI clock driver and serial console by default, so the default > upstream defconfig is bootable to a serial console. > > Signed-off-by: Kevin Hilman Looks good: Reviewed-by: Christoph Hellwig

Re: [PATCH 02/13] bus_find_device: Unify the match callback with class_find_device

2019-06-06 Thread Rafael J. Wysocki
On Wed, Jun 5, 2019 at 5:14 PM Suzuki K Poulose wrote: > > There is an arbitrary difference between the prototypes of > bus_find_device() and class_find_device() preventing their callers > from passing the same pair of data and match() arguments to both of > them, which is the const qualifier

[PATCH 2/2] ARM: multi_v7_defconfig: enable Lima driver

2019-06-06 Thread Neil Armstrong
A bunch of armv7 boards can now use the Lima driver, let's enable it in defconfig, it will be useful to have it enabled for KernelCI boot and runtime testing. Signed-off-by: Neil Armstrong --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/2] arm64: defconfig: enable Lima driver

2019-06-06 Thread Neil Armstrong
A bunch of arm64 boards can now use the Lima driver, let's enable it in defconfig, it will be useful to have it enabled for KernelCI boot and runtime testing. Signed-off-by: Neil Armstrong --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3] scripts: use pkg-config to locate libcrypto

2019-06-06 Thread Rolf Eike Beer
>From 71e19be4247fbaa2540dfb321e2b148234680a13 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Thu, 22 Nov 2018 16:40:49 +0100 Subject: [PATCH] scripts: use pkg-config to locate libcrypto Otherwise build fails if the headers are not in the default location. While at it also ask pkg-config

[PATCH v4] selinux: lsm: fix a missing-check bug in selinux_sb_eat_lsm_o pts()

2019-06-06 Thread Gen Zhang
In selinux_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul(). It returns NULL when fails. So 'arg' should be checked. And 'mnt_opts' should be freed when error. Signed-off-by: Gen Zhang Fixes: 99dbbb593fe6 ("selinux: rewrite selinux_sb_eat_lsm_opts()") --- diff --git

[PATCH v2] hwmon: (smsc47m1) fix (suspicious) outside array bounds warnings

2019-06-06 Thread Masahiro Yamada
Kbuild test robot reports outside array bounds warnings. This is reproducible for ARCH=sh allmodconfig with the kernel.org toolchains available at: https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.1.0/x86_64-gcc-8.1.0-nolibc-sh4-linux.tar.xz CC [M]

Re: KASAN: use-after-free Read in device_del

2019-06-06 Thread Oliver Neukum
Am Montag, den 03.06.2019, 04:41 -0700 schrieb syzbot: > Hello, > > syzbot found the following crash on: > > HEAD commit:69bbe8c7 usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: [PATCH v2] dt-bindings: iio: accel: adxl372: switch to YAML bindings

2019-06-06 Thread Ardelean, Alexandru
On Fri, 2019-05-31 at 17:11 -0300, Lucas Oshiro wrote: > [External] > > > Convert the old device tree documentation to yaml format. > > Signed-off-by: Lucas Oshiro > Signed-off-by: Rodrigo Ribeiro > Co-developed-by: Rodrigo Ribeiro > Reviewed-by: Matheus Tavares > Reviewed-by: Marcelo

Re: [PATCH v3 2/2] media: atmel: atmel-sama5d2-isc: fixed checkpatch warnings

2019-06-06 Thread Eugen.Hristev
On 06.06.2019 11:34, Sakari Ailus wrote: > Hi Eugen, > > On Thu, Jun 06, 2019 at 07:43:47AM +, eugen.hris...@microchip.com wrote: >> From: Eugen Hristev >> >> Checkpatch complaining that locks do not have comments, >> unaligned code and macro reuse of same argument in to_isc_clk. >> Fixed

Re: [PATCH] RISC-V: Break load reservations during switch_to

2019-06-06 Thread Marco Peereboom
Ah that’s sneaky!! > On Jun 6, 2019, at 12:17 AM, Palmer Dabbelt wrote: > > The comment describes why in detail. This was found because QEMU never > gives up load reservations, the issue is unlikely to manifest on real > hardware. > > Thanks to Carlos Eduardo for finding the bug! > >

Re: [PATCH v2 RESEND] scripts: use pkg-config to locate libcrypto

2019-06-06 Thread Rolf Eike Beer
David Woodhouse wrote: > On Thu, 2019-06-06 at 09:55 +0200, Rolf Eike Beer wrote: > > +CRYPTO_LIBS = $(shell $(PKG_CONFIG) --libs libcrypto 2> /dev/null || > > -lcrypto) > That's going to run: > > $ pkg-config --libs libcrypto || -lcrypto > > > If libcrypto.pc isn't there, it's going to get

RE: [PATCH 1/3] x86/CPU: Add more Icelake model number

2019-06-06 Thread Zhuo, Qiuxu
> From: Borislav Petkov [mailto:b...@alien8.de] >> ... >> Dropping my SOB or adding a text "[Qiuxu: Get the macros in the Ice Lake >> group sorted by > > model number.]" at the end of the commit message - which one is > > better/clear for you? > > I'll add that note when applying. > > Thx.

Re: [PATCH] arm64: dts: sdm845: Add CPU topology

2019-06-06 Thread Vincent Guittot
On Thu, 6 Jun 2019 at 10:34, Dietmar Eggemann wrote: > > On 6/6/19 10:20 AM, Vincent Guittot wrote: > > On Thu, 6 Jun 2019 at 09:49, Quentin Perret wrote: > >> > >> Hi Vincent, > >> > >> On Thursday 06 Jun 2019 at 09:05:16 (+0200), Vincent Guittot wrote: > >>> Hi Quentin, > >>> > >>> On Wed, 5

Re: [tip:locking/core] Documentation/atomic_t.txt: Clarify pure non-rmw usage

2019-06-06 Thread Andrea Parri
On Mon, Jun 03, 2019 at 06:46:54AM -0700, tip-bot for Peter Zijlstra wrote: > Commit-ID: fff9b6c7d26943a8eb32b58364b7ec6b9369746a > Gitweb: > https://git.kernel.org/tip/fff9b6c7d26943a8eb32b58364b7ec6b9369746a > Author: Peter Zijlstra > AuthorDate: Fri, 24 May 2019 13:52:31 +0200 >

[PATCH net] net: mvpp2: Use strscpy to handle stat strings

2019-06-06 Thread Maxime Chevallier
Use a safe strscpy call to copy the ethtool stat strings into the relevant buffers, instead of a memcpy that will be accessing out-of-bound data. Fixes: 118d6298f6f0 ("net: mvpp2: add ethtool GOP statistics") Signed-off-by: Maxime Chevallier --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c |

[PATCH][next] ipv6: fix spelling mistake: "wtih" -> "with"

2019-06-06 Thread Colin King
From: Colin Ian King There is a spelling mistake in a NL_SET_ERR_MSG message. Fix it. Signed-off-by: Colin Ian King --- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/route.c b/net/ipv6/route.c index fbaa7e9e0d9c..641a31d42ef9 100644 ---

Re: [PATCH v4 2/2] arm64: dts: qcom: Add Lenovo Miix 630

2019-06-06 Thread Marc Gonzalez
On 06/06/2019 10:13, Lee Jones wrote: > On Thu, 06 Jun 2019, Bjorn Andersson wrote: > >> On Wed 05 Jun 22:50 PDT 2019, Lee Jones wrote: >> >>> On Tue, 23 Apr 2019, Jeffrey Hugo wrote: >>> This adds the initial DT for the Lenovo Miix 630 laptop. Supported functionality includes USB

Re: rcu_read_lock lost its compiler barrier

2019-06-06 Thread Andrea Parri
On Mon, Jun 03, 2019 at 10:46:40AM +0800, Herbert Xu wrote: > The case we were discussing is from net/ipv4/inet_fragment.c from > the net-next tree: BTW, thank you for keeping me and other people who intervened in that discussion in Cc:... Andrea > > void fqdir_exit(struct fqdir *fqdir) >

Re: [PATCH v3 3/5] soc: renesas: Enable RZ/A1 IRQC on RZ/A1H and RZ/A2M

2019-06-06 Thread Simon Horman
On Thu, May 02, 2019 at 02:32:18PM +0200, Geert Uytterhoeven wrote: > Auto-enable support for the RZ/A1 Interrupt Controller when configuring > a kernel which supports RZ/A1H or RZ/A2M SoCs. > Keep selects sorted while at it. > > This is similar to how interrupt controllers for other Renesas SoCs

Re: [PATCH] arm64: dts: sdm845: Add CPU topology

2019-06-06 Thread Dietmar Eggemann
On 6/6/19 10:20 AM, Vincent Guittot wrote: On Thu, 6 Jun 2019 at 09:49, Quentin Perret wrote: Hi Vincent, On Thursday 06 Jun 2019 at 09:05:16 (+0200), Vincent Guittot wrote: Hi Quentin, On Wed, 5 Jun 2019 at 19:21, Quentin Perret wrote: On Friday 17 May 2019 at 14:55:19 (-0700), Stephen

Re: [BPF v1] tools: bpftool: Fix JSON output when lookup fails

2019-06-06 Thread Quentin Monnet
2019-06-05 21:17 UTC+0200 ~ Krzesimir Nowak > In commit 9a5ab8bf1d6d ("tools: bpftool: turn err() and info() macros > into functions") one case of error reporting was special cased, so it > could report a lookup error for a specific key when dumping the map > element. What the code forgot to do

Re: [PATCH v3 2/2] media: atmel: atmel-sama5d2-isc: fixed checkpatch warnings

2019-06-06 Thread Sakari Ailus
Hi Eugen, On Thu, Jun 06, 2019 at 07:43:47AM +, eugen.hris...@microchip.com wrote: > From: Eugen Hristev > > Checkpatch complaining that locks do not have comments, > unaligned code and macro reuse of same argument in to_isc_clk. > Fixed them by renaming, realigning and adding struct

Re: [PATCH v8 02/13] clk: samsung: add new clocks for DMC for Exynos5422 SoC

2019-06-06 Thread Krzysztof Kozlowski
On Wed, 5 Jun 2019 at 18:54, Lukasz Luba wrote: > > This patch provides support for clocks needed for Dynamic Memory Controller > in Exynos5422 SoC. It adds CDREX base register addresses, new DIV, MUX and > GATE entries. > > Acked-by: Chanwoo Choi > Signed-off-by: Lukasz Luba > --- >

Re: [PATCH 6/7] media: cedrus: Add infra for extra buffers connected to capture buffers

2019-06-06 Thread Maxime Ripard
On Mon, Jun 03, 2019 at 05:48:25PM +0200, Jernej Škrabec wrote: > Dne ponedeljek, 03. junij 2019 ob 14:18:59 CEST je Maxime Ripard napisal(a): > > > +static void cedrus_buf_cleanup(struct vb2_buffer *vb) > > > +{ > > > + struct vb2_queue *vq = vb->vb2_queue; > > > + > > > + if

Re: [PATCH] Powerpc/Watchpoint: Restore nvgprs while returning from exception

2019-06-06 Thread Ravi Bangoria
On 6/6/19 12:59 PM, Ravi Bangoria wrote: > Powerpc hw triggers watchpoint before executing the instruction. > To make trigger-after-execute behavior, kernel emulates the > instruction. If the instruction is 'load something into non- > volatile register', exception handler should restore

Re: [PATCH 1/2] ARM: multi_v7_defconfig: add Panfrost driver

2019-06-06 Thread Neil Armstrong
Hi Olof, Arnd, Could you take these directly or an arm soc maintainer should take them in their trees ? Thanks, Neil On 04/06/2019 13:20, Tomeu Vizoso wrote: > With the goal of making it easier for CI services such as KernelCI to > run tests for it. > > Signed-off-by: Tomeu Vizoso > --- >

Re: [PATCH 2/2] arm64: defconfig: add Panfrost driver

2019-06-06 Thread Neil Armstrong
On 04/06/2019 13:20, Tomeu Vizoso wrote: > With the goal of making it easier for CI services such as KernelCI to > run tests for it. > > Signed-off-by: Tomeu Vizoso > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/configs/defconfig

Re: [PATCH v8 07/13] dt-bindings: memory-controllers: add Exynos5422 DMC device description

2019-06-06 Thread Krzysztof Kozlowski
On Wed, 5 Jun 2019 at 18:54, Lukasz Luba wrote: > > The patch adds description for DT binding for a new Exynos5422 Dynamic > Memory Controller device. > > Signed-off-by: Lukasz Luba > --- > .../memory-controllers/exynos5422-dmc.txt | 84 +++ > 1 file changed, 84

Re: [PATCH] arm64: dts: sdm845: Add CPU topology

2019-06-06 Thread Quentin Perret
+CC Morten who had an interest in this On Thursday 06 Jun 2019 at 10:20:12 (+0200), Vincent Guittot wrote: > On Thu, 6 Jun 2019 at 09:49, Quentin Perret wrote: > > > > Hi Vincent, > > > > On Thursday 06 Jun 2019 at 09:05:16 (+0200), Vincent Guittot wrote: > > > Hi Quentin, > > > > > > On Wed, 5

RE: [PATCH V4 1/4] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-06 Thread Anson Huang
Hi, Maxime > -Original Message- > From: Maxime Ripard > Sent: Thursday, June 6, 2019 3:41 PM > To: Anson Huang > Cc: mturque...@baylibre.com; sb...@kernel.org; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de;

Re: [PATCH v8 06/13] drivers: memory: extend of_memory by LPDDR3 support

2019-06-06 Thread Krzysztof Kozlowski
On Wed, 5 Jun 2019 at 18:54, Lukasz Luba wrote: > > The patch adds AC timings information needed to support LPDDR3 and memory > controllers. The structure is used in of_memory and currently in Exynos > 5422 DMC. Add parsing data needed for LPDDR3 support. > It is currently used in Exynos5422

Re: [PATCHv4 2/2] mtd: spi-nor: cadence-quadspi: add reset control

2019-06-06 Thread Tudor.Ambarus
On 05/08/2019 04:43 PM, Dinh Nguyen wrote: > Get the reset control properties for the QSPI controller and bring them > out of reset. Most will have just one reset bit, but there is an additional > OCP reset bit that is used ECC. The OCP reset bit will also need to get > de-asserted as well. [1]

<    3   4   5   6   7   8   9   10   >