stable-rc 5.4: libhugetlbfs fallocate_stress.sh: Unable to handle kernel paging request at virtual address ffff00006772f000

2020-05-13 Thread Naresh Kamboju
While running libhugetlbfs fallocate_stress.sh on stable-rc 5.4 branch kernel on arm64 hikey device. The following kernel Internal error: Oops: crash dump noticed. fallocate_stress.sh (2M: 64): [ 129.706506] Unable to handle kernel paging request at virtual address 6772f000 [ 129.714638]

[PATCH stable-5.4.y] net: dsa: Do not make user port errors fatal

2020-05-13 Thread Florian Fainelli
commit 86f8b1c01a0a537a73d2996615133be63cdf75db upstream Prior to 1d27732f411d ("net: dsa: setup and teardown ports"), we would not treat failures to set-up an user port as fatal, but after this commit we would, which is a regression for some systems where interfaces may be declared in the Device

Re: [PATCH net-next v1] net: phy: tja11xx: add cable-test support

2020-05-13 Thread Oleksij Rempel
On Wed, May 13, 2020 at 03:39:25PM +0200, Andrew Lunn wrote: > On Wed, May 13, 2020 at 02:34:40PM +0200, Oleksij Rempel wrote: > > Add initial cable testing support. > > This PHY needs only 100usec for this test and it is recommended to run it > > before the link is up. For now, provide at least et

[PATCH v1 1/1] drivers: phy: sr-usb: do not use internal fsm for USB2 phy init

2020-05-13 Thread Rayagonda Kokatanur
From: Bharat Gooty During different reboot cycles, USB PHY PLL may not always lock during initialization and therefore can cause USB to be not usable. Hence do not use internal FSM programming sequence for the USB PHY initialization. Fixes: 4dcddbb38b64 ("phy: sr-usb: Add Stingray USB PHY drive

Re: remove kernel_setsockopt and kernel_getsockopt

2020-05-13 Thread Joe Perches
On Wed, 2020-05-13 at 08:26 +0200, Christoph Hellwig wrote: > this series removes the kernel_setsockopt and kernel_getsockopt > functions, and instead switches their users to small functions that > implement setting (or in one case getting) a sockopt directly using > a normal kernel function call w

Re: [PATCH v10 1/5] usb: xhci: Change the XHCI link order in the Makefile

2020-05-13 Thread Alan Stern
On Wed, May 13, 2020 at 07:05:05PM +0200, Greg Kroah-Hartman wrote: > On Wed, May 13, 2020 at 09:31:11AM -0700, Florian Fainelli wrote: > > > > > > On 5/13/2020 9:27 AM, Greg Kroah-Hartman wrote: > > > On Wed, May 13, 2020 at 08:08:07AM -0700, Florian Fainelli wrote: > > >> > > >> > > >> On 5/13/

Re: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen

2020-05-13 Thread Marco Elver
On Wed, 13 May 2020 at 18:50, Will Deacon wrote: > > On Wed, May 13, 2020 at 03:15:55PM +0200, Marco Elver wrote: > > On Wed, 13 May 2020 at 14:40, Will Deacon wrote: > > > > > > On Wed, May 13, 2020 at 02:32:43PM +0200, Peter Zijlstra wrote: > > > > On Wed, May 13, 2020 at 01:48:41PM +0200, Marc

Re: [PATCH] ASoC: tlv320adcx140: Add controls for PDM clk and edge

2020-05-13 Thread Mark Brown
On Wed, May 13, 2020 at 12:16:03PM -0500, Dan Murphy wrote: > On 5/13/20 10:32 AM, Mark Brown wrote: > > Are these (especially the clock and polarity) things that are going to > > vary at runtime? I'd have expected these to come from the hardware > > rather than being something that could usefull

RE: [PATCH] platform/x86: dell-wmi: Ignore keyboard attached / detached events

2020-05-13 Thread Mario.Limonciello
> -Original Message- > From: Hans de Goede > Sent: Wednesday, May 13, 2020 8:06 AM > To: Darren Hart; Andy Shevchenko; Pali Rohár; Matthew Garrett > Cc: Hans de Goede; Limonciello, Mario; platform-driver-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: [PATCH] platform/x86: d

Re: [PATCH] ASoC: tlv320adcx140: Add controls for PDM clk and edge

2020-05-13 Thread Dan Murphy
Mark On 5/13/20 10:32 AM, Mark Brown wrote: On Wed, May 13, 2020 at 09:47:46AM -0500, Dan Murphy wrote: +static const char * const pdmclk_text[] = { + "2.8224 MHz", "1.4112 MHz", "705.6 kHz", "5.6448 MHz" +}; + +static SOC_ENUM_SINGLE_DECL(pdmclk_select_enum, ADCX140_PDMCLK_CFG, 0, +

Re: [PATCH 5.6 000/118] 5.6.13-rc1 review

2020-05-13 Thread Naresh Kamboju
On Wed, 13 May 2020 at 15:22, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.6.13 release. > There are 118 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

[PATCH v8 3/3] arm64: dts: zynqmp: Add GTR transceivers

2020-05-13 Thread Laurent Pinchart
Add a DT node for the PS-GTR transceivers. Signed-off-by: Laurent Pinchart Acked-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 2e2

[PATCH v8 0/3] phy: zynqmp: Add PHY driver for the Xilinx ZynqMP Gigabit Transceiver

2020-05-13 Thread Laurent Pinchart
Hello, The patch series adds a PHY driver for the Xilinx ZynqMP gigabit serial transceivers (PS-GTR). The PS-GTR is a set of 4 PHYs that can be used by the PCIe, USB 3.0, DisplayPort, SATA and Ethernet controllers that are part of the Serial I/O Unit (SIOU). The code is based on a previous versio

Re: [PATCH] security: fix the default value of secid_to_secctx hook

2020-05-13 Thread Alexei Starovoitov
James, since you took the previous similar patch are you going to pick this one up as well? Or we can route it via bpf tree to Linus asap. Thanks On Tue, May 12, 2020 at 10:46 AM Anders Roxell wrote: > > security_secid_to_secctx is called by the bpf_lsm hook and a successful > return value (i.e

[PATCH v8 2/3] phy: zynqmp: Add PHY driver for the Xilinx ZynqMP Gigabit Transceiver

2020-05-13 Thread Laurent Pinchart
From: Anurag Kumar Vulisha Xilinx ZynqMP SoCs have a Gigabit Transceiver with four lanes. All the high speed peripherals such as USB, SATA, PCIE, Display Port and Ethernet SGMII can rely on any of the four GT lanes for PHY layer. This patch adds driver for that ZynqMP GT core. Signed-off-by: Anu

[PATCH v8 1/3] dt-bindings: phy: Add DT bindings for Xilinx ZynqMP PSGTR PHY

2020-05-13 Thread Laurent Pinchart
From: Anurag Kumar Vulisha Add DT bindings for the Xilinx ZynqMP PHY. ZynqMP SoCs have a High Speed Processing System Gigabit Transceiver which provides PHY capabilities to USB, SATA, PCIE, Display Port and Ehernet SGMII controllers. Signed-off-by: Anurag Kumar Vulisha Signed-off-by: Laurent Pi

Re: stable-rc 4.19: NETDEV WATCHDOG: eth0 (asix): transmit queue 0 timed out - net/sched/sch_generic.c:466 dev_watchdog

2020-05-13 Thread Naresh Kamboju
While running selftests bpf test_sysctl on stable rc 5.6 branch kernel on arm64 hikey device. The following warning was noticed. [ 1097.207013] NETDEV WATCHDOG: eth0 (asix): transmit queue 0 timed out [ 1097.387913] WARNING: CPU: 0 PID: 206 at /usr/src/kernel/net/sched/sch_generic.c:443 dev_watchd

Re: [EXT] Re: [v1,net-next, 1/2] ethtool: add setting frame preemption of traffic classes

2020-05-13 Thread Vinicius Costa Gomes
Hi Murali, Murali Karicheri writes: > Any progress on your side for a patch for the support? > Sorry for the delay, things got a bit crazy here for some time. I have a RFC-quality series that I am finishing testing, I'll try to post it this week. > I have posted my EST offload series for AM6

Re: [PATCH v2] video: fbdev: ssd1307fb: Added support to Column offset

2020-05-13 Thread Rodrigo Alencar
Em qua., 13 de mai. de 2020 às 14:13, Andy Shevchenko escreveu: > > On Wed, May 13, 2020 at 7:56 PM Rodrigo Rolim Mendes de Alencar > <455.rodrigo.alen...@gmail.com> wrote: > > > > This patch provides support for displays like VGM128064B0W10, > > which requires a column offset of 2, i.e., its segm

Re: [PATCH 1/3] dt-bindings: remoteproc: Add bindings for C66x DSPs on TI K3 SoCs

2020-05-13 Thread Suman Anna
On 4/27/20 2:49 PM, Mathieu Poirier wrote: Hi Suman, I have started to review this set - comments will come over the next few days. On Wed, Mar 25, 2020 at 03:18:37PM -0500, Suman Anna wrote: Some Texas Instruments K3 family of SoCs have one of more Digital Signal Processor (DSP) subsystems th

Re: [PATCH] input: keyboard: imx_sc_key: Use devm_add_action_or_reset() to handle all cleanups

2020-05-13 Thread Dmitry Torokhov
On Fri, Mar 13, 2020 at 02:59:11PM +0800, Anson Huang wrote: > Use devm_add_action_or_reset() to handle all cleanups of failure in > .probe and .remove, then .remove callback can be dropped. > > Signed-off-by: Anson Huang Applied, thank you. -- Dmitry

Re: [PATCH] platform/x86: touchscreen_dmi: Add info for the Trekstor Yourbook C11B

2020-05-13 Thread Andy Shevchenko
On Tue, May 12, 2020 at 11:44 PM Hans de Goede wrote: > > Hi, > > On 5/12/20 10:40 PM, Bernhard Übelacker wrote: > > Add touchscreen info for the Trekstor Yourbook C11B. It seems to > > use the same touchscreen as the Primebook C11, so we only add a new DMI > > match. > > > > Cc: Otmar Meier > >

Re: [PATCH net-next 1/4] net: ethernet: validate pause autoneg setting

2020-05-13 Thread Russell King - ARM Linux admin
On Wed, May 13, 2020 at 03:49:25PM +0200, Andrew Lunn wrote: > Hi Russell, Doug > > With netlink ethtool we have the possibility of adding a new API to > control this. And we can leave the IOCTL API alone, and the current > ethtool commands. We can add a new command to ethtool which uses the new A

Re: [PATCH v2] video: fbdev: ssd1307fb: Added support to Column offset

2020-05-13 Thread Andy Shevchenko
On Wed, May 13, 2020 at 7:56 PM Rodrigo Rolim Mendes de Alencar <455.rodrigo.alen...@gmail.com> wrote: > > This patch provides support for displays like VGM128064B0W10, > which requires a column offset of 2, i.e., its segments starts > in SEG2 and ends in SEG129. Also, include Rob as well into Cc.

[PATCH] Bluetooth: L2CAP: Replace zero-length array with flexible-array

2020-05-13 Thread Gustavo A. R. Silva
The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a flexible array member[1][2], introduced in C99: struct foo { int stuff; struct boo array[]; }; By ma

Re: [PATCH v2] uapi, posix-timers: provide clockid-related macros and functions to UAPI

2020-05-13 Thread John Stultz
On Wed, May 13, 2020 at 2:13 AM Sergey Organov wrote: > > John Stultz writes: > > > On Tue, May 12, 2020 at 3:31 PM Eugene Syromiatnikov > > wrote: > >> On Tue, May 12, 2020 at 10:58:16PM +0300, Sergey Organov wrote: > >> > Eugene Syromiatnikov writes: > >> > > >> > > As of now, there is no in

Re: [PATCH] hwmon: da9052: Synchronize access with mfd

2020-05-13 Thread Guenter Roeck
On Mon, May 11, 2020 at 01:02:19PM +0200, Sebastian Reichel wrote: > From: Samu Nuutamo > > When tsi-as-adc is configured it is possible for in7[0123]_input read to > return an incorrect value if a concurrent read to in[456]_input is > performed. This is caused by a concurrent manipulation of the

[ANN] linux-arts v2.0 update

2020-05-13 Thread Shuah Khan
linux-arts git has been updated with the new reproducers from https://github.com/dvyukov/syzkaller-repros.git - a total of 1138 new linux reproducers - new script to collect reprogs from file system - updates to README.md - Updates to README on how linux-arts is synced with syzkaller-repros.git

RE: [PATCH v4.19.x] make 'user_access_begin()' do 'access_ok()'

2020-05-13 Thread Ashwin H
> Ok, but what does that mean for us? > > You need to say why you are sending a patch, otherwise we will guess wrong. In drivers/gpu/drm/i915/i915_gem_execbuffer.c, ioctl functions does user_access_begin() without doing access_ok(Checks if a user space pointer is valid) first. A local attacker

Re: [PATCH 2/3] drm/etnaviv: Don't ignore errors on getting clocks

2020-05-13 Thread Fabio Estevam
On Wed, May 13, 2020 at 12:08 PM Lubomir Rintel wrote: > > There might be good reasons why the getting a clock failed. To treat the > clocks as optional we're specifically only interested in ignoring -ENOENT, > and devm_clk_get_optional() does just that. > > Signed-off-by: Lubomir Rintel > --- >

Re: [PATCH v10 1/5] usb: xhci: Change the XHCI link order in the Makefile

2020-05-13 Thread Greg Kroah-Hartman
On Wed, May 13, 2020 at 09:31:11AM -0700, Florian Fainelli wrote: > > > On 5/13/2020 9:27 AM, Greg Kroah-Hartman wrote: > > On Wed, May 13, 2020 at 08:08:07AM -0700, Florian Fainelli wrote: > >> > >> > >> On 5/13/2020 5:26 AM, Greg Kroah-Hartman wrote: > >>> On Tue, May 12, 2020 at 11:00:15AM -04

Re: [PATCH 5.6 000/118] 5.6.13-rc1 review

2020-05-13 Thread Guenter Roeck
On Wed, May 13, 2020 at 11:43:39AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.6.13 release. > There are 118 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 2/3] input: serio: allow more than one byte to be sent at once

2020-05-13 Thread Sean Young
On Tue, May 12, 2020 at 10:37:27AM -0700, Dmitry Torokhov wrote: > On Tue, May 12, 2020 at 10:07:24AM +0100, Sean Young wrote: > > Now it would be nice to have a discussion about this rather than being > > dismissed with: > > > > > > > Ummm, serial protocol data size is at most 9 bits so I have no

Re: [PATCH 4.19 00/48] 4.19.123-rc1 review

2020-05-13 Thread Guenter Roeck
On Wed, May 13, 2020 at 11:44:26AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.123 release. > There are 48 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: [PATCH 5.4 00/90] 5.4.41-rc1 review

2020-05-13 Thread Guenter Roeck
On Wed, May 13, 2020 at 11:43:56AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.41 release. > There are 90 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH] KEYS: Replace zero-length array with flexible-array

2020-05-13 Thread Jarkko Sakkinen
On Thu, May 07, 2020 at 01:57:10PM -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced i

Re: [PATCH 3/3] drm/bridge: Introduce LT9611 DSI to HDMI bridge

2020-05-13 Thread kbuild test robot
system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Vinod-Koul/Add-LT9611-DSI-to-HDMI-bridge/20200513-181150 base: https://git.kernel.org/pub

Re: x86_64: 5.6.0: locking/lockdep.c:1155 lockdep_register_key

2020-05-13 Thread Naresh Kamboju
On Thu, 16 Apr 2020 at 23:15, Naresh Kamboju wrote: > > On Sat, 11 Apr 2020 at 02:20, Cong Wang wrote: > > > > On Tue, Apr 7, 2020 at 2:58 AM Naresh Kamboju > > wrote: > > > > > > On Linux mainline kernel 5.6.0 running kselftest on i386 kernel running on > > > x86_64 devices we have noticed thi

Re: [PATCH 3/3] net: cleanly handle kernel vs user buffers for ->msg_control

2020-05-13 Thread Christoph Hellwig
On Wed, May 13, 2020 at 09:18:36AM -0700, Eric Dumazet wrote: > Please try the following syzbot repro, since it crashes after your patch. Doesn't crash here, but I could totally see why it could depending in the stack initialization. Please try the patch below - these msghdr intance were somethin

Re: [RFC][PATCH 3/5] objtool: Add support for relocations without addends

2020-05-13 Thread Julien Thierry
On 5/13/20 5:26 PM, Matt Helsley wrote: On Tue, May 12, 2020 at 06:04:50PM +0100, Julien Thierry wrote: Hi Matt, On 5/11/20 6:35 PM, Matt Helsley wrote: Currently objtool only collects information about relocations with addends. In recordmcount, which we are about to merge into objtool, som

Re: [RFC][PATCH 4/5] objtool: Enable compilation of objtool for all architectures

2020-05-13 Thread Julien Thierry
On 5/13/20 4:59 PM, Matt Helsley wrote: On Tue, May 12, 2020 at 06:04:56PM +0100, Julien Thierry wrote: Hi Matt, On 5/11/20 6:35 PM, Matt Helsley wrote: objtool currently only compiles for x86 architectures. This is fine as it presently does not support tooling for other architectures. Howe

[PATCH v2] video: fbdev: ssd1307fb: Added support to Column offset

2020-05-13 Thread Rodrigo Rolim Mendes de Alencar
This patch provides support for displays like VGM128064B0W10, which requires a column offset of 2, i.e., its segments starts in SEG2 and ends in SEG129. Signed-off-by: Rodrigo Alencar <455.rodrigo.alen...@gmail.com> --- Documentation/devicetree/bindings/display/ssd1307fb.txt | 1 + drivers/video/

Re: WARNING in memtype_reserve

2020-05-13 Thread Greg KH
On Wed, May 13, 2020 at 06:22:58PM +0200, Thomas Gleixner wrote: > Greg KH writes: > > On Sat, May 09, 2020 at 12:00:57PM +0200, Thomas Gleixner wrote: > >> Greg KH writes: > >> > On Sat, May 09, 2020 at 12:20:14AM -0700, syzbot wrote: > >> >> memtype_reserve failed: [mem 0xff000-0x8f

Re: [PATCH] Bluetooth: Replace zero-length array with flexible-array

2020-05-13 Thread Gustavo A. R. Silva
Hi Marcel, On Wed, May 13, 2020 at 09:30:03AM +0200, Marcel Holtmann wrote: > > --- > > include/net/bluetooth/l2cap.h |6 +++--- > > include/net/bluetooth/mgmt.h | 40 > > > > 2 files changed, 23 insertions(+), 23 deletions(-) > > the mgmt.h portion

Re: file system permissions regression affecting root

2020-05-13 Thread Patrick Donnelly
On Wed, May 13, 2020 at 9:11 AM Al Viro wrote: > > On Wed, May 13, 2020 at 08:00:28AM -0700, Patrick Donnelly wrote: > > In newer kernels (at least 5.6), it appears root is not able to write > > to files owned by other users in a sticky directory: > > Yes. Controlled by /proc/sys/fs/protected_reg

Re: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen

2020-05-13 Thread Will Deacon
On Wed, May 13, 2020 at 03:15:55PM +0200, Marco Elver wrote: > On Wed, 13 May 2020 at 14:40, Will Deacon wrote: > > > > On Wed, May 13, 2020 at 02:32:43PM +0200, Peter Zijlstra wrote: > > > On Wed, May 13, 2020 at 01:48:41PM +0200, Marco Elver wrote: > > > > > > > Disabling most instrumentation fo

[PATCH 02/10] rcu: Use direct rdp->nocb_lock operations on local calls

2020-05-13 Thread Frederic Weisbecker
Unconditionally lock rdp->nocb_lock on nocb code that is called after we verified that the rdp is offloaded: This clarify the locking rules and expectations. Signed-off-by: Frederic Weisbecker Cc: Paul E. McKenney Cc: Josh Triplett Cc: Steven Rostedt Cc: Mathieu Desnoyers Cc: Lai Jiangshan

[PATCH 04/10] rcu: Implement rcu_segcblist_is_offloaded() config dependent

2020-05-13 Thread Frederic Weisbecker
This simplify the usage of this API and avoid checking the kernel config from the callers. Signed-off-by: Frederic Weisbecker Cc: Paul E. McKenney Cc: Josh Triplett Cc: Steven Rostedt Cc: Mathieu Desnoyers Cc: Lai Jiangshan Cc: Joel Fernandes --- include/linux/rcu_segcblist.h | 2 ++ kern

[PATCH 06/10] rcu: Make nocb_cb kthread parkable

2020-05-13 Thread Frederic Weisbecker
This will be necessary to correctly implement rdp de-offloading. We don't want rcu_do_batch() in nocb_cb kthread to race with local rcu_do_batch(). Signed-off-by: Frederic Weisbecker Cc: Paul E. McKenney Cc: Josh Triplett Cc: Steven Rostedt Cc: Mathieu Desnoyers Cc: Lai Jiangshan Cc: Joel Fe

[PATCH 07/10] rcu: Temporarily assume that nohz full CPUs might not be NOCB

2020-05-13 Thread Frederic Weisbecker
So far nohz_full CPUs had to be nocb. This requirement may change temporarily as we are working on preparing RCU to be able to toggle the nocb state of a CPU. Once that is done and nohz_full can be toggled as well dynamically, we'll restore that initial requirement. Thus for now as a temporary sta

[PATCH 08/10] rcu: Allow to deactivate nocb on a CPU

2020-05-13 Thread Frederic Weisbecker
Allow a CPU's rdp to quit the callback offlined mode. The switch happens on the target with IRQs disabled and rdp->nocb_lock held to avoid races between local callbacks handling and kthread offloaded callbacks handling. nocb_cb kthread is first parked to avoid any future race with concurrent rcu_d

[PATCH 10/10] rcu: Nocb (de)activate through sysfs

2020-05-13 Thread Frederic Weisbecker
Not for merge. Make nocb toggable for a given CPU using: /sys/devices/system/cpu/cpu*/hotplug/nocb This is only intended for those who want to test this patchset. The real interfaces will be cpuset/isolation and rcutorture. Not-Signed-off-by: Frederic Weisbecker Cc: Paul E. McKenney Cc

[PATCH 09/10] rcu: Allow to re-offload a CPU that used to be nocb

2020-05-13 Thread Frederic Weisbecker
This is essentially the reverse operation of de-offloading. For now it's only supported on CPUs that used to be offloaded and therefore still have the relevant nocb_cb/nocb_gp kthreads around. Inspired-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker Cc: Paul E. McKenney Cc: Josh Triplet

[PATCH 05/10] rcu: Remove useless conditional nocb unlock

2020-05-13 Thread Frederic Weisbecker
Not only is it in the bad order (rdp->nocb_lock should be unlocked after rnp) but it's also dead code as we are in the !offloaded path. Signed-off-by: Frederic Weisbecker Cc: Paul E. McKenney Cc: Josh Triplett Cc: Steven Rostedt Cc: Mathieu Desnoyers Cc: Lai Jiangshan Cc: Joel Fernandes ---

[PATCH 03/10] rcu: Make locking explicit in do_nocb_deferred_wakeup_common()

2020-05-13 Thread Frederic Weisbecker
It can either be called inline (locally or CPU hotplug locked) when rdp->nocb_defer_wakeup is pending or from the nocb timer. In both cases the rdp is offlined and we want to take the nocb lock. Clarify the locking rules and expectations. Signed-off-by: Frederic Weisbecker Cc: Paul E. McKenney

[PATCH 01/10] rcu: Directly lock rdp->nocb_lock on nocb code entrypoints

2020-05-13 Thread Frederic Weisbecker
Pure NOCB code entrypoints (nocb_cb kthread, nocb_gp kthread, nocb timers) can unconditionally lock rdp->nocb_lock as they always execute in the context of an offloaded rdp. This also prepare for toggling CPUs to/from callback's offloaded mode where the offloaded state will possibly change when rd

[PATCH 00/10] rcu: Allow a CPU to leave and reenter NOCB state

2020-05-13 Thread Frederic Weisbecker
This is a necessary step toward making nohz_full controllable through cpuset. Next step should be to allow a CPU to be nocb even if it wasn't part of the nocb set on boot. The core design of this set is mostly based on suggestions from Paul of course. git://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH v7 1/9] firmware: arm_scmi: Add notification protocol-registration

2020-05-13 Thread Dave Martin
On Mon, May 11, 2020 at 11:04:03PM +0100, Cristian Marussi wrote: > Hi Dave > > thanks for the review first of all. > > On Wed, May 06, 2020 at 04:25:50PM +0100, Dave Martin wrote: > > On Mon, May 04, 2020 at 05:38:47PM +0100, Cristian Marussi wrote: > > > Add core SCMI Notifications protocol-reg

Re: [PATCH] arm64: dts: qcom: disable the new cti nodes on devices with broken coresight

2020-05-13 Thread Michael Srba
On 13. 05. 20 18:04, Jeffrey Hugo wrote: > On Wed, May 13, 2020 at 9:53 AM wrote: >> From: Michael Srba >> >> Attempting to enable these devices causes a "synchronous >> external abort". Suspected cause is that the debug power >> domain is not enabled by default on this device. >> Disable these d

Re: [PATCH] staging: android: ashmem: Fixed a issue related to file_operations

2020-05-13 Thread kbuild test robot
-base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Anmol/staging-android-ashmem-Fixed-a-issue-related-to-file_operations/20200513-194410 base: https://git.kernel.org/pub/scm/linux/

Re: x86/smp: adding new trace points

2020-05-13 Thread Thomas Gleixner
Wojciech Kudla writes: > On 13/05/2020 13:24, Thomas Gleixner wrote: > >> Why would the SMP call function single interrupt go through the >> PLATFORM_IPI_VECTOR? It goes as the name says through the >> CALL_FUNCTION_SINGLE_VECTOR. >> > > Wrong vector, my bad. > > However 2) still stands in my opi

Re: BUG:loop:blk_update_request: I/O error, dev loop6, sector 49674 op 0x9:(WRITE_ZEROES)

2020-05-13 Thread Darrick J. Wong
[add fsdevel to cc] On Tue, May 12, 2020 at 08:22:08PM -0600, Jens Axboe wrote: > On 5/12/20 8:14 PM, Xu, Yanfei wrote: > > Hi, > > > > After operating the /dev/loop which losetup with an image placed in**tmpfs, > > > > I got the following ERROR messages: > > > > [cut here]-

Re: [PATCH v4 7/7] drm/mediatek: mtk_dsi: Create connector for bridges

2020-05-13 Thread Enric Balletbo Serra
Hi Chun-Kuang, Missatge de Enric Balletbo i Serra del dia dv., 1 de maig 2020 a les 17:25: > > Use the drm_bridge_connector helper to create a connector for pipelines > that use drm_bridge. This allows splitting connector operations across > multiple bridges when necessary, instead of having the

Re: [RFC v3 for QEMU] virtio-balloon: Add option cont-pages to set VIRTIO_BALLOON_VQ_INFLATE_CONT

2020-05-13 Thread David Hildenbrand
On 12.05.20 11:41, Hui Zhu wrote: This description needs an overhaul, it's hard to parse. > If the guest kernel has many fragmentation pages, use virtio_balloon > will split THP of QEMU when it calls MADV_DONTNEED madvise to release > the balloon pages. This is very unclear and confusing. You wi

[PATCH net-next v2 3/4] net: phy: broadcom: add cable test support

2020-05-13 Thread Michael Walle
Most modern broadcom PHYs support ECD (enhanced cable diagnostics). Add support for it in the bcm-phy-lib so they can easily be used in the PHY driver. There are two access methods for ECD: legacy by expansion registers and via the new RDB registers which are exclusive. Provide functions in two va

[PATCH net-next v2 2/4] net: phy: broadcom: add bcm_phy_modify_exp()

2020-05-13 Thread Michael Walle
Add the convenience function to do a read-modify-write. This has the additional benefit of saving one write to the selection register. Signed-off-by: Michael Walle Reviewed-by: Florian Fainelli Reviewed-by: Andrew Lunn --- drivers/net/phy/bcm-phy-lib.c | 32 dr

[PATCH net-next v2 4/4] net: phy: bcm54140: add cable diagnostics support

2020-05-13 Thread Michael Walle
Use the generic cable tester functions from bcm-phy-lib to add cable tester support. 100m cable, A/B/C/D open: Cable test started for device eth0. Cable test completed for device eth0. Pair: Pair A, result: Open Circuit Pair: Pair B, result: Open Circuit Pair: Pair C, result: Open Circui

[PATCH net-next 0/4] net: phy: broadcom: cable tester support

2020-05-13 Thread Michael Walle
Add cable tester support for the Broadcom PHYs. Support for it was developed on a BCM54140 Quad PHY which RDB register access. If there is a link partner the results are not as good as with an open cable. I guess we could retry if the measurement until all pairs had at least one valid result. cha

[PATCH net-next v2 1/4] net: phy: broadcom: add exp register access methods without buslock

2020-05-13 Thread Michael Walle
Add helper to read and write expansion registers without taking the mdio lock. Please note, that this changes the semantics of the read and write. Before there was no lock between selecting the expansion register and the actual read/write. This may lead to access failures if there are parallel acc

Re: [PATCH v3 4/4] drm/virtio: Support virtgpu exported resources

2020-05-13 Thread Michael S. Tsirkin
On Wed, Mar 11, 2020 at 08:20:04PM +0900, David Stevens wrote: > Add support for UUID-based resource sharing mechanism to virtgpu. This > implements the new virtgpu commands and hooks them up to dma-buf's > get_uuid callback. > > Signed-off-by: David Stevens > --- > drivers/gpu/drm/virtio/virtgp

Re: [PATCH] Makefile: support compressed debug info

2020-05-13 Thread Sedat Dilek
On Wed, May 13, 2020 at 4:52 AM Masahiro Yamada wrote: > > Nick, > > On Wed, May 13, 2020 at 4:23 AM Nick Desaulniers > wrote: > > > > On Mon, May 11, 2020 at 10:54 PM Masahiro Yamada > > wrote: > > > > > > > >On Mon, May 4, 2020 at 5:13 AM Nick Desaulniers > > > > > wrote: > > > > >> > > > > >

Re: [PATCH] video: fbdev: ssd1307fb: Added support to Column offset

2020-05-13 Thread kbuild test robot
. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Rodrigo-Rolim-Mendes-de-Alencar/video-fbdev-ssd1307fb-Added-support-to-Column-offset/20200513-1

RE: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen

2020-05-13 Thread Thomas Gleixner
David Laight writes: > From: Will Deacon >> Sent: 13 May 2020 13:40 >> On Wed, May 13, 2020 at 02:32:43PM +0200, Peter Zijlstra wrote: >> > On Wed, May 13, 2020 at 01:48:41PM +0200, Marco Elver wrote: >> > >> > > Disabling most instrumentation for arch/x86 is reasonable. Also fine >> > > with the

Re: [PATCH v10 1/5] usb: xhci: Change the XHCI link order in the Makefile

2020-05-13 Thread Florian Fainelli
On 5/13/2020 9:27 AM, Greg Kroah-Hartman wrote: > On Wed, May 13, 2020 at 08:08:07AM -0700, Florian Fainelli wrote: >> >> >> On 5/13/2020 5:26 AM, Greg Kroah-Hartman wrote: >>> On Tue, May 12, 2020 at 11:00:15AM -0400, Al Cooper wrote: Some BRCMSTB USB chips have an XHCI, EHCI and OHCI cont

[PATCH 3/3] workqueue: Convert the pool::lock and wq_mayday_lock to raw_spinlock_t

2020-05-13 Thread Sebastian Andrzej Siewior
The workqueue code has it's internal spinlocks (pool::lock), which are acquired on most workqueue operations. These spinlocks are converted to 'sleeping' spinlocks on a RT-kernel. Workqueue functions can be invoked from contexts which are truly atomic even on a PREEMPT_RT enabled kernel. Taking sl

[PATCH 2/3] workqueue: Use swait for wq_manager_wait

2020-05-13 Thread Sebastian Andrzej Siewior
The workqueue code has it's internal spinlock (pool::lock) and also implicit spinlock usage in the wq_manager waitqueue. These spinlocks are converted to 'sleeping' spinlocks on a RT-kernel. Workqueue functions can be invoked from contexts which are truly atomic even on a PREEMPT_RT enabled kernel

[PATCH 1/3] sched/swait: Add swait_event_lock_irq()

2020-05-13 Thread Sebastian Andrzej Siewior
The workqueue code is currently not RT compatible due to nesting of regular spinlocks inside of raw spinlocks and locking of spinlocks inside of regions which are truly atomic even on a RT kernel. One part of this problem are the wait queues as they use regular spinlocks internally. The semantica

Re: [PATCH v10 1/5] usb: xhci: Change the XHCI link order in the Makefile

2020-05-13 Thread Greg Kroah-Hartman
On Wed, May 13, 2020 at 08:08:07AM -0700, Florian Fainelli wrote: > > > On 5/13/2020 5:26 AM, Greg Kroah-Hartman wrote: > > On Tue, May 12, 2020 at 11:00:15AM -0400, Al Cooper wrote: > >> Some BRCMSTB USB chips have an XHCI, EHCI and OHCI controller > >> on the same port where XHCI handles 3.0 de

Re: [PATCH] perf evsel: Fix 2 memory leaks

2020-05-13 Thread Ian Rogers
On Wed, May 13, 2020 at 6:36 AM Arnaldo Carvalho de Melo wrote: > > Em Tue, May 12, 2020 at 04:59:18PM -0700, Ian Rogers escreveu: > > If allocated, perf_pkg_mask and metric_events need freeing. > > Applied, were those found with some tool? Or just by visual inspection? > > Also I noticed that evs

[PATCH 0/3] workqueue: Make the workqueue code PREEMPT_RT safe

2020-05-13 Thread Sebastian Andrzej Siewior
The series changes `wq_manager_wait' from waitqueues to simple waitqueues and its internal locking (pool::lock and wq_mayday_lock) to raw spinlocks so that workqueues can be used on PREEMPT_RT from truly atomic context. Sebastian

Re: [RFC][PATCH 3/5] objtool: Add support for relocations without addends

2020-05-13 Thread Matt Helsley
On Tue, May 12, 2020 at 06:04:50PM +0100, Julien Thierry wrote: > Hi Matt, > > On 5/11/20 6:35 PM, Matt Helsley wrote: > > Currently objtool only collects information about relocations with > > addends. In recordmcount, which we are about to merge into objtool, > > some supported architectures do

Re: [PATCH v1] net: phy: at803x: add cable test support

2020-05-13 Thread Michael Walle
Am 2020-05-13 18:00, schrieb Oleksij Rempel: On Wed, May 13, 2020 at 05:49:53PM +0200, Andrew Lunn wrote: > Uff.. i missed this. Then I'll need only to add some changes on top of > his patch. I've been chatting with mwalle on IRC today. There should be a repost of the patches soon. Cool! @Mic

Re: [PATCH] mfd: Export LPC attributes for the system SPI chip

2020-05-13 Thread Mika Westerberg
On Wed, May 13, 2020 at 03:13:28PM +0100, Richard Hughes wrote: > On Wed, 13 May 2020 at 10:11, Mika Westerberg > wrote: > > > I can fix up all those, but out of interest how did you "know" the > > > right three digit identifier to use? > > I work for Intel ;-) > > Hah, okay, thanks :) > > > > I

Re: [PATCH 2/3] security: add symbol namespace for reading file data

2020-05-13 Thread Greg KH
On Wed, May 13, 2020 at 04:16:22PM +, Luis Chamberlain wrote: > On Wed, May 13, 2020 at 10:40:31AM -0500, Eric W. Biederman wrote: > > Luis Chamberlain writes: > > > > > Certain symbols are not meant to be used by everybody, the security > > > helpers for reading files directly is one such ca

Re: [tracing] 06e0a548ba: WARNING:at_kernel/trace/ring_buffer.c:#ring_buffer_iter_peek

2020-05-13 Thread Steven Rostedt
On Wed, 13 May 2020 18:15:57 +0200 Sven Schnelle wrote: > Thanks for looking into this. I've attached my /proc/config.gz to this Mail. > The x86 system is my Laptop which is a Thinkpad X280 with 4 HT CPUs (so 8 cpus > in total). I've tried disabling preemption, but this didn't help. > > It's alw

Re: [PATCH v5 0/7] firmware: add partial read support in request_firmware_into_buf

2020-05-13 Thread Mimi Zohar
Hi Scott, On Thu, 2020-05-07 at 17:27 -0700, Scott Branden wrote: > Please consider this version series ready for upstream acceptance. > > This patch series adds partial read support in request_firmware_into_buf. > In order to accept the enhanced API it has been requested that kernel > selftests

Re: [PATCH v1] net: phy: at803x: add cable test support

2020-05-13 Thread Andrew Lunn
On Wed, May 13, 2020 at 06:00:26PM +0200, Oleksij Rempel wrote: > On Wed, May 13, 2020 at 05:49:53PM +0200, Andrew Lunn wrote: > > > Uff.. i missed this. Then I'll need only to add some changes on top of > > > his patch. > > > > I've been chatting with mwalle on IRC today. There should be a repost

Re: [PATCH v2] arm: dts: Move am33xx and am43xx mmc nodes to sdhci-omap driver

2020-05-13 Thread Tony Lindgren
* Faiz Abbas [200512 13:39]: > Move mmc nodes to be compatible with the sdhci-omap driver. The following > modifications are required for omap_hsmmc specific properties: > > ti,non-removable: convert to the generic mmc non-removable > ti,needs-special-reset: co-opted into the sdhci-omap driver >

Re: WARNING in memtype_reserve

2020-05-13 Thread Thomas Gleixner
Greg KH writes: > On Sat, May 09, 2020 at 12:00:57PM +0200, Thomas Gleixner wrote: >> Greg KH writes: >> > On Sat, May 09, 2020 at 12:20:14AM -0700, syzbot wrote: >> >> memtype_reserve failed: [mem 0xff000-0x8fff], req write-back >> >> WARNING: CPU: 1 PID: 7025 at arch/x86/mm/pat/memt

Re: WARNING in memtype_reserve

2020-05-13 Thread Thomas Gleixner
Alan Stern writes: > On Sat, 9 May 2020, Thomas Gleixner wrote: > >> Greg KH writes: >> > On Sat, May 09, 2020 at 12:20:14AM -0700, syzbot wrote: >> >> memtype_reserve failed: [mem 0xff000-0x8fff], req write-back >> >> WARNING: CPU: 1 PID: 7025 at arch/x86/mm/pat/memtype.c:589 >> >>

Re: [PATCH 00/13] Reconcile NUMA balancing decisions with the load balancer v6

2020-05-13 Thread Jirka Hladky
Thank you, Mel! I think I have to make sure we cover the scenario you have targeted when developing adjust_numa_imbalance: === https://github.com/torvalds/linux/blob/4f8a3cc1183c442daee6cc65360e3385021131e4/kernel/sched/fair.c#L8

Re: [PATCH 3/3] net: cleanly handle kernel vs user buffers for ->msg_control

2020-05-13 Thread Eric Dumazet
On 5/13/20 9:09 AM, Christoph Hellwig wrote: > On Wed, May 13, 2020 at 08:41:57AM -0700, Eric Dumazet wrote: >>> +* recv* side when msg_control_is_user is set, msg_control is the kernel >>> +* buffer used for all other cases. >>> +*/ >>> + union { >>> + void*m

Re: [PATCH v6 5/6] Optionally flush L1D on context switch

2020-05-13 Thread Thomas Gleixner
Balbir Singh writes: This part: > --- a/include/uapi/linux/prctl.h > +++ b/include/uapi/linux/prctl.h > @@ -238,4 +238,8 @@ struct prctl_mm_map { > #define PR_SET_IO_FLUSHER57 > #define PR_GET_IO_FLUSHER58 > > +/* Flush L1D on context switch (mm) */ > +#define PR_SET_

Re: [PATCH 2/3] security: add symbol namespace for reading file data

2020-05-13 Thread Luis Chamberlain
On Wed, May 13, 2020 at 10:40:31AM -0500, Eric W. Biederman wrote: > Luis Chamberlain writes: > > > Certain symbols are not meant to be used by everybody, the security > > helpers for reading files directly is one such case. Use a symbol > > namespace for them. > > > > This will prevent abuse of

Re: [tracing] 06e0a548ba: WARNING:at_kernel/trace/ring_buffer.c:#ring_buffer_iter_peek

2020-05-13 Thread Sven Schnelle
Hi Steve, On Wed, May 13, 2020 at 09:29:22AM -0400, Steven Rostedt wrote: > On Wed, 13 May 2020 11:19:06 +0200 > Sven Schnelle wrote: > > > Did you had a chance to look into this? I can easily reproduce this both on > > x86 > > and s390 by doing: > > > > cd /sys/kernel/tracing > > cat /dev/zer

Re: [PATCH 3/3] drm/bridge: Introduce LT9611 DSI to HDMI bridge

2020-05-13 Thread kbuild test robot
the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Vinod-Koul/Add-LT9611-DSI-to-HDMI-bridge/20200513-181150 base: https://git.kernel.o

Re: [PATCH] ASoC: tlv320adcx140: Fix bias config values

2020-05-13 Thread Mark Brown
On Wed, 13 May 2020 09:28:07 -0500, Dan Murphy wrote: > The device tree binding declares the ti,mic-bias-source and the > ti,vref-source properties as u32. The code reads them as u8 which is > incorrect. Since the device tree binding indicates them as u32 the > conde needs to be updated to read u

[PATCH net-next v2] net: phy: at803x: add cable diagnostics support

2020-05-13 Thread Michael Walle
The AR8031/AR8033 and the AR8035 support cable diagnostics. Adding driver support is straightforward, so lets add it. The PHY just do one pair at a time, so we have to start the test four times. The cable_test_get_status() can block and therefore we can just busy poll the test completion and conti

Re: file system permissions regression affecting root

2020-05-13 Thread Al Viro
On Wed, May 13, 2020 at 08:00:28AM -0700, Patrick Donnelly wrote: > In newer kernels (at least 5.6), it appears root is not able to write > to files owned by other users in a sticky directory: Yes. Controlled by /proc/sys/fs/protected_regular, which systemd crowd has decided to enable in commit 2

Re: [PATCH 2/2] perf test: Improve pmu event metric testing

2020-05-13 Thread Ian Rogers
On Wed, May 13, 2020 at 8:26 AM John Garry wrote: > > On 13/05/2020 07:22, Ian Rogers wrote: > > Break pmu-events test into 2 and add a test to verify that all pmu metric > > expressions simply parse. Try to parse all metric ids/events, failing if > > metrics for the current architecture fail to p

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