* [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence
@ 2026-03-31 17:12 Han Gao
2026-03-31 17:12 ` [PATCH 1/2] dt-bindings: pci: sophgo: Add dma-coherent property for SG2042 Han Gao
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Han Gao @ 2026-03-31 17:12 UTC (permalink / raw)
To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Chen Wang, Inochi Amaoto, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Han Gao, Zixian Zeng
Cc: linux-pci, devicetree, sophgo, linux-kernel, linux-riscv, Han Gao
The SG2042 hardware design supports cache-coherent PCIe.
With recent firmware updates [1], it allows to use DMA coherent.
[1] https://github.com/sophgo/edk2-non-osi/commit/017a5aea26a066fd2bf501b7893937183165af36
Han Gao (2):
dt-bindings: pci: sophgo: Add dma-coherent property for SG2042
riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
.../devicetree/bindings/pci/sophgo,sg2042-pcie-host.yaml | 3 +++
arch/riscv/boot/dts/sophgo/sg2042.dtsi | 4 ++++
2 files changed, 7 insertions(+)
--
2.47.3
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/2] dt-bindings: pci: sophgo: Add dma-coherent property for SG2042
2026-03-31 17:12 [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence Han Gao
@ 2026-03-31 17:12 ` Han Gao
2026-04-08 14:41 ` Rob Herring (Arm)
2026-03-31 17:12 ` [PATCH 2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers Han Gao
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Han Gao @ 2026-03-31 17:12 UTC (permalink / raw)
To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Chen Wang, Inochi Amaoto, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Han Gao, Zixian Zeng
Cc: linux-pci, devicetree, sophgo, linux-kernel, linux-riscv, Han Gao
Add dma-coherent as an allowed property in the SG2042 PCIe host
controller binding. SG2042's PCIe root complexes are cache-coherent
with the CPU.
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
---
.../devicetree/bindings/pci/sophgo,sg2042-pcie-host.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/pci/sophgo,sg2042-pcie-host.yaml b/Documentation/devicetree/bindings/pci/sophgo,sg2042-pcie-host.yaml
index f8b7ca57fff1..ab482488b047 100644
--- a/Documentation/devicetree/bindings/pci/sophgo,sg2042-pcie-host.yaml
+++ b/Documentation/devicetree/bindings/pci/sophgo,sg2042-pcie-host.yaml
@@ -30,6 +30,8 @@ properties:
device-id:
const: 0x2042
+ dma-coherent: true
+
msi-parent: true
allOf:
@@ -60,5 +62,6 @@ examples:
vendor-id = <0x1f1c>;
device-id = <0x2042>;
cdns,no-bar-match-nbits = <48>;
+ dma-coherent;
msi-parent = <&msi>;
};
--
2.47.3
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
2026-03-31 17:12 [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence Han Gao
2026-03-31 17:12 ` [PATCH 1/2] dt-bindings: pci: sophgo: Add dma-coherent property for SG2042 Han Gao
@ 2026-03-31 17:12 ` Han Gao
2026-03-31 17:57 ` Conor Dooley
2026-04-02 8:43 ` Chen Wang
2026-05-01 16:49 ` (subset) [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence Manivannan Sadhasivam
2026-06-01 2:57 ` Inochi Amaoto
3 siblings, 2 replies; 11+ messages in thread
From: Han Gao @ 2026-03-31 17:12 UTC (permalink / raw)
To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Chen Wang, Inochi Amaoto, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Han Gao, Zixian Zeng
Cc: linux-pci, devicetree, sophgo, linux-kernel, linux-riscv, Han Gao,
stable
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>
---
arch/riscv/boot/dts/sophgo/sg2042.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
index 9fddf3f0b3b9..3af770549742 100644
--- a/arch/riscv/boot/dts/sophgo/sg2042.dtsi
+++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
@@ -417,6 +417,7 @@ pcie_rc0: pcie@7060000000 {
vendor-id = <0x1f1c>;
device-id = <0x2042>;
cdns,no-bar-match-nbits = <48>;
+ dma-coherent;
msi-parent = <&msi>;
status = "disabled";
};
@@ -439,6 +440,7 @@ pcie_rc1: pcie@7060800000 {
vendor-id = <0x1f1c>;
device-id = <0x2042>;
cdns,no-bar-match-nbits = <48>;
+ dma-coherent;
msi-parent = <&msi>;
status = "disabled";
};
@@ -461,6 +463,7 @@ pcie_rc2: pcie@7062000000 {
vendor-id = <0x1f1c>;
device-id = <0x2042>;
cdns,no-bar-match-nbits = <48>;
+ dma-coherent;
msi-parent = <&msi>;
status = "disabled";
};
@@ -483,6 +486,7 @@ pcie_rc3: pcie@7062800000 {
vendor-id = <0x1f1c>;
device-id = <0x2042>;
cdns,no-bar-match-nbits = <48>;
+ dma-coherent;
msi-parent = <&msi>;
status = "disabled";
};
--
2.47.3
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
2026-03-31 17:12 ` [PATCH 2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers Han Gao
@ 2026-03-31 17:57 ` Conor Dooley
2026-04-02 8:43 ` Chen Wang
1 sibling, 0 replies; 11+ messages in thread
From: Conor Dooley @ 2026-03-31 17:57 UTC (permalink / raw)
To: Han Gao
Cc: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Chen Wang, Inochi Amaoto, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Zixian Zeng,
linux-pci, devicetree, sophgo, linux-kernel, linux-riscv, Han Gao,
stable
[-- Attachment #1: Type: text/plain, Size: 1821 bytes --]
On Wed, Apr 01, 2026 at 01:12:48AM +0800, Han Gao wrote:
> 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.
Worth pointing out I guess that this property is needed, despite riscv
being coherent by default, because the whole bus is marked
dma-noncoherent.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
> ---
> arch/riscv/boot/dts/sophgo/sg2042.dtsi | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> index 9fddf3f0b3b9..3af770549742 100644
> --- a/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> +++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> @@ -417,6 +417,7 @@ pcie_rc0: pcie@7060000000 {
> vendor-id = <0x1f1c>;
> device-id = <0x2042>;
> cdns,no-bar-match-nbits = <48>;
> + dma-coherent;
> msi-parent = <&msi>;
> status = "disabled";
> };
> @@ -439,6 +440,7 @@ pcie_rc1: pcie@7060800000 {
> vendor-id = <0x1f1c>;
> device-id = <0x2042>;
> cdns,no-bar-match-nbits = <48>;
> + dma-coherent;
> msi-parent = <&msi>;
> status = "disabled";
> };
> @@ -461,6 +463,7 @@ pcie_rc2: pcie@7062000000 {
> vendor-id = <0x1f1c>;
> device-id = <0x2042>;
> cdns,no-bar-match-nbits = <48>;
> + dma-coherent;
> msi-parent = <&msi>;
> status = "disabled";
> };
> @@ -483,6 +486,7 @@ pcie_rc3: pcie@7062800000 {
> vendor-id = <0x1f1c>;
> device-id = <0x2042>;
> cdns,no-bar-match-nbits = <48>;
> + dma-coherent;
> msi-parent = <&msi>;
> status = "disabled";
> };
> --
> 2.47.3
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
2026-03-31 17:12 ` [PATCH 2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers Han Gao
2026-03-31 17:57 ` Conor Dooley
@ 2026-04-02 8:43 ` Chen Wang
2026-04-02 10:30 ` Han Gao
1 sibling, 1 reply; 11+ messages in thread
From: Chen Wang @ 2026-04-02 8:43 UTC (permalink / raw)
To: Han Gao, Bjorn Helgaas, Lorenzo Pieralisi,
Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Inochi Amaoto, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Zixian Zeng
Cc: linux-pci, devicetree, sophgo, linux-kernel, linux-riscv, Han Gao,
stable
On 4/1/2026 1:12 AM, Han Gao wrote:
> 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>
> ---
> arch/riscv/boot/dts/sophgo/sg2042.dtsi | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> index 9fddf3f0b3b9..3af770549742 100644
> --- a/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> +++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> @@ -417,6 +417,7 @@ pcie_rc0: pcie@7060000000 {
> vendor-id = <0x1f1c>;
> device-id = <0x2042>;
> cdns,no-bar-match-nbits = <48>;
> + dma-coherent;
> msi-parent = <&msi>;
> status = "disabled";
> };
> @@ -439,6 +440,7 @@ pcie_rc1: pcie@7060800000 {
> vendor-id = <0x1f1c>;
> device-id = <0x2042>;
> cdns,no-bar-match-nbits = <48>;
> + dma-coherent;
> msi-parent = <&msi>;
> status = "disabled";
> };
> @@ -461,6 +463,7 @@ pcie_rc2: pcie@7062000000 {
> vendor-id = <0x1f1c>;
> device-id = <0x2042>;
> cdns,no-bar-match-nbits = <48>;
> + dma-coherent;
> msi-parent = <&msi>;
> status = "disabled";
> };
> @@ -483,6 +486,7 @@ pcie_rc3: pcie@7062800000 {
> vendor-id = <0x1f1c>;
> device-id = <0x2042>;
> cdns,no-bar-match-nbits = <48>;
> + dma-coherent;
> msi-parent = <&msi>;
> status = "disabled";
> };
For binding changes, LGTM. But I have a question regarding this change
in dtsi.
From your patch description, I understand that enabling the
`dma-coherent` attribute requires upgrading the firmware `fip.bin`. If a
user only updates the kernel (which is relatively easy) but forgets or
doesn't know how to upgrade the firmware, enabling `coherent` might
cause the kernel to skip all explicit cache maintenance operations.
Could this pose a subtle risk?
Wouldn't it be safer to leave the upstream unchanged in dtsi and allow
users to add the `dma-coherent` attribute themselves after they upgrade
the firmware?
I would greatly appreciate your guidance.
Thanks,
Chen
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
2026-04-02 8:43 ` Chen Wang
@ 2026-04-02 10:30 ` Han Gao
0 siblings, 0 replies; 11+ messages in thread
From: Han Gao @ 2026-04-02 10:30 UTC (permalink / raw)
To: Chen Wang
Cc: Han Gao, Bjorn Helgaas, Lorenzo Pieralisi,
Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Inochi Amaoto, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Zixian Zeng,
linux-pci, devicetree, sophgo, linux-kernel, linux-riscv, stable
On Thu, Apr 2, 2026 at 4:44 PM Chen Wang <unicorn_wang@outlook.com> wrote:
>
>
> On 4/1/2026 1:12 AM, Han Gao wrote:
> > 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>
> > ---
> > arch/riscv/boot/dts/sophgo/sg2042.dtsi | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> > index 9fddf3f0b3b9..3af770549742 100644
> > --- a/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> > +++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
> > @@ -417,6 +417,7 @@ pcie_rc0: pcie@7060000000 {
> > vendor-id = <0x1f1c>;
> > device-id = <0x2042>;
> > cdns,no-bar-match-nbits = <48>;
> > + dma-coherent;
> > msi-parent = <&msi>;
> > status = "disabled";
> > };
> > @@ -439,6 +440,7 @@ pcie_rc1: pcie@7060800000 {
> > vendor-id = <0x1f1c>;
> > device-id = <0x2042>;
> > cdns,no-bar-match-nbits = <48>;
> > + dma-coherent;
> > msi-parent = <&msi>;
> > status = "disabled";
> > };
> > @@ -461,6 +463,7 @@ pcie_rc2: pcie@7062000000 {
> > vendor-id = <0x1f1c>;
> > device-id = <0x2042>;
> > cdns,no-bar-match-nbits = <48>;
> > + dma-coherent;
> > msi-parent = <&msi>;
> > status = "disabled";
> > };
> > @@ -483,6 +486,7 @@ pcie_rc3: pcie@7062800000 {
> > vendor-id = <0x1f1c>;
> > device-id = <0x2042>;
> > cdns,no-bar-match-nbits = <48>;
> > + dma-coherent;
> > msi-parent = <&msi>;
> > status = "disabled";
> > };
> For binding changes, LGTM. But I have a question regarding this change
> in dtsi.
>
> From your patch description, I understand that enabling the
> `dma-coherent` attribute requires upgrading the firmware `fip.bin`. If a
> user only updates the kernel (which is relatively easy) but forgets or
> doesn't know how to upgrade the firmware, enabling `coherent` might
> cause the kernel to skip all explicit cache maintenance operations.
> Could this pose a subtle risk?
>
> Wouldn't it be safer to leave the upstream unchanged in dtsi and allow
> users to add the `dma-coherent` attribute themselves after they upgrade
> the firmware?
In the firmware, fip.bin and devicetree are distributed together.
So matching issues are unlikely.
>
> I would greatly appreciate your guidance.
>
> Thanks,
>
> Chen
>
>
Thanks,
Han
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] dt-bindings: pci: sophgo: Add dma-coherent property for SG2042
2026-03-31 17:12 ` [PATCH 1/2] dt-bindings: pci: sophgo: Add dma-coherent property for SG2042 Han Gao
@ 2026-04-08 14:41 ` Rob Herring (Arm)
0 siblings, 0 replies; 11+ messages in thread
From: Rob Herring (Arm) @ 2026-04-08 14:41 UTC (permalink / raw)
To: Han Gao
Cc: Inochi Amaoto, Conor Dooley, Bjorn Helgaas, devicetree, Albert Ou,
linux-riscv, Lorenzo Pieralisi, Alexandre Ghiti,
Manivannan Sadhasivam, Palmer Dabbelt, Krzysztof Wilczyński,
Chen Wang, Zixian Zeng, Krzysztof Kozlowski, Han Gao,
linux-kernel, sophgo, linux-pci, Paul Walmsley
On Wed, 01 Apr 2026 01:12:47 +0800, Han Gao wrote:
> Add dma-coherent as an allowed property in the SG2042 PCIe host
> controller binding. SG2042's PCIe root complexes are cache-coherent
> with the CPU.
>
> Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
> ---
> .../devicetree/bindings/pci/sophgo,sg2042-pcie-host.yaml | 3 +++
> 1 file changed, 3 insertions(+)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: (subset) [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence
2026-03-31 17:12 [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence Han Gao
2026-03-31 17:12 ` [PATCH 1/2] dt-bindings: pci: sophgo: Add dma-coherent property for SG2042 Han Gao
2026-03-31 17:12 ` [PATCH 2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers Han Gao
@ 2026-05-01 16:49 ` Manivannan Sadhasivam
2026-06-01 2:57 ` Inochi Amaoto
3 siblings, 0 replies; 11+ messages in thread
From: Manivannan Sadhasivam @ 2026-05-01 16:49 UTC (permalink / raw)
To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen Wang,
Inochi Amaoto, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti, Zixian Zeng, Han Gao
Cc: linux-pci, devicetree, sophgo, linux-kernel, linux-riscv, Han Gao
On Wed, 01 Apr 2026 01:12:46 +0800, Han Gao wrote:
> The SG2042 hardware design supports cache-coherent PCIe.
>
> With recent firmware updates [1], it allows to use DMA coherent.
>
> [1] https://github.com/sophgo/edk2-non-osi/commit/017a5aea26a066fd2bf501b7893937183165af36
>
> Han Gao (2):
> dt-bindings: pci: sophgo: Add dma-coherent property for SG2042
> riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
>
> [...]
Applied, thanks!
[1/2] dt-bindings: pci: sophgo: Add dma-coherent property for SG2042
commit: 50c94a2351458ee6cb6e52c5678f099534366830
Best regards,
--
Manivannan Sadhasivam <mani@kernel.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: (subset) [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence
2026-03-31 17:12 [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence Han Gao
` (2 preceding siblings ...)
2026-05-01 16:49 ` (subset) [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence Manivannan Sadhasivam
@ 2026-06-01 2:57 ` Inochi Amaoto
2026-06-02 9:21 ` Inochi Amaoto
3 siblings, 1 reply; 11+ messages in thread
From: Inochi Amaoto @ 2026-06-01 2:57 UTC (permalink / raw)
To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Chen Wang, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti, Zixian Zeng, Han Gao
Cc: Inochi Amaoto, linux-pci, devicetree, sophgo, linux-kernel,
linux-riscv, Han Gao
On Wed, 01 Apr 2026 01:12:46 +0800, Han Gao wrote:
> The SG2042 hardware design supports cache-coherent PCIe.
>
> With recent firmware updates [1], it allows to use DMA coherent.
>
> [1] https://github.com/sophgo/edk2-non-osi/commit/017a5aea26a066fd2bf501b7893937183165af36
>
> Han Gao (2):
> dt-bindings: pci: sophgo: Add dma-coherent property for SG2042
> riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
>
> [...]
Applied to for-next, thanks!
[2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
https://github.com/sophgo/linux/commit/e728a57834d06b9bbf9bbed69e3ea16416d257d5
Thanks,
Inochi
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: (subset) [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence
2026-06-01 2:57 ` Inochi Amaoto
@ 2026-06-02 9:21 ` Inochi Amaoto
2026-06-02 22:15 ` Inochi Amaoto
0 siblings, 1 reply; 11+ messages in thread
From: Inochi Amaoto @ 2026-06-02 9:21 UTC (permalink / raw)
To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Chen Wang, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti, Zixian Zeng, Han Gao
Cc: Inochi Amaoto, linux-pci, devicetree, sophgo, linux-kernel,
linux-riscv, Han Gao
On Mon, Jun 01, 2026 at 10:57:24AM +0800, Inochi Amaoto wrote:
> On Wed, 01 Apr 2026 01:12:46 +0800, Han Gao wrote:
> > The SG2042 hardware design supports cache-coherent PCIe.
> >
> > With recent firmware updates [1], it allows to use DMA coherent.
> >
> > [1] https://github.com/sophgo/edk2-non-osi/commit/017a5aea26a066fd2bf501b7893937183165af36
> >
> > Han Gao (2):
> > dt-bindings: pci: sophgo: Add dma-coherent property for SG2042
> > riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
> >
> > [...]
>
> Applied to for-next, thanks!
>
> [2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
> https://github.com/sophgo/linux/commit/e728a57834d06b9bbf9bbed69e3ea16416d257d5
>
> Thanks,
> Inochi
>
Revoke this apply due to https://lore.kernel.org/sophgo/ahu57vcS0oOFmCI9@mertle/
Regards,
Inochi
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: (subset) [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence
2026-06-02 9:21 ` Inochi Amaoto
@ 2026-06-02 22:15 ` Inochi Amaoto
0 siblings, 0 replies; 11+ messages in thread
From: Inochi Amaoto @ 2026-06-02 22:15 UTC (permalink / raw)
To: Bjorn Helgaas, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Chen Wang, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti, Zixian Zeng, Han Gao
Cc: Inochi Amaoto, linux-pci, devicetree, sophgo, linux-kernel,
linux-riscv, Han Gao
On Tue, Jun 02, 2026 at 05:21:32PM +0800, Inochi Amaoto wrote:
> On Mon, Jun 01, 2026 at 10:57:24AM +0800, Inochi Amaoto wrote:
> > On Wed, 01 Apr 2026 01:12:46 +0800, Han Gao wrote:
> > > The SG2042 hardware design supports cache-coherent PCIe.
> > >
> > > With recent firmware updates [1], it allows to use DMA coherent.
> > >
> > > [1] https://github.com/sophgo/edk2-non-osi/commit/017a5aea26a066fd2bf501b7893937183165af36
> > >
> > > Han Gao (2):
> > > dt-bindings: pci: sophgo: Add dma-coherent property for SG2042
> > > riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
> > >
> > > [...]
> >
> > Applied to for-next, thanks!
> >
> > [2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers
> > https://github.com/sophgo/linux/commit/e728a57834d06b9bbf9bbed69e3ea16416d257d5
> >
> > Thanks,
> > Inochi
> >
>
> Revoke this apply due to https://lore.kernel.org/sophgo/ahu57vcS0oOFmCI9@mertle/
>
Reapply this as this error is resolved.
Regards,
Inochi
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-06-02 22:15 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-31 17:12 [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence Han Gao
2026-03-31 17:12 ` [PATCH 1/2] dt-bindings: pci: sophgo: Add dma-coherent property for SG2042 Han Gao
2026-04-08 14:41 ` Rob Herring (Arm)
2026-03-31 17:12 ` [PATCH 2/2] riscv: dts: sophgo: Add dma-coherent to SG2042 PCIe controllers Han Gao
2026-03-31 17:57 ` Conor Dooley
2026-04-02 8:43 ` Chen Wang
2026-04-02 10:30 ` Han Gao
2026-05-01 16:49 ` (subset) [PATCH 0/2] riscv: sophgo: sg2042: Enable PCIe DMA coherence Manivannan Sadhasivam
2026-06-01 2:57 ` Inochi Amaoto
2026-06-02 9:21 ` Inochi Amaoto
2026-06-02 22:15 ` Inochi Amaoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox