[PATCH net v1] net: stmmac: Disable PCS Link and AN interrupt when PCS AN is disabled
Russell King (Oracle)
linux at armlinux.org.uk
Mon Oct 21 02:20:24 PDT 2024
On Sat, Oct 19, 2024 at 04:45:16AM +0200, Andrew Lunn wrote:
> On Fri, Oct 18, 2024 at 03:24:07PM -0700, Abhishek Chauhan wrote:
> > Currently we disable PCS ANE when the link speed is 2.5Gbps.
> > mac_link_up callback internally calls the fix_mac_speed which internally
> > calls stmmac_pcs_ctrl_ane to disable the ANE for 2.5Gbps.
> >
> > We observed that the CPU utilization is pretty high. That is because
> > we saw that the PCS interrupt status line for Link and AN always remain
> > asserted. Since we are disabling the PCS ANE for 2.5Gbps it makes sense
> > to also disable the PCS link status and AN complete in the interrupt
> > enable register.
> >
> > Interrupt storm Issue:-
> > [ 25.465754][ C2] stmmac_pcs: Link Down
> > [ 25.469888][ C2] stmmac_pcs: Link Down
> > [ 25.474030][ C2] stmmac_pcs: Link Down
> > [ 25.478164][ C2] stmmac_pcs: Link Down
> > [ 25.482305][ C2] stmmac_pcs: Link Down
>
> I don't know this code, so i cannot really comment if not enabling the
> interrupt is the correct fix or not. But generally an interrupt storm
> like this is cause because you are not acknowledging the interrupt
> correctly to clear its status. So rather than not enabling it, maybe
> you should check what is the correct way to clear the interrupt once
> it happens?
stmmac PCS support is total crap and shouldn't be used, or stmmac
should not be using phylink. It's one or the other. Blame Serge for
this mess.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
More information about the linux-arm-kernel
mailing list