Re: [PATCH v1] PCI/AER: Avoid power state transition during system suspend
From: Raag Jadav
Date: Fri Apr 04 2025 - 01:27:07 EST
On Thu, Apr 03, 2025 at 08:35:45PM +0200, Rafael J. Wysocki wrote:
> On Thu, Apr 3, 2025 at 9:45 AM Raag Jadav <raag.jadav@xxxxxxxxx> wrote:
> >
> > If an error is triggered while system suspend is in progress, any bus
> > level power state transition will result in unpredictable error handling.
> > Mark skip_bus_pm flag as true to avoid this.
>
> This needs to be synchronized with the skip_bus_pm clearing in pci_pm_suspend().
I'm wondering if we can have something like aer_in_progress flag
that we can use in PCI PM for this? ...
> Also, skip_bus_pm is only used in the _noirq phases, so if a driver
> calls pci_set_power_state() from its ->suspend() callback, this change
> won't help.
... and perhaps skip these if it is set?
Raag