Re: [PATCH] PCI/PM: Print the pci config space of devices before suspend

From: Chen Yu
Date: Mon Jan 13 2020 - 22:04:29 EST


Hi Rafael,
On Mon, Jan 13, 2020 at 11:01:28AM +0100, Rafael J. Wysocki wrote:
> On Mon, Jan 13, 2020 at 7:08 AM Chen Yu <yu.c.chen@xxxxxxxxx> wrote:
> >
> > The pci config space was found to be insane during resume
>
> I wouldn't call it "insane".
>
> It probably means that the device was not present or not accessible
> during hibernation and now it appears to be present (maybe the restore
> kernel found it and configured it).
>
Right, thanks for the hint. If this is the case, it should not
save any pci config settings if that device is not accessible,
otherwise there's risk of pci config hard confliction after resumed.
I've applied the patch and wait for the issue to be reproduced
(not 100%) and will send the result later.

Thanks,
Chenyu