ARM Sunxi Platform Development
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: uis <uis9936@gmail.com>
Cc: linux-sunxi@lists.linux.dev, wens@csie.org,
	jernej.skrabec@gmail.com, samuel@sholland.org
Subject: Re: [PATCH] arm: dts: allwinner: a10: Add DMA for emac
Date: Fri, 6 Sep 2024 01:17:51 +0100	[thread overview]
Message-ID: <20240906011751.35bd01eb@minigeek.lan> (raw)
In-Reply-To: <CA+vsu7uNL0N9XQp=gxA4wO14iVAHqo8ySFXuPPkQiTqMqVJJzA@mail.gmail.com>

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
> 


      parent reply	other threads:[~2024-09-06  0:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240906011751.35bd01eb@minigeek.lan \
    --to=andre.przywara@arm.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=samuel@sholland.org \
    --cc=uis9936@gmail.com \
    --cc=wens@csie.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox