devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Mark Ethernet devices on sa8775p as DMA-coherent
@ 2024-05-15  0:06 Sagar Cheluvegowda
  2024-05-15  0:06 ` [PATCH v4 1/2] arm64: dts: qcom: sa8775p: mark ethernet devices " Sagar Cheluvegowda
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Sagar Cheluvegowda @ 2024-05-15  0:06 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bartosz Golaszewski, Andrew Halaney, Vinod Koul,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Bhupesh Sharma
  Cc: kernel, linux-arm-msm, devicetree, linux-kernel, netdev,
	Sagar Cheluvegowda

To: Bjorn Andersson <andersson@kernel.org>
To: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
To: Andrew Halaney <ahalaney@redhat.com>
To: Vinod Koul <vkoul@kernel.org>
To: David S. Miller <davem@davemloft.net>
To: Eric Dumazet <edumazet@google.com>
To: Jakub Kicinski <kuba@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>
To: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Cc: kernel@quicinc.com
Cc: linux-arm-msm@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: netdev@vger.kernel.org

Changes in v4:
Move "dma-coherent" property within qcom,ethqos.yaml file next to "iommu" property.
- Link to v3: https://lore.kernel.org/r/20240507-mark_ethernet_devices_dma_coherent-v3-0-dbe70d0fa971@quicinc.com

Changes in v3:
Update the schema to specify Ethernet devices as "dma-coherent".
- Link: https://lore.kernel.org/r/20240425-mark_ethernet_devices_dma_coherent-v1-1-ad0755044e26@quicinc.com

Changes in v2:
Remove internal change-id from commit message
- Link to v1: https://lore.kernel.org/r/20240425-mark_ethernet_devices_dma_coherent-v1-1-ad0755044e26@quicinc.com

---
---
Sagar Cheluvegowda (2):
      arm64: dts: qcom: sa8775p: mark ethernet devices as DMA-coherent
      dt-bindings: net: qcom: ethernet: Allow dma-coherent

 Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 2 ++
 arch/arm64/boot/dts/qcom/sa8775p.dtsi                  | 2 ++
 2 files changed, 4 insertions(+)
---
base-commit: a93289b830ce783955b22fbe5d1274a464c05acf
change-id: 20240425-mark_ethernet_devices_dma_coherent-6c6154b84165

Best regards,
-- 
Sagar Cheluvegowda <quic_scheluve@quicinc.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v4 1/2] arm64: dts: qcom: sa8775p: mark ethernet devices as DMA-coherent
  2024-05-15  0:06 [PATCH v4 0/2] Mark Ethernet devices on sa8775p as DMA-coherent Sagar Cheluvegowda
@ 2024-05-15  0:06 ` Sagar Cheluvegowda
  2024-05-15  0:06 ` [PATCH v4 2/2] dt-bindings: net: qcom: ethernet: Allow dma-coherent Sagar Cheluvegowda
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Sagar Cheluvegowda @ 2024-05-15  0:06 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bartosz Golaszewski, Andrew Halaney, Vinod Koul,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Bhupesh Sharma
  Cc: kernel, linux-arm-msm, devicetree, linux-kernel, netdev,
	Sagar Cheluvegowda

Ethernet devices are cache coherent, mark it as such in the dtsi.

Fixes: ff499a0fbb23 ("arm64: dts: qcom: sa8775p: add the first 1Gb ethernet interface")
Fixes: e952348a7cc7 ("arm64: dts: qcom: sa8775p: add a node for EMAC1")
Signed-off-by: Sagar Cheluvegowda <quic_scheluve@quicinc.com>
---
 arch/arm64/boot/dts/qcom/sa8775p.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
index 231cea1f0fa8..5ab4ca978837 100644
--- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi
+++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
@@ -2504,6 +2504,7 @@ ethernet1: ethernet@23000000 {
 			phy-names = "serdes";
 
 			iommus = <&apps_smmu 0x140 0xf>;
+			dma-coherent;
 
 			snps,tso;
 			snps,pbl = <32>;
@@ -2538,6 +2539,7 @@ ethernet0: ethernet@23040000 {
 			phy-names = "serdes";
 
 			iommus = <&apps_smmu 0x120 0xf>;
+			dma-coherent;
 
 			snps,tso;
 			snps,pbl = <32>;

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v4 2/2] dt-bindings: net: qcom: ethernet: Allow dma-coherent
  2024-05-15  0:06 [PATCH v4 0/2] Mark Ethernet devices on sa8775p as DMA-coherent Sagar Cheluvegowda
  2024-05-15  0:06 ` [PATCH v4 1/2] arm64: dts: qcom: sa8775p: mark ethernet devices " Sagar Cheluvegowda
@ 2024-05-15  0:06 ` Sagar Cheluvegowda
  2024-05-15  8:11   ` Krzysztof Kozlowski
  2024-05-17  2:40 ` [PATCH v4 0/2] Mark Ethernet devices on sa8775p as DMA-coherent patchwork-bot+netdevbpf
  2024-05-29  2:02 ` (subset) " Bjorn Andersson
  3 siblings, 1 reply; 6+ messages in thread
From: Sagar Cheluvegowda @ 2024-05-15  0:06 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bartosz Golaszewski, Andrew Halaney, Vinod Koul,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Bhupesh Sharma
  Cc: kernel, linux-arm-msm, devicetree, linux-kernel, netdev,
	Sagar Cheluvegowda

On SA8775P, Ethernet DMA controller is coherent with the CPU.
allow specifying that.

Signed-off-by: Sagar Cheluvegowda <quic_scheluve@quicinc.com>
---
 Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
index 69a337c7e345..6672327358bc 100644
--- a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
@@ -61,6 +61,8 @@ properties:
   iommus:
     maxItems: 1
 
+  dma-coherent: true
+
   phys: true
 
   phy-names:

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v4 2/2] dt-bindings: net: qcom: ethernet: Allow dma-coherent
  2024-05-15  0:06 ` [PATCH v4 2/2] dt-bindings: net: qcom: ethernet: Allow dma-coherent Sagar Cheluvegowda
@ 2024-05-15  8:11   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-05-15  8:11 UTC (permalink / raw)
  To: Sagar Cheluvegowda, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bartosz Golaszewski,
	Andrew Halaney, Vinod Koul, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Bhupesh Sharma
  Cc: kernel, linux-arm-msm, devicetree, linux-kernel, netdev

On 15/05/2024 02:06, Sagar Cheluvegowda wrote:
> On SA8775P, Ethernet DMA controller is coherent with the CPU.
> allow specifying that.
> 
> Signed-off-by: Sagar Cheluvegowda <quic_scheluve@quicinc.com>
> ---
>  Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v4 0/2] Mark Ethernet devices on sa8775p as DMA-coherent
  2024-05-15  0:06 [PATCH v4 0/2] Mark Ethernet devices on sa8775p as DMA-coherent Sagar Cheluvegowda
  2024-05-15  0:06 ` [PATCH v4 1/2] arm64: dts: qcom: sa8775p: mark ethernet devices " Sagar Cheluvegowda
  2024-05-15  0:06 ` [PATCH v4 2/2] dt-bindings: net: qcom: ethernet: Allow dma-coherent Sagar Cheluvegowda
@ 2024-05-17  2:40 ` patchwork-bot+netdevbpf
  2024-05-29  2:02 ` (subset) " Bjorn Andersson
  3 siblings, 0 replies; 6+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-05-17  2:40 UTC (permalink / raw)
  To: Sagar Cheluvegowda
  Cc: andersson, konrad.dybcio, robh, krzk+dt, conor+dt,
	bartosz.golaszewski, ahalaney, vkoul, davem, edumazet, kuba,
	pabeni, bhupesh.sharma, kernel, linux-arm-msm, devicetree,
	linux-kernel, netdev

Hello:

This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 14 May 2024 17:06:50 -0700 you wrote:
> To: Bjorn Andersson <andersson@kernel.org>
> To: Konrad Dybcio <konrad.dybcio@linaro.org>
> To: Rob Herring <robh@kernel.org>
> To: Krzysztof Kozlowski <krzk+dt@kernel.org>
> To: Conor Dooley <conor+dt@kernel.org>
> To: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> To: Andrew Halaney <ahalaney@redhat.com>
> To: Vinod Koul <vkoul@kernel.org>
> To: David S. Miller <davem@davemloft.net>
> To: Eric Dumazet <edumazet@google.com>
> To: Jakub Kicinski <kuba@kernel.org>
> To: Paolo Abeni <pabeni@redhat.com>
> To: Bhupesh Sharma <bhupesh.sharma@linaro.org>
> Cc: kernel@quicinc.com
> Cc: linux-arm-msm@vger.kernel.org
> Cc: devicetree@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Cc: netdev@vger.kernel.org
> 
> [...]

Here is the summary with links:
  - [v4,1/2] arm64: dts: qcom: sa8775p: mark ethernet devices as DMA-coherent
    (no matching commit)
  - [v4,2/2] dt-bindings: net: qcom: ethernet: Allow dma-coherent
    https://git.kernel.org/netdev/net/c/fe32622763d8

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: (subset) [PATCH v4 0/2] Mark Ethernet devices on sa8775p as DMA-coherent
  2024-05-15  0:06 [PATCH v4 0/2] Mark Ethernet devices on sa8775p as DMA-coherent Sagar Cheluvegowda
                   ` (2 preceding siblings ...)
  2024-05-17  2:40 ` [PATCH v4 0/2] Mark Ethernet devices on sa8775p as DMA-coherent patchwork-bot+netdevbpf
@ 2024-05-29  2:02 ` Bjorn Andersson
  3 siblings, 0 replies; 6+ messages in thread
From: Bjorn Andersson @ 2024-05-29  2:02 UTC (permalink / raw)
  To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Bartosz Golaszewski, Andrew Halaney, Vinod Koul, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Bhupesh Sharma,
	Sagar Cheluvegowda
  Cc: kernel, linux-arm-msm, devicetree, linux-kernel, netdev


On Tue, 14 May 2024 17:06:50 -0700, Sagar Cheluvegowda wrote:
> To: Bjorn Andersson <andersson@kernel.org>
> To: Konrad Dybcio <konrad.dybcio@linaro.org>
> To: Rob Herring <robh@kernel.org>
> To: Krzysztof Kozlowski <krzk+dt@kernel.org>
> To: Conor Dooley <conor+dt@kernel.org>
> To: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> To: Andrew Halaney <ahalaney@redhat.com>
> To: Vinod Koul <vkoul@kernel.org>
> To: David S. Miller <davem@davemloft.net>
> To: Eric Dumazet <edumazet@google.com>
> To: Jakub Kicinski <kuba@kernel.org>
> To: Paolo Abeni <pabeni@redhat.com>
> To: Bhupesh Sharma <bhupesh.sharma@linaro.org>
> Cc: kernel@quicinc.com
> Cc: linux-arm-msm@vger.kernel.org
> Cc: devicetree@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Cc: netdev@vger.kernel.org
> 
> [...]

Applied, thanks!

[1/2] arm64: dts: qcom: sa8775p: mark ethernet devices as DMA-coherent
      commit: 49cc31f8ab44e60d8109da7e18c0983a917d4d74

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-29  2:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-15  0:06 [PATCH v4 0/2] Mark Ethernet devices on sa8775p as DMA-coherent Sagar Cheluvegowda
2024-05-15  0:06 ` [PATCH v4 1/2] arm64: dts: qcom: sa8775p: mark ethernet devices " Sagar Cheluvegowda
2024-05-15  0:06 ` [PATCH v4 2/2] dt-bindings: net: qcom: ethernet: Allow dma-coherent Sagar Cheluvegowda
2024-05-15  8:11   ` Krzysztof Kozlowski
2024-05-17  2:40 ` [PATCH v4 0/2] Mark Ethernet devices on sa8775p as DMA-coherent patchwork-bot+netdevbpf
2024-05-29  2:02 ` (subset) " Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).