From: Raag Jadav <raag.jadav@intel.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Mario Limonciello <superm1@kernel.org>,
Denis Benato <benato.denis96@gmail.com>,
mahesh@linux.ibm.com, oohall@gmail.com, bhelgaas@google.com,
linux-pci@vger.kernel.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org, ilpo.jarvinen@linux.intel.com,
lukas@wunner.de, aravind.iddamsetty@linux.intel.com,
"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>,
Alex Deucher <alexander.deucher@amd.com>
Subject: Re: [PATCH v4] PCI: Prevent power state transition of erroneous device
Date: Wed, 4 Jun 2025 18:42:47 +0300 [thread overview]
Message-ID: <aEBpdwMfxp5M4Hxr@black.fi.intel.com> (raw)
In-Reply-To: <CAJZ5v0gjA2B4AnaYpfYpaNDo49k4LM2FGSrPFFuOCJ62bCMmkA@mail.gmail.com>
On Fri, May 30, 2025 at 07:49:26PM +0200, Rafael J. Wysocki wrote:
> On Fri, May 30, 2025 at 7:23 PM Raag Jadav <raag.jadav@intel.com> wrote:
> > On Fri, May 23, 2025 at 05:23:10PM +0200, Rafael J. Wysocki wrote:
> > > On Wed, May 21, 2025 at 1:27 PM Rafael J. Wysocki <rafael@kernel.org> wrote:
> > > > On Wed, May 21, 2025 at 10:54 AM Raag Jadav <raag.jadav@intel.com> wrote:
> > > > > On Tue, May 20, 2025 at 01:56:28PM -0500, Mario Limonciello wrote:
> > > > > > On 5/20/2025 1:42 PM, Raag Jadav wrote:
> > > > > > > On Tue, May 20, 2025 at 12:39:12PM -0500, Mario Limonciello wrote:
...
> > > > > > From the driver perspective it does have expectations that the parts outside
> > > > > > the driver did the right thing. If the driver was expecting the root port
> > > > > > to be powered down at suspend and it wasn't there are hardware components
> > > > > > that didn't power cycle and that's what we're seeing here.
> > > > >
> > > > > Which means the expectation set by the driver is the opposite of the
> > > > > purpose of this patch, and it's going to fail if any kind of error is
> > > > > detected under root port during suspend.
> > > >
> > > > And IMV this driver's expectation is questionable at least.
> > > >
> > > > There is no promise whatsoever that the device will always be put into
> > > > D3cold during system suspend.
> > >
> > > For instance, user space may disable D3cold for any PCI device via the
> > > d3cold_allowed attribute in sysfs.
> > >
> > > If the driver cannot handle this, it needs to be fixed.
> >
> > Thanks for confirming. So should we consider this patch to be valid
> > and worth moving forward?
>
> It doesn't do anything that would be invalid in principle IMV.
>
> You need to consider one more thing, though: It may be necessary to
> power-cycle the device in order to kick it out of the erroneous state
> and the patch effectively blocks this if I'm not mistaken.
>
> But admittedly I'm not sure if this really matters.
Wouldn't something like bus reset (SBR) be more predictable?
Raag
next prev parent reply other threads:[~2025-06-04 15:43 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-19 10:28 [PATCH v4] PCI: Prevent power state transition of erroneous device Raag Jadav
2025-05-19 10:41 ` Raag Jadav
2025-05-19 21:42 ` Denis Benato
2025-05-20 9:48 ` Raag Jadav
2025-05-20 15:23 ` Mario Limonciello
2025-05-20 15:47 ` Raag Jadav
2025-05-20 15:49 ` Mario Limonciello
2025-05-20 17:22 ` Denis Benato
2025-05-20 17:39 ` Mario Limonciello
2025-05-20 18:42 ` Raag Jadav
2025-05-20 18:56 ` Mario Limonciello
2025-05-21 8:54 ` Raag Jadav
2025-05-21 11:27 ` Rafael J. Wysocki
2025-05-23 15:23 ` Rafael J. Wysocki
2025-05-30 17:23 ` Raag Jadav
2025-05-30 17:49 ` Rafael J. Wysocki
2025-06-04 15:42 ` Raag Jadav [this message]
2025-06-04 18:19 ` Rafael J. Wysocki
2025-06-05 11:44 ` Raag Jadav
2025-06-05 12:26 ` Rafael J. Wysocki
2025-06-10 13:44 ` Raag Jadav
2025-06-10 13:53 ` Rafael J. Wysocki
2025-06-20 12:14 ` Raag Jadav
2025-05-21 13:39 ` Lukas Wunner
2025-05-21 17:06 ` Mario Limonciello
2025-05-21 20:28 ` Denis Benato
2025-05-22 7:31 ` Lukas Wunner
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=aEBpdwMfxp5M4Hxr@black.fi.intel.com \
--to=raag.jadav@intel.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=aravind.iddamsetty@linux.intel.com \
--cc=benato.denis96@gmail.com \
--cc=bhelgaas@google.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=mahesh@linux.ibm.com \
--cc=oohall@gmail.com \
--cc=rafael@kernel.org \
--cc=superm1@kernel.org \
/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).