lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6af8035f-ae5e-48a2-a3d2-a640ff7fb999@pengutronix.de>
Date: Thu, 24 Oct 2024 12:11:26 +0200
From: Ahmad Fatoum <a.fatoum@...gutronix.de>
To: Mamta Shukla <mamta.shukla@...ca-geosystems.com>, dinguyen@...nel.org,
 alexandre.torgue@...s.st.com, joabreu@...opsys.com, davem@...emloft.net,
 edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
 mcoquelin.stm32@...il.com, linux-kernel@...r.kernel.org,
 netdev@...r.kernel.org
Cc: bsp-development.geo@...ca-geosystems.com,
 Pengutronix Kernel Team <kernel@...gutronix.de>
Subject: Re: [PATCH] arm: dts: socfpga: use reset-name "stmmaceth-ocp" instead
 of "ahb"

Hello Mamta,

Thanks for your fix.

On 16.10.24 09:41, Mamta Shukla wrote:
> The "stmmaceth-ocp" reset line in dwmac-socfpga driver is required
> to get EMAC controller out of reset on Arria10[1].
> Changed in Upstream to "ahb"(331085a423b  arm64: dts: socfpga: change the
> reset-name of "stmmaceth-ocp" to "ahb" ).

To ease automatic backporting, please add:

Fixes: 331085a423b ("arm64: dts: socfpga: change the reset-name of "stmmaceth-ocp" to "ahb")

before your S-o-b.

It's probably worth pointing out in the commit message that according
to the commit message title, the change was predominantly meant for ARM64
SoCFPGA and that at least for the Arria10, it's not applicable.

> If "ahb" reset-line is used, connection via ssh is found to be slow and significant
> packet loss observed with ping.

Nitpick: In the end it's the same underlying reset line, they are just toggled for
different purposes. The ahb reset is deasserted in probe before first register access,
while crucially the stmmacheth-ocp reset needs to be asserted every time during
PHY mode reconfiguration.

> This prominently happens with Real Time Kernel
> (PREEMPT_RT enabled). Further with STMMAC-SELFTEST Driver enabled, ethtool test
> also FAILS.

FTR: I observed the same regression on v6.6.57.

> Link:[1] https://www.intel.com/content/www/us/en/docs/programmable/683711/21-2/functional-description-of-the-emac.html
> Signed-off-by: Mamta Shukla <mamta.shukla@...ca-geosystems.com>

Tested-by: Ahmad Fatoum <a.fatoum@...gutronix.de>

With commit message reworded as described above (and --subject-prefix="PATCH net"):

Reviewed-by: Ahmad Fatoum <a.fatoum@...gutronix.de>

Cheers,
Ahmad

> ---
>  arch/arm/boot/dts/intel/socfpga/socfpga_arria10.dtsi | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/intel/socfpga/socfpga_arria10.dtsi b/arch/arm/boot/dts/intel/socfpga/socfpga_arria10.dtsi
> index f36063c57c7f..72c55e5187ca 100644
> --- a/arch/arm/boot/dts/intel/socfpga/socfpga_arria10.dtsi
> +++ b/arch/arm/boot/dts/intel/socfpga/socfpga_arria10.dtsi
> @@ -440,7 +440,7 @@ gmac0: ethernet@...00000 {
>  			clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
>  			clock-names = "stmmaceth", "ptp_ref";
>  			resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
> -			reset-names = "stmmaceth", "ahb";
> +			reset-names = "stmmaceth", "stmmaceth-ocp";
>  			snps,axi-config = <&socfpga_axi_setup>;
>  			status = "disabled";
>  		};
> @@ -460,7 +460,7 @@ gmac1: ethernet@...02000 {
>  			clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
>  			clock-names = "stmmaceth", "ptp_ref";
>  			resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
> -			reset-names = "stmmaceth", "ahb";
> +			reset-names = "stmmaceth", "stmmaceth-ocp";
>  			snps,axi-config = <&socfpga_axi_setup>;
>  			status = "disabled";
>  		};
> @@ -480,7 +480,7 @@ gmac2: ethernet@...04000 {
>  			clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
>  			clock-names = "stmmaceth", "ptp_ref";
>  			resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
> -			reset-names = "stmmaceth", "ahb";
> +			reset-names = "stmmaceth", "stmmaceth-ocp";
>  			snps,axi-config = <&socfpga_axi_setup>;
>  			status = "disabled";
>  		};


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ