public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
From: Jon Hunter <jonathanh@nvidia.com>
To: Thierry Reding <thierry.reding@gmail.com>
Cc: linux-tegra@vger.kernel.org
Subject: Re: [PATCH] arm64: tegra: Add AXI configuration for Tegra234 MGBE
Date: Fri, 23 Feb 2024 16:05:16 +0000	[thread overview]
Message-ID: <b97daf49-3568-44fa-907e-bd444ea00858@nvidia.com> (raw)
In-Reply-To: <20240222170135.3096122-1-thierry.reding@gmail.com>


On 22/02/2024 17:01, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> The MGBE devices found on Tegra234 need their AXI interface configured
> to operate at peak performance. Ideally we would do this in the driver
> based off the compatible string, but the DT bindings already specify a
> separate mechanism, so reuse that.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
>   arch/arm64/boot/dts/nvidia/tegra234.dtsi | 24 ++++++++++++++++++++++++
>   1 file changed, 24 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia/tegra234.dtsi
> index 3f16595d099c..84c74155a5ca 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra234.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra234.dtsi
> @@ -1461,6 +1461,14 @@ ethernet@6800000 {
>   			iommus = <&smmu_niso0 TEGRA234_SID_MGBE>;
>   			power-domains = <&bpmp TEGRA234_POWER_DOMAIN_MGBEA>;
>   			status = "disabled";
> +
> +			snps,axi-config = <&mgbe0_axi_setup>;
> +
> +			mgbe0_axi_setup: stmmac-axi-config {
> +				snps,blen = <256 128 64 32>;
> +				snps,rd_osr_lmt = <63>;
> +				snps,wr_osr_lmt = <63>;
> +			};
>   		};
>   
>   		ethernet@6900000 {
> @@ -1495,6 +1503,14 @@ ethernet@6900000 {
>   			iommus = <&smmu_niso0 TEGRA234_SID_MGBE_VF1>;
>   			power-domains = <&bpmp TEGRA234_POWER_DOMAIN_MGBEB>;
>   			status = "disabled";
> +
> +			snps,axi-config = <&mgbe1_axi_setup>;
> +
> +			mgbe1_axi_setup: stmmac-axi-config {
> +				snps,blen = <256 128 64 32>;
> +				snps,rd_osr_lmt = <63>;
> +				snps,wr_osr_lmt = <63>;
> +			};
>   		};
>   
>   		ethernet@6a00000 {
> @@ -1529,6 +1545,14 @@ ethernet@6a00000 {
>   			iommus = <&smmu_niso0 TEGRA234_SID_MGBE_VF2>;
>   			power-domains = <&bpmp TEGRA234_POWER_DOMAIN_MGBEC>;
>   			status = "disabled";
> +
> +			snps,axi-config = <&mgbe2_axi_setup>;
> +
> +			mgbe2_axi_setup: stmmac-axi-config {
> +				snps,blen = <256 128 64 32>;
> +				snps,rd_osr_lmt = <63>;
> +				snps,wr_osr_lmt = <63>;
> +			};
>   		};
>   
>   		ethernet@6b00000 {

Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>

Fixes the speed for me! Thanks!

Jon

-- 
nvpublic

      reply	other threads:[~2024-02-23 16:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-22 17:01 [PATCH] arm64: tegra: Add AXI configuration for Tegra234 MGBE Thierry Reding
2024-02-23 16:05 ` Jon Hunter [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=b97daf49-3568-44fa-907e-bd444ea00858@nvidia.com \
    --to=jonathanh@nvidia.com \
    --cc=linux-tegra@vger.kernel.org \
    --cc=thierry.reding@gmail.com \
    /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