[gustavoars-linux:testing/scsi/aacraid] BUILD SUCCESS eae919a32e577ba5cdbe353ce1eabebd969c04df

2021-03-04 Thread kernel test robot
allyesconfig mips allmodconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a006-20210304 x86_64 randconfig-a001-20210304 x86_64 randconfig-a004

Re: [PATCH] kprobes: stacktrace: Recover the address changed by kretprobe

2021-03-04 Thread kernel test robot
Hi Masami, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.12-rc1 next-20210304] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documente

arch/powerpc/kernel/optprobes.c:34:1: error: unused function 'is_kprobe_ppc_optinsn_slot'

2021-03-04 Thread kernel test robot
weeks ago config: powerpc64-randconfig-r026-20210304 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project eec7f8f7b1226be422a76542cb403d02538f453a) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin

[PATCH][next] scsi: aacraid: Replace one-element array with flexible-array member

2021-03-04 Thread Gustavo A. R. Silva
There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use “flexible array members”[1] for these cases. The older style of one-element or zero-length arrays should no longer be used[2]. Refacto

RE: [PATCH 1/8] gpio: Add Elba SoC gpio driver for spi cs control

2021-03-04 Thread Elliott, Robert (Servers)
> -Original Message- > From: Brad Larson > Sent: Wednesday, March 3, 2021 9:42 PM > Subject: [PATCH 1/8] gpio: Add Elba SoC gpio driver for spi cs control . > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig ... > +config GPIO_ELBA_SPICS > + bool "Pensando Elba SPI chip-sele

Re: Possible bug kernel/seccomp.c

2021-03-04 Thread Hsuan-Chi Kuo
cc mailing list. On 3/4/21 1:10 PM, Hsuan-Chi Kuo wrote: Hello, Should this line be atomic_read(&caller->seccomp.filter_count)); https://elixir.bootlin.com/linux/latest/source/kernel/seccomp.c#L600 I think the desired behavior is to synchronize the filter count. Thank you

Re: [PATCH v2 6/7] dt-bindings: interrupt-controller: Add Loongson-2K1000 LIOINTC

2021-03-04 Thread Rob Herring
On Wed, 03 Mar 2021 14:24:33 +0800, Qing Zhang wrote: > Add liointc-2.0 properties support, so update the maxItems and description. > > Signed-off-by: Jiaxun Yang > Signed-off-by: Qing Zhang > --- > > v2: > - Add new patch > > .../bindings/interrupt-controller/loongson,liointc.yaml | 9 +

Re: [PATCH v5 1/2] dt-bindings: rng: bcm2835: document reset support

2021-03-04 Thread Rob Herring
On Thu, 04 Mar 2021 08:33:07 +0100, Álvaro Fernández Rojas wrote: > Some devices may need to perform a reset before using the RNG, such as the > BCM6368. > > Signed-off-by: Álvaro Fernández Rojas > --- > v5: no changes. > v4: pass dt_binding_check. > v3: make resets required if brcm,bcm636

Re: [PATCH 7/8] arm64: dts: Add Pensando Elba SoC support

2021-03-04 Thread Rob Herring
On Wed, 03 Mar 2021 19:41:40 -0800, Brad Larson wrote: > Add Pensando common and Elba SoC specific device nodes > and corresponding binding documentation. > > Signed-off-by: Brad Larson > --- > .../bindings/gpio/pensando,elba-spics.txt | 24 ++ > .../devicetree/bindings/mmc/cdns,sdhci.yaml

Re: [PATCH v1 3/5] dt-bindings: arm: Add cpu-idle-states to Tegra194 CPU nodes

2021-03-04 Thread Rob Herring
On Wed, 03 Mar 2021 22:08:10 -0800, Sowjanya Komatineni wrote: > This patch adds cpu-idle-states and corresponding state nodes to > Tegra194 CPU in dt-binding document > > Signed-off-by: Sowjanya Komatineni > --- > .../bindings/arm/nvidia,tegra194-ccplex.yaml | 53 > ++

Re: [PATCH AUTOSEL 5.10 050/217] rsi: Fix TX EAPOL packet handling against iwlwifi AP

2021-03-04 Thread Sasha Levin
On Tue, Mar 02, 2021 at 08:25:49PM +0100, Marek Vasut wrote: On 12/23/20 3:13 AM, Sasha Levin wrote: Hello Sasha, From: Marek Vasut [ Upstream commit 65277100caa2f2c62b6f3c4648b90d6f0435f3bc ] In case RSI9116 SDIO WiFi operates in STA mode against Intel 9260 in AP mode, the association fail

Re: [PATCH 2/5] CMDLINE: drivers: of: ifdef out cmdline section

2021-03-04 Thread Daniel Walker
On Thu, Mar 04, 2021 at 08:32:37AM -0600, Rob Herring wrote: > On Wed, Mar 3, 2021 at 10:48 PM Daniel Walker wrote: > > > > It looks like there's some seepage of cmdline stuff into > > the generic device tree code. This conflicts with the > > generic cmdline implementation so I remove it in the ca

Re: [PATCH] net: sched: avoid duplicates in classes dump

2021-03-04 Thread Cong Wang
On Thu, Mar 4, 2021 at 6:44 AM Maximilian Heyne wrote: > > This is a follow up of commit ea3274695353 ("net: sched: avoid > duplicates in qdisc dump") which has fixed the issue only for the qdisc > dump. > > The duplicate printing also occurs when dumping the classes via > tc class show dev eth0

Re: A note on the 5.12-rc1 tag

2021-03-04 Thread Josh Triplett
[CCing the git list] On Wed, Mar 03, 2021 at 12:53:18PM -0800, Linus Torvalds wrote: > Hey peeps - some of you may have already noticed that in my public git > tree, the "v5.12-rc1" tag has magically been renamed to > "v5.12-rc1-dontuse". It's still the same object, it still says > "v5.12-rc1" int

[PATCH mm] kfence, slab: fix cache_alloc_debugcheck_after() for bulk allocations

2021-03-04 Thread Marco Elver
cache_alloc_debugcheck_after() performs checks on an object, including adjusting the returned pointer. None of this should apply to KFENCE objects. While for non-bulk allocations, the checks are skipped when we allocate via KFENCE, for bulk allocations cache_alloc_debugcheck_after() is called via c

Re: [PATCH 2/3] clocksource/drivers/timer-ti-dm: Remove extra of_node_put()

2021-03-04 Thread Grygorii Strashko
On 04/03/2021 09:21, Tony Lindgren wrote: We have of_translate_address() already do of_node_put() as needed. I probably looked at __of_translate_address() earlier by accident that of_translate_address() uses. I do not see of_node_put() in of_translate_address() and __of_translate_address()

Re: [RFC PATCH 1/5] rpmb: add Replay Protected Memory Block (RPMB) subsystem

2021-03-04 Thread Arnd Bergmann
On Wed, Mar 3, 2021 at 2:54 PM Alex Bennée wrote: > > A number of storage technologies support a specialised hardware > partition designed to be resistant to replay attacks. The underlying > HW protocols differ but the operations are common. The RPMB partition > cannot be accessed via standard blo

Re: [PATCH 1/3] clocksource/drivers/timer-ti-dm: Fix posted mode status check order

2021-03-04 Thread Grygorii Strashko
On 04/03/2021 09:21, Tony Lindgren wrote: When the timer is configured in posted mode, we need to check the write- posted status register (TWPS) before writing to the register. We now check TWPS after the write starting with commit 52762fbd1c47 ("clocksource/drivers/timer-ti-dm: Add clockeven

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-04 Thread Thomas Gleixner
On Thu, Mar 04 2021 at 13:04, Eric W. Biederman wrote: > Thomas Gleixner writes: >> >> We could of course do the caching unconditionally for all tasks. > > Is there any advantage to only doing this for realtime tasks? It was mostly to avoid tons of cached entries hanging around all over the place

Re: [PATCH mm] kfence, slab: fix cache_alloc_debugcheck_after() for bulk allocations

2021-03-04 Thread Alexander Potapenko
On Thu, Mar 4, 2021 at 9:53 PM Marco Elver wrote: > > cache_alloc_debugcheck_after() performs checks on an object, including > adjusting the returned pointer. None of this should apply to KFENCE > objects. While for non-bulk allocations, the checks are skipped when we > allocate via KFENCE, for bu

Re: [PATCH AUTOSEL 5.10 050/217] rsi: Fix TX EAPOL packet handling against iwlwifi AP

2021-03-04 Thread Marek Vasut
On 3/4/21 9:47 PM, Sasha Levin wrote: On Tue, Mar 02, 2021 at 08:25:49PM +0100, Marek Vasut wrote: On 12/23/20 3:13 AM, Sasha Levin wrote: Hello Sasha, From: Marek Vasut [ Upstream commit 65277100caa2f2c62b6f3c4648b90d6f0435f3bc ] In case RSI9116 SDIO WiFi operates in STA mode against Inte

Re: [RFC PATCH 2/5] char: rpmb: provide a user space interface

2021-03-04 Thread Arnd Bergmann
On Wed, Mar 3, 2021 at 2:54 PM Alex Bennée wrote: > > + /* the rpmb is single open! */ > + if (test_and_set_bit(RPMB_DEV_OPEN, &rdev->status)) > + return -EBUSY; open counters on device nodes are fundamentally broken, because they do not stop you from using dup() or shar

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-04 Thread Thomas Gleixner
On Wed, Mar 03 2021 at 16:37, Oleg Nesterov wrote: > On 03/03, Sebastian Andrzej Siewior wrote: >> >> +static struct sigqueue *sigqueue_from_cache(struct task_struct *t) >> +{ >> +struct sigqueue *q = t->sigqueue_cache; >> + >> +if (q && cmpxchg(&t->sigqueue_cache, q, NULL) == q) >> +

[PATCH v2 4/4] arm64: dts: ti: k3-am642-sk: Add CPSW DT nodes

2021-03-04 Thread Grygorii Strashko
From: Vignesh Raghavendra AM642 SK board has 2 CPSW3g ports connected through TI DP83867 PHYs. Add DT entries for the same. Signed-off-by: Vignesh Raghavendra Signed-off-by: Grygorii Strashko Reviewed-by: Lokesh Vutla --- arch/arm64/boot/dts/ti/k3-am642-sk.dts | 73 ++

[PATCH v2 0/4] arm64: dts: ti: am642x: add CPSW3g DT nodes

2021-03-04 Thread Grygorii Strashko
Hi This series adds corresponding AM642x CPSW3g nodes required to enable networking on TI am642-evm/sk platforms and adds required pinmux/PHY nodes in corresponding board files. Kernel Boot Log: EVM: https://pastebin.ubuntu.com/p/6Qkbw35Jg3/ SK: https://pastebin.ubuntu.com/p/Pd3xxP9J9K/ Changes

[PATCH v2 3/4] arm64: dts: ti: k3-am642-evm: add CPSW3g DT nodes

2021-03-04 Thread Grygorii Strashko
From: Vignesh Raghavendra On am642-evm the CPSW3g ext. Port1 is directly connected to TI DP83867 PHY and Port2 is connected to TI DP83869 PHY which is shared with ICSS subsystem. The TI DP83869 PHY MII interface is configured using pinmux for CPSW3g, while MDIO bus is connected through GPIO contr

[PATCH v2 2/4] arm64: dts: ti: k3-am64-main: add main CPTS entry

2021-03-04 Thread Grygorii Strashko
Add DT node for the Main domain CPTS. Signed-off-by: Grygorii Strashko Signed-off-by: Vignesh Raghavendra Reviewed-by: Lokesh Vutla --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch

linux-next: Fixes tags need some work in the scsi-fixes tree

2021-03-04 Thread Stephen Rothwell
Hi all, In commit f4c5e949056d ("scsi: ibmvfc: Reinitialize sub-CRQs and perform channel enquiry after LPM") Fixes tag Fixes: 3034ebe26389 ("ibmvfc: add alloc/dealloc routines for SCSI Sub-CRQ Channels") has these problem(s): - Subject does not match target commit subject In commit

[PATCH v2 1/4] arm64: dts: ti: k3-am64-main: Add CPSW DT node

2021-03-04 Thread Grygorii Strashko
From: Vignesh Raghavendra Add CPSW3g DT node with two external ports, MDIO and CPTS support. For CPSW3g DMA channels the ASEL is set to 15 (AM642x per DMA channel coherency feature), so that CPSW DMA channel participates in Coherency and thus avoid need to cache maintenance for SKBs. This improve

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-04 Thread Thomas Gleixner
On Wed, Mar 03 2021 at 16:37, Oleg Nesterov wrote: > On 03/03, Sebastian Andrzej Siewior wrote: >> +static void __sigqueue_cache_or_free(struct sigqueue *q) >> +{ >> +struct user_struct *up; >> + >> +if (q->flags & SIGQUEUE_PREALLOC) >> +return; >> + >> +up = q->user; >> +

Re: [PATCH 5.10 000/657] 5.10.20-rc4 review

2021-03-04 Thread Linus Torvalds
On Thu, Mar 4, 2021 at 9:56 AM Naresh Kamboju wrote: > > On Thu, 4 Mar 2021 at 01:34, Guenter Roeck wrote: > > > > Upstream has: > > > > e71a8d5cf4b4 tty: fix up iterate_tty_read() EOVERFLOW handling > > ddc5fda74561 tty: fix up hung_up_tty_read() conversion > > I have applied these two patches a

Re: [GIT PULL] TPM DEVICE DRIVER changes for v5.12-rc2

2021-03-04 Thread pr-tracker-bot
The pull request you sent on Wed, 3 Mar 2021 17:52:40 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/ > tags/tpmdd-next-v5.12-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3cb60ee6323968b694208c4cbd56a7176396e931 Thank you! -- De

Re: [PATCH STABLE 5.10 5.11] swap: fix swapfile page to sector mapping

2021-03-04 Thread Anthony Iliopoulos
On Thu, Mar 04, 2021 at 05:58:49PM +0100, Greg Kroah-Hartman wrote: > On Thu, Mar 04, 2021 at 05:30:00PM +0100, Anthony Iliopoulos wrote: > > On Thu, Mar 04, 2021 at 04:16:26PM +0100, Greg Kroah-Hartman wrote: > > > On Thu, Mar 04, 2021 at 04:08:24PM +0100, Anthony Iliopoulos wrote: > > > > commit

Re: [PATCH 1/5] CMDLINE: add generic builtin command line

2021-03-04 Thread Daniel Walker
On Thu, Mar 04, 2021 at 08:00:49AM +0100, Christophe Leroy wrote: > > > Le 04/03/2021 à 05:47, Daniel Walker a écrit : > > This code allows architectures to use a generic builtin command line. > > The state of the builtin command line options across architecture is > > diverse. On x86 and mips th

linux-next: Signed-off-by missing for commits in the block tree

2021-03-04 Thread Stephen Rothwell
Hi all, Commits 1b40fa66ac2b ("io_uring: reliably cancel linked timeouts") 42699d33e969 ("io_uring: cancel-match based on flags") are missing a Signed-off-by from their committer. -- Cheers, Stephen Rothwell pgpEpNW5VNmJl.pgp Description: OpenPGP digital signature

fs/io_uring.c:6538:12: warning: stack frame size of 2208 bytes in function 'io_submit_sqes'

2021-03-04 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f69d02e37a85645aa90d18cacfff36dba370f797 commit: 21b55dbc0653018b8cd4513c37cbca303b0f0d50 io_uring: add IOURING_REGISTER_RESTRICTIONS opcode date: 5 months ago config: powerpc-randconfig-r023-20210304

Re: [PATCH] KVM: arm64: Disable LTO in hyp

2021-03-04 Thread Sami Tolvanen
On Thu, Mar 4, 2021 at 11:15 AM Marc Zyngier wrote: > > On Thu, 04 Mar 2021 18:45:44 +, > Sami Tolvanen wrote: > > > > allmodconfig + CONFIG_LTO_CLANG_THIN=y fails to build due to following > > linker errors: > > > > ld.lld: error: irqbypass.c:(function __guest_enter: .text+0x21CC): > > I a

Re: [PATCH 2/5] CMDLINE: drivers: of: ifdef out cmdline section

2021-03-04 Thread Daniel Walker
On Thu, Mar 04, 2021 at 08:09:52AM +0100, Christophe Leroy wrote: > > > Le 04/03/2021 à 05:47, Daniel Walker a écrit : > > It looks like there's some seepage of cmdline stuff into > > the generic device tree code. This conflicts with the > > generic cmdline implementation so I remove it in the ca

Re: [RFC PATCH 15/18] cgroup: Introduce ioasids controller

2021-03-04 Thread Jacob Pan
Hi Jason, On Thu, 4 Mar 2021 15:02:53 -0400, Jason Gunthorpe wrote: > On Thu, Mar 04, 2021 at 11:01:44AM -0800, Jacob Pan wrote: > > > > For something like qemu I'd expect to put the qemu process in a cgroup > > > with 1 PASID. Who cares what qemu uses the PASID for, or how it was > > > allocat

Re: [PATCH v4 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-03-04 Thread Al Cooper
On Wed, Mar 3, 2021 at 2:29 PM Greg Kroah-Hartman wrote: > > On Fri, Feb 19, 2021 at 03:37:08PM -0500, Al Cooper wrote: > > Add a UART driver for the new Broadcom 8250 based STB UART. The new > > UART is backward compatible with the standard 8250, but has some > > additional features. The new feat

Re: XDP socket rings, and LKMM litmus tests

2021-03-04 Thread Alan Stern
On Thu, Mar 04, 2021 at 11:05:15AM -0800, Paul E. McKenney wrote: > On Thu, Mar 04, 2021 at 10:35:24AM -0500, Alan Stern wrote: > > On Wed, Mar 03, 2021 at 09:04:07PM -0800, Paul E. McKenney wrote: > > > On Wed, Mar 03, 2021 at 10:21:01PM -0500, Alan Stern wrote: > > > > On Wed, Mar 03, 2021 at 02:

Re: [PATCH AUTOSEL 5.11 26/52] clk: qcom: gdsc: Implement NO_RET_PERIPH flag

2021-03-04 Thread Sasha Levin
On Tue, Mar 02, 2021 at 03:02:25PM -0800, Stephen Boyd wrote: Quoting Sasha Levin (2021-03-02 03:55:07) From: AngeloGioacchino Del Regno [ Upstream commit 785c02eb35009a4be6dbc68f4f7d916e90b7177d ] In some rare occasions, we want to only set the RETAIN_MEM bit, but not the RETAIN_PERIPH one:

Re: [RFC PATCH 04/18] virt/mshv: request version ioctl

2021-03-04 Thread Nuno Das Neves
On 2/8/2021 11:41 AM, Michael Kelley wrote: > From: Nuno Das Neves Sent: Friday, > November 20, 2020 4:30 PM >> >> Reserve ioctl number in userpsace-api/ioctl/ioctl-number.rst >> Introduce MSHV_REQUEST_VERSION ioctl. >> Introduce documentation for /dev/mshv in Documentation/virt/mshv >> >> Signed

[RFT PATCH v3 03/27] dt-bindings: arm: apple: Add bindings for Apple ARM platforms

2021-03-04 Thread Hector Martin
This introduces bindings for all three 2020 Apple M1 devices: * apple,j274 - Mac mini (M1, 2020) * apple,j293 - MacBook Pro (13-inch, M1, 2020) * apple,j313 - MacBook Air (M1, 2020) Signed-off-by: Hector Martin --- .../devicetree/bindings/arm/apple.yaml| 64 +++ MAINTAIN

[RFT PATCH v3 00/27] Apple M1 SoC platform bring-up

2021-03-04 Thread Hector Martin
This series brings up initial support for the Apple M1 SoC, used in the 2020 Mac Mini, MacBook Pro, and MacBook Air models. The following features are supported in this initial port: - UART (samsung-style) with earlycon support - Interrupts, including affinity and IPIs (Apple Interrupt Controller

[RFT PATCH v3 09/27] docs: driver-api: device-io: Document I/O access functions

2021-03-04 Thread Hector Martin
From: Arnd Bergmann This adds more detailed descriptions of the various read/write primitives available for use with I/O memory/ports. Signed-off-by: Arnd Bergmann Signed-off-by: Hector Martin --- Documentation/driver-api/device-io.rst | 138 + 1 file changed, 138 inse

[RFT PATCH v3 07/27] arm64: arch_timer: implement support for interrupt-names

2021-03-04 Thread Hector Martin
This allows the devicetree to correctly represent the available set of timers, which varies from device to device, without the need for fake dummy interrupts for unavailable slots. Also add the hyp-virt timer/PPI, which is not currently used, but worth representing. Signed-off-by: Hector Martin

[RFT PATCH v3 06/27] dt-bindings: timer: arm,arch_timer: Add interrupt-names support

2021-03-04 Thread Hector Martin
Not all platforms provide the same set of timers/interrupts, and Linux only needs one (plus kvm/guest ones); some platforms are working around this by using dummy fake interrupts. Implementing interrupt-names allows the devicetree to specify an arbitrary set of available interrupts, so the timer co

Re: [RFC PATCH 05/10] vfio: Create a vfio_device from vma lookup

2021-03-04 Thread Alex Williamson
On Thu, 25 Feb 2021 19:49:49 -0400 Jason Gunthorpe wrote: > On Thu, Feb 25, 2021 at 03:21:13PM -0700, Alex Williamson wrote: > > > This is where it gets tricky. The vm_pgoff we get from > > file_operations.mmap is already essentially describing an offset from > > the base of a specific resource

[RFT PATCH v3 01/27] arm64: Cope with CPUs stuck in VHE mode

2021-03-04 Thread Hector Martin
From: Marc Zyngier It seems that the CPU known as Apple M1 has the terrible habit of being stuck with HCR_EL2.E2H==1, in violation of the architecture. Try and work around this deplorable state of affairs by detecting the stuck bit early and short-circuit the nVHE dance. It is still unknown whet

[RFT PATCH v3 05/27] arm64: cputype: Add CPU implementor & types for the Apple M1 cores

2021-03-04 Thread Hector Martin
The implementor will be used to condition the FIQ support quirk. The specific CPU types are not used at the moment, but let's add them for documentation purposes. Signed-off-by: Hector Martin --- arch/arm64/include/asm/cputype.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm

[RFT PATCH v3 02/27] dt-bindings: vendor-prefixes: Add apple prefix

2021-03-04 Thread Hector Martin
This is different from the legacy AAPL prefix used on PPC, but consensus is that we prefer `apple` for these new platforms. Signed-off-by: Hector Martin Reviewed-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed

[RFT PATCH v3 04/27] dt-bindings: arm: cpus: Add apple,firestorm & icestorm compatibles

2021-03-04 Thread Hector Martin
These are the CPU cores in the "Apple Silicon" M1 SoC. Signed-off-by: Hector Martin --- Documentation/devicetree/bindings/arm/cpus.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml index 2

[RFT PATCH v3 08/27] asm-generic/io.h: Add a non-posted variant of ioremap()

2021-03-04 Thread Hector Martin
ARM64 currently defaults to posted MMIO (nGnRnE), but some devices require the use of non-posted MMIO (nGnRE). Introduce a new ioremap() variant to handle this case. ioremap_np() is aliased to ioremap() by default on arches that do not implement this variant. sparc64 is the only architecture that

[RFT PATCH v3 12/27] of/address: Add infrastructure to declare MMIO as non-posted

2021-03-04 Thread Hector Martin
This implements the 'nonposted-mmio' and 'posted-mmio' boolean properties. Placing these properties in a bus marks all child devices as requiring non-posted or posted MMIO mappings. If no such properties are found, the default is posted MMIO. of_mmio_is_nonposted() performs the tree walking to det

[RFT PATCH v3 10/27] docs: driver-api: device-io: Document ioremap() variants & access funcs

2021-03-04 Thread Hector Martin
This documents the newly introduced ioremap_np() along with all the other common ioremap() variants, and some higher-level abstractions available. Signed-off-by: Hector Martin --- Documentation/driver-api/device-io.rst | 218 + 1 file changed, 218 insertions(+) diff --gi

[RFT PATCH v3 14/27] arm64: move ICH_ sysreg bits from arm-gic-v3.h to sysreg.h

2021-03-04 Thread Hector Martin
These definitions are in arm-gic-v3.h for historical reasons which no longer apply. Move them to sysreg.h so the AIC driver can use them, as it needs to peek into vGIC registers to deal with the GIC maintentance interrupt. Signed-off-by: Hector Martin --- arch/arm64/include/asm/sysreg.h| 60

[RFT PATCH v3 16/27] irqchip/apple-aic: Add support for the Apple Interrupt Controller

2021-03-04 Thread Hector Martin
This is the root interrupt controller used on Apple ARM SoCs such as the M1. This irqchip driver performs multiple functions: * Handles both IRQs and FIQs * Drives the AIC peripheral itself (which handles IRQs) * Dispatches FIQs to downstream hard-wired clients (currently the ARM timer). * Im

[RFT PATCH v3 13/27] arm64: Add Apple vendor-specific system registers

2021-03-04 Thread Hector Martin
Apple ARM64 SoCs have a ton of vendor-specific registers we're going to have to deal with, and those don't really belong in sysreg.h with all the architectural registers. Make a new home for them, and add some registers which are useful for early bring-up. Signed-off-by: Hector Martin --- MAINTA

[RFT PATCH v3 15/27] dt-bindings: interrupt-controller: Add DT bindings for apple-aic

2021-03-04 Thread Hector Martin
AIC is the Apple Interrupt Controller found on Apple ARM SoCs, such as the M1. Signed-off-by: Hector Martin Reviewed-by: Linus Walleij --- .../interrupt-controller/apple,aic.yaml | 88 +++ MAINTAINERS | 1 + .../interrupt-controller/apple

[RFT PATCH v3 11/27] arm64: Implement ioremap_np() to map MMIO as nGnRnE

2021-03-04 Thread Hector Martin
This is used on Apple ARM platforms, which require most MMIO (except PCI devices) to be mapped as nGnRnE. Signed-off-by: Hector Martin --- arch/arm64/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index 5ea8656a2030.

[RFT PATCH v3 18/27] tty: serial: samsung_tty: Separate S3C64XX ops structure

2021-03-04 Thread Hector Martin
Instead of patching a single global ops structure depending on the port type, use a separate s3c64xx_serial_ops for the S3C64XX type. This allows us to mark the structures as const. Also split out s3c64xx_serial_shutdown into a separate function now that we have a separate ops structure; this avoi

[RFT PATCH v3 19/27] tty: serial: samsung_tty: Add ucon_mask parameter

2021-03-04 Thread Hector Martin
This simplifies the code by removing the only distinction between the S3C2410 and S3C2440 codepaths. Signed-off-by: Hector Martin --- drivers/tty/serial/samsung_tty.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/se

[RFT PATCH v3 17/27] arm64: Kconfig: Introduce CONFIG_ARCH_APPLE

2021-03-04 Thread Hector Martin
This adds a Kconfig option to toggle support for Apple ARM SoCs. At this time this targets the M1 and later "Apple Silicon" Mac SoCs. Signed-off-by: Hector Martin --- arch/arm64/Kconfig.platforms | 8 arch/arm64/configs/defconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/arc

[RFT PATCH v3 23/27] dt-bindings: serial: samsung: Add apple,s5l-uart compatible

2021-03-04 Thread Hector Martin
Apple mobile devices originally used Samsung SoCs (starting with the S5L8900), and their current in-house SoCs continue to use compatible UART peripherals. We'll call this UART variant apple,s5l-uart. Signed-off-by: Hector Martin Reviewed-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij ---

[RFT PATCH v3 20/27] tty: serial: samsung_tty: Add s3c24xx_port_type

2021-03-04 Thread Hector Martin
This decouples the TTY layer PORT_ types, which are exposed to userspace, from the driver-internal flag of what kind of port this is. This removes s3c24xx_serial_has_interrupt_mask, which was just checking for a specific type anyway. Signed-off-by: Hector Martin --- drivers/tty/serial/samsung_t

[RFT PATCH v3 21/27] tty: serial: samsung_tty: IRQ rework

2021-03-04 Thread Hector Martin
* Split out s3c24xx_serial_tx_chars from s3c24xx_serial_tx_irq, where only the latter acquires the port lock. This will be necessary on platforms which have edge-triggered IRQs, as we need to call s3c24xx_serial_tx_chars to kick off transmission from outside IRQ context, with the port lock

[RFT PATCH v3 27/27] arm64: apple: Add initial Apple Mac mini (M1, 2020) devicetree

2021-03-04 Thread Hector Martin
This currently supports: * SMP (via spin-tables) * AIC IRQs * Serial (with earlycon) * Framebuffer A number of properties are dynamic, and based on system firmware decisions that vary from version to version. These are expected to be filled in by the loader. Signed-off-by: Hector Martin --- MA

[RFT PATCH v3 24/27] tty: serial: samsung_tty: Add support for Apple UARTs

2021-03-04 Thread Hector Martin
Apple SoCs are a distant descendant of Samsung designs and use yet another variant of their UART style, with different interrupt handling. In particular, this variant has the following differences with existing ones: * It includes a built-in interrupt controller with different registers, using

[RFT PATCH v3 26/27] dt-bindings: display: Add apple,simple-framebuffer

2021-03-04 Thread Hector Martin
Apple SoCs run firmware that sets up a simplefb-compatible framebuffer for us. Add a compatible for it, and two missing supported formats. Signed-off-by: Hector Martin --- .../devicetree/bindings/display/simple-framebuffer.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Docume

[RFT PATCH v3 25/27] tty: serial: samsung_tty: Add earlycon support for Apple UARTs

2021-03-04 Thread Hector Martin
Earlycon support is identical to S3C2410, but Apple SoCs also need MMIO mapped as nGnRnE. This is handled generically for normal drivers including the normal UART path here, but earlycon uses fixmap and runs before that scaffolding is ready. Since this is the only case where we need this fix, it m

Re: [RFC PATCH 2/5] char: rpmb: provide a user space interface

2021-03-04 Thread Arnd Bergmann
On Thu, Mar 4, 2021 at 8:54 PM Winkler, Tomas wrote: > > Winkler, Tomas writes: > > >> "Winkler, Tomas" writes: > > >> > > >> >> The user space API is achieved via a number of synchronous IOCTLs. > > >> >> > > >> >> * RPMB_IOC_VER_CMD - simple versioning API > > >> >> * RPMB_IOC_CAP_CMD - qu

[RFT PATCH v3 22/27] tty: serial: samsung_tty: Use devm_ioremap_resource

2021-03-04 Thread Hector Martin
This picks up the non-posted I/O mode needed for Apple platforms to work properly. This removes the request/release functions, which are no longer necessary, since devm_ioremap_resource takes care of that already. Most other drivers already do it this way, anyway. Signed-off-by: Hector Martin --

Re: [PATCH v13 1/2] drm/tegra: dc: Support memory bandwidth management

2021-03-04 Thread Dmitry Osipenko
04.03.2021 02:08, Michał Mirosław пишет: > On Tue, Mar 02, 2021 at 03:44:44PM +0300, Dmitry Osipenko wrote: >> Display controller (DC) performs isochronous memory transfers, and thus, >> has a requirement for a minimum memory bandwidth that shall be fulfilled, >> otherwise framebuffer data can't be

[tip:sched/core] BUILD SUCCESS e6560d58334ca463061ade733674abc8dd0df9bd

2021-03-04 Thread kernel test robot
allyesconfig mips allmodconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210304 i386 randconfig-a003-20210304 i386 randconfig-a002-20210304 i386

Re: [PATCH] net: sctp: trivial: fix typo in comment

2021-03-04 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Wed, 3 Mar 2021 21:55:49 -0800 you wrote: > Fix typo of 'overflow' for comment in sctp_tsnmap_check(). > > Reported-by: Gustavo A. R. Silva > Signed-off-by: Drew Fustini > --- > net/sctp/tsnmap.c | 2 +- > 1 file changed

[PATCH] ASoC: codecs: lpass-va-macro: mute/unmute all active decimators

2021-03-04 Thread Jonathan Marek
An interface can have multiple decimators enabled, so loop over all active decimators. Otherwise only one channel will be unmuted, and other channels will be zero. This fixes recording from dual DMIC as a single two channel stream. Also remove the now unused "active_decimator" field. Fixes: 908e6

Re: [PATCH v1] powerpc: Include running function as first entry in save_stack_trace() and friends

2021-03-04 Thread Segher Boessenkool
Hi! On Thu, Mar 04, 2021 at 02:57:30PM +, Mark Rutland wrote: > It looks like GCC is happy to give us the function-entry-time FP if we use > __builtin_frame_address(1), >From the GCC manual: Calling this function with a nonzero argument can have unpredictable effects, including cras

Re: XDP socket rings, and LKMM litmus tests

2021-03-04 Thread Paul E. McKenney
On Thu, Mar 04, 2021 at 04:27:53PM -0500, Alan Stern wrote: > On Thu, Mar 04, 2021 at 11:05:15AM -0800, Paul E. McKenney wrote: > > On Thu, Mar 04, 2021 at 10:35:24AM -0500, Alan Stern wrote: > > > On Wed, Mar 03, 2021 at 09:04:07PM -0800, Paul E. McKenney wrote: > > > > On Wed, Mar 03, 2021 at 10:

Re: [PATCH 2/4] kbuild: collect minimum tool versions into scripts/tool-version.sh

2021-03-04 Thread Nicolas Pitre
On Thu, 4 Mar 2021, Masahiro Yamada wrote: > The kernel build uses various tools, many of which are provided by the > same software suite, for example, LLVM and Binutils. > > When we raise the minimal version of Clang/LLVM, we need to update > clang_min_version in scripts/cc-version.sh and also l

[PATCH v2 1/3] clk: add devm_clk_prepare_enable() helper

2021-03-04 Thread Rasmus Villemoes
Add a managed wrapper for clk_prepare_enable(). Signed-off-by: Rasmus Villemoes --- .../driver-api/driver-model/devres.rst| 1 + drivers/clk/clk-devres.c | 29 +++ include/linux/clk.h | 13 + 3 files changed, 43 inse

[PATCH v2 2/3] dt-bindings: watchdog: add optional "delay" clock to gpio-wdt binding

2021-03-04 Thread Rasmus Villemoes
[DO NOT MERGE - see cover letter] We have a board where the reset output from the ADM706S is split in two: directly routed to an interrupt, and also to start a ripple counter, which 64 ms later than pulls the SOC's reset pin. That ripple counter only works if the RTC's 32kHz output is enabled, and

[PATCH v2 3/3] watchdog: gpio_wdt: implement support for optional "delay" clock

2021-03-04 Thread Rasmus Villemoes
[DO NOT MERGE - see cover letter] We have a board where the reset output from the ADM706S is split in two: directly routed to an interrupt, and also to start a ripple counter, which 64 ms later than pulls the SOC's reset pin. That ripple counter only works if the RTC's 32kHz output is enabled, and

[PATCH v2 0/3] add "delay" clock support to gpio_wdt

2021-03-04 Thread Rasmus Villemoes
As Arnd and Guenther suggested, this adds support to the gpio_wdt driver for being a consumer of the clock driving the ripple counter. However, I don't think it should be merged as-is, see below. The first patch makes sense on its own, quick grepping suggests plenty of places that could benefit fr

[PATCH v2] bus: mhi: core: Add missing checks for MMIO register entries

2021-03-04 Thread Bhaumik Bhatt
As per documentation, fields marked as (required) in an MHI controller structure need to be populated by the controller driver before calling mhi_register_controller(). Ensure all required pointers and non-zero fields are present in the controller before proceeding with registration. Signed-off-by

Re: [PATCH] KVM: arm64: Disable LTO in hyp

2021-03-04 Thread Marc Zyngier
On Thu, 04 Mar 2021 21:25:41 +, Sami Tolvanen wrote: > > On Thu, Mar 4, 2021 at 11:15 AM Marc Zyngier wrote: > > > > On Thu, 04 Mar 2021 18:45:44 +, > > Sami Tolvanen wrote: > > > > > > allmodconfig + CONFIG_LTO_CLANG_THIN=y fails to build due to following > > > linker errors: > > > > >

Re: [PATCH] nvme: Switch to using the new API kobj_to_dev()

2021-03-04 Thread Chaitanya Kulkarni
On 3/4/21 01:58, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/nvme/host/core.c:3714:60-61: WARNING opportunity for > kobj_to_dev(). > > ./drivers/nvme/host/core.c:3475:60-61: WARNING opportunity for > kobj_to_dev(). > > Reported-by: Abaci Robot > Signed-off-by: Jiape

Re: [PATCH AUTOSEL 5.11 55/67] btrfs: only let one thread pre-flush delayed refs in commit

2021-03-04 Thread Sasha Levin
On Wed, Feb 24, 2021 at 07:08:20PM +0100, David Sterba wrote: On Wed, Feb 24, 2021 at 07:50:13AM -0500, Sasha Levin wrote: From: Josef Bacik [ Upstream commit e19eb11f4f3d3b0463cd897016064a79cb6d8c6d ] I've been running a stress test that runs 20 workers in their own subvolume, which are runn

Re: [PATCH AUTOSEL 5.11 54/67] btrfs: make btrfs_start_delalloc_root's nr argument a long

2021-03-04 Thread Sasha Levin
On Wed, Feb 24, 2021 at 07:09:42PM +0100, David Sterba wrote: On Wed, Feb 24, 2021 at 07:50:12AM -0500, Sasha Levin wrote: From: Nikolay Borisov [ Upstream commit 9db4dc241e87fccd8301357d5ef908f40b50f2e3 ] It's currently u64 which gets instantly translated either to LONG_MAX (if U64_MAX is pa

Re: [PATCH] hwrng: bcm2835: set quality to 1000

2021-03-04 Thread Florian Fainelli
On 3/4/21 7:11 AM, Nicolas Saenz Julienne wrote: > On Wed, 2021-03-03 at 10:29 +0100, Álvaro Fernández Rojas wrote: >> Hi Herbert, >> >>> El 3 mar 2021, a las 10:20, Herbert Xu >>> escribió: >>> >>> On Sat, Feb 20, 2021 at 08:12:45PM +0100, Álvaro Fernández Rojas wrote: I ran rngtest an

Re: [PATCH 2/5] CMDLINE: drivers: of: ifdef out cmdline section

2021-03-04 Thread Rob Herring
On Thu, Mar 4, 2021 at 3:24 PM Daniel Walker wrote: > > On Thu, Mar 04, 2021 at 08:09:52AM +0100, Christophe Leroy wrote: > > > > > > Le 04/03/2021 à 05:47, Daniel Walker a écrit : > > > It looks like there's some seepage of cmdline stuff into > > > the generic device tree code. This conflicts wit

Re: linux-next: Fixes tags need some work in the scsi-fixes tree

2021-03-04 Thread Martin K. Petersen
Stephen, > - Subject does not match target commit subject Fun. I actually have a check for this in my validation script but for some reason lost in the mists of time it was commented out. Reinstated. I fixed the tags up. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v9 6/9] crypto: Add NIST P384 curve parameters

2021-03-04 Thread Herbert Xu
On Thu, Mar 04, 2021 at 08:59:36AM -0500, Stefan Berger wrote: > > Are you going to take the other patches as well, except for maybe 9/9, which > depends on Nayan's patch series. Mimi suggested to me to ask you whether you > could create a topic branch where we can apply other patches to, such as >

Re: [PATCH AUTOSEL 5.11 16/67] net: sfp: add mode quirk for GPON module Ubiquiti U-Fiber Instant

2021-03-04 Thread Sasha Levin
On Thu, Feb 25, 2021 at 08:03:06PM +0100, Pali Rohár wrote: On Wednesday 24 February 2021 07:49:34 Sasha Levin wrote: From: Pali Rohár [ Upstream commit f0b4f847673299577c29b71d3f3acd3c313d81b7 ] Hello! This commit requires also commit~1 from that patch series: https://git.kernel.org/pub/scm

Re: [PATCH] KVM: arm64: Disable LTO in hyp

2021-03-04 Thread Sami Tolvanen
On Thu, Mar 4, 2021 at 2:17 PM Marc Zyngier wrote: > > On Thu, 04 Mar 2021 21:25:41 +, > Sami Tolvanen wrote: > > > > On Thu, Mar 4, 2021 at 11:15 AM Marc Zyngier wrote: > > > > > > On Thu, 04 Mar 2021 18:45:44 +, > > > Sami Tolvanen wrote: > > > > > > > > allmodconfig + CONFIG_LTO_CLAN

[PATCH net-next 0/6] net: qualcomm: rmnet: stop using C bit-fields

2021-03-04 Thread Alex Elder
This series converts data structures defined in so they use integral field values with bitfield masks rather than rely on C bit-fields. I first proposed doing something like this long ago when my confusion about this code (and the memory layout it was supposed to represent) led me to believe it w

[PATCH net-next 1/6] net: qualcomm: rmnet: mark trailer field endianness

2021-03-04 Thread Alex Elder
The fields in the checksum trailer structure used for QMAP protocol RX packets are all big-endian format, so define them that way. It turns out these fields are never actually used by the RMNet code. The start offset is always assumed to be zero, and the length is taken from the other packet heade

[PATCH net-next 2/6] net: qualcomm: rmnet: simplify some byte order logic

2021-03-04 Thread Alex Elder
In rmnet_map_ipv4_ul_csum_header() and rmnet_map_ipv6_ul_csum_header() the offset within a packet at which checksumming should commence is calculated. This calculation involves byte swapping and a forced type conversion that makes it hard to understand. Simplify this by computing the offset in ho

[PATCH net-next 4/6] net: qualcomm: rmnet: use field masks instead of C bit-fields

2021-03-04 Thread Alex Elder
The actual layout of bits defined in C bit-fields (e.g. int foo : 3) is implementation-defined. Structures defined in address this by specifying all bit-fields twice, to cover two possible layouts. I think this pattern is repetitive and noisy, and I find the whole notion of compiler "bitfield en

[PATCH net-next 6/6] net: qualcomm: rmnet: don't use C bit-fields in rmnet checksum header

2021-03-04 Thread Alex Elder
Replace the use of C bit-fields in the rmnet_map_ul_csum_header structure with a single two-byte (big endian) structure member, and use field masks to encode or get values within it. Previously rmnet_map_ipv4_ul_csum_header() would update values in the host byte-order fields, and then forcibly fix

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