[PATCH v2 3/3] scsi: megaraid_sas: simplify compat_ioctl handling

2020-09-18 Thread Arnd Bergmann
There have been several attempts to fix serious problems in the compat handling in megasas_mgmt_compat_ioctl_fw(), and it also uses the compat_alloc_user_space() function. Folding the compat handling into the regular ioctl function with in_compat_syscall() simplifies it a lot and avoids some of th

[PATCH v2 2/3] scsi: megaraid_sas: check user-provided offsets

2020-09-18 Thread Arnd Bergmann
It sounds unwise to let user space pass an unchecked 32-bit offset into a kernel structure in an ioctl. This is an unsigned variable, so checking the upper bound for the size of the structure it points into is sufficient to avoid data corruption, but as the pointer might also be unaligned, it has t

Re: [PATCH printk 2/3] printk: move dictionary keys to dev_printk_info

2020-09-18 Thread Petr Mladek
On Fri 2020-09-18 08:16:37, Rasmus Villemoes wrote: > On 17/09/2020 15.16, John Ogness wrote: > > > if (dev->class) > > subsys = dev->class->name; > > else if (dev->bus) > > subsys = dev->bus->name; > > else > > - return 0; > > + return; > >

[PATCH bpf-next v3 0/5] bpf: add MPTCP subflow support

2020-09-18 Thread Nicolas Rybowski
Previously it was not possible to make a distinction between plain TCP sockets and MPTCP subflow sockets on the BPF_PROG_TYPE_SOCK_OPS hook. This patch series now enables a fine control of subflow sockets. In its current state, it allows to put different sockopt on each subflow from a same MPTCP c

[PATCH bpf-next v3 1/5] bpf: expose is_mptcp flag to bpf_tcp_sock

2020-09-18 Thread Nicolas Rybowski
is_mptcp is a field from struct tcp_sock used to indicate that the current tcp_sock is part of the MPTCP protocol. In this protocol, a first socket (mptcp_sock) is created with sk_protocol set to IPPROTO_MPTCP (=262) for control purpose but it isn't directly on the wire. This is the role of the su

[PATCH bpf-next v3 5/5] bpf: selftests: add bpf_mptcp_sock() verifier tests

2020-09-18 Thread Nicolas Rybowski
This patch adds verifier side tests for the new bpf_mptcp_sock() helper. Here are the new tests : - NULL bpf_sock is correctly handled - We cannot access a field from bpf_mptcp_sock if the latter is NULL - We can access a field from bpf_mptcp_sock if the latter is not NULL - We cannot modify a fie

[PATCH bpf-next v3 3/5] bpf: add 'bpf_mptcp_sock' structure and helper

2020-09-18 Thread Nicolas Rybowski
In order to precisely identify the parent MPTCP connection of a subflow, it is required to access the mptcp_sock's token which uniquely identify a MPTCP connection. This patch adds a new structure 'bpf_mptcp_sock' exposing the 'token' field of the 'mptcp_sock' extracted from a subflow's 'tcp_sock'

[PATCH bpf-next v3 4/5] bpf: selftests: add MPTCP test base

2020-09-18 Thread Nicolas Rybowski
This patch adds a base for MPTCP specific tests. It is currently limited to the is_mptcp field in case of plain TCP connection because for the moment there is no easy way to get the subflow sk from a msk in userspace. This implies that we cannot lookup the sk_storage attached to the subflow sk in

[PATCH bpf-next v3 2/5] mptcp: attach subflow socket to parent cgroup

2020-09-18 Thread Nicolas Rybowski
It has been observed that the kernel sockets created for the subflows (except the first one) are not in the same cgroup as their parents. That's because the additional subflows are created by kernel workers. This is a problem with eBPF programs attached to the parent's cgroup won't be executed for

Re: [PATCH 2/2] arm64/mm: Enable color zero pages

2020-09-18 Thread kernel test robot
Hi Gavin, Thank you for the patch! Yet something to improve: [auto build test ERROR on arm64/for-next/core] [also build test ERROR on soc/for-next arm/for-next kvmarm/next v5.9-rc5 next-20200917] [cannot apply to xlnx/master] [If your patch is applied to the wrong git tree, kindly drop us a note

[PATCH v2 1/3] scsi: aacraid: improve compat_ioctl handlers

2020-09-18 Thread Arnd Bergmann
The use of compat_alloc_user_space() can be easily replaced by handling compat arguments in the regular handler, and this will make it work for big-endian kernels as well, which at the moment get an invalid indirect pointer argument. Calling aac_ioctl() instead of aac_compat_do_ioctl() means the c

[PATCH] drm/panel: otm8009a: allow using non-continuous dsi clock

2020-09-18 Thread Yannick Fertre
From: Antonio Borneo The panel is able to work when dsi clock is non-continuous, thus the system power consumption can be reduced using such feature. Add MIPI_DSI_CLOCK_NON_CONTINUOUS to panel's mode_flags. Signed-off-by: Antonio Borneo --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 2

Re: [PATCH] regmap: debugfs: Add back in erroneously removed initialisation of ret

2020-09-18 Thread Mark Brown
On Fri, 18 Sep 2020 12:20:02 +0100, Charles Keepax wrote: > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: debugfs: Add back in erroneously removed initialisation of ret commit: d36cb0205f034e943aa29e35b59c6a441f0056b5 Al

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 2:36 PM Gal Pressman wrote: > > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: > >> infrastructure for communication between multiple accelerators. Same > >> as Nvidia uses NVlink, we use RDMA that we have inside

[PATCH v11 0/3] drm: Add support for Cadence MHDP8546 DPI/DP bridge and J721E wrapper.

2020-09-18 Thread Swapnil Jakhade
This patch series adds new DRM bridge driver for Cadence MHDP8546 DPI/DP bridge. The Cadence Display Port IP is also referred as MHDP (Mobile High Definition Link, High-Definition Multimedia Interface, Display Port). Cadence Display Port complies with VESA DisplayPort (DP) and embedded Display Port

[PATCH v11 1/3] dt-bindings: drm/bridge: Document Cadence MHDP8546 bridge bindings

2020-09-18 Thread Swapnil Jakhade
From: Yuti Amonkar Document the bindings used for the Cadence MHDP8546 DPI/DP bridge in yaml format. Signed-off-by: Yuti Amonkar Signed-off-by: Swapnil Jakhade Reviewed-by: Rob Herring Reviewed-by: Laurent Pinchart --- .../display/bridge/cdns,mhdp8546.yaml | 169 ++

[PATCH v11 2/3] drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge

2020-09-18 Thread Swapnil Jakhade
Add a new DRM bridge driver for Cadence MHDP8546 DPTX IP used in TI J721E SoC. MHDP DPTX IP is the component that complies with VESA DisplayPort (DP) and embedded Display Port (eDP) standards. It integrates uCPU running the embedded Firmware (FW) interfaced over APB interface. Basically, it takes

[PATCH v11 3/3] drm: bridge: cdns-mhdp8546: Add TI J721E wrapper

2020-09-18 Thread Swapnil Jakhade
Add J721E wrapper for mhdp, which sets up the clock and data muxes. Signed-off-by: Jyri Sarha Signed-off-by: Yuti Amonkar Signed-off-by: Swapnil Jakhade Reviewed-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/cadence/Kconfig| 13 drivers/gpu/drm/brid

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 3:03 PM Leon Romanovsky wrote: > > On Fri, Sep 18, 2020 at 02:56:09PM +0300, Oded Gabbay wrote: > > On Fri, Sep 18, 2020 at 2:52 PM Leon Romanovsky wrote: > > > > > > On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > > > > On 17/09/2020 20:18, Jason Gunthorpe

[PATCH] drm/stm: dsi: Avoid printing errors for -EPROBE_DEFER

2020-09-18 Thread Yannick Fertre
Don't print error when probe deferred error is returned. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c index 2e1f2664495d

[PATCH 1/2] ethtool: improve compat ioctl handling

2020-09-18 Thread Arnd Bergmann
The ethtool compat ioctl handling is hidden away in net/socket.c, which introduces a couple of minor oddities: - The implementation may end up diverging, as seen in the RXNFC extension in commit 84a1d9c48200 ("net: ethtool: extend RXNFC API to support RSS spreading of filter matches") that doe

[PATCH 2/2] dev_ioctl: split out SIOC?IFMAP ioctls

2020-09-18 Thread Arnd Bergmann
The ifreq ioctls need a special compat handler at the moment because of the size difference between the struct on native and compat architectures, but this difference exists only for one pair of ioctls, SIOCGIFMAP and SIOCSIFMAP. Splitting these two out of dev_ioctl() into their own higher level i

[PATCH] KVM: use struct_size() and flex_array_size() helpers in kvm_io_bus_unregister_dev()

2020-09-18 Thread Rustam Kovhaev
Make use of the struct_size() helper to avoid any potential type mistakes and protect against potential integer overflows Make use of the flex_array_size() helper to calculate the size of a flexible array member within an enclosing structure Cc: sta...@vger.kernel.org Suggested-by: Gustavo A. R. S

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Leon Romanovsky
On Fri, Sep 18, 2020 at 02:56:09PM +0300, Oded Gabbay wrote: > On Fri, Sep 18, 2020 at 2:52 PM Leon Romanovsky wrote: > > > > On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > > > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabba

Re: [RFC 4/5] mm, page_alloc: cache pageset high and batch in struct zone

2020-09-18 Thread Vlastimil Babka
On 9/10/20 1:30 PM, Oscar Salvador wrote: > On Mon, Sep 07, 2020 at 06:36:27PM +0200, Vlastimil Babka wrote: >*/ >> -static void setup_pageset(struct per_cpu_pageset *p); >> +static void pageset_init(struct per_cpu_pageset *p); > > this belongs to the respective patches Right, thanks. >> -st

Re: [PATCH v4 0/3] soundwire: qcom: fix IP version v1.5.1 support

2020-09-18 Thread Vinod Koul
On 17-09-20, 13:01, Srinivas Kandagatla wrote: > While testing Qualcomm soundwire controller version 1.5.1, found two issue, > Firstly the frame shape information configured vs the bus parameters > are out of sync. secondly some ports on this ip version require > block packing mode support. > > Wi

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 3:00 PM Jason Gunthorpe wrote: > > > On Tue, Sep 15, 2020 at 08:10:08PM +0300, Oded Gabbay wrote: > > Hello, > > > > This is the second version of the patch-set to upstream the GAUDI NIC code > > into the habanalabs driver. > > > > The only modification from v2 is in the et

Re: [PATCH v3 09/11] kvm: arm64: Mark hyp stack pages reserved

2020-09-18 Thread Will Deacon
On Wed, Sep 16, 2020 at 06:34:37PM +0100, David Brazdil wrote: > In preparation for unmapping hyp pages from host stage-2, allocate/free hyp > stack using new helpers which automatically mark the pages reserved. Given that this series doesn't get us that the point of having a stage-2 for the host,

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Jason Gunthorpe
On Tue, Sep 15, 2020 at 08:10:08PM +0300, Oded Gabbay wrote: > Hello, > > This is the second version of the patch-set to upstream the GAUDI NIC code > into the habanalabs driver. > > The only modification from v2 is in the ethtool patch (patch 12). Details > are in that patch's commit message.

Re: [PATCH] soundwire: Add generic bandwidth allocation algorithm

2020-09-18 Thread Vinod Koul
On 08-09-20, 21:15, Bard Liao wrote: > This algorithm computes bus parameters like clock frequency, frame > shape and port transport parameters based on active stream(s) running > on the bus. > > Developers can also implement their own .compute_params() callback for > specific resource management

Re: [PATCH v3 07/11] kvm: arm64: Duplicate arm64_ssbd_callback_required for nVHE hyp

2020-09-18 Thread Will Deacon
On Wed, Sep 16, 2020 at 06:34:35PM +0100, David Brazdil wrote: > Hyp keeps track of which cores require SSBD callback by accessing a > kernel-proper global variable. Create an nVHE symbol of the same name > and copy the value from kernel proper to nVHE at KVM init time. > > Done in preparation for

Re: [PATCH v2 00/10] KFENCE: A low-overhead sampling-based memory safety error detector

2020-09-18 Thread Marco Elver
On Fri, 18 Sep 2020 at 13:17, Qian Cai wrote: > > On Tue, 2020-09-15 at 15:20 +0200, Marco Elver wrote: > > This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a > > low-overhead sampling-based memory safety error detector of heap > > use-after-free, invalid-free, and out-of-bou

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 2:56 PM Jason Gunthorpe wrote: > > On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: > > >> infrastructure for communication between multiple accel

Re: [GIT PULL] mtd: Fixes for v5.9-rc6

2020-09-18 Thread Miquel Raynal
Hi Linus, Vignesh Raghavendra wrote on Fri, 18 Sep 2020 16:13:47 +0530: > Hello Linus, > > Please pull the MTD changes for v5.9-rc6. > > I am sending this on behalf of MTD maintainers group this time around. > > Miquel/Richard, > > Could you please ACK the PR? I confirm Vignesh is allowed

Re: [PATCH v3 08/11] kvm: arm64: Create separate instances of kvm_host_data for VHE/nVHE

2020-09-18 Thread Will Deacon
On Wed, Sep 16, 2020 at 06:34:36PM +0100, David Brazdil wrote: > Host CPU context is stored in a global per-cpu variable `kvm_host_data`. > In preparation for introducing independent per-CPU region for nVHE hyp, > create two separate instances of `kvm_host_data`, one for VHE and one > for nVHE. >

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 2:52 PM Leon Romanovsky wrote: > > On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: > > >> infrastructure for communication between multiple accel

Re: [PATCH v2] arm64: Enable PCI write-combine resources under sysfs

2020-09-18 Thread Ard Biesheuvel
On Fri, 18 Sep 2020 at 14:08, Catalin Marinas wrote: > > On Fri, Sep 18, 2020 at 03:33:12AM +, Clint Sbisa wrote: > > This change exposes write-combine mappings under sysfs for > > prefetchable PCI resources on arm64. > > > > Originally, the usage of "write combine" here was driven by the x86

Re: [PATCH v2] arm64: dts: qcom: sc7180: Add lpass cpu node for I2S driver

2020-09-18 Thread Srinivasa Rao Mandadapu
Thanks Mr. Doug for your time to review this patch!! On 9/14/2020 11:11 PM, Doug Anderson wrote: Hi, On Tue, Sep 1, 2020 at 9:04 PM Srinivasa Rao Mandadapu wrote: From: Ajit Pandey Add the I2S controller node to sc7180 dtsi. Add pinmux for primary and secondary I2S. Signed-off-by: Ajit Pan

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Jason Gunthorpe
On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: > >> infrastructure for communication between multiple accelerators. Same > >> as Nvidia uses NVlink, we use RDMA that we have

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Leon Romanovsky
On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: > >> infrastructure for communication between multiple accelerators. Same > >> as Nvidia uses NVlink, we use RDMA that we have

Re: [PATCH leds v2 15/50] leds: lm3697: cosmetic change: use helper variable, reverse christmas tree

2020-09-18 Thread Dan Murphy
Marek On 9/17/20 5:33 PM, Marek Behún wrote: Use helper variable dev instead of always writing &client->dev, or &priv->client->dev, or even &led->priv->client->dev. With one more line moved reverse christmas tree is also achieved. Reviewed-by: Dan Murphy

Re: [PATCH v2 0/3] Fix pci_iounmap() on !CONFIG_GENERIC_IOMAP

2020-09-18 Thread Lorenzo Pieralisi
On Wed, Sep 16, 2020 at 12:06:55PM +0100, Lorenzo Pieralisi wrote: > v2 of a previous posting. > > v1->v2: > - Added additional patch to remove sparc32 useless __KERNEL__ > guard > > v1: > https://lore.kernel.org/lkml/20200915093203.16934-1-lorenzo.pieral...@arm.com > > Original c

Re: [PATCH 1/3] docs: kasan.rst: add two missing blank lines

2020-09-18 Thread Andrey Konovalov
On Thu, Sep 17, 2020 at 10:04 AM Mauro Carvalho Chehab wrote: > > literal blocks should start and end with a blank line, > as otherwise the parser complains and may do the wrong > thing, as warned by Sphinx: > > Documentation/dev-tools/kasan.rst:298: WARNING: Literal block ends > without

Re: [PATCH linux-next] docs:dev-tools: Fix typo in Documentation/dev-tools

2020-09-18 Thread Andrey Konovalov
On Thu, Sep 17, 2020 at 3:44 PM Masanari Iida wrote: > > This patch fixes some spelling typos found in > Documentation/dev-tools. > > Signed-off-by: Masanari Iida > --- > Documentation/dev-tools/kasan.rst| 4 ++-- > Documentation/dev-tools/kcov.rst | 2 +- > Documentation/dev-tools/kmeml

Re: [PATCH 0/3] ARM: mstar: wire up interrupt controllers

2020-09-18 Thread Daniel Palmer
Hi Arnd, On Fri, 18 Sep 2020 at 20:34, Arnd Bergmann wrote: > Acked-by: Arnd Bergmann Thanks, > Please send these to s...@kernel.org for inclusion. Ok will do. > On a different note: I realized too late that the dts files should have been > named more consistently when we originally merged t

[PATCH v5 2/2] ASoC: tlv320adcx140: Add support for configuring GPIO pin

2020-09-18 Thread Camel Guo
From: Camel Guo Add support to configure the GPIO pin to the specific configuration. The GPIO pin can be configured as GPO, IRQ, SDOUT2, PDMCLK, MICBASE_EN, GPI, MCLK, SDIN, PDMDIN1, PDMDIN2, PDMDIN3 or PDMDIN4 and the output drive can be configured with various configuration. Signed-off-by: Cam

[PATCH v5 1/2] dt-bindings: tlv320adcx140: Add GPIO config and drive config

2020-09-18 Thread Camel Guo
From: Camel Guo Add properties for configuring the General Purpose Input Output (GPIO). There are 2 settings for GPIO, configuration and the output drive type. Signed-off-by: Camel Guo Acked-by: Dan Murphy --- v4: - Rebase v3: - Fix typo - Add Acked-By from Dan .../bindings/sound/t

Re: [PATCH 1/2] iio: event: use short-hand variable in iio_device_{un}register_eventset functions

2020-09-18 Thread Alexandru Ardelean
On Fri, Sep 18, 2020 at 1:34 PM Alexandru Ardelean wrote: > > With the recent 'iio_dev_opaque' variable name, these two functions are > looking a bit ugly. > > This change uses an 'ev_int' variable for the > iio_device_{un}register_eventset functions to make the code a little easier > to read. >

Re: [PATCH printk 2/3] printk: move dictionary keys to dev_printk_info

2020-09-18 Thread Petr Mladek
On Thu 2020-09-17 15:22:43, John Ogness wrote: > Dictionaries are only used for SUBSYSTEM and DEVICE properties. The > current implementation stores the property names each time they are > used. This requires more space than otherwise necessary. Also, > because the dictionary entries are currently

[PATCH net-next] net: brcmfmac: check return value of driver_for_each_device()

2020-09-18 Thread Zhang Changzhong
Fixes the following W=1 kernel build warning(s): drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c:1576:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 1576 | int ret; | ^~~ driver_for_each_device() has been declared with __must_check, so the return va

[PATCH v2 1/2] locktorture: doesn't check nreaders_stress when no readlock support

2020-09-18 Thread Hou Tao
When do locktorture for exclusive lock which doesn't have readlock support, the following module parameters will be considered as valid: torture_type=mutex_lock nwriters_stress=0 nreaders_stress=1 But locktorture will do nothing useful, so instead of permitting these useless parameters, let's re

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Gal Pressman
On 17/09/2020 20:18, Jason Gunthorpe wrote: > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: >> infrastructure for communication between multiple accelerators. Same >> as Nvidia uses NVlink, we use RDMA that we have inside our ASIC. >> The RDMA implementation we did does NOT support s

[PATCH 09/13] ARM: dts: imx7-mba7: add audio support

2020-09-18 Thread Matthias Schiffer
The MBa7x is equipped with a TI TLV320AIC3204 audio codec. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 38 +++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dts

Re: [PATCH 0/3] ARM: mstar: wire up interrupt controllers

2020-09-18 Thread Arnd Bergmann
On Fri, Sep 18, 2020 at 12:49 PM Daniel Palmer wrote: > > Mark-PK Tsai's driver for the MStar interrupt > controller should be going into 5.10[0]. > > This small series selects the driver when building > support for MStar/SigmaStar Arm v7 SoCs, adds the > instances of it to the base dtsi and wires

[PATCH 07/13] ARM: dts: imx7-mba7: configure watchdog

2020-09-18 Thread Matthias Schiffer
The external watchdog reset is necessary, as the internal reset is unreliable on i.MX7. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dtsi inde

[PATCH 11/13] ARM: dts: imx7-mba7: enable RS485 on UART7

2020-09-18 Thread Matthias Schiffer
The UART7 interface is connected to a full-duplex RS485 transceiver. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dtsi index f1e50bcd21a5..cd29844bc76b 1

Re: [PATCH v4] ASoC: tlv320adcx140: Add support for configuring GPIO pin

2020-09-18 Thread Mark Brown
On Fri, Sep 18, 2020 at 01:27:50PM +0200, Camel Guo wrote: > On 9/18/20 1:18 PM, Mark Brown wrote: > > This needs a DT bindings update for the new property (I thought there > > was one in prior versions)? > That patch for DT bindings has no change at all. Now I resent it anyway. Any patch series

[PATCH 02/13] ARM: dts: imx7-tqma7: add SPI-NOR flash

2020-09-18 Thread Matthias Schiffer
The SPI-NOR flash on the SoM was missing from the device tree. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-tqma7.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/imx7-tqma7.dtsi b/arch/arm/boot/dts/imx7-tqma7.dtsi index 8

[PATCH 12/13] ARM: dts: imx7-mba7: specify USB over-current polarity

2020-09-18 Thread Matthias Schiffer
Add over-current-active-low to usbotg1. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dtsi index cd29844bc76b..52b8f66f9982 100644 --- a/arch/arm/boot/dts/im

[PATCH 10/13] ARM: dts: imx7-mba7: add default SPI-NOR flash partition layout

2020-09-18 Thread Matthias Schiffer
Add the partition layout also used by the bootloader. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dtsi index 9cfaf0a91100

[PATCH 05/13] ARM: dts: imx7-mba7: remove unsupported PHY LED setup

2020-09-18 Thread Matthias Schiffer
These properties were never supported by the DP83867, and a patch implementing them was rejected in favor of a different solution. Remove them. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 4 arch/arm/boot/dts/imx7d-mba7.dts | 4 2 files changed, 8 deletions(

[PATCH 13/13] ARM: dts: imx7-mba7: set dr_mode to otg on usbotg1

2020-09-18 Thread Matthias Schiffer
USBOTG1 has a Micro-USB port that can be used in host mode (using an OTG cable) or device mode. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7

[PATCH 06/13] ARM: dts: imx7-mba7: disable ethernet PHY clock outputs

2020-09-18 Thread Matthias Schiffer
The clock outputs are not connected. Disable them to improve EMI behaviour. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 1 + arch/arm/boot/dts/imx7d-mba7.dts | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx

Re: [PATCH] dmaengine: qcom: Add ADM driver

2020-09-18 Thread Vinod Koul
Hello Jonathan On 16-09-20, 07:43, Jonathan McDowell wrote: > From: Andy Gross > > (I'm not sure how best to attribute this. It's originally from Andy > Gross, the version I picked up was a later version from Thomas Pedersen, > and I can't find clear indication of why the latest version wasn't >

Re: [PATCH v2 3/3] asm-generic/io.h: Fix !CONFIG_GENERIC_IOMAP pci_iounmap() implementation

2020-09-18 Thread George Cherian
> -Original Message- > From: Lorenzo Pieralisi > Sent: Thursday, September 17, 2020 3:00 PM > To: Catalin Marinas > Cc: linux-kernel@vger.kernel.org; George Cherian ; > Arnd Bergmann ; Will Deacon ; Bjorn > Helgaas ; Yang Yingliang > ; linux-...@vger.kernel.org; linux- > a...@vger.kern

[PATCH 01/13] dt-bindings: arm: fsl: update TQ-Systems SoMs and boards based on i.MX7

2020-09-18 Thread Matthias Schiffer
Introduce compatible strings for the TQMa7x SoMs. Signed-off-by: Matthias Schiffer --- Documentation/devicetree/bindings/arm/fsl.yaml | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bin

[PATCH 08/13] ARM: dts: imx7-mba7: update MMC aliases

2020-09-18 Thread Matthias Schiffer
Together with the recently merged support for alias-based MMC host numbering, this makes the MMC devices names match what the bootloader expects. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx7

[PATCH 03/13] ARM: dts: imx7-mba7: update compatible strings

2020-09-18 Thread Matthias Schiffer
Include the SoM compatible string. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7d-mba7.dts | 2 +- arch/arm/boot/dts/imx7s-mba7.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-mba7.dts b/arch/arm/boot/dts/imx7d-mba7.dts index 22127

[PATCH 04/13] ARM: dts: imx7-mba7: drop incorrect num-chipselects property

2020-09-18 Thread Matthias Schiffer
This property was never set correctly; it should have been num-cs. As num-cs support is being removed as well, simply drop it. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/bo

Re: [PATCH printk 1/3] printk: move printk_info into separate array

2020-09-18 Thread John Ogness
On 2020-09-18, Petr Mladek wrote: >> --- a/kernel/printk/printk.c >> +++ b/kernel/printk/printk.c >> @@ -1097,6 +1097,7 @@ static char setup_dict_buf[CONSOLE_EXT_LOG_MAX] >> __initdata; >> >> void __init setup_log_buf(int early) >> { >> +struct printk_info *new_infos; >> unsigned int

[PATCH v5] iio:Documentation: Add documentation for label channel attribute

2020-09-18 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in V5: Create a separate patch file for this commit. Documentation/ABI/testing

Re: [PATCH v4] ASoC: tlv320adcx140: Add support for configuring GPIO pin

2020-09-18 Thread Camel Guo
Mark On 9/18/20 1:18 PM, Mark Brown wrote: On Fri, Sep 18, 2020 at 09:32:29AM +0200, Camel Guo wrote: From: Camel Guo Add support to configure the GPIO pin to the specific configuration. The GPIO pin can be configured as GPO, IRQ, SDOUT2, PDMCLK, MICBASE_EN, GPI, MCLK, SDIN, PDMDIN1, PDMDIN2,

[PATCH v4 1/2] dt-bindings: tlv320adcx140: Add GPIO config and drive config

2020-09-18 Thread Camel Guo
From: Camel Guo Add properties for configuring the General Purpose Input Output (GPIO). There are 2 settings for GPIO, configuration and the output drive type. Signed-off-by: Camel Guo Acked-by: Dan Murphy --- v4: - Rebase v3: - Fix typo - Add Acked-By from Dan .../bindings/sound/t

[PATCH] efivarfs: Replace invalid slashes with exclamation marks in dentries.

2020-09-18 Thread Michael Schaller
Without this patch efivarfs_alloc_dentry creates dentries with slashes in their name if the respective EFI variable has slashes in its name. This in turn causes EIO on getdents64, which prevents a complete directory listing of /sys/firmware/efi/efivars/. This patch replaces the invalid shlashes wi

[PATCH] PCI: Cadence: Add quirk for Gen2 controller to do autonomous speed change.

2020-09-18 Thread Nadeem Athani
Cadence controller will not initiate autonomous speed change if strapped as Gen2. The Retrain bit is set as a quirk to trigger this speed change. Signed-off-by: Nadeem Athani --- drivers/pci/controller/cadence/pcie-cadence-host.c | 13 + drivers/pci/controller/cadence/pcie-cadence.

Re: [PATCH 02/13] mm: use page_off_lru()

2020-09-18 Thread Michal Hocko
On Fri 18-09-20 04:27:13, Yu Zhao wrote: > On Fri, Sep 18, 2020 at 09:37:00AM +0200, Michal Hocko wrote: [...] > And I have asked this before: why does 'the compound page situation' > even matter here? Perhaps if you could give a concrete example related > to the code change and help me understand

[PATCH v5 4/6] dt-bindings: dw-apb-ictl: support hierarchy irq domain

2020-09-18 Thread Zhen Lei
Add support to use dw-apb-ictl as primary interrupt controller. Signed-off-by: Zhen Lei --- .../bindings/interrupt-controller/snps,dw-apb-ictl.txt | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,d

[PATCH v5 5/6] dt-bindings: dw-apb-ictl: convert to json-schema

2020-09-18 Thread Zhen Lei
Convert the Synopsys DesignWare APB interrupt controller (dw_apb_ictl) binding to DT schema format using json-schema. Signed-off-by: Zhen Lei --- .../interrupt-controller/snps,dw-apb-ictl.txt | 43 - .../interrupt-controller/snps,dw-apb-ictl.yaml | 75 ++

[PATCH v5 0/6] irqchip: dw-apb-ictl: support hierarchy irq domain

2020-09-18 Thread Zhen Lei
v4 --> v5: 1. Add WARN_ON(1) in set_handle_irq() if !GENERIC_IRQ_MULTI_HANDLER 2. Convert "snps,dw-apb-ictl.txt" to "snps,dw-apb-ictl.yaml" 3. Fix the errors detected by "snps,dw-apb-ictl.yaml" on arch/arc v3 --> v4: 1. remove "gc->chip_types[0].chip.irq_eoi = irq_gc_noop;", the "chip.irq_eoi" ho

[PATCH v5 6/6] ARC: [dts] fix the errors detected by dtbs_check

2020-09-18 Thread Zhen Lei
xxx/arc/boot/dts/axs101.dt.yaml: dw-apb-ictl@e0012000: $nodename:0: \ 'dw-apb-ictl@e0012000' does not match '^interrupt-controller(@[0-9a-f,]+)*$' >From schema: xxx/interrupt-controller/snps,dw-apb-ictl.yaml The node name of the interrupt controller must start with "interrupt-controller" instead o

[PATCH v5 3/6] irqchip: dw-apb-ictl: support hierarchy irq domain

2020-09-18 Thread Zhen Lei
Add support to use dw-apb-ictl as primary interrupt controller. Suggested-by: Marc Zyngier Signed-off-by: Zhen Lei Tested-by: Haoyu Lv --- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/irq-dw-apb-ictl.c | 74 ++- 2 files changed, 67 insertions(+

[PATCH v5 2/6] irqchip: dw-apb-ictl: prepare for support hierarchy irq domain

2020-09-18 Thread Zhen Lei
Rename some functions and variables in advance, to make the next patch looks more clear. The details are as follows: 1. rename dw_apb_ictl_handler() to dw_apb_ictl_handle_irq_cascaded(). 2. change (1 << hwirq) to BIT(hwirq). In function dw_apb_ictl_init(): 1. rename local variable irq to parent_ir

[PATCH v5 1/6] genirq: define an empty function set_handle_irq() if !GENERIC_IRQ_MULTI_HANDLER

2020-09-18 Thread Zhen Lei
To avoid compilation error if an irqchip driver references the function set_handle_irq() but may not select GENERIC_IRQ_MULTI_HANDLER on some systems. For example, the Synopsys DesignWare APB interrupt controller (dw_apb_ictl) is used as the secondary interrupt controller on arc, csky, arm64, and

WARNING in close_fs_devices (2)

2020-09-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e4c26faa Merge tag 'usb-5.9-rc5' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15bf162190 kernel config: https://syzkaller.appspot.com/x/.config?x=c61610091f4ca8c4 das

[PATCH] regmap: debugfs: Add back in erroneously removed initialisation of ret

2020-09-18 Thread Charles Keepax
Fixes: 94cc89eb8fa5 ("regmap: debugfs: Fix handling of name string for debugfs init delays") Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Charles Keepax --- drivers/base/regmap/regmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base

Re: [PATCH v4] ASoC: tlv320adcx140: Add support for configuring GPIO pin

2020-09-18 Thread Mark Brown
On Fri, Sep 18, 2020 at 09:32:29AM +0200, Camel Guo wrote: > From: Camel Guo > > Add support to configure the GPIO pin to the specific configuration. > The GPIO pin can be configured as GPO, IRQ, SDOUT2, PDMCLK, MICBASE_EN, > GPI, MCLK, SDIN, PDMDIN1, PDMDIN2, PDMDIN3 or PDMDIN4 and the output >

Re: [V9fs-developer] [PATCH 02/13] 9p: Tell the VFS that readpage was synchronous

2020-09-18 Thread Matthew Wilcox
On Fri, Sep 18, 2020 at 07:59:19AM +0200, Dominique Martinet wrote: > Matthew Wilcox (Oracle) wrote on Thu, Sep 17, 2020: > > diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c > > index cce9ace651a2..506ca0ba2ec7 100644 > > --- a/fs/9p/vfs_addr.c > > +++ b/fs/9p/vfs_addr.c > > @@ -280,6 +280,10 @@ s

Re: [PATCH v2 00/10] KFENCE: A low-overhead sampling-based memory safety error detector

2020-09-18 Thread Qian Cai
On Tue, 2020-09-15 at 15:20 +0200, Marco Elver wrote: > This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a > low-overhead sampling-based memory safety error detector of heap > use-after-free, invalid-free, and out-of-bounds access errors. This > series enables KFENCE for the

Re: [PATCH -next] tty: serial: imx: fix link error with CONFIG_SERIAL_CORE_CONSOLE=n

2020-09-18 Thread Greg KH
On Fri, Sep 18, 2020 at 05:13:05PM +0800, Yang Yingliang wrote: > Fix the link error by selecting SERIAL_CORE_CONSOLE. > > aarch64-linux-gnu-ld: drivers/tty/serial/imx_earlycon.o: in function > `imx_uart_console_early_write': > imx_earlycon.c:(.text+0x84): undefined reference to `uart_console_wri

Re: [PATCH] dmabuf: fix NULL pointer dereference in dma_buf_release()

2020-09-18 Thread Christian König
Am 18.09.20 um 12:32 schrieb Charan Teja Reddy: NULL pointer dereference is observed while exporting the dmabuf but failed to allocate the 'struct file' which results into the dropping of the allocated dentry corresponding to this file in the dmabuf fs, which is ending up in dma_buf_release() and

Re: [PATCH -next] tty: hvc: fix link error with CONFIG_SERIAL_CORE_CONSOLE=n

2020-09-18 Thread Greg KH
On Fri, Sep 18, 2020 at 05:20:30PM +0800, Yang Yingliang wrote: > Fix the link error by selecting SERIAL_CORE_CONSOLE. > > aarch64-linux-gnu-ld: drivers/tty/hvc/hvc_dcc.o: in function > `dcc_early_write': > hvc_dcc.c:(.text+0x164): undefined reference to `uart_console_write' > > Reported-by: Hul

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-18 Thread Michael Walle
Hi Zhiqiang, So the alternative solution seems to correct the PCIe enumeration, I will submit a patch to let the first access only read the Vendor ID. Please put me on CC of that patch. Thanks, -michael

[PATCH] Bluetooth: Fix the vulnerable issue on enc key size

2020-09-18 Thread Alex Lu
When someone attacks the service provider, it creates connection, authenticates. Then it requests key size of one byte and it identifies the key with brute force methods. After l2cap info req/resp exchange is complete. the attacker sends l2cap connect with specific PSM. In above procedure, there

Re: [PATCH 02/13] mm: use page_off_lru()

2020-09-18 Thread Michal Hocko
On Fri 18-09-20 04:27:13, Yu Zhao wrote: > On Fri, Sep 18, 2020 at 09:37:00AM +0200, Michal Hocko wrote: > > On Thu 17-09-20 21:00:40, Yu Zhao wrote: > > > This patch replaces the only open-coded __ClearPageActive() with > > > page_off_lru(). There is no open-coded __ClearPageUnevictable()s. > > >

Re: [PATCH v2] arm64: Enable PCI write-combine resources under sysfs

2020-09-18 Thread Catalin Marinas
On Fri, Sep 18, 2020 at 03:33:12AM +, Clint Sbisa wrote: > This change exposes write-combine mappings under sysfs for > prefetchable PCI resources on arm64. > > Originally, the usage of "write combine" here was driven by the x86 > definition of write combine. This definition is specific to x86

RE: [PATCH] nvme: use correct upper limit for tag in nvme_handle_cqe()

2020-09-18 Thread Tianxianting
I am very sorry, Please ignore this patch, the code need to rewrite. -Original Message- From: tianxianting (RD) Sent: Friday, September 18, 2020 3:45 PM To: kbu...@kernel.org; ax...@fb.com; h...@lst.de; s...@grimberg.me Cc: linux-n...@lists.infradead.org; linux-kernel@vger.kernel.org; tia

Re: [RFC PATCH] locking/percpu-rwsem: use this_cpu_{inc|dec}() for read_count

2020-09-18 Thread peterz
On Fri, Sep 18, 2020 at 12:48:24PM +0200, Oleg Nesterov wrote: > Of course, this assumes that atomic_t->counter underflows "correctly", just > like "unsigned int". We're documented that we do. Lots of code relies on that. See Documentation/atomic_t.txt TYPES > But again, do we really want this?

Re: [PATCH v2 1/2] tty: serial: print earlycon info after match->setup

2020-09-18 Thread Andy Shevchenko
On Tue, Sep 15, 2020 at 8:50 AM Hsin-Yi Wang wrote: > > 8250 devices may modify iotype in their own earlycon setup. For example: > 8250_mtk and 8250_uniphier force iotype to be MMIO32. Print earlycon info > after match->setup to reflect actual earlycon info. Thanks for an update. I prefer to see

Re: [PATCH] ASoC: Use memset_io to access I/O memory

2020-09-18 Thread Mark Brown
On Fri, Sep 18, 2020 at 06:00:19PM +0800, Shane Chien wrote: > /* clear the buffer for avoiding possible kernel info leaks */ > if (runtime->dma_area && !substream->ops->copy_user) > - memset(runtime->dma_area, 0, runtime->dma_bytes); > + memset_io(runtime->dma_

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-18 Thread Z.q. Hou
Hi Rob, Thanks a lot for your comments! > -Original Message- > From: Rob Herring > Sent: 2020年9月17日 4:29 > To: Z.q. Hou > Cc: linux-kernel@vger.kernel.org; PCI ; Lorenzo > Pieralisi ; Bjorn Helgaas > ; Gustavo Pimentel > ; Michael Walle ; > Ard Biesheuvel > Subject: Re: [PATCH] PCI: dw

<    5   6   7   8   9   10   11   12   13   14   >