[PATCH v3 08/18] ARM: dts: qcom: sdx55: Add Shared memory manager support

2021-01-06 Thread Manivannan Sadhasivam
Add smem node to support shared memory manager on SDX55 platform. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul --- arch/arm/boot/dts/qcom-sdx55.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/qcom-sdx55.dtsi b/arch/arm/boot/dts/qcom-sdx55.dtsi

Re: [PATCH 4.19 13/35] null_blk: Fix zone size initialization

2021-01-06 Thread Pavel Machek
Hi! > commit 0ebcdd702f49aeb0ad2e2d894f8c124a0acc6e23 upstream. > > For a null_blk device with zoned mode enabled is currently initialized > with a number of zones equal to the device capacity divided by the zone > size, without considering if the device capacity is a multiple of the > zone

[PATCH v3 16/18] ARM: dts: qcom: sdx55: Add rpmpd node

2021-01-06 Thread Manivannan Sadhasivam
From: Vinod Koul This adds rpmpd node and opps for this node to the SDX55 dts. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-sdx55.dtsi | 51 +++ 1 file changed, 51 insertions(+) diff --git

[PATCH v3 14/18] ARM: dts: qcom: sdx55-mtp: Add pm8150b pmic

2021-01-06 Thread Manivannan Sadhasivam
From: Vinod Koul SDX55-mtp features PM8150B pmic, so include the dts as well Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-sdx55-mtp.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/qcom-sdx55-mtp.dts

[PATCH v3 07/18] ARM: dts: qcom: sdx55: Add support for TCSR Mutex

2021-01-06 Thread Manivannan Sadhasivam
Add TCSR Mutex node to support Qualcomm Hardware Mutex block on SDX55 platform. Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-sdx55.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/qcom-sdx55.dtsi b/arch/arm/boot/dts/qcom-sdx55.dtsi index

[PATCH v3 09/18] ARM: dts: qcom: sdx55: Add QPIC BAM support

2021-01-06 Thread Manivannan Sadhasivam
Add qpic_bam node to support QPIC BAM DMA controller on SDX55 platform. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul --- arch/arm/boot/dts/qcom-sdx55.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/qcom-sdx55.dtsi

[PATCH v3 13/18] ARM: dts: qcom: sdx55: Add spmi node

2021-01-06 Thread Manivannan Sadhasivam
From: Vinod Koul This adds SPMI node to SDX55 dts. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-sdx55.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/qcom-sdx55.dtsi

[PATCH v3 17/18] ARM: dts: qcom: Add PMIC pmx55 dts

2021-01-06 Thread Manivannan Sadhasivam
From: Vinod Koul This adds DTS for PMIC PMX55 found in Qualcomm platforms. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-pmx55.dtsi | 84 +++ 1 file changed, 84 insertions(+) create mode 100644

[PATCH v3 12/18] ARM: dts: qcom: sdx55-mtp: Enable QPIC NAND

2021-01-06 Thread Manivannan Sadhasivam
Enable QPIC NAND on SDX55-MTP board. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul --- arch/arm/boot/dts/qcom-sdx55-mtp.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/qcom-sdx55-mtp.dts b/arch/arm/boot/dts/qcom-sdx55-mtp.dts index

[PATCH v3 18/18] ARM: dts: qcom: sdx55-mtp: Add regulator nodes

2021-01-06 Thread Manivannan Sadhasivam
From: Vinod Koul This adds the regulators found on SDX55 MTP. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-sdx55-mtp.dts | 164 +++ 1 file changed, 164 insertions(+) diff --git a/arch/arm/boot/dts/qcom-sdx55-mtp.dts

[PATCH v3 10/18] ARM: dts: qcom: sdx55: Add QPIC NAND support

2021-01-06 Thread Manivannan Sadhasivam
Add qpic_nand node to support QPIC NAND controller on SDX55 platform. Since there is no "aon" clock in SDX55, a dummy clock is provided. Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-sdx55.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH v3 01/18] ARM: dts: qcom: sdx55: Add pincontrol node

2021-01-06 Thread Manivannan Sadhasivam
From: Vinod Koul This adds pincontrol node to SDX55 dts. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-sdx55.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/qcom-sdx55.dtsi b/arch/arm/boot/dts/qcom-sdx55.dtsi

[PATCH v3 11/18] ARM: dts: qcom: sdx55-mtp: Enable BAM DMA

2021-01-06 Thread Manivannan Sadhasivam
Enable BAM DMA on SDX55-MTP board. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul --- arch/arm/boot/dts/qcom-sdx55-mtp.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/qcom-sdx55-mtp.dts b/arch/arm/boot/dts/qcom-sdx55-mtp.dts index

[PATCH v3 15/18] ARM: dts: qcom: sdx55-mtp: Add pmx55 pmic

2021-01-06 Thread Manivannan Sadhasivam
From: Vinod Koul SDX55-mtp features PMX55 pmic, so include the dts as well Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-sdx55-mtp.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/qcom-sdx55-mtp.dts

[PATCH v3 04/18] ARM: dts: qcom: sdx55: Add support for SDHCI controller

2021-01-06 Thread Manivannan Sadhasivam
Add devicetree support for SDHCI controller found in Qualcomm SDX55 platform. The SDHCI controller is based on the MSM SDHCI v5 IP. Hence, the support is added by reusing the existing sdhci driver with "qcom,sdhci-msm-v5" as the fallback. Signed-off-by: Manivannan Sadhasivam ---

[PATCH v3 06/18] ARM: dts: qcom: sdx55: Enable ARM SMMU

2021-01-06 Thread Manivannan Sadhasivam
From: Bjorn Andersson Add a node for the ARM SMMU found in the SDX55. Signed-off-by: Bjorn Andersson Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-sdx55.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/qcom-sdx55.dtsi

[PATCH v3 05/18] dt-bindings: arm-smmu: Add binding for Qcom SDX55 SMMU

2021-01-06 Thread Manivannan Sadhasivam
Add devicetree binding for Qualcomm SDX55 SMMU. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3 00/18] Devicetree update for SDX55 platform

2021-01-06 Thread Manivannan Sadhasivam
Hi Bjorn, This series updates devicetree for the SDX55 platform and the MTP board. Most of the SDX55 specific driver codes are already merged and some of existing driver support got reused. Thanks, Mani Changes in v3: * Dropped interrupts property in spmi-gpio node * Used dma-controller node

[PATCH v3 02/18] ARM: dts: qcom: sdx55: Add reserved memory nodes

2021-01-06 Thread Manivannan Sadhasivam
From: Vinod Koul This adds reserved memory nodes to the SDX55 dtsi as defined by v6 of the memory map Signed-off-by: Vinod Koul [mani: moved modem regions to board dts] Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-sdx55-mtp.dts | 21 +++

[PATCH v3 03/18] dt-bindings: mmc: sdhci-msm: Document the SDX55 compatible

2021-01-06 Thread Manivannan Sadhasivam
The SDHCI controller on SDX55 is based on MSM SDHCI v5 IP. Hence, document the compatible with "qcom,sdhci-msm-v5" as the fallback. While at it, let's also sort the compatibles in ascending order. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Manivannan Sadhasivam Reviewed-by:

Re: [PATCH V6 08/13] interconnect: mediatek: Add interconnect provider driver

2021-01-06 Thread Georgi Djakov
On 6.01.21 12:44, HenryC Chen (陳建豪) wrote: -Original Message- From: Georgi Djakov [mailto:georgi.dja...@linaro.org] Sent: Wednesday, January 06, 2021 4:14 PM To: HenryC Chen (陳建豪) Cc: Rob Herring; Matthias Brugger; Stephen Boyd; Ryan Case; Mark Brown; Mark Rutland; Nicolas Boichat; Fan

[tip: x86/urgent] x86/mtrr: Correct the range check before performing MTRR type lookups

2021-01-06 Thread tip-bot2 for Ying-Tsun Huang
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: cb7f4a8b1fb426a175d1708f05581939c61329d4 Gitweb: https://git.kernel.org/tip/cb7f4a8b1fb426a175d1708f05581939c61329d4 Author:Ying-Tsun Huang AuthorDate:Tue, 15 Dec 2020 15:07:20 +08:00

[PATCH V4 2/5] gpio: gpio-xilinx: Reduce spinlock array to array

2021-01-06 Thread Srinivas Neeli
Changed spinlock array to single. It is preparation for irq support which is shared between two channels that's why spinlock should be only one. Signed-off-by: Srinivas Neeli --- Changes in V4: -None. Changes in V3: -Created new patch for spinlock changes. --- drivers/gpio/gpio-xilinx.c | 25

[PATCH V4 4/5] gpio: gpio-xilinx: Add support for suspend and resume

2021-01-06 Thread Srinivas Neeli
Add support for suspend and resume, pm runtime suspend and resume. Added free and request calls. Signed-off-by: Srinivas Neeli --- Changes in V4: -Adjust code to remove conflicts. Changes in V3: -Created new patch for suspend and resume. --- drivers/gpio/gpio-xilinx.c | 94

[PATCH V4 5/5] gpio: gpio-xilinx: Add check if width exceeds 32

2021-01-06 Thread Srinivas Neeli
Add check to see if gpio-width property does not exceed 32. If it exceeds then return -EINVAL. Signed-off-by: Srinivas Neeli --- Changes in V4: -New patch. --- drivers/gpio/gpio-xilinx.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpio/gpio-xilinx.c

Re: [PATCH] uio: uio_pci_generic: don't fail probe if pdev->irq equals to IRQ_NOTCONNECTED

2021-01-06 Thread gre...@linuxfoundation.org
On Wed, Jan 06, 2021 at 07:48:51PM +0800, 李捷 wrote: > From 0fbcd7e386898d829d3000d094358a91e626ee4a Mon Sep 17 00:00:00 2001 > From: Jie Li > Date: Mon, 7 Dec 2020 08:05:07 +0800 > Subject: [PATCH] uio: uio_pci_generic: don't fail probe if pdev->irq equals to > IRQ_NOTCONNECTED > > Some devices

[PATCH V4 3/5] gpio: gpio-xilinx: Add interrupt support

2021-01-06 Thread Srinivas Neeli
Adds interrupt support to the Xilinx GPIO driver so that rising and falling edge line events can be supported. Since interrupt support is an optional feature in the Xilinx IP, the driver continues to support devices which have no interrupt provided. Depends on OF_GPIO framework for of_xlate

[PATCH V4 1/5] gpio: gpio-xilinx: Simplify with dev_err_probe()

2021-01-06 Thread Srinivas Neeli
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Srinivas Neeli --- Changes in V4: -New patch --- drivers/gpio/gpio-xilinx.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

[PATCH V4 0/5] gpio-xilinx: Update on xilinx gpio driver

2021-01-06 Thread Srinivas Neeli
This patch series does the following: -Simplify with dev_err_probe(). -Reduce spinlock array to array. -Add interrupt support -Add support for suspend and resume -Add check for gpio-width --- Changes in V4: -Created new patch to simplify code with dev_err_probe(). -Updated minor review comments.

Re: [PATCH] scripts: dtc: Start building fdtoverlay and fdtdump

2021-01-06 Thread kernel test robot
://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Viresh-Kumar/scripts-dtc-Start-building-fdtoverlay-and-fdtdump/20210106-181140 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: x86_64-randconfig-a013-20210106 (attached

Re: Set DBGCLAIM when self-host debug is enabled

2021-01-06 Thread Mark Rutland
On Wed, Jan 06, 2021 at 06:29:53PM +0800, ting...@codeaurora.org wrote: > Hi Will and Mark, Hi Tingwei, > In recent implementation of save/restore ARM debug registers in > EL2/EL3, we found it's necessary to know whether self-host debug is > enabled so EL2/EL3 can avoid saving/restoring debug

Re: [net-next PATCH v12 4/4] net: dsa: mv88e6xxx: Add support for mv88e6393x family of Marvell

2021-01-06 Thread Marek Behún
On Wed, 6 Jan 2021 10:45:30 +1000 Pavana Sharma wrote: > Thanks Marek for catching this. > > I will have a closer look and update the patchset. I also sent a reply patch with subject "patch fixing mv88e6393x SERDES IRQ for Pavana's series" it contains the changes necessary to your series.

Re: [PATCH 1/1] auxdisplay: Add I2C gpio expander example

2021-01-06 Thread Miguel Ojeda
On Wed, Jan 6, 2021 at 12:39 PM Ralf Schlatterbeck wrote: > > The hd44780 displays are often used with pcf8574 based I/O expanders. > Add example to documentation. > > Signed-off-by: Ralf Schlatterbeck Since Geert suggested it, it is customary to write Suggested-by: Geert Uytterhoeven above

Re: [PATCH 0/1] auxdisplay: Add I2C gpio expander example

2021-01-06 Thread Miguel Ojeda
On Wed, Jan 6, 2021 at 1:12 PM Miguel Ojeda wrote: > > - Normally, you will want to use scripts/get_maintainer.pl to know > to whom send a given change. In this case, I am Cc'ing Rob, Geert and > the devicetree mailing list which were missing. (Actually Cc'ing Rob.) Cheers, Miguel

Re: Aarch64 EXT4FS inode checksum failures - seems to be weak memory ordering issues

2021-01-06 Thread Russell King - ARM Linux admin
On Wed, Jan 06, 2021 at 11:53:59AM +, Mark Rutland wrote: > On Tue, Jan 05, 2021 at 03:47:26PM +, Russell King - ARM Linux admin > wrote: > > Hi, > > Hi Russell, > > > This is an update on where I am with this long standing issue at the > > current time. > > > > Since 5.4, I have been

Re: [PATCH 0/1] auxdisplay: Add I2C gpio expander example

2021-01-06 Thread Miguel Ojeda
On Wed, Jan 6, 2021 at 12:37 PM Ralf Schlatterbeck wrote: > > The Hitachi HD44780 is often used together with a PCF8574 based I2C > I/O expander. It was non-obvious to me that the existing parallel > connected version of the auxdisplay driver can already handle this > configuration with

Re: [PATCH 1/2] staging: greybus: vibrator: use proper API for vibrator devices

2021-01-06 Thread Johan Hovold
On Wed, Jan 06, 2021 at 01:04:04PM +0100, Johan Hovold wrote: > On Tue, Jan 05, 2021 at 04:19:02PM +0100, Greg Kroah-Hartman wrote: > > The correct user/kernel api for vibrator devices is the Input rumble > > api, not a random sysfs file like the greybus vibrator driver currently > > uses. > > >

[PATCH 0/4] arm64: ARMv8.5-A: MTE: Add async mode support

2021-01-06 Thread Vincenzo Frascino
This patchset implements the asynchronous mode support for ARMv8.5-A Memory Tagging Extension (MTE), which is a debugging feature that allows to detect with the help of the architecture the C and C++ programmatic memory errors like buffer overflow, use-after-free, use-after-return, etc. MTE is

[PATCH 3/4] arm64: mte: Enable async tag check fault

2021-01-06 Thread Vincenzo Frascino
MTE provides a mode that asynchronously updates the TFSR_EL1 register when a tag check exception is detected. To take advantage of this mode the kernel has to verify the status of the register at: 1. Context switching 2. Return to user/EL0 (Not required in entry from EL0 since the kernel

[PATCH 4/4] arm64: mte: Optimize mte_assign_mem_tag_range()

2021-01-06 Thread Vincenzo Frascino
mte_assign_mem_tag_range() is called on production KASAN HW hot paths. It makes sense to optimize it in an attempt to reduce the overhead. Optimize mte_assign_mem_tag_range() based on the indications provided at [1]. [1]

[PATCH 2/4] arm64: mte: Add asynchronous mode support

2021-01-06 Thread Vincenzo Frascino
MTE provides an asynchronous mode for detecting tag exceptions. In particular instead of triggering a fault the arm64 core updates a register which is checked by the kernel at the first entry after the tag exception has occurred. Add support for MTE asynchronous mode. The exception handling

[PATCH 1/4] kasan, arm64: Add KASAN light mode

2021-01-06 Thread Vincenzo Frascino
Architectures supported by KASAN HW can provide a light mode of execution. On an MTE enabled arm64 hw for example this can be identified with the asynch mode of execution. If an async exception occurs, the arm64 core updates a register which is asynchronously detected the next time in which the

Re: [PATCH] iommu/io-pgtable-arm: Allow non-coherent masters to use system cache

2021-01-06 Thread Will Deacon
On Thu, Dec 24, 2020 at 12:10:07PM +0530, Sai Prakash Ranjan wrote: > commit ecd7274fb4cd ("iommu: Remove unused IOMMU_SYS_CACHE_ONLY flag") > removed unused IOMMU_SYS_CACHE_ONLY prot flag and along with it went > the memory type setting required for the non-coherent masters to use > system cache.

Re: Aarch64 EXT4FS inode checksum failures - seems to be weak memory ordering issues

2021-01-06 Thread Mark Rutland
On Tue, Jan 05, 2021 at 03:47:26PM +, Russell King - ARM Linux admin wrote: > Hi, Hi Russell, > This is an update on where I am with this long standing issue at the > current time. > > Since 5.4, I have been struggling with several of my ARM64 systems, of > different SoC vendors and

Re: [PATCH 10/11] coresight: sink: Add TRBE driver

2021-01-06 Thread Anshuman Khandual
On 1/5/21 5:07 PM, Suzuki K Poulose wrote: > On 1/5/21 9:29 AM, Anshuman Khandual wrote: >> >> >> On 1/4/21 9:58 PM, Suzuki K Poulose wrote: >>> >>> Hi Anshuman, >>> >>> On 12/23/20 10:03 AM, Anshuman Khandual wrote: Trace Buffer Extension (TRBE) implements a trace buffer per CPU which is

[GIT PULL] Btrfs fixes for 5.11-rc3

2021-01-06 Thread David Sterba
Hi, a few more fixes that arrived before the end of the year. Please pull, thanks. - a bunch of fixes related to transaction handle lifetime wrt various operations (umount, remount, qgroup scan, orphan cleanup) - async discard scheduling fixes - fix item size calculation when item keys

[PATCH 1/1] auxdisplay: Add I2C gpio expander example

2021-01-06 Thread Ralf Schlatterbeck
The hd44780 displays are often used with pcf8574 based I/O expanders. Add example to documentation. Signed-off-by: Ralf Schlatterbeck --- .../bindings/auxdisplay/hit,hd44780.yaml | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v3] PCI: endpoint: Fix NULL pointer dereference for ->get_features()

2021-01-06 Thread Leon Romanovsky
On Wed, Jan 06, 2021 at 04:08:10PM +0530, Shradha Todi wrote: > get_features ops of pci_epc_ops may return NULL, causing NULL pointer > dereference in pci_epf_test_bind function. Let us add a check for > pci_epc_feature pointer in pci_epf_test_bind before we access it to avoid > any such NULL

Re: [PATCH 0/4] bus: sunxi-rsb: Implement power managment

2021-01-06 Thread Chen-Yu Tsai
On Wed, Jan 6, 2021 at 6:50 PM Maxime Ripard wrote: > > Hi! > > On Sun, Jan 03, 2021 at 05:06:31AM -0600, Samuel Holland wrote: > > This series adds system (complete power down) and runtime (clock gate) > > PM hooks to the RSB controller driver. Tested on A64 and H6. > > > > Samuel Holland (4): >

Re: [v3 PATCH 06/11] mm: memcontrol: rename shrinker_map to shrinker_info

2021-01-06 Thread Kirill Tkhai
On 06.01.2021 01:58, Yang Shi wrote: > The following patch is going to add nr_deferred into shrinker_map, the change > will > make shrinker_map not only include map anymore, so rename it to a more general > name. And this should make the patch adding nr_deferred cleaner and readable > and make

Re: [v2] net: qrtr: fix null pointer dereference in qrtr_ns_remove

2021-01-06 Thread Dan Carpenter
On Wed, Jan 06, 2021 at 05:46:22PM +0800, Qinglang Miao wrote: > > > 在 2021/1/6 16:09, Markus Elfring 写道: > > > > > A null-ptr-deref bug is reported by Hulk Robot like this: > > > > > > > > Can it be clearer to use the term “null pointer dereference” for the > > > > final commit message? > > >

Re: [PATCH v2 4/4] arm64: dts: allwinner: h6: Use RSB for AXP805 PMIC connection

2021-01-06 Thread Chen-Yu Tsai
On Wed, Jan 6, 2021 at 7:06 PM Maxime Ripard wrote: > > On Mon, Jan 04, 2021 at 10:54:19AM +, André Przywara wrote: > > On 03/01/2021 10:00, Samuel Holland wrote: > > > On boards where the only peripheral connected to PL0/PL1 is an X-Powers > > > PMIC, configure the connection to use the RSB

Re: [PATCH] mm: Teach pfn_to_online_page() about ZONE_DEVICE section collisions

2021-01-06 Thread Michal Hocko
On Wed 06-01-21 12:22:57, David Hildenbrand wrote: > On 06.01.21 11:42, Michal Hocko wrote: > > On Wed 06-01-21 10:56:19, David Hildenbrand wrote: > > [...] > >> Note that this is not sufficient in the general case. I already > >> mentioned that we effectively override an already initialized

[PATCH 0/1] auxdisplay: Add I2C gpio expander example

2021-01-06 Thread Ralf Schlatterbeck
The Hitachi HD44780 is often used together with a PCF8574 based I2C I/O expander. It was non-obvious to me that the existing parallel connected version of the auxdisplay driver can already handle this configuration with appropriate device tree magic. This patch documents the necessary incantations

Re: [v3 PATCH 10/11] mm: memcontrol: reparent nr_deferred when memcg offline

2021-01-06 Thread Kirill Tkhai
On 06.01.2021 01:58, Yang Shi wrote: > Now shrinker's nr_deferred is per memcg for memcg aware shrinkers, add to > parent's > corresponding nr_deferred when memcg offline. > > Signed-off-by: Yang Shi > --- > include/linux/memcontrol.h | 1 + > mm/memcontrol.c| 1 + > mm/vmscan.c

RE: [PATCH v2] PCI: dwc: Add upper limit address for outbound iATU

2021-01-06 Thread Pankaj Dubey
> -Original Message- > From: Shradha Todi > Sent: Wednesday, January 6, 2021 4:20 PM > To: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org > Cc: jingooh...@gmail.com; gustavo.pimen...@synopsys.com; > r...@kernel.org; lorenzo.pieral...@arm.com; bhelg...@google.com; >

RE: [PATCH v2] PCI: dwc: Change size to u64 for EP outbound iATU

2021-01-06 Thread Pankaj Dubey
> -Original Message- > From: Shradha Todi > Sent: Wednesday, January 6, 2021 4:15 PM > To: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org > Cc: jingooh...@gmail.com; gustavo.pimen...@synopsys.com; > r...@kernel.org; lorenzo.pieral...@arm.com; bhelg...@google.com; >

Re: Reply to [RFC PATCH v2 0/1] Adding support for IIO SCMI based sensors

2021-01-06 Thread Cristian Marussi
Hi On Wed, Jan 06, 2021 at 10:29:17AM +, Jonathan Cameron wrote: > On Tue, 5 Jan 2021 23:09:20 + > Jyoti Bhayana wrote: > > > Hi Jonathan, > > > > > So, sensor_max_range can effectively be exposed as a combination of > > > scale and the *_raw_avail for a raw read (via the read_avail

Re: [PATCH v2] sched/debug: Add new tracepoint to track cpu_capacity

2021-01-06 Thread Qais Yousef
On 01/05/21 08:44, Alexei Starovoitov wrote: > > Any pointer to an example test I could base this on? > > selftests/bpf/ I was hoping for something more elaborate. I thought there's something already there that do some verification for raw tracepoint that I could either extend or replicate.

Re: [PATCH] mm: Teach pfn_to_online_page() about ZONE_DEVICE section collisions

2021-01-06 Thread David Hildenbrand
On 06.01.21 11:42, Michal Hocko wrote: > On Wed 06-01-21 10:56:19, David Hildenbrand wrote: > [...] >> Note that this is not sufficient in the general case. I already >> mentioned that we effectively override an already initialized memmap. >> >> --- >> >> [SECTION ] >> Before:

undefined reference to `led_classdev_unregister'

2021-01-06 Thread kernel test robot
: microblaze-randconfig-r016-20210106 (attached as .config) compiler: microblaze-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https

[PATCH] block: introduce for_each_rq_qos macro

2021-01-06 Thread Chunguang Xu
From: Chunguang Xu Compared to direct pointer traversal, introducing a macro will make the code more concise. But the introduction of macros will make rq_qos_xxx() produce a redundant judgment, usually this may not be a big problem. Signed-off-by: Chunguang Xu --- block/blk-rq-qos.c | 45

Re: [RFC PATCH] x86/cpu: Do not check c->initialized in topology_phys_to_logical_die()

2021-01-06 Thread Borislav Petkov
On Tue, Jan 05, 2021 at 12:34:14PM +0100, Borislav Petkov wrote: > From: Borislav Petkov > > During boot, identify_secondary_cpu() calls at some point > validate_apic_and_package_id() which calls topology_update_die_map() to > update/verify the physical to logical DIE map of the CPUs on the

Re: [PATCH V2 1/4] x86/resctrl: Use IPI instead of task_work_add() to update PQR_ASSOC MSR

2021-01-06 Thread Borislav Petkov
On Thu, Dec 17, 2020 at 02:31:18PM -0800, Reinette Chatre wrote: > +#ifdef CONFIG_SMP > +static void update_task_closid_rmid(struct task_struct *t) > +{ > + if (task_curr(t)) > + smp_call_function_single(task_cpu(t), _update_task_closid_rmid, > +

Re: [v3 PATCH 09/11] mm: vmscan: don't need allocate shrinker->nr_deferred for memcg aware shrinkers

2021-01-06 Thread Kirill Tkhai
On 06.01.2021 01:58, Yang Shi wrote: > Now nr_deferred is available on per memcg level for memcg aware shrinkers, so > don't need > allocate shrinker->nr_deferred for such shrinkers anymore. > > The prealloc_memcg_shrinker() would return -ENOSYS if !CONFIG_MEMCG or memcg > is disabled > by

Re: [PATCH v2] Drivers: hv: vmbus: Add /sys/bus/vmbus/supported_features

2021-01-06 Thread Wei Liu
On Tue, Jan 05, 2021 at 04:04:34PM -0800, Dexuan Cui wrote: > When a Linux VM runs on Hyper-V, if the host toolstack doesn't support > hibernation for the VM (this happens on old Hyper-V hosts like Windows > Server 2016, or new Hyper-V hosts if the admin or user doesn't declare > the hibernation

Re: [v3 PATCH 07/11] mm: vmscan: add per memcg shrinker nr_deferred

2021-01-06 Thread Kirill Tkhai
On 06.01.2021 01:58, Yang Shi wrote: > Currently the number of deferred objects are per shrinker, but some slabs, > for example, > vfs inode/dentry cache are per memcg, this would result in poor isolation > among memcgs. > > The deferred objects typically are generated by __GFP_NOFS

Re: [PATCH v2 4/4] arm64: dts: allwinner: h6: Use RSB for AXP805 PMIC connection

2021-01-06 Thread Maxime Ripard
On Mon, Jan 04, 2021 at 10:54:19AM +, André Przywara wrote: > On 03/01/2021 10:00, Samuel Holland wrote: > > On boards where the only peripheral connected to PL0/PL1 is an X-Powers > > PMIC, configure the connection to use the RSB bus rather than the I2C > > bus. Compared to the I2C controller

Re: [PATCH v6 10/22] clk: mediatek: Add MT8192 basic clocks support

2021-01-06 Thread Weiyi Lu
On Wed, 2021-01-06 at 18:52 +0800, Ikjoon Jang wrote: > On Wed, Jan 6, 2021 at 6:42 PM Weiyi Lu wrote: > > > > On Wed, 2021-01-06 at 18:25 +0800, Ikjoon Jang wrote: > > > On Tue, Dec 22, 2020 at 9:14 PM Weiyi Lu wrote: > > > > > > > > Add MT8192 basic clock providers, include topckgen,

Re: [PATCH] x86/hyperv: check cpu mask after interrupt has been disabled

2021-01-06 Thread Wei Liu
On Tue, Jan 05, 2021 at 06:20:05PM +, Michael Kelley wrote: > From: Wei Liu Sent: Tuesday, January 5, 2021 9:51 AM > > > > We've observed crashes due to an empty cpu mask in > > hyperv_flush_tlb_others. Obviously the cpu mask in question is changed > > between the cpumask_empty call at the

Re: [PATCH v2 0/4] Allwinner H6 RSB support

2021-01-06 Thread Maxime Ripard
On Sun, Jan 03, 2021 at 04:00:03AM -0600, Samuel Holland wrote: > The Allwinner H6 SoC contains an RSB controller. It is almost completely > undocumented, so it was missed when doing the initial SoC bringup. > > This series adds the clock/reset, pin configuration, and device tree > node needed to

Re: linux-next: Tree for Jan 5 (objtool: 3 warnings)

2021-01-06 Thread Peter Zijlstra
On Tue, Jan 05, 2021 at 04:52:28PM -0600, Josh Poimboeuf wrote: > On Tue, Jan 05, 2021 at 12:48:20PM -0800, Randy Dunlap wrote: > > On 1/4/21 6:50 PM, Stephen Rothwell wrote: > > > Hi all, > > > > > > Changes since 20210104: > > > > > > > on x86_64: > > > > vmlinux.o: warning: objtool:

Re: [PATCH 4/6] irqchip/aspeed: Add Aspeed eSPI interrupt controller

2021-01-06 Thread Marc Zyngier
On 2021-01-06 05:59, Chia-Wei, Wang wrote: The eSPI interrupt controller acts as a SW IRQ number decoder to correctly control/dispatch interrupts of the eSPI peripheral, virtual wire, out-of-band, and flash channels. Signed-off-by: Chia-Wei, Wang --- drivers/irqchip/Makefile | 2

Re: Re: [PATCH] net: ethernet: Fix memleak in ethoc_probe

2021-01-06 Thread dinghao . liu
> On Mon, 28 Dec 2020 16:14:17 -0500 Konstantin Ryabitsev wrote: > > On Mon, Dec 28, 2020 at 01:05:26PM -0800, Florian Fainelli wrote: > > > On 12/28/2020 12:23 PM, Konstantin Ryabitsev wrote: > > > > On Thu, Dec 24, 2020 at 01:57:40PM -0800, Florian Fainelli wrote: > > > Konstantin,

Re: [PATCH v2 18/18] ARM: dts: qcom: sdx55-mtp: Add regulator nodes

2021-01-06 Thread Manivannan Sadhasivam
On Tue, Jan 05, 2021 at 12:16:11PM -0600, Bjorn Andersson wrote: > On Tue 05 Jan 06:26 CST 2021, Manivannan Sadhasivam wrote: > > > From: Vinod Koul > > > > This adds the regulators found on SDX55 MTP. > > > > Signed-off-by: Vinod Koul > > Signed-off-by: Manivannan Sadhasivam > > --- > >

[PATCH] ARM: ixp4xx: Fix typos in Kconfig

2021-01-06 Thread Masanari Iida
This patch fixes some spelling typos in Kconfig. Signed-off-by: Masanari Iida --- arch/arm/mach-ixp4xx/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-ixp4xx/Kconfig b/arch/arm/mach-ixp4xx/Kconfig index f7211b57b1e7..c4f719993190 100644 ---

[PATCH 2/2] KVM: nVMX: fix for disappearing L1->L2 event injection on L1 migration

2021-01-06 Thread Maxim Levitsky
If migration happens while L2 entry with an injected event to L2 is pending, we weren't including the event in the migration state and it would be lost leading to L2 hang. Fix this by queueing the injected event in similar manner to how we queue interrupted injections. This can be reproduced by

Re: [PATCH v6 10/22] clk: mediatek: Add MT8192 basic clocks support

2021-01-06 Thread Ikjoon Jang
On Wed, Jan 6, 2021 at 6:42 PM Weiyi Lu wrote: > > On Wed, 2021-01-06 at 18:25 +0800, Ikjoon Jang wrote: > > On Tue, Dec 22, 2020 at 9:14 PM Weiyi Lu wrote: > > > > > > Add MT8192 basic clock providers, include topckgen, apmixedsys, > > > infracfg and pericfg. > > > > > > Signed-off-by: Weiyi Lu

[PATCH 0/2] RFC: VMX: fix for disappearing L1->L2 event injection on L1 migration

2021-01-06 Thread Maxim Levitsky
This is VMX version of the same issue as I reproduced on SVM. Unlike SVM, this version has 2 pending issues to resolve. 1. This seems to break 'vmx' kvm-unit-test in 'error code <-> (!URG || prot_mode) [+]' case. The test basically tries to do nested vm entry with unrestricted guest disabled,

[PATCH 1/2] KVM: VMX: create vmx_process_injected_event

2021-01-06 Thread Maxim Levitsky
Refactor the logic that is dealing with parsing of an injected event to a separate function. This will be used in the next patch to deal with the events that L1 wants to inject to L2 in a way that survives migration. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/vmx/vmx.c | 60

[PATCH v2] af/rvu_cgx: Fix missing check bugs in rvu_cgx.c

2021-01-06 Thread wangyingjie55
From: Yingjie Wang In rvu_mbox_handler_cgx_mac_addr_get() and rvu_mbox_handler_cgx_mac_addr_set(), the msg is expected only from PFs that are mapped to CGX LMACs. It should be checked before mapping, so we add the is_cgx_config_permitted() in the functions. Fixes: 85482bb ("af/rvu_cgx: Fix

[PATCH v2] PCI: dwc: Add upper limit address for outbound iATU

2021-01-06 Thread Shradha Todi
The size parameter is unsigned long type which can accept size > 4GB. In that case, the upper limit address must be programmed. Add support to program the upper limit address and set INCREASE_REGION_SIZE in case size > 4GB. Signed-off-by: Shradha Todi --- v1: https://lkml.org/lkml/2020/12/20/187

[PATCH v3] PCI: endpoint: Fix NULL pointer dereference for ->get_features()

2021-01-06 Thread Shradha Todi
get_features ops of pci_epc_ops may return NULL, causing NULL pointer dereference in pci_epf_test_bind function. Let us add a check for pci_epc_feature pointer in pci_epf_test_bind before we access it to avoid any such NULL pointer dereference and return -ENOTSUPP in case pci_epc_feature is not

[PATCH v2] PCI: dwc: Change size to u64 for EP outbound iATU

2021-01-06 Thread Shradha Todi
Since outbound iATU permits size to be greater than 4GB for which the support is also available, allow EP function to send u64 size instead of truncating to u32. Signed-off-by: Shradha Todi --- v1: https://lkml.org/lkml/2020/12/18/690 v2: Addressed Bjorn's review on to keep commit message

[PATCH 3/6] KVM: nSVM: cancel KVM_REQ_GET_NESTED_STATE_PAGES on nested vmexit

2021-01-06 Thread Maxim Levitsky
It is possible to exit the nested guest mode, entered by svm_set_nested_state prior to first vm entry to it (e.g due to pending event) if the nested run was not pending during the migration. In this case we must not switch to the nested msr permission bitmap. Also add a warning to catch similar

[PATCH 4/6] KVM: nSVM: correctly restore nested_run_pending on migration

2021-01-06 Thread Maxim Levitsky
The code to store it on the migration exists, but no code was restoring it. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index 6208d3a5a3fdb..c1a3d0e996add 100644 ---

[PATCH 2/6] KVM: nSVM: fix for disappearing L1->L2 event injection on L1 migration

2021-01-06 Thread Maxim Levitsky
If migration happens while L2 entry with an injected event to L2 is pending, we weren't including the event in the migration state and it would be lost leading to L2 hang. Fix this by queueing the injected event in similar manner to how we queue interrupted injections. This can be reproduced by

[PATCH 5/6] KVM: nSVM: always leave the nested state first on KVM_SET_NESTED_STATE

2021-01-06 Thread Maxim Levitsky
This should prevent bad things from happening if the user calls the KVM_SET_NESTED_STATE twice. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index

[PATCH 6/6] KVM: nSVM: mark vmcb as dirty when forcingly leaving the guest mode

2021-01-06 Thread Maxim Levitsky
We overwrite most of vmcb fields while doing so, so we must mark it as dirty. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index 3aa18016832d0..de3dbb5407206 100644 ---

Re: [PATCH 0/4] bus: sunxi-rsb: Implement power managment

2021-01-06 Thread Maxime Ripard
Hi! On Sun, Jan 03, 2021 at 05:06:31AM -0600, Samuel Holland wrote: > This series adds system (complete power down) and runtime (clock gate) > PM hooks to the RSB controller driver. Tested on A64 and H6. > > Samuel Holland (4): > bus: sunxi-rsb: Move OF match table > bus: sunxi-rsb: Split

[PATCH 1/6] KVM: SVM: create svm_process_injected_event

2021-01-06 Thread Maxim Levitsky
Refactor the logic that is dealing with parsing of an injected event to a separate function. This will be used in the next patch to deal with the events that L1 wants to inject to L2 in a way that survives migration. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/svm.c | 58

[PATCH 0/6] KVM: nSVM: few random fixes

2021-01-06 Thread Maxim Levitsky
This is a series of fixes to nested SVM, that finally makes my kvm on kvm stress test pass, and fix various other issues/regressions. Patches 1-2 are a fix for disappearing interrupts in L2 on migration which usually make the L2 hang. Same issue happens on VMX and WIP, patches for this will be

RE: [PATCH V6 08/13] interconnect: mediatek: Add interconnect provider driver

2021-01-06 Thread 陳建豪
> -Original Message- > From: Georgi Djakov [mailto:georgi.dja...@linaro.org] > Sent: Wednesday, January 06, 2021 4:14 PM > To: HenryC Chen (陳建豪) > Cc: Rob Herring; Matthias Brugger; Stephen Boyd; Ryan Case; Mark Brown; Mark > Rutland; Nicolas Boichat; Fan Chen (陳凡); JamesJJ Liao (廖建智);

Re: [PATCH 1/1] mfd: Standardise MFD_CELL_* helper names

2021-01-06 Thread Lee Jones
On Thu, 17 Dec 2020, Lee Jones wrote: > Start all helpers with "MFD_CELL_". > > Cc: Linus Walleij > Cc: Matthias Brugger > Cc: Gene Chen > Cc: linux-media...@lists.infradead.org > Signed-off-by: Lee Jones > --- > drivers/mfd/ab8500-core.c | 42 +++--- >

Re: [PATCH 1/2] arm64: dts: mt8183: config dsi node

2021-01-06 Thread Nicolas Boichat
On Wed, Jan 6, 2021 at 6:47 PM Nicolas Boichat wrote: > > On Wed, Jan 6, 2021 at 4:46 PM Hsin-Yi Wang wrote: > > > > Config dsi node for mt8183 kukui. Set panel and ports. > > > > Signed-off-by: Hsin-Yi Wang > > --- > > .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 38 +++ > >

Re: [PATCH 1/2] arm64: dts: mt8183: config dsi node

2021-01-06 Thread Nicolas Boichat
On Wed, Jan 6, 2021 at 4:46 PM Hsin-Yi Wang wrote: > > Config dsi node for mt8183 kukui. Set panel and ports. > > Signed-off-by: Hsin-Yi Wang > --- > .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 38 +++ > 1 file changed, 38 insertions(+) > > diff --git

Re: [PATCH v6 10/22] clk: mediatek: Add MT8192 basic clocks support

2021-01-06 Thread Weiyi Lu
On Wed, 2021-01-06 at 18:25 +0800, Ikjoon Jang wrote: > On Tue, Dec 22, 2020 at 9:14 PM Weiyi Lu wrote: > > > > Add MT8192 basic clock providers, include topckgen, apmixedsys, > > infracfg and pericfg. > > > > Signed-off-by: Weiyi Lu > > --- > > drivers/clk/mediatek/Kconfig |8 + > >

Re: [PATCH] ia64: fix xchg() warning

2021-01-06 Thread John Paul Adrian Glaubitz
Hi! On 1/5/21 4:36 PM, Luck, Tony wrote: >> diff --git a/MAINTAINERS b/MAINTAINERS >> index 0f2e55faaf7f..b74093803154 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -8432,11 +8432,8 @@ F: drivers/i3c/ >> F: include/linux/i3c/ >> >> IA64 (Itanium) PLATFORM >> -M: Tony Luck >> -M:

Re: [PATCH v3 06/15] x86/paravirt: switch time pvops functions to use static_call()

2021-01-06 Thread Borislav Petkov
On Thu, Dec 17, 2020 at 05:31:50PM +, Michael Kelley wrote: > These Hyper-V changes are problematic as we want to keep hyperv_timer.c > architecture independent. While only the code for x86/x64 is currently > accepted upstream, code for ARM64 support is in progress. So we need > to use

Re: [RFC PATCH kernel] block: initialize block_device::bd_bdi for bdev_cache

2021-01-06 Thread Jan Kara
On Wed 06-01-21 20:29:00, Alexey Kardashevskiy wrote: > This is a workaround to fix a null derefence crash: > > [cb01f840] cb01f880 (unreliable) > [cb01f880] c0769a3c bdev_evict_inode+0x21c/0x370 > [cb01f8c0] c070bacc evict+0x11c/0x230 >

<    5   6   7   8   9   10   11   12   >