[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7c7e94dc-a87f-425b-b833-32e618497cf8@lunn.ch>
Date: Tue, 26 Nov 2024 18:32:39 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Asmaa Mnebhi <asmaa@...dia.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
David Thompson <davthompson@...dia.com>
Subject: Re: [PATCH net v1] mlxbf-gige: Support workaround for MDIO GPIO
degradation bug
On Fri, Nov 22, 2024 at 10:48:27PM +0000, Asmaa Mnebhi wrote:
> From: asmaa <asmaa@...dia.com>
>
> Once the BlueField-3 MDIO clock is enabled by software, it is expected
> and intended for it to keep toggling. BlueField-3 has a hardware GPIO bug
> where constant toggling at "high frequencies" will lead to GPIO
> degradation.
>
> The workaround suggested by the hardware team is to lower down the clock
> frequency. That will increase the "life expectation" of the GPIO.
> The lowest possible frequency we can achieve is 1.09Mhz by setting
> mdio_period = 0xFF.
802.3 says:
22.2.2.13 MDC (management data clock)
MDC is sourced by the station management entity to the PHY as the
timing reference for transfer of information on the MDIO signal. MDC
is an aperiodic signal that has no maximum high or low times. The
minimum high and low times for MDC shall be 160 ns each, and the
minimum period for MDC shall be 400 ns, regardless of the nominal
period of TX_CLK and RX_CLK.
My reading of this is that you can stop the clock when it is not
needed. Maybe tie into the Linux runtime power management
framework. It can keep track of how long a device has been idle, and
if a timer is exceeded, make a callback to power it down.
If you have an MDIO bus with one PHY on it, the access pattern is
likely to be a small bunch of reads followed by about one second of
idle time. I would of thought that stopping the clock increases the
life expectancy of you hardware more than just slowing it down.
Andrew
Powered by blists - more mailing lists