[linux-yocto] [PATCH] powerpc/603: Fix handling of the DIRTY flag
From: Christophe Leroy commit 415480dce2ef03bb8335deebd2f402f475443ce0 upstream If a page is already mapped RW without the DIRTY flag, the DIRTY flag is never set and a TLB store miss exception is taken forever. This is easily reproduced with the following app: void main(void) { volatile char *ptr = mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); *ptr = *ptr; } When DIRTY flag is not set, bail out of TLB miss handler and take a minor page fault which will set the DIRTY flag. Fixes: f8b58c64eaef ("powerpc/603: let's handle PAGE_DIRTY directly") Cc: sta...@vger.kernel.org # v5.1+ Reported-by: Doug Crawford Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/80432f71194d7ee75b2f5043ecf1501cf1cca1f3.1566196646.git.christophe.le...@c-s.fr Signed-off-by: He Zhe --- This is for v5.2/standard/fsl-mpc8315e-rdb. It fixes potential system hang without any direct warning or error which has not been observed on qemuppc. It has not been ported to stable tree. arch/powerpc/kernel/head_32.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index f255e22..534dd27 100644 --- a/arch/powerpc/kernel/head_32.S +++ b/arch/powerpc/kernel/head_32.S @@ -557,9 +557,9 @@ DataStoreTLBMiss: cmplw 0,r1,r3 mfspr r2, SPRN_SPRG_PGDIR #ifdef CONFIG_SWAP - li r1, _PAGE_RW | _PAGE_PRESENT | _PAGE_ACCESSED + li r1, _PAGE_RW | _PAGE_DIRTY | _PAGE_PRESENT | _PAGE_ACCESSED #else - li r1, _PAGE_RW | _PAGE_PRESENT + li r1, _PAGE_RW | _PAGE_DIRTY | _PAGE_PRESENT #endif bge-112f lis r2, (swapper_pg_dir - PAGE_OFFSET)@ha /* if kernel address, use */ -- 2.7.4 -- ___ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto
[linux-yocto] [PATCH v5.2] cn96xx: Another patch series for the cn96xx SoC support
Hi Bruce, Here is another patch series got from Marvell for the cn96xx SoC support. It mainly include some fixes for the mmc and Ethernet. Please help me merge this into both v5.2/standard/cn96xx and v5.2/standard/preempt-rt/cn96xx branch. The following changes since commit d186856ba1914ca0fbf715fe9b0f31067dd517a4: mmc: cavium: Drop the aligned check for the dma address (2019-09-20 00:23:49 -0400) are available in the Git repository at: https://github.com/haokexin/linux v5.2/standard/cn96xx for you to fetch changes up to 8ddd7904ae8f42c95c7b13bb877e663d39e802ac: octeontx2-af: Add T98 devid to PTP id table (2019-09-23 17:02:17 +0800) Christina Jacob (2): octeontx2-pf: Disply the link detected status in ethtool command net: thunderx: Do a PCS reset upon SGMII link toggle Geetha sowjanya (1): octeontx2-pf: Ignore NPC parser layer errors Hao Zheng (2): octeontx2-af: add parser support for DSA, extended DSA and eDSA octeontx2-af: combine LB_STAG and LB_QINQ to one LB ltype Peter Swain (4): mmc: cavium: reorganize before vqmmc switching mmc: cavium: slot switch by vqmmc/gpio mmc: cavium: do not drop bus lock in tuning mmc: cavium: use calibrated timing taps Subbaraya Sundeep (8): octeontx2-pf: Fix memory leaks octeontx2-af: Change message level to debug octeontx2-af: Enable odd number of AF VFs also octeontx2-pf: Use helper function for LBK VF octeontx2-af: Use nix_smq_flush function octeontx2-af: Always enable mcam rules for TX octeontx2-af: Transmit packets during SMQ flush octeontx2-pf: Add barrier to sync interface status Sunil Goutham (8): octeontx2-af: Fix programming and logical issues octeontx2-pf: Fix VF id in the FLR handler octeontx2-pf: Fix interface init and shutdown sequence octeontx2-pf: Use post increment STP to free pointers to Aura octeontx2-pf: Add debug messages for MSIX alloc failure arm64: Increase NR_IRQS to a large number octeontx2-af: Fix compilation issue octeontx2-pf: Fix memory leak while freeing SQBs Tomasz Michalec (1): octeontx2-af: Add T98 devid to PTP id table Vidhya Vidhyaraman (1): octeontx2-af: Add programmed macaddr to RVU pfvf Documentation/devicetree/bindings/mmc/cavium-mmc.txt | 10 +- arch/arm64/include/asm/irq.h | 9 ++ drivers/mmc/host/cavium-thunderx.c| 97 ++--- drivers/mmc/host/cavium.c | 227 - drivers/mmc/host/cavium.h | 7 +- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 35 ++--- drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 6 +- drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 2 +- drivers/net/ethernet/marvell/octeontx2/af/npc.h | 9 +- drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h | 731 +--- drivers/net/ethernet/marvell/octeontx2/af/ptp.c | 4 + drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 12 -- drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 26 ++-- drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c | 23 ++- drivers/net/ethernet/marvell/octeontx2/af/rvu_fixes.c | 14 ++ drivers/net/ethernet/marvell/octeontx2/af/rvu_fixes.h | 21 +++ drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 26 ++-- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 17 +-- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c| 15 +- drivers/net/ethernet/marvell/octeontx2/nic/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c | 49 ++- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h | 29 ++-- drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c | 33 - drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 57 +--- drivers/net/ethernet/marvell/octeontx2/nic/otx2_smqvf.c | 291 + drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c| 9 ++ drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h| 6 +- drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 32 ++-- 28 files changed, 1463 insertions(+), 336 deletions(-) create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/rvu_fixes.h create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_smqvf.c Thanks, Kevin signature.asc Description: PGP signature -- ___ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto
[linux-yocto] [kernel v5.2/standard/xlnx-soc][PATCH 1/3] ARM: dts: zc702: Fix I2C bus warnings
From: Quanyang Wang The dtc has new checks for I2C and SPI buses. Fix the warnings in node names and unit-addresses. arch/arm/boot/dts/zynq-zc702.dts:187.13-190.6: Warning (i2c_bus_reg): /amba/i2c@e0004000/i2c-mux@74/i2c@7/hwmon@52: I2C bus unit address format error, expected "34" arch/arm/boot/dts/zynq-zc702.dts:191.13-194.6: Warning (i2c_bus_reg): /amba/i2c@e0004000/i2c-mux@74/i2c@7/hwmon@53: I2C bus unit address format error, expected "35" arch/arm/boot/dts/zynq-zc702.dts:195.13-198.6: Warning (i2c_bus_reg): /amba/i2c@e0004000/i2c-mux@74/i2c@7/hwmon@54: I2C bus unit address format error, expected "36" Signed-off-by: Quanyang Wang --- arch/arm/boot/dts/zynq-zc702.dts | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/zynq-zc702.dts b/arch/arm/boot/dts/zynq-zc702.dts index 0071b2b7f853..c9940fb366ce 100644 --- a/arch/arm/boot/dts/zynq-zc702.dts +++ b/arch/arm/boot/dts/zynq-zc702.dts @@ -184,17 +184,17 @@ #address-cells = <1>; #size-cells = <0>; reg = <7>; - hwmon@52 { + hwmon@34 { compatible = "ti,ucd9248"; - reg = <52>; + reg = <0x34>; }; - hwmon@53 { + hwmon@35 { compatible = "ti,ucd9248"; - reg = <53>; + reg = <0x35>; }; - hwmon@54 { + hwmon@36 { compatible = "ti,ucd9248"; - reg = <54>; + reg = <0x36>; }; }; }; -- 2.17.1 -- ___ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto
[linux-yocto] [kernel v5.2/standard/xlnx-soc][PATCH 2/3] arm: dts: zynq: enablement of coresight topology
From: Zumeng Chen This patch is to build the coresight topology structure of zynq-7000 series according to the docs of coresight and userguide of zynq-7000. Signed-off-by: Zumeng Chen Signed-off-by: Quanyang Wang --- arch/arm/boot/dts/zynq-7000.dtsi | 155 +++ 1 file changed, 155 insertions(+) diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi index 07bd31d2ed4a..5602f4f3ad1c 100644 --- a/arch/arm/boot/dts/zynq-7000.dtsi +++ b/arch/arm/boot/dts/zynq-7000.dtsi @@ -419,5 +419,160 @@ reg = <0xf8005000 0x1000>; timeout-sec = <10>; }; + + etb@f8801000 { + compatible = "arm,coresight-etb10", "arm,primecell"; + reg = <0xf8801000 0x1000>; + clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>; + clock-names = "apb_pclk", "dbg_trc", "dbg_apb"; + + port { + etb_in_port: endpoint { + remote-endpoint = <&replicator_out_port1>; + }; + }; + }; + + tpiu@f8803000 { + compatible = "arm,coresight-tpiu", "arm,primecell"; + reg = <0xf8803000 0x1000>; + clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>; + clock-names = "apb_pclk", "dbg_trc", "dbg_apb"; + + port { + tpiu_in_port: endpoint { + slave-mode; + remote-endpoint = <&replicator_out_port0>; + }; + }; + }; + + funnel@0,f8804000 { + compatible = "arm,coresight-funnel", "arm,primecell"; + reg = <0xf8804000 0x1000>; + clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>; + clock-names = "apb_pclk", "dbg_trc", "dbg_apb"; + + /* funnel output ports */ + out-ports { + port { + funnel_out_port: endpoint { + remote-endpoint = + <&replicator_in_port0>; + }; + }; + }; + + in-ports { + #address-cells = <1>; + #size-cells = <0>; + + /* funnel input ports */ + port@0 { + reg = <0>; + funnel0_in_port0: endpoint { + slave-mode; + remote-endpoint = <&ptm0_out_port>; + }; + }; + + port@1 { + reg = <1>; + funnel0_in_port1: endpoint { + slave-mode; + remote-endpoint = <&ptm1_out_port>; + }; + }; + + port@2 { + reg = <2>; + funnel0_in_port2: endpoint { + slave-mode; + }; + }; + + port@3 { + reg = <3>; + funnel0_in_port3: endpoint { + slave-mode; + remote-endpoint = <&itm_out_port>; + }; + }; + /*The other input ports are not connect to anything */ + }; + }; + + replicator { + compatible = "arm,coresight-replicator"; + clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>; + clock-names = "apb_pclk", "dbg_trc", "dbg_apb"; + + out-ports { + #address-cells = <1>; + #size-cells = <0>; + + /* replicator output ports */ + port@0 { + reg = <0>; + replicator_out_port0: endpoint { +
[linux-yocto] [kernel v5.2/standard/xlnx-soc][PATCH 3/3] mmc: sdhci-of-arasan: Fix the incorrect soft reset operation when runtime resuming
From: Quanyang Wang Because of upstream commit c6303c5d52d5 ("mmc: sdhci-sprd: Fix the incorrect soft reset operation when runtime resuming"), add a new parameter to sdhci_runtime_resume_host. Signed-off-by: Quanyang Wang --- drivers/mmc/host/sdhci-of-arasan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 7a7b35c9009f..c72382d9ea9d 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -720,7 +720,7 @@ static int sdhci_arasan_runtime_resume(struct device *dev) return ret; } - ret = sdhci_runtime_resume_host(host); + ret = sdhci_runtime_resume_host(host, 0); if (ret) goto out; -- 2.17.1 -- ___ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto
[linux-yocto] [kernel v5.2/standard/xlnx-soc][PATCH 0/3] patches for zynq7000
From: Quanyang Wang Hi Bruce, Would you please help merge these patches to linux-yocto v5.2/standard/xlnx-soc branch? Thanks, Quanyang Quanyang Wang (2): ARM: dts: zc702: Fix I2C bus warnings mmc: sdhci-of-arasan: Fix the incorrect soft reset operation when runtime resuming Zumeng Chen (1): arm: dts: zynq: enablement of coresight topology arch/arm/boot/dts/zynq-7000.dtsi | 155 + arch/arm/boot/dts/zynq-zc702.dts | 12 +-- drivers/mmc/host/sdhci-of-arasan.c | 2 +- 3 files changed, 162 insertions(+), 7 deletions(-) -- 2.17.1 -- ___ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto
[linux-yocto] [kernel-cache][PATCH 0/1] xilinx-zynq: enable coresight and xadc kernel options for xilinx-zynq bsp
From: Quanyang Wang Hi Bruce, Would you please help merge this patch to yocto-kernel-cache's branch yocto-5.2 ? Thanks, Quanyang Quanyang Wang (1): xilinx-zynq: enable coresight and xadc kernel options for xilinx-zynq bsp bsp/xilinx-zynq/xilinx-zynq.cfg | 9 + 1 file changed, 9 insertions(+) -- 2.17.1 -- ___ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto
[linux-yocto] [kernel-cache][PATCH 1/1] xilinx-zynq: enable coresight and xadc kernel options for xilinx-zynq bsp
From: Quanyang Wang Signed-off-by: Quanyang Wang --- bsp/xilinx-zynq/xilinx-zynq.cfg | 9 + 1 file changed, 9 insertions(+) diff --git a/bsp/xilinx-zynq/xilinx-zynq.cfg b/bsp/xilinx-zynq/xilinx-zynq.cfg index 3b4cc64d..5cb53294 100644 --- a/bsp/xilinx-zynq/xilinx-zynq.cfg +++ b/bsp/xilinx-zynq/xilinx-zynq.cfg @@ -197,3 +197,12 @@ CONFIG_IIO_SW_DEVICE=y CONFIG_IIO_SW_TRIGGER=y CONFIG_OF_OVERLAY=y CONFIG_OF_CONFIGFS=y + +CONFIG_CORESIGHT=y +CONFIG_CORESIGHT_LINKS_AND_SINKS=y +CONFIG_CORESIGHT_LINK_AND_SINK_TMC=y +CONFIG_CORESIGHT_SINK_TPIU=y +CONFIG_CORESIGHT_SINK_ETBV10=y +CONFIG_CORESIGHT_SOURCE_ETM3X=y + +CONFIG_XILINX_XADC=y -- 2.17.1 -- ___ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto