From: Kaylin Aurora <kaylinaurora93@gmail.com>
To: abel.vesa@oss.qualcomm.com
Cc: Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Bryan O'Donoghue <bod@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] media: iris: Unload the firmware before hibernation
Date: Tue, 1 Dec 2026 11:37:54 -0900 [thread overview]
Message-ID: <20261201203754.865719-1-kaylinaurora93@gmail.com> (raw)
In-Reply-To: <20261026-b4-media-iris-unload-firmware-hibernation-v1-1-c1af57ac16b1@oss.qualcomm.com>
On Mon, Oct 26, 2026 at 03:39PM +0200, Abel Vesa wrote:
> Make sure the image does not hold an initialized core. Unload the
> firmware before the image is created, and before the kernel that loads
> the image jumps into it, so that the next session loads it again.
Hi Abel,
I tested this on an ASUS Zenbook 14 UX3480QA (X1P42100), on v7.3.6
rather than your base; it applies there with a 4 line offset. The
firmware was loaded (a decode had run) before each sleep, and each
check decodes a short H.264 clip with h264_v4l2m2m and compares the
frames against a software decode.
Without the patch, every resume after a hibernation fails with
"failed to resume" until qcom_iris is reloaded. With it:
- hibernation and restore: decode afterwards is bit-exact, no errors
- hibernation with the decoder open: refused with "cannot hibernate
while the device is open" (-EBUSY), and the decoder works afterwards
- deep suspend: no change, decode afterwards is bit-exact
One problem though. With the patch, hibernation aborted after the
device freeze phase hangs the machine hard: black screen, keyboard
backlight off, only a forced power off recovers. Reproduced twice:
# echo devices > /sys/power/pm_test
# systemctl hibernate
The same sequence with the unpatched driver (firmware also loaded)
comes back after the 5 second wait as expected. Nothing reaches the
log after "PM: hibernation: hibernation entry", and this machine has no
pstore backend, so I don't know where it stops.
As far as I can tell, pm_test=devices only adds the 5 second wait to
the path a real failure takes: when a device fails .freeze after
iris_pm_freeze() has run, create_image() is skipped as well, and
devices go back through .restore without the late and noirq phases.
So I would expect a failed hibernation to hang the same way, though
perhaps less often given the shorter window.
I'm happy to test a v2 or a debug patch on this machine.
Testing done with the help of Claude Opus 5.5.
Kaylin Aurora
prev parent reply other threads:[~2026-12-01 20:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-26 13:39 Abel Vesa
2026-11-17 12:42 ` bod
2026-12-01 20:37 ` Kaylin Aurora [this message]
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=20261201203754.865719-1-kaylinaurora93@gmail.com \
--to=kaylinaurora93@gmail.com \
--cc=abel.vesa@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=bod@kernel.org \
--cc=dikshita.agarwal@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=vikash.garodia@oss.qualcomm.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®