From: Armin Wolf <W_Armin@gmx.de>
To: carlon.luca@gmail.com, linux@roeck-us.net
Cc: jdelvare@suse.com, linux-hwmon@vger.kernel.org,
linux-kernel@vger.kernel.org, lucas.demarchi@intel.com
Subject: Re: Suspend/resume failing due to SPD5118
Date: Sat, 3 May 2025 01:51:53 +0200 [thread overview]
Message-ID: <666a5de4-92a1-4ffa-9535-c34ec7cf49bc@gmx.de> (raw)
In-Reply-To: <20250502230753.616322-1-carlon.luca@gmail.com>
Am 03.05.25 um 01:07 schrieb carlon.luca@gmail.com:
>> 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.
> Hi,
>
> I recently bought a new machine, and trying to hibernate results in these messages
> from the kernel:
>
> [ 195.176483] PM: hibernation: hibernation entry
> [ 195.200054] Filesystems sync: 0.005 seconds
> [ 195.200760] Freezing user space processes
> [ 195.203723] Freezing user space processes completed (elapsed 0.002 seconds)
> [ 195.203732] OOM killer disabled.
> [ 195.204506] PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
> [ 195.204512] PM: hibernation: Marking nosave pages: [mem 0x0009f000-0x000fffff]
> [ 195.204517] PM: hibernation: Marking nosave pages: [mem 0x4ee2f000-0x524fefff]
> [ 195.204924] PM: hibernation: Marking nosave pages: [mem 0x8b93b000-0x8bb7bfff]
> [ 195.204941] PM: hibernation: Marking nosave pages: [mem 0x8eedd000-0x8eeddfff]
> [ 195.204943] PM: hibernation: Marking nosave pages: [mem 0x92fe3000-0x92fe3fff]
> [ 195.204945] PM: hibernation: Marking nosave pages: [mem 0x944ff000-0x97ffefff]
> [ 195.205340] PM: hibernation: Marking nosave pages: [mem 0x98000000-0xffffffff]
> [ 195.210276] PM: hibernation: Basic memory bitmaps created
> [ 195.212709] PM: hibernation: Preallocating image memory
> [ 196.875538] PM: hibernation: Allocated 1013859 pages for snapshot
> [ 196.875544] PM: hibernation: Allocated 4055436 kbytes in 1.66 seconds (2443.03 MB/s)
> [ 196.875547] Freezing remaining freezable tasks
> [ 196.876843] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
> [ 197.559071] printk: Suspending console(s) (use no_console_suspend to debug)
> [ 197.771716] spd5118 1-0051: PM: dpm_run_callback(): spd5118_suspend [spd5118] returns -110
> [ 197.771734] spd5118 1-0051: PM: failed to freeze async: error -110
> [ 197.979717] spd5118 1-0050: PM: dpm_run_callback(): spd5118_suspend [spd5118] returns -110
> [ 197.979739] spd5118 1-0050: PM: failed to freeze async: error -110
> [ 199.028103] PM: hibernation: Basic memory bitmaps freed
> [ 199.028080] mei_pxp i915.mei-gsc.768-fbf6fcf1-96cf-4e2e-a6a6-1bab8cbe36b1: bound 0000:03:00.0 (ops i915_pxp_tee_component_ops [i915])
> [ 199.029101] OOM killer enabled.
> [ 199.029104] Restarting tasks ... done.
> [ 199.088935] efivarfs: resyncing variable state
> [ 199.326219] PM: hibernation: hibernation exit
>
> the operation aborts and I cannot hibernate the machine. I fixed the problem by
> blacklisting the driver spd5118.
>
> I see that the reported problem was in the resume operation, mine is in the suspend
> operation, so I'm not sure if this is related and if the logs can help.
>
> My kernel version is 6.14.4-arch1-1.
>
> Regards.
>
> Luca Carlon
Interesting, please check which i2c controller handles the SPD5118 chip (cat /sys/bus/i2c/devices/i2c-1/name).
Can you access the i2c bus (using i2cdetect) and/or the spd5118 chip after such a failed resume attempt?
Thanks,
Armin Wolf
next prev parent reply other threads:[~2025-05-02 23:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-19 22:59 Lucas De Marchi
2024-12-20 1:20 ` Guenter Roeck
2025-05-02 23:07 ` carlon.luca
2025-05-02 23:51 ` Armin Wolf [this message]
2025-05-03 0:33 ` Luca Carlon
2025-05-03 0:14 ` Guenter Roeck
2025-05-03 0:58 ` Luca Carlon
2025-05-03 1:40 ` Guenter Roeck
2025-05-04 16:59 ` Armin Wolf
2025-05-04 18:41 ` Luca Carlon
2025-05-04 23:31 ` Guenter Roeck
2025-05-05 0:27 ` Armin Wolf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=666a5de4-92a1-4ffa-9535-c34ec7cf49bc@gmx.de \
--to=w_armin@gmx.de \
--cc=carlon.luca@gmail.com \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=lucas.demarchi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®