Re: Assistance Needed: PCIe Device BAR Reset Issue

From: Lukas Wunner
Date: Fri Jan 31 2025 - 07:10:10 EST


On Fri, Jan 31, 2025 at 03:37:26PM +0530, Naveen Kumar P wrote:
> PCIe Device: PLDA Device 5555
[...]
> Initially, the BAR value is 0xb0400000. However, after some time, reading
> from the PCIe device's BAR memory fails and returns 0xffff

If you're reading "all ones" from config space, it means the device is
inaccessible and the host bridge is returning this fabricated value after
a timeout.

> Kernel modules: m1801_pci

That's not a driver in the upstream kernel.

Maybe that driver allows the device to runtime suspend to D3hot,
which in turn allows its upstream bridge to also runtime suspend
to D3hot. Then the device would be inaccessible.

> Verified power management settings:
>
> cat /sys/module/pcie_aspm/parameters/policy
> Output: [default] performance powersave powersupersave

/sys/bus/pci/devices/0000:01:00.0/power/runtime_status
would tell you whether the device is runtime suspended.

Thanks,

Lukas