linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Mathias De Weerdt <mathias.de.weerdt@gmail.com>
Cc: Bjorn Helgaas <helgaas@kernel.org>,
	ben.chuang@genesyslogic.com.tw,  johnsonm@danlj.org,
	linux-pci@vger.kernel.org, linux-mmc@vger.kernel.org,
	 linux-pm@vger.kernel.org,
	"Maciej W. Rozycki" <macro@orcam.me.uk>
Subject: Re: Bug Report: Delayed Wake from Suspend with Genesys Logic GL9755 SD Host Controller
Date: Mon, 26 Feb 2024 13:49:34 +0200 (EET)	[thread overview]
Message-ID: <0aa430ff-c60d-b2c6-bb1c-e352ae7be020@linux.intel.com> (raw)
In-Reply-To: <CAKfmkPK+T0887-uQORxOzbcz-ZxBY+wKLYPRoiQiUfNhffQBEg@mail.gmail.com>

On Mon, 26 Feb 2024, Mathias De Weerdt wrote:

> Hi Bjorn
> 
> This has indeed never worked. I have even tried plenty of older
> kernels and now also the latest mainline.
> 
> I collected the data you requested on the following kernel (Latest
> mainline as of yesterday)
> Linux core-arch 6.8.0-rc5-1-mainline #1 SMP PREEMPT_DYNAMIC Sun, 25
> Feb 2024 21:59:28 +0000 x86_64 GNU/Linux
> 
> After booting the laptop I put it to sleep and woke it up and
> collected the dmesg and lspci logs. (They have been attached)
> 
> Thanks for your quick response.
> If you need anything else please let me know.
> 
> Kinds regards
> Mathias
> 
> On Mon, 26 Feb 2024 at 00:31, Bjorn Helgaas <helgaas@kernel.org> wrote:
> >
> > On Sun, Feb 25, 2024 at 11:38:35PM +0100, Mathias De Weerdt wrote:
> > > Hi
> > >
> > > I am writing to report a potential bug in the Linux kernel related to
> > > waking from suspend on a system(Laptop) with a Genesys Logic GL9755 SD
> > > Host Controller. Below are the details of the issue:
> >
> > Hi Mathias, thanks very much for this report.  A few questions below.
> >
> > > Issue Description:
> > > After suspending the system, waking it up takes an extended amount of
> > > time, typically 1 to 2 minutes. The delay occurs consistently and is
> > > observed in the dmesg logs.
> > >
> > >
> > > System Information:
> > > - OS: Arch Linux x86_64
> > > - Kernel: 6.7.5-arch1-1 and 6.7.6-arch1-1
> > > - SD Host Controller: Genesys Logic GL9755 SD Host Controller (PCI ID:
> > > 17a0:9755)
> > >
> > > Observed Logs (dmesg):
> > > [ 642.483972] sdhci-pci 0000:2f:00.0: not ready 1023ms after resume; waiting
> > > [ 643.537370] sdhci-pci 0000:2f:00.0: not ready 2047ms after resume; waiting
> > > [ 645.724028] sdhci-pci 0000:2f:00.0: not ready 4095ms after resume; waiting
> > > [ 649.990655] sdhci-pci 0000:2f:00.0: not ready 8191ms after resume; waiting
> > > [ 658.310658] sdhci-pci 0000:2f:00.0: not ready 16383ms after resume; waiting
> > > [ 675.590673] sdhci-pci 0000:2f:00.0: not ready 32767ms after resume; waiting
> > > [ 709.723965] sdhci-pci 0000:2f:00.0: not ready 65535ms after resume; giving up
> > > [ 709.724183] sdhci-pci 0000:2f:00.0: Unable to change power state
> > > from D3cold to D0, device inaccessible

Hi Mathias,

In your dmesg, there's the Target Speed quirk triggering. Please try these 
two patches, they should fix the logic bug that causes the long delay you 
see:

https://lore.kernel.org/linux-pci/alpine.DEB.2.21.2402092125070.2376@angie.orcam.me.uk/T/#t

(They won't help to the link not coming up issue though).

-- 
 i.

  reply	other threads:[~2024-02-26 11:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-25 22:38 Bug Report: Delayed Wake from Suspend with Genesys Logic GL9755 SD Host Controller Mathias De Weerdt
2024-02-25 23:31 ` Bjorn Helgaas
2024-02-26 10:03   ` Mathias De Weerdt
2024-02-26 11:49     ` Ilpo Järvinen [this message]
2024-02-26 17:33       ` Mathias De Weerdt
2024-02-27 22:51         ` Bjorn Helgaas

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=0aa430ff-c60d-b2c6-bb1c-e352ae7be020@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=ben.chuang@genesyslogic.com.tw \
    --cc=helgaas@kernel.org \
    --cc=johnsonm@danlj.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=macro@orcam.me.uk \
    --cc=mathias.de.weerdt@gmail.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).