* [PATCH] arm: dts: allwinner: a10: Add DMA for emac
@ 2024-09-04 9:10 uis
2024-09-04 9:33 ` Chen-Yu Tsai
2024-09-06 0:17 ` Andre Przywara
0 siblings, 2 replies; 3+ messages in thread
From: uis @ 2024-09-04 9:10 UTC (permalink / raw)
To: linux-sunxi; +Cc: wens, jernej.skrabec, samuel
RX DMA should be already used by driver, TX still isn't
Signed-off-by: uis <uis9936@gmail.com>
---
arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
index 51a6464aab9a..299e12aadf9c 100644
--- a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
+++ b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
@@ -314,6 +314,9 @@ emac: ethernet@1c0b000 {
reg = <0x01c0b000 0x1000>;
interrupts = <55>;
clocks = <&ccu CLK_AHB_EMAC>;
+ dmas = <&dma SUN4I_DMA_DEDICATED 7>,
+ <&dma SUN4I_DMA_DEDICATED 6>;
+ dma-names = "rx", "tx";
allwinner,sram = <&emac_sram 1>;
pinctrl-names = "default";
pinctrl-0 = <&emac_pins>;
--
I had to resend message as plain text
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arm: dts: allwinner: a10: Add DMA for emac
2024-09-04 9:10 [PATCH] arm: dts: allwinner: a10: Add DMA for emac uis
@ 2024-09-04 9:33 ` Chen-Yu Tsai
2024-09-06 0:17 ` Andre Przywara
1 sibling, 0 replies; 3+ messages in thread
From: Chen-Yu Tsai @ 2024-09-04 9:33 UTC (permalink / raw)
To: uis; +Cc: linux-sunxi, jernej.skrabec, samuel
On Wed, Sep 4, 2024 at 5:11 PM uis <uis9936@gmail.com> wrote:
>
> RX DMA should be already used by driver, TX still isn't
Commit messages for device tree changes should not reference the OS.
Just say that the hardware is DMA capable and should have DRQs added.
> Signed-off-by: uis <uis9936@gmail.com>
> ---
> arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
> b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
> index 51a6464aab9a..299e12aadf9c 100644
> --- a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
> +++ b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
> @@ -314,6 +314,9 @@ emac: ethernet@1c0b000 {
> reg = <0x01c0b000 0x1000>;
> interrupts = <55>;
> clocks = <&ccu CLK_AHB_EMAC>;
> + dmas = <&dma SUN4I_DMA_DEDICATED 7>,
> + <&dma SUN4I_DMA_DEDICATED 6>;
> + dma-names = "rx", "tx";
> allwinner,sram = <&emac_sram 1>;
> pinctrl-names = "default";
> pinctrl-0 = <&emac_pins>;
> --
> I had to resend message as plain text
And the whitespace is broken. Please use git send-email to send patches.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm: dts: allwinner: a10: Add DMA for emac
2024-09-04 9:10 [PATCH] arm: dts: allwinner: a10: Add DMA for emac uis
2024-09-04 9:33 ` Chen-Yu Tsai
@ 2024-09-06 0:17 ` Andre Przywara
1 sibling, 0 replies; 3+ messages in thread
From: Andre Przywara @ 2024-09-06 0:17 UTC (permalink / raw)
To: uis; +Cc: linux-sunxi, wens, jernej.skrabec, samuel
On Wed, 4 Sep 2024 12:10:57 +0300
uis <uis9936@gmail.com> wrote:
Hi,
> RX DMA should be already used by driver, TX still isn't
As Chen-Yu mentioned, you would need a better commit message.
I tested this on the original Cubieboard, and it worked fine. With some
very crude netcat based testing I didn't see any performance or CPU
benefit, but the DMA engine seemed to have been utilised, and the
"missing DMA" messages vanished from dmesg.
Also checked the manual for the DRQ numbers: they match.
So with a proper commit message:
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
> Signed-off-by: uis <uis9936@gmail.com>
I think the kernel contribution rules require a bit more of a real name
here.
Cheers,
Andre
> ---
> arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
> b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
> index 51a6464aab9a..299e12aadf9c 100644
> --- a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
> +++ b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
> @@ -314,6 +314,9 @@ emac: ethernet@1c0b000 {
> reg = <0x01c0b000 0x1000>;
> interrupts = <55>;
> clocks = <&ccu CLK_AHB_EMAC>;
> + dmas = <&dma SUN4I_DMA_DEDICATED 7>,
> + <&dma SUN4I_DMA_DEDICATED 6>;
> + dma-names = "rx", "tx";
> allwinner,sram = <&emac_sram 1>;
> pinctrl-names = "default";
> pinctrl-0 = <&emac_pins>;
> --
> I had to resend message as plain text
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-06 0:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04 9:10 [PATCH] arm: dts: allwinner: a10: Add DMA for emac uis
2024-09-04 9:33 ` Chen-Yu Tsai
2024-09-06 0:17 ` Andre Przywara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox