Re: [PATCH] [RFC] PCI/PM: Do not RPM suspend devices without drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/28/24 6:52 PM, Wysocki, Rafael J wrote:
On 10/26/2024 2:19 AM, Marek Vasut wrote:
On 10/13/24 1:03 PM, Lukas Wunner wrote:
On Sat, Oct 12, 2024 at 02:48:48AM +0200, Marek Vasut wrote:
The pci_host_probe() does reallocate BARs for devices which start up with uninitialized BAR addresses set to 0 by calling pci_bus_assign_resources(),
which updates the device config space content.

At the same time, pci_pm_runtime_suspend() triggers pci_save_state() for
all devices which do not have drivers assigned to them to store current
content of their config space registers.

What exactly do you mean by "at the same time"?
I mean these two blocks of code run in parallel and likely race each other.




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux