Re: Suspend/resume failing due to SPD5118
From: Guenter Roeck
Date: Thu Dec 19 2024 - 20:26:18 EST
On 12/19/24 14:59, Lucas De Marchi wrote:
Hi,
In our CI for xe and i915 drivers we are noticing some issues
with suspend/resume with these error messages from spd5118:
<3> [120.648546] spd5118 3-0051: PM: dpm_run_callback(): spd5118_resume [spd5118] returns -110
<3> [120.648598] spd5118 3-0051: PM: failed to resume async: error -110
<3> [122.825989] spd5118 3-0053: PM: failed to resume async: error -110
Example:
https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/3885
(there are a few other issues in which this error shows up, but this is
the the cleanest one that doesn't mix with other bugs)
thanks
Lucas De Marchi
The timeout is observed when the resume code tries to write data back to the
spd5118 chip. It originates from the i2c controller driver, not from the spd5118
driver. I have no idea why the i2c controller would time out in this situation.
Presumably it should have been brought out of suspend by the time devices connected
to it are re-enabled, but I don't see any associated message in the log.
I know that others have tested suspend/resume support with the driver and confirmed
that it works. It might help to enable debugging of the i2c controller driver if that
is possible. Other than that I have no idea what might cause this problem or how to
track it down.
Guenter