]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
authorHan Gao <gaohan@iscas.ac.cn>
Tue, 31 Mar 2026 17:12:48 +0000 (01:12 +0800)
committerInochi Amaoto <inochiama@gmail.com>
Tue, 2 Jun 2026 22:16:19 +0000 (06:16 +0800)
SG2042's PCIe root complexes are cache-coherent with the CPU. Mark all
four PCIe controller nodes (pcie_rc0 through pcie_rc3) as dma-coherent
so the kernel uses coherent DMA mappings instead of non-coherent bounce
buffering.

Cc: stable@vger.kernel.org
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
Link: https://patch.msgid.link/20260331171248.973014-3-gaohan@iscas.ac.cn
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
arch/riscv/boot/dts/sophgo/sg2042.dtsi

index 9fddf3f0b3b99673653829aa93e8049b16cded34..3af77054974262b36901d6549120c8c50c6048c8 100644 (file)
                        vendor-id = <0x1f1c>;
                        device-id = <0x2042>;
                        cdns,no-bar-match-nbits = <48>;
+                       dma-coherent;
                        msi-parent = <&msi>;
                        status = "disabled";
                };
                        vendor-id = <0x1f1c>;
                        device-id = <0x2042>;
                        cdns,no-bar-match-nbits = <48>;
+                       dma-coherent;
                        msi-parent = <&msi>;
                        status = "disabled";
                };
                        vendor-id = <0x1f1c>;
                        device-id = <0x2042>;
                        cdns,no-bar-match-nbits = <48>;
+                       dma-coherent;
                        msi-parent = <&msi>;
                        status = "disabled";
                };
                        vendor-id = <0x1f1c>;
                        device-id = <0x2042>;
                        cdns,no-bar-match-nbits = <48>;
+                       dma-coherent;
                        msi-parent = <&msi>;
                        status = "disabled";
                };