archive mirror
 help / color / mirror / Atom feed
From: Lukas Wunner <>
To: Rajat Jain <>
Cc: linux-pci <>,
	Linux PM <>,, Bjorn Helgaas <>,
	Mika Westerberg <>,
	"Rafael J. Wysocki" <>,
	Alex Levin <>,
	Madhusudanarao Amara 
	Prashant Malani <>,
	"" <>
Subject: Re: PCIe device (thunderbolt tunneled) runtime suspended while driver wants to attach.
Date: Sat, 14 Aug 2021 08:41:42 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Fri, Aug 13, 2021 at 10:26:06PM -0700, Rajat Jain wrote:
> 2) Is my understanding correct that any device should NOT be runtime
> suspended while a driver is trying to attach to the device? Where is
> this ensured (for e.g. for NVMEs)? Is this ensured by the driver core,
> or a device driver that is trying to probe a PCI device needs to
> ensure this?

For some reason the driver core only runtime resumes a device on unbind
(in __device_release_driver()), but not on bind (in driver_probe_device()).

However, the PCI core makes up for that by runtime resuming the device
in local_pci_probe().

> 3) So all downstream devices of a PCI bridge need to be suspended
> before it can be suspended (and vice versa for resume)? In other
> words, is ita bug if I notice that a PCI bridge is runtime suspended
> while any of its downstream devices are not?

Yes to both questions.

> 4) Any suggestions for me to try?

Could you try to bisect the issue?



      reply	other threads:[~2021-08-14  6:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-14  5:26 PCIe device (thunderbolt tunneled) runtime suspended while driver wants to attach Rajat Jain
2021-08-14  6:41 ` Lukas Wunner [this message]

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \ \ \ \

* 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).