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] [thread-next>] [day] [month] [year] [list]
Message-ID: <DB9PR04MB8106FD035EEF92E7556D2BF888419@DB9PR04MB8106.eurprd04.prod.outlook.com>
Date:   Wed, 7 Sep 2022 01:49:54 +0000
From:   Wei Fang <wei.fang@....com>
To:     Andrew Lunn <andrew@...n.ch>
CC:     "davem@...emloft.net" <davem@...emloft.net>,
        "edumazet@...gle.com" <edumazet@...gle.com>,
        "kuba@...nel.org" <kuba@...nel.org>,
        "pabeni@...hat.com" <pabeni@...hat.com>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH net-next] net: fec: add pm runtime force suspend and
 resume support



> -----Original Message-----
> From: Andrew Lunn <andrew@...n.ch>
> Sent: 2022年9月6日 22:42
> To: Wei Fang <wei.fang@....com>
> Cc: davem@...emloft.net; edumazet@...gle.com; kuba@...nel.org;
> pabeni@...hat.com; netdev@...r.kernel.org; linux-kernel@...r.kernel.org
> Subject: Re: [PATCH net-next] net: fec: add pm runtime force suspend and
> resume support
> 
> On Tue, Sep 06, 2022 at 04:39:23PM +0800, wei.fang@....com wrote:
> > From: Wei Fang <wei.fang@....com>
> >
> > Force mii bus into runtime pm suspend state during device suspends,
> > since phydev state is already PHY_HALTED, and there is no need to
> > access mii bus during device suspend state. Then force mii bus into
> > runtime pm resume state when device resumes.
> 
> Have you tested this with an Ethernet switch hanging off the MDIO bus?
> It has a life cycle of its own, and i'm not sure it is guaranteed that the switch is
> suspended before the FEC. That is why the MDIO read/write functions have
> there own runtime PM calls, they can be used when the interface itself is
> down.
> 
Sorry, we don't have the product that an Ethernet switch hanging off the MIDO
bus of FEC. But I have tested system suspend/resume on i.MX6UL platform which
has two FEC MAC and share one MDIO bus. I have confirmed that the two PHYs
are suspended before the FEC. So it's safe to force the MDIO bus into runtime
suspend state. In addition, this patch has been already submitted to our local
repository for 3 years and our test team has test it for several times.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ