netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: Jon Hunter <jonathanh@nvidia.com>,
	Joakim Zhang <qiangqing.zhang@nxp.com>,
	"peppe.cavallaro@st.com" <peppe.cavallaro@st.com>,
	"alexandre.torgue@foss.st.com" <alexandre.torgue@foss.st.com>,
	"joabreu@synopsys.com" <joabreu@synopsys.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"mcoquelin.stm32@gmail.com" <mcoquelin.stm32@gmail.com>,
	"andrew@lunn.ch" <andrew@lunn.ch>
Cc: dl-linux-imx <linux-imx@nxp.com>,
	"treding@nvidia.com" <treding@nvidia.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [RFC net-next] net: stmmac: should not modify RX descriptor when STMMAC resume
Date: Thu, 22 Apr 2021 11:20:57 -0700	[thread overview]
Message-ID: <3ba28b13-15eb-85bd-0625-f99450c8341b@gmail.com> (raw)
In-Reply-To: <bd184c72-7b12-db4c-0dd3-25f0fd45b7aa@nvidia.com>



On 4/22/2021 11:18 AM, Jon Hunter wrote:
> 
> On 22/04/2021 18:32, Florian Fainelli wrote:
>>
>>
>> On 4/22/2021 10:00 AM, Jon Hunter wrote:
>>>
>>> On 22/04/2021 17:12, Florian Fainelli wrote:
>>>
>>> ...
>>>
>>>> What does the resumption failure looks like? Does the stmmac driver
>>>> successfully resume from your suspend state, but there is no network
>>>> traffic? Do you have a log by any chance?
>>>
>>> The board fails to resume and appears to hang. With regard to the
>>> original patch I did find that moving the code to re-init the RX buffers
>>> to before the PHY is enabled did work [0].
>>
>> You indicated that you are using a Broadcom PHY, which specific PHY are
>> you using?
>>
>> I suspect that the stmmac is somehow relying on the PHY to provide its
>> 125MHz RXC clock back to you in order to have its RX logic work correctly.
>>
>> One difference between using the Broadcom PHY and the Generic PHY
>> drivers could be whether your Broadcom PHY driver entry has a
>> .suspend/.resume callback implemented or not.
> 
> 
> This board has a BCM89610 and uses the drivers/net/phy/broadcom.c
> driver. Interestingly I don't see any suspend/resume handlers for this phy.

Now if you do add .suspend = genphy_suspend and .resume = bcm54xx_resume
for this PHY entry does it work better?
-- 
Florian

  reply	other threads:[~2021-04-22 18:21 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-19 11:59 [RFC net-next] net: stmmac: should not modify RX descriptor when STMMAC resume Joakim Zhang
2021-04-19 15:12 ` Jon Hunter
2021-04-20  1:49   ` Joakim Zhang
2021-04-20 13:33     ` Jon Hunter
2021-04-22  4:53       ` Joakim Zhang
2021-04-22 15:56         ` Jakub Kicinski
2021-04-23 13:48           ` Jon Hunter
2021-05-06  6:33             ` Joakim Zhang
2021-05-07 14:22               ` Jon Hunter
2021-05-08 11:20                 ` Joakim Zhang
2021-05-08 15:42                   ` Florian Fainelli
2021-05-10  2:10                     ` Joakim Zhang
2021-05-17  7:53                       ` Thierry Reding
2021-05-18  7:52                         ` Joakim Zhang
2021-04-22 16:12         ` Florian Fainelli
2021-04-22 17:00           ` Jon Hunter
2021-04-22 17:32             ` Florian Fainelli
2021-04-22 18:18               ` Jon Hunter
2021-04-22 18:20                 ` Florian Fainelli [this message]
2021-04-23 13:46                   ` Jon Hunter
2021-04-23 15:38                     ` Heiner Kallweit
2021-04-23  2:37               ` Joakim Zhang
2021-04-22 16:31 ` Florian Fainelli
2021-04-23  2:17   ` Joakim Zhang

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=3ba28b13-15eb-85bd-0625-f99450c8341b@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=joabreu@synopsys.com \
    --cc=jonathanh@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=linux-imx@nxp.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.com \
    --cc=qiangqing.zhang@nxp.com \
    --cc=treding@nvidia.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;
as well as URLs for NNTP newsgroup(s).