[PATCH 06/16] net: stmmac: Extend DMA IRQs enable/disable interface

2021-02-08 Thread Serge Semin
Similarly to the MAC core IRQs we need to be able to enable/disable all the DMA-related interrupts by means of the dedicated methods so the DMA IRQs would be enabled only when they are needed to be enabled (for instance while the network device being opened) and disabled otherwise. For that sake an

[PATCH 10/16] net: stmmac: Convert STMMAC_DOWN flag to STMMAC_UP

2021-02-08 Thread Serge Semin
The flag name and semantics are misleading. Judging by the code the flag will be set only if the networking is requested for being reset, while logically in order to correctly reflect the device state the flag needs to be also set when the network device isn't opened. Let's convert the flag to havi

[PATCH 12/16] net: stmmac: Introduce NIC software reset function

2021-02-08 Thread Serge Semin
Since we are about to move the IRQs handler setup into the device probe method, the DW MAC reset procedure needs to be redefined to be performed with care. We must make sure the IRQs handler isn't executed while the reset is proceeded and the IRQs are fully masked after that. The later is required

Re: [PATCH 4/5] arm64: dts: librem5: protect some partitions of the nor-flash

2021-02-08 Thread Krzysztof Kozlowski
On Mon, Feb 08, 2021 at 02:15:26PM +0100, Martin Kepplinger wrote: > From: Angus Ainslie > > These sections should be read only as they contain important data. > > Signed-off-by: Angus Ainslie > Signed-off-by: Martin Kepplinger > --- > .../arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 16 +++

Re: [PATCH 2/3] kbuild: clamp SUBLEVEL to 255

2021-02-08 Thread gre...@linuxfoundation.org
On Mon, Feb 08, 2021 at 01:48:06PM +, David Laight wrote: > From: Sasha Levin > > Sent: 06 February 2021 03:51 > > > > Right now if SUBLEVEL becomes larger than 255 it will overflow into the > > territory of PATCHLEVEL, causing havoc in userspace that tests for > > specific kernel version. > >

[PATCH 08/16] net: stmmac: Introduce Safety Feature IRQs enable/disable methods

2021-02-08 Thread Serge Semin
Safety feature IRQs is another set of IRQs, which aside with the DMA, MAC, MTL, GPIOs, etc interrupts can be generated by the DW *MAC network devices. They are signalled by means of the shared sbd_intr_o lane too, so we need to be able mask/unmask these interrupts in the framework of the generic IR

[PATCH 16/16] net: stmmac: Add DW MAC IPs of 3.72a/3.73a/3.74a versions

2021-02-08 Thread Serge Semin
DW MAC IPs of the denoted versions have been used on Socfpga Arria10, Baikal-T1 SoC, Intel Socfpga Agilex and Altera Socfpga Stratix10 respectively. Update the Generic DW MAC glue-driver OF-device compatibles to have these IPs accepted so the generic driver would be ready to work with the devices i

[PATCH 15/16] net: stmmac: Add DW GMAC GPIOs support

2021-02-08 Thread Serge Semin
Synopsys DW GMAC can be synthesized with up to four GPIs and four GPOs support, which in case if enabled can be configured via a MAC CSR 0xe0. In order to have the DW GMAC GPIO interface supported in the STMMAC GPIO driver we just need to define the GPIO configs accessors and GPI state getter. Sig

[PATCH 14/16] net: stmmac: Add Generic DW MAC GPIO port driver

2021-02-08 Thread Serge Semin
Synopsys DesignWare Ethernet controllers can be synthesized with General-Purpose IOs support. GPIOs can work either as inputs or as outputs thus belong to the gpi_i and gpo_o ports respectively. The ports width (number of possible inputs/outputs) and the configuration registers layout depend on the

Re: [PATCH 18/18] arm64: apple: Add initial Mac Mini 2020 (M1) devicetree

2021-02-08 Thread Hector Martin
On 08/02/2021 21.40, Arnd Bergmann wrote: On Mon, Feb 8, 2021 at 1:13 PM Krzysztof Kozlowski wrote: On Mon, Feb 08, 2021 at 08:56:53PM +0900, Hector Martin 'marcan' wrote: On 08/02/2021 20.04, Krzysztof Kozlowski wrote: apple Don't make things different for this one platform (comparing to a

Re: [PATCH v5 2/2] counter: add IRQ or GPIO based event counter

2021-02-08 Thread William Breathitt Gray
On Mon, Feb 08, 2021 at 02:53:47PM +0100, Oleksij Rempel wrote: > Add simple IRQ or GPIO base event counter. This device is used to measure > rotation speed of some agricultural devices, so no high frequency on the > counter pin is expected. > > The maximal measurement frequency depends on the CPU

[PATCH v2 0/7] ASoC: codecs: add support for LPASS Codec TX and RX macros

2021-02-08 Thread Srinivas Kandagatla
Thanks for reviewing v1, here is v2 patchset addressing comments from v1. This patchset adds support for two Codec Macro blocks(TX and RX) available in Qualcomm LPASS (Low Power Audio SubSystem). There are WSA, VA, TX and RX Macros on LPASS IP, each of the Macro block has specific connectivity li

[PATCH v2 4/7] ASoC: codec: lpass-rx-macro: add iir widgets

2021-02-08 Thread Srinivas Kandagatla
This patch adds irr widgets and mixers on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 264 ++ 1 file changed, 264 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index b516fd7

Re: [kbuild-all] Re: [patch 06/12] x86/entry: Convert system vectors to irq stack macro

2021-02-08 Thread Borislav Petkov
On Sun, Feb 07, 2021 at 04:15:11PM +0800, Rong Chen wrote: > Thanks for the advice, we'll add the check to our cluster, > and sorry for the inconvenience. When it comes to the tip tree, I'd say you guys are much better off not scraping any patches from the mailing list but simply testing the tip b

[PATCH v2 2/7] ASoC: codec: lpass-rx-macro: add support for lpass rx macro

2021-02-08 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig |5 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/lpass-rx-macro.c | 2001 + 3 files changed, 2008 insertions(+) create mode 100644 sound/soc/codecs/lpass-rx-macro.c diff --

[PATCH v2 1/7] ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec

2021-02-08 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec RX macro which is for connecting with SoundWire RX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-rx-macro.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/

[PATCH v2 3/7] ASoC: codec: lpass-rx-macro: add dapm widgets and route

2021-02-08 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 1339 + 1 file changed, 1339 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index 355bd

[PATCH v2 7/7] ASoC: codec: lpass-tx-macro: add dapm widgets and route

2021-02-08 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-tx-macro.c | 685 ++ 1 file changed, 685 insertions(+) diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c index 5c3d65

[PATCH v2 6/7] ASoC: codec: lpass-tx-macro: add support for lpass tx macro

2021-02-08 Thread Srinivas Kandagatla
Qualcomm LPASS (Low Power Audio SubSystem) has internal codec TX macro block which is used for connecting with external Soundwire TX Codecs like WCD938x. This patch adds support to the codec part of the TX Macro block Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig |

Re: [PATCH 0/7] xen/events: bug fixes and some diagnostic aids

2021-02-08 Thread Julien Grall
Hi Juergen, On 08/02/2021 13:58, Jürgen Groß wrote: On 08.02.21 14:09, Julien Grall wrote: Hi Juergen, On 08/02/2021 12:31, Jürgen Groß wrote: On 08.02.21 13:16, Julien Grall wrote: On 08/02/2021 12:14, Jürgen Groß wrote: On 08.02.21 11:40, Julien Grall wrote: Hi Juergen, On 08/02/2021

[PATCH v2 5/7] ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec

2021-02-08 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec TX macro which is for connecting with Soundwire TX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-tx-macro.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/

Re: [PATCH v1 5/7] ARM i.MX6q: remove Atheros AR8035 SmartEEE fixup

2021-02-08 Thread Russell King - ARM Linux admin
On Mon, Feb 08, 2021 at 10:20:38AM +0100, Oleksij Rempel wrote: > On Wed, Feb 03, 2021 at 09:56:28AM +, Russell King - ARM Linux admin > wrote: > > That is the historical fix for this problem, but there is a better > > solution now in net-next - configuring the Tw parameter for gigabit > > con

Re: [PATCH] Use devicetree to determine present cpus

2021-02-08 Thread Jan Henrik Weinstock
Signed-off-by: Jan Henrik Weinstock --- Re-send patch with git sendmail arch/openrisc/kernel/smp.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/arch/openrisc/kernel/smp.c b/arch/openrisc/kernel/smp.c index 29c82ef2e..75be7e34f 100644 --- a/arch/openris

Re: [PATCH 2/3] mailbox: sprd: Add supplementary inbox support

2021-02-08 Thread Baolin Wang
On Mon, Feb 8, 2021 at 7:52 PM Orson Zhai wrote: > > From: Orson Zhai > > Some sensors connected to Unisoc mailbox will send data very frequently. > This makes channel 0 very busy and the messages from other remote cores > not able to be handled as soon as possible. > > Then a supplementary inbox

Re: linux-next boot error: kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)

2021-02-08 Thread Dmitry Vyukov
On Mon, Feb 8, 2021 at 2:39 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:8d374d0d Add linux-next specific files for 20210208 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=13de8a40d0

Re: [PATCH v2] Use devicetree to determine present cpus (v2)

2021-02-08 Thread Jan Henrik Weinstock
Signed-off-by: Jan Henrik Weinstock --- arch/openrisc/kernel/smp.c | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/arch/openrisc/kernel/smp.c b/arch/openrisc/kernel/smp.c index 75be7e34f..83cbf43d4 100644 --- a/arch/openrisc/kernel/smp.c +++ b

Re: [PATCH 1/5] sched: make struct task_struct::state 32-bit

2021-02-08 Thread Alexey Dobriyan
On Mon, Feb 08, 2021 at 11:34:18AM +0100, Peter Zijlstra wrote: > On Sat, Feb 06, 2021 at 06:18:32PM +0300, Alexey Dobriyan wrote: > > > Silently delete "extern" from prototypes. > > NAK, extern is right. Extern is only necessary for variables.

[PATCH] PCI: mobiveil: Improve PCIE_LAYERSCAPE_GEN4 dependencies

2021-02-08 Thread Geert Uytterhoeven
- Drop the dependency on PCI, as this is implied by the dependency on PCI_MSI_IRQ_DOMAIN, - Drop the dependencies on OF and ARM64, as the driver compiles fine without OF and/or on other architectures, - The Freescale Layerscape PCIe Gen4 controller is present only on Freescale Lay

[PATCH v1 1/2] USB: serial: Drop if with an always false condition

2021-02-08 Thread Uwe Kleine-König
In a bus remove function the passed device is always valid, so there is no need to check for it being NULL. (Side note: The check for port being non-NULL is broken anyhow, because to_usb_serial_port() is a wrapper around container_of() for a member that is not the first one. So port can hardly bec

[PATCH v1 2/2] USB: serial: Make remove callback return void

2021-02-08 Thread Uwe Kleine-König
All usb_serial drivers return 0 in their remove callback and the driver core ignores the value returned by usb_serial_device_remove(). So change the remove callback to return void and return 0 unconditionally in usb_serial_device_remove(). Signed-off-by: Uwe Kleine-König --- drivers/usb/serial/a

Re: [PATCH 1/5] sched: make struct task_struct::state 32-bit

2021-02-08 Thread Alexey Dobriyan
On Mon, Feb 08, 2021 at 11:39:25AM +0100, Peter Zijlstra wrote: > On Sat, Feb 06, 2021 at 06:18:32PM +0300, Alexey Dobriyan wrote: > > 32-bit accesses are shorter than 64-bit accesses on x86_64. > > Nothing uses 64-bitness of struct task_struct::state. > > > > Propagate 32-bitness to other variabl

Re: [PATCH 0/7] xen/events: bug fixes and some diagnostic aids

2021-02-08 Thread Julien Grall
On 08/02/2021 14:20, Julien Grall wrote: I believe this will be the case before our "lateeoi" handling is becoming active (more precise: when our IRQ handler is returning to handle_fasteoi_irq()), resulting in the possibility of the same race we are experiencing now. I am a bit confused what

Re: [PATCH V7 6/6] of: unittest: Statically apply overlays using fdtoverlay

2021-02-08 Thread Rob Herring
On Mon, Feb 8, 2021 at 5:18 AM Viresh Kumar wrote: > > On 03-02-21, 19:54, Rob Herring wrote: > > diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib > > index b00855b247e0..886d2e6c58f0 100644 > > --- a/scripts/Makefile.lib > > +++ b/scripts/Makefile.lib > > @@ -66,6 +66,9 @@ multi-used :=

Re: [PATCH v7 00/23] arm64: Early CPU feature override, and applications to VHE, BTI and PAuth

2021-02-08 Thread Will Deacon
Hi Marc, On Mon, Feb 08, 2021 at 09:57:09AM +, Marc Zyngier wrote: > It recently came to light that there is a need to be able to override > some CPU features very early on, before the kernel is fully up and > running. The reasons for this range from specific feature support > (such as using P

Re: [PATCH] bus: fsl-mc: Fix test for end of loop

2021-02-08 Thread Ioana Ciornei
On Mon, Feb 01, 2021 at 03:28:54PM +0300, Dan Carpenter wrote: > The "desc" pointer can't possibly be NULL here. If we can't find the > correct "desc" then tt points to the last element of the > fsl_mc_accepted_cmds[] array. Fix this by testing if > "i == FSL_MC_NUM_ACCEPTED_CMDS" instead. > > F

Re: Migration to trusted keys: sealing user-provided key?

2021-02-08 Thread Jan Lübbe
On Mon, 2021-02-01 at 14:46 -0500, Mimi Zohar wrote: > On Mon, 2021-02-01 at 17:38 +0100, Jan Lübbe wrote: > > On Mon, 2021-02-01 at 11:11 -0500, Mimi Zohar wrote: > > > On Mon, 2021-02-01 at 16:31 +0100, Jan Lübbe wrote: > > > > On Sun, 2021-01-31 at 09:29 -0500, Mimi Zohar wrote: > > > > > > > U

Re: TLS for 5.10

2021-02-08 Thread Adam Borowski
On Mon, Feb 08, 2021 at 07:08:05AM +, Wadepohl, Wolfram wrote: > I'm sad to hear that 5.10 has still an EOL of Dec, 2022. We are in > development of our 1st GNU/Linux based System, 50k devices for IoT. [...] > In general a 2 year support for embedded systems in automation is not a > reasonable

[PATCH] soc: rockchip: ROCKCHIP_GRF should not default to y, unconditionally

2021-02-08 Thread Geert Uytterhoeven
Merely enabling CONFIG_COMPILE_TEST should not enable additional code. To fix this, restrict the automatic enabling of ROCKCHIP_GRF to ARCH_ROCKCHIP, and ask the user in case of compile-testing. Fixes: 4c58063d4258f6be ("soc: rockchip: add driver handling grf setup") Signed-off-by: Geert Uytterhoe

Re: [PATCH 2/5] rcu/nocb: Perform deferred wake up before last idle's need_resched() check

2021-02-08 Thread Peter Zijlstra
On Mon, Feb 01, 2021 at 12:05:45AM +0100, Frederic Weisbecker wrote: > diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c > index 305727ea0677..b601a3aa2152 100644 > --- a/kernel/sched/idle.c > +++ b/kernel/sched/idle.c > @@ -55,6 +55,7 @@ __setup("hlt", cpu_idle_nopoll_setup); > static noinl

MIPS noncoherent DMA cleanups

2021-02-08 Thread Christoph Hellwig
Hi Thomas, this series cleans up some of the mips (maybe) noncoherent support. It also remove the need for the special header only provided by mips.

[PATCH net] vsock/virtio: update credit only if socket is not closed

2021-02-08 Thread Stefano Garzarella
If the socket is closed or is being released, some resources used by virtio_transport_space_update() such as 'vsk->trans' may be released. To avoid a use after free bug we should only update the available credit when we are sure the socket is still open and we have the lock held. Fixes: 06a8fc783

Re: [PATCH v7 00/23] arm64: Early CPU feature override, and applications to VHE, BTI and PAuth

2021-02-08 Thread Ard Biesheuvel
On Mon, 8 Feb 2021 at 15:32, Will Deacon wrote: > > Hi Marc, > > On Mon, Feb 08, 2021 at 09:57:09AM +, Marc Zyngier wrote: > > It recently came to light that there is a need to be able to override > > some CPU features very early on, before the kernel is fully up and > > running. The reasons f

Re: [PATCH v2] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add DSI and panel bits

2021-02-08 Thread Konrad Dybcio
>>> + ports { >>> + port@1 { >>> + endpoint { >>> + remote-endpoint = <&tianma_nt36672a_in_0>; >>> + data-lanes = <0 1 2 3>; >>> + }; >>> + }; >>> + }; >> The en

[PATCH net] vsock: fix locking in vsock_shutdown()

2021-02-08 Thread Stefano Garzarella
In vsock_shutdown() we touched some socket fields without holding the socket lock, such as 'state' and 'sk_flags'. Also, after the introduction of multi-transport, we are accessing 'vsk->transport' in vsock_send_shutdown() without holding the lock and this call can be made while the connection is

[PATCH 2/6] MIPS/alchemy: factor out the DMA coherent setup

2021-02-08 Thread Christoph Hellwig
Factor out a alchemy_dma_coherent helper that determines if the platform is DMA coherent. Also stop initializing the hw_coherentio variable, given that is only ever set to a non-zero value by the malta setup code. Signed-off-by: Christoph Hellwig --- arch/mips/alchemy/common/setup.c | 33 ++

[PATCH 5/6] driver core: lift dma_default_coherent into common code

2021-02-08 Thread Christoph Hellwig
Lift the dma_default_coherent variable from the mips architecture code to the driver core. This allows an architecture to sdefault all device to be DMA coherent at run time, even if the kernel is build with support for DMA noncoherent device. By allowing device_initialize to ѕet the ->dma_coheren

[PATCH 4/6] MIPS: refactor the maybe coherent DMA indicators

2021-02-08 Thread Christoph Hellwig
Replace the global coherentio enum, and the hw_coherentio (fake) boolean variables with a single boolean dma_default_coherent flag. Only the malta setup code needs two additional local boolean variables to preserved the command line overrides. Signed-off-by: Christoph Hellwig --- arch/mips/alch

[PATCH 3/6] MIPS: move the {no,}nocoherentio options to the malta setup code

2021-02-08 Thread Christoph Hellwig
There are only two MIPS platforms that are conditionally DMA coherent. Of those alchemcy forces the coherentcy base on the platform, while malta allows a mix of hardware defaults and manual overrides. Move the command line options for these overrides to the malta setup code, as they can't have an

[PATCH 6/6] MIPS: remove CONFIG_DMA_PERDEV_COHERENT

2021-02-08 Thread Christoph Hellwig
Just select DMA_NONCOHERENT and ARCH_HAS_SETUP_DMA_OPS from the MIPS_GENERIC platform instead. Signed-off-by: Christoph Hellwig --- arch/mips/Kconfig | 8 ++-- arch/mips/mm/dma-noncoherent.c | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/mips/Kconfig

Re: [PATCH 0/7] xen/events: bug fixes and some diagnostic aids

2021-02-08 Thread Jürgen Groß
On 08.02.21 15:20, Julien Grall wrote: Hi Juergen, On 08/02/2021 13:58, Jürgen Groß wrote: On 08.02.21 14:09, Julien Grall wrote: Hi Juergen, On 08/02/2021 12:31, Jürgen Groß wrote: On 08.02.21 13:16, Julien Grall wrote: On 08/02/2021 12:14, Jürgen Groß wrote: On 08.02.21 11:40, Julien G

[PATCH] gpio: GPIO_MXS should not default to y, unconditionally

2021-02-08 Thread Geert Uytterhoeven
Merely enabling CONFIG_COMPILE_TEST should not enable additional code. To fix this, restrict the automatic enabling of GPIO_MXS to ARCH_MXS, and ask the user in case of compile-testing. Fixes: 6876ca311bfca5d7 ("gpio: mxs: add COMPILE_TEST support for GPIO_MXS") Signed-off-by: Geert Uytterhoeven

[PATCH 1/6] MIPS/malta: simplify plat_setup_iocoherency

2021-02-08 Thread Christoph Hellwig
Merge plat_enable_iocoherency into plat_setup_iocoherency to simplify the code a bit. Signed-off-by: Christoph Hellwig --- arch/mips/mti-malta/malta-setup.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/arch/mips/mti-malta/malta-setup.c b/arch/mips/mti-m

Re: [PATCH 1/5] sched: make struct task_struct::state 32-bit

2021-02-08 Thread Alexey Dobriyan
On Mon, Feb 08, 2021 at 05:30:25PM +0300, Alexey Dobriyan wrote: > On Mon, Feb 08, 2021 at 11:34:18AM +0100, Peter Zijlstra wrote: > > On Sat, Feb 06, 2021 at 06:18:32PM +0300, Alexey Dobriyan wrote: > > > > > Silently delete "extern" from prototypes. > > > > NAK, extern is right. > > Extern is

Re: [PATCH 2/5] rcu/nocb: Perform deferred wake up before last idle's need_resched() check

2021-02-08 Thread Frederic Weisbecker
On Mon, Feb 08, 2021 at 03:45:50PM +0100, Peter Zijlstra wrote: > On Mon, Feb 01, 2021 at 12:05:45AM +0100, Frederic Weisbecker wrote: > > > diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c > > index 305727ea0677..b601a3aa2152 100644 > > --- a/kernel/sched/idle.c > > +++ b/kernel/sched/idle.

Re: [PATCH 00/18] new API for FS_IOC_[GS]ETFLAGS/FS_IOC_FS[GS]ETXATTR

2021-02-08 Thread Miklos Szeredi
On Mon, Feb 8, 2021 at 3:02 PM Matthew Wilcox wrote: > > On Mon, Feb 08, 2021 at 09:25:22AM +0100, Miklos Szeredi wrote: > > On Mon, Feb 8, 2021 at 3:00 AM Dave Chinner wrote: > > > > > > On Wed, Feb 03, 2021 at 04:03:06PM +0100, Miklos Szeredi wrote: > > > > On Wed, Feb 3, 2021 at 3:56 PM Matthe

Re: [PATCH] mm, slub: better heuristic for number of cpus when calculating slab order

2021-02-08 Thread Vincent Guittot
On Mon, 8 Feb 2021 at 14:41, Vlastimil Babka wrote: > > When creating a new kmem cache, SLUB determines how large the slab pages will > based on number of inputs, including the number of CPUs in the system. Larger > slab pages mean that more objects can be allocated/free from per-cpu slabs > befor

Re: [PATCH 18/18] arm64: apple: Add initial Mac Mini 2020 (M1) devicetree

2021-02-08 Thread Hector Martin
On 08/02/2021 21.27, Marc Zyngier wrote: + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupts = , + , + , + ; This unfortuna

Re: [PATCH] pci: add Silicom Denmark vendor id

2021-02-08 Thread Krzysztof Wilczyński
Hi Martin, Thank you for sending the patch over! A few suggestions. Try to keep the patch style aligned with previous submissions, see the following for to format the subject line, etc., a few examples: $ git log --oneline include/linux/pci_ids.h | grep -E 'Add.*ID' | head -n 10 8b7beaf9f185 PC

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-02-08 Thread Guoqing Jiang
On 2/8/21 12:38, Donald Buczek wrote: 5. maybe don't hold reconfig_mutex when try to unregister sync_thread, like this. /* resync has finished, collect result */ mddev_unlock(mddev); md_unregister_thread(&mddev->sync_thread); mddev_lock(mddev); As above:

Re: rcu: INFO: rcu_sched self-detected stall on CPU: Workqueue: xfs-conv/md0 xfs_end_io

2021-02-08 Thread Paul E. McKenney
On Mon, Feb 08, 2021 at 09:07:24AM -0500, Brian Foster wrote: > On Fri, Feb 05, 2021 at 09:12:40AM -0800, Paul E. McKenney wrote: > > On Fri, Feb 05, 2021 at 08:29:06AM +0100, Paul Menzel wrote: > > > Dear Linux folks, > > > > > > > > > On a Dell PowerEdge T630/0NT78X, BIOS 2.8.0 05/23/2018 with

[PATCH] irqchip: IMX_INTMUX should not default to y, unconditionally

2021-02-08 Thread Geert Uytterhoeven
Merely enabling CONFIG_COMPILE_TEST should not enable additional code. To fix this, restrict the automatic enabling of IMX_INTMUX to ARCH_MXC, and ask the user in case of compile-testing. Fixes: 66968d7dfc3f5451 ("irqchip: Add COMPILE_TEST support for IMX_INTMUX") Signed-off-by: Geert Uytterhoeven

Re: [PATCH] drivers: net: ethernet: sun: Fix couple of spells in the file sunhme.c

2021-02-08 Thread Edward Cree
On 05/02/2021 12:47, Bhaskar Chowdhury wrote: > > > s/fuck/mess/ > s/fucking/s/ > > Signed-off-by: Bhaskar Chowdhury Right or wrong, these are not "spelling fixes". Please do not misrepresent your patch in your Subject: line. (Also, subsystem prefix should probably just be "net: sunhme:".)

Re: [PATCH 5/6] driver core: lift dma_default_coherent into common code

2021-02-08 Thread Greg Kroah-Hartman
On Mon, Feb 08, 2021 at 03:50:23PM +0100, Christoph Hellwig wrote: > Lift the dma_default_coherent variable from the mips architecture code > to the driver core. This allows an architecture to sdefault all device > to be DMA coherent at run time, even if the kernel is build with support > for DMA

[PATCH 4.4 01/38] net_sched: reject silly cell_log in qdisc_get_rtab()

2021-02-08 Thread Greg Kroah-Hartman
From: Eric Dumazet commit e4bedf48aaa5552bc1f49703abd17606e7e6e82a upstream iproute2 probably never goes beyond 8 for the cell exponent, but stick to the max shift exponent for signed 32bit. UBSAN reported: UBSAN: shift-out-of-bounds in net/sched/sch_api.c:389:22 shift exponent 130 is too large

[PATCH 4.4 10/38] futex: Simplify fixup_pi_state_owner()

2021-02-08 Thread Greg Kroah-Hartman
From: Lee Jones From: Thomas Gleixner [ Upstream commit f2dac39d93987f7de1e20b3988c8685523247ae2 ] Too many gotos already and an upcoming fix would make it even more unreadable. Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra (Intel) Cc: sta...@vger.kernel.org Signed-off-by: Lee Jon

[PATCH 4.4 02/38] futex,rt_mutex: Provide futex specific rt_mutex API

2021-02-08 Thread Greg Kroah-Hartman
From: Lee Jones From: Peter Zijlstra [ Upstream commit 5293c2efda37775346885c7e924d4ef7018ea60b ] Part of what makes futex_unlock_pi() intricate is that rt_mutex_futex_unlock() -> rt_mutex_slowunlock() can drop rt_mutex::wait_lock. This means it cannot rely on the atomicy of wait_lock, which

[PATCH 4.4 11/38] futex: Handle faults correctly for PI futexes

2021-02-08 Thread Greg Kroah-Hartman
From: Lee Jones From: Thomas Gleixner fixup_pi_state_owner() tries to ensure that the state of the rtmutex, pi_state and the user space value related to the PI futex are consistent before returning to user space. In case that the user space value update faults and the fault cannot be resolved b

[PATCH 4.4 03/38] futex: Remove rt_mutex_deadlock_account_*()

2021-02-08 Thread Greg Kroah-Hartman
From: Lee Jones From: Peter Zijlstra These are unused and clutter up the code. Signed-off-by: Peter Zijlstra (Intel) Cc: juri.le...@arm.com Cc: bige...@linutronix.de Cc: xlp...@redhat.com Cc: rost...@goodmis.org Cc: mathieu.desnoy...@efficios.com Cc: jdesfos...@efficios.com Cc: dvh...@infrade

Re: [GIT PULL] x86/urgent for v5.11-rc7

2021-02-08 Thread Steven Rostedt
On Sun, 7 Feb 2021 16:45:40 -0600 Josh Poimboeuf wrote: > > I do suspect involved people should start thinking about how they want > > to deal with functions starting with > > > > endbr64 > > call __fentry__ > > > > instead of the call being at the very top of the function. >

[PATCH 4.4 22/38] elfcore: fix building with clang

2021-02-08 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 6e7b64b9dd6d96537d816ea07ec26b7dedd397b9 upstream. kernel/elfcore.c only contains weak symbols, which triggers a bug with clang in combination with recordmcount: Cannot find symbol for section 2: .text. kernel/elfcore.o: failed Move the empty stubs into linux/elf

[PATCH 4.4 00/38] 4.4.257-rc1 review

2021-02-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.257 release. There are 38 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. Responses should be made by Wed, 10 Feb 2021 14:57:55 +. Anything rec

[PATCHv2] PCI: Add Silicom Denmark vendor ID

2021-02-08 Thread Martin Hundebøll
Update pci_ids.h with the vendor ID for Silicom Denmark. The define is going to be referenced in driver(s) for FPGA accelerated smart NICs. Signed-off-by: Martin Hundebøll --- Changes since v1: * Align commit message/shortlog with similar changes to pci_ids.h include/linux/pci_ids.h | 2 ++ 1

[PATCH 4.4 09/38] futex: Use pi_state_update_owner() in put_pi_state()

2021-02-08 Thread Greg Kroah-Hartman
From: Lee Jones From: Thomas Gleixner [ Upstream commit 6ccc84f917d33312eb2846bd7b567639f585ad6d ] No point in open coding it. This way it gains the extra sanity checks. Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra (Intel) Cc: sta...@vger.kernel.org Signed-off-by: Lee Jones Sign

[PATCH 4.4 06/38] futex: Replace pointless printk in fixup_owner()

2021-02-08 Thread Greg Kroah-Hartman
From: Lee Jones From: Thomas Gleixner [ Upstream commit 04b79c55201f02ffd675e1231d731365e335c307 ] If that unexpected case of inconsistent arguments ever happens then the futex state is left completely inconsistent and the printk is not really helpful. Replace it with a warning and make the st

[PATCH 4.4 04/38] futex: Rework inconsistent rt_mutex/futex_q state

2021-02-08 Thread Greg Kroah-Hartman
From: Lee Jones From: Peter Zijlstra [Upstream commit 73d786bd043ebc855f349c81ea805f6b11cbf2aa ] There is a weird state in the futex_unlock_pi() path when it interleaves with a concurrent futex_lock_pi() at the point where it drops hb->lock. In this case, it can happen that the rt_mutex wait_

[PATCH 4.4 07/38] futex: Provide and use pi_state_update_owner()

2021-02-08 Thread Greg Kroah-Hartman
From: Lee Jones From: Thomas Gleixner [ Upstream commit c5cade200ab9a2a3be9e7f32a752c8d86b502ec7 ] Updating pi_state::owner is done at several places with the same code. Provide a function for it and use that at the obvious places. This is also a preparation for a bug fix to avoid yet another

[PATCH 4.4 08/38] rtmutex: Remove unused argument from rt_mutex_proxy_unlock()

2021-02-08 Thread Greg Kroah-Hartman
From: Lee Jones From: Thomas Gleixner [ Upstream commit 2156ac1934166d6deb6cd0f6ffc4c1076ec63697 ] Nothing uses the argument. Remove it as preparation to use pi_state_update_owner(). Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra (Intel) Cc: sta...@vger.kernel.org Signed-off-by: Lee

[PATCH 4.4 05/38] futex: Avoid violating the 10th rule of futex

2021-02-08 Thread Greg Kroah-Hartman
From: Lee Jones From: Peter Zijlstra commit c1e2f0eaf015fb7076d51a339011f2383e6dd389 upstream. Julia reported futex state corruption in the following scenario: waiter waker stealer (prio > waiter) futex(WAIT_R

Re: [PATCH v7 00/23] arm64: Early CPU feature override, and applications to VHE, BTI and PAuth

2021-02-08 Thread Marc Zyngier
Hi Will, On 2021-02-08 14:32, Will Deacon wrote: Hi Marc, On Mon, Feb 08, 2021 at 09:57:09AM +, Marc Zyngier wrote: It recently came to light that there is a need to be able to override some CPU features very early on, before the kernel is fully up and running. The reasons for this range f

[PATCH 4.4 25/38] usb: dwc2: Fix endpoint direction check in ep_from_windex

2021-02-08 Thread Greg Kroah-Hartman
From: Heiko Stuebner commit f670e9f9c8cac716c3506c6bac9e997b27ad441a upstream. dwc2_hsotg_process_req_status uses ep_from_windex() to retrieve the endpoint for the index provided in the wIndex request param. In a test-case with a rndis gadget running and sending a malformed packet to it like:

[PATCH] phy: marvell: ARMADA375_USBCLUSTER_PHY should not default to y, unconditionally

2021-02-08 Thread Geert Uytterhoeven
Merely enabling CONFIG_COMPILE_TEST should not enable additional code. To fix this, restrict the automatic enabling of ARMADA375_USBCLUSTER_PHY to MACH_ARMADA_375, and ask the user in case of compile-testing. Fixes: eee47538ec1f2619 ("phy: add support for USB cluster on the Armada 375 SoC") Signe

[PATCH 4.4 23/38] USB: gadget: legacy: fix an error code in eth_bind()

2021-02-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 3e1f4a2e1184ae6ad7f4caf682ced9554141a0f4 upstream. This code should return -ENOMEM if the allocation fails but it currently returns success. Fixes: 9b95236eebdb ("usb: gadget: ether: allocate and init otg descriptor by otg capabilities") Signed-off-by: Dan Carpenter

[PATCH 4.4 24/38] USB: usblp: dont call usb_set_interface if theres a single alt

2021-02-08 Thread Greg Kroah-Hartman
From: Jeremy Figgins commit d8c6edfa3f4ee0d45d7ce5ef18d1245b78774b9d upstream. Some devices, such as the Winbond Electronics Corp. Virtual Com Port (Vendor=0416, ProdId=5011), lockup when usb_set_interface() or usb_clear_halt() are called. This device has only a single altsetting, so it should n

[PATCH 4.4 13/38] scsi: libfc: Avoid invoking response handler twice if ep is already completed

2021-02-08 Thread Greg Kroah-Hartman
From: Javed Hasan [ Upstream commit b2b0f16fa65e910a3ec8771206bb49ee87a54ac5 ] A race condition exists between the response handler getting called because of exchange_mgr_reset() (which clears out all the active XIDs) and the response we get via an interrupt. Sequence of events: rport

[PATCH 4.4 31/38] mm: hugetlbfs: fix cannot migrate the fallocated HugeTLB page

2021-02-08 Thread Greg Kroah-Hartman
From: Muchun Song commit 585fc0d2871c9318c949fbf45b1f081edd489e96 upstream. If a new hugetlb page is allocated during fallocate it will not be marked as active (set_page_huge_active) which will result in a later isolate_huge_page failure when the page migration code would like to move that page.

[PATCH 4.4 29/38] mmc: core: Limit retries when analyse of SDIO tuples fails

2021-02-08 Thread Greg Kroah-Hartman
From: Fengnan Chang commit f92e04f764b86e55e522988e6f4b6082d19a2721 upstream. When analysing tuples fails we may loop indefinitely to retry. Let's avoid this by using a 10s timeout and bail if not completed earlier. Signed-off-by: Fengnan Chang Cc: sta...@vger.kernel.org Link: https://lore.ker

[PATCH 4.4 30/38] ARM: footbridge: fix dc21285 PCI configuration accessors

2021-02-08 Thread Greg Kroah-Hartman
From: Russell King commit 39d3454c3513840eb123b3913fda6903e45ce671 upstream. Building with gcc 4.9.2 reveals a latent bug in the PCI accessors for Footbridge platforms, which causes a fatal alignment fault while accessing IO memory. Fix this by making the assembly volatile. Cc: sta...@vger.kern

[PATCH 4.4 38/38] ALSA: hda/realtek - Fix typo of pincfg for Dell quirk

2021-02-08 Thread Greg Kroah-Hartman
From: Shih-Yuan Lee (FourDollars) commit b4576de87243c32fab50dda9f8eba1e3cf13a7e2 upstream. The PIN number for Dell headset mode of ALC3271 is wrong. Fixes: fcc6c877a01f ("ALSA: hda/realtek - Support Dell headset mode for ALC3271") Signed-off-by: Shih-Yuan Lee (FourDollars) Signed-off-by: Tak

[PATCH 4.4 28/38] cifs: report error instead of invalid when revalidating a dentry fails

2021-02-08 Thread Greg Kroah-Hartman
From: Aurelien Aptel commit 21b200d091826a83aafc95d847139b2b0582f6d1 upstream. Assuming - //HOST/a is mounted on /mnt - //HOST/b is mounted on /mnt/b On a slow connection, running 'df' and killing it while it's processing /mnt/b can make cifs_get_inode_info() returns -ERESTARTSYS. This trigger

[PATCH 4.4 14/38] scsi: ibmvfc: Set default timeout to avoid crash during migration

2021-02-08 Thread Greg Kroah-Hartman
From: Brian King [ Upstream commit 764907293edc1af7ac857389af9dc858944f53dc ] While testing live partition mobility, we have observed occasional crashes of the Linux partition. What we've seen is that during the live migration, for specific configurations with large amounts of memory, slow netwo

[PATCH 4.4 15/38] stable: clamp SUBLEVEL in 4.4 and 4.9

2021-02-08 Thread Greg Kroah-Hartman
Right now SUBLEVEL is overflowing, and some userspace may start treating 4.9.256 as 4.10. While out of tree modules have different ways of extracting the version number (and we're generally ok with breaking them), we do care about breaking userspace and it would appear that this overflow might do

[PATCH 4.4 37/38] ACPI: thermal: Do not call acpi_thermal_check() directly

2021-02-08 Thread Greg Kroah-Hartman
From: Rafael J. Wysocki commit 81b704d3e4674e09781d331df73d76675d5ad8cb upstream. Calling acpi_thermal_check() from acpi_thermal_notify() directly is problematic if _TMP triggers Notify () on the thermal zone for which it has been evaluated (which happens on some systems), because it causes a ne

[PATCH 4.4 34/38] x86/build: Disable CET instrumentation in the kernel

2021-02-08 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 20bf2b378729c4a0366a53e2018a0b70ace94bcd upstream. With retpolines disabled, some configurations of GCC, and specifically the GCC versions 9 and 10 in Ubuntu will add Intel CET instrumentation to the kernel by default. That breaks certain tracing scenarios by adding a

[PATCH 4.4 26/38] mac80211: fix station rate table updates on assoc

2021-02-08 Thread Greg Kroah-Hartman
From: Felix Fietkau commit 18fe0fae61252b5ae6e26553e2676b5fac555951 upstream. If the driver uses .sta_add, station entries are only uploaded after the sta is in assoc state. Fix early station rate table updates by deferring them until the sta has been uploaded. Cc: sta...@vger.kernel.org Signed

[PATCH 4.4 18/38] USB: serial: option: Adding support for Cinterion MV31

2021-02-08 Thread Greg Kroah-Hartman
From: Christoph Schemmel commit e478d6029dca9d8462f426aee0d32896ef64f10f upstream. Adding support for Cinterion device MV31 for enumeration with PID 0x00B3 and 0x00B7. usb-devices output for 0x00B3 T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 6 Spd=5000 MxCh= 0 D: Ver= 3.20 Cls=ef(misc ) Su

[PATCH 4.4 17/38] USB: serial: cp210x: add new VID/PID for supporting Teraoka AD2000

2021-02-08 Thread Greg Kroah-Hartman
From: Chenxin Jin commit 43377df70480f82919032eb09832e9646a8a5efb upstream. Teraoka AD2000 uses the CP210x driver, but the chip VID/PID is customized with 0988/0578. We need the driver to support the new VID/PID. Signed-off-by: Chenxin Jin Cc: sta...@vger.kernel.org Signed-off-by: Johan Hovold

[PATCH 4.4 33/38] mm: hugetlb: remove VM_BUG_ON_PAGE from page_huge_active

2021-02-08 Thread Greg Kroah-Hartman
From: Muchun Song commit ecbf4724e6061b4b01be20f6d797d64d462b2bc8 upstream. The page_huge_active() can be called from scan_movable_pages() which do not hold a reference count to the HugeTLB page. So when we call page_huge_active() from scan_movable_pages(), the HugeTLB page can be freed paralle

[PATCH 4.4 32/38] mm: hugetlb: fix a race between isolating and freeing page

2021-02-08 Thread Greg Kroah-Hartman
From: Muchun Song commit 0eb2df2b5629794020f75e94655e1994af63f0d4 upstream. There is a race between isolate_huge_page() and __free_huge_page(). CPU0: CPU1: if (PageHuge(page)) put_page(page)

[PATCH 4.4 27/38] kretprobe: Avoid re-registration of the same kretprobe earlier

2021-02-08 Thread Greg Kroah-Hartman
From: Wang ShaoBo commit 0188b87899ffc4a1d36a0badbe77d56c92fd91dc upstream. Our system encountered a re-init error when re-registering same kretprobe, where the kretprobe_instance in rp->free_instances is illegally accessed after re-init. Implementation to avoid re-registration has been introdu

[PATCH 4.4 19/38] Input: i8042 - unbreak Pegatron C15B

2021-02-08 Thread Greg Kroah-Hartman
From: Alexey Dobriyan [ Upstream commit a3a9060ecad030e2c7903b2b258383d2c716b56c ] g++ reports drivers/input/serio/i8042-x86ia64io.h:225:3: error: ‘.matches’ designator used multiple times in the same initializer list C99 semantics is that last duplicated initialiser wins, so DMI entr

  1   2   3   4   5   6   7   8   9   10   >