From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796157485; b=Uh2ruf+xxF6X9JIB76897OvZpiktSoJJFudUhUTVYvtMEXN376CIpe2CIsqpywjkgI/z 8N7iaQvEF0ACgfxO6hjb8ui5mv4wp64/Re5gKJjEmOGPwtmX1Tu7kOcJwLAIVwttM5+cX ZCT631sJ6eKDCwYMWv+TFjevnpa3EkMYiR5di2IN/DS+tvQlw09M6PJ9BzOgJKL/bx7Jg YbNM6utvrVDCTGJ1tMyDcSsoENRW0yQ9CJv2GeOS278M0AWxowq3AwhhvhjeQWnwgB5rs a2btoe4YVyXEv8hm4h3R2pQkyq9OiVtd4PeTuFhavyTNMUPBjHqhWJEH7n7by6EQS0A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796157485; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=njOI+aWXBpBepa4KookxEgMi2OVIrQUtjQiOB15OxVg=; b=EuvHJT/whiSpP3yBYEXNXLLaTQUvPEziJAS8y1y6YniN7GyDiWhRWvVU8El/i9jIgvE6 Y1TxWFWr9v/xM+/66x/xVP/V+bfWpVhAUycHGqah1r+Wo8GG/ZpYDyHEXQKGCpJ6PSyBt BGUdvDq53IUpOdG92UC6Eo5qmZghpzEbA9ueyQtHdoMwOdubg2MYfW4fz+GoZ6Z66WsQs VtjwWSunJygGD/yOcRDP2YuBqLa3fxpQzRVob3QwepM0v6NQrgDQUy8ulylBPH1CaERdY jQJWl8npHNmrgwJBQ6MA1VQMHKosZTJNZmEpyNMlR82u3Kh8FAjkQtmAoHjKnuhHy3Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="u/PseLg8"; arc=none smtp.remote-ip=209.85.210.174 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C27F606A31A for ; Tue, 1 Dec 2026 20:38:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9C27F606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=u/PseLg8 Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-8a0880a46e7so7329625b3a.1 for ; Tue, 01 Dec 2026 12:38:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796157484; x=1796762284; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=njOI+aWXBpBepa4KookxEgMi2OVIrQUtjQiOB15OxVg=; b=u/PseLg8MMpN8BeyAsKTStr0wpAAwNwgq0y760J9C2rK65hMWghOPDHjeSy1RR/TeC 9LA+tsYGKD8+8AG/kKthQb5hENOQIi5ZubAduQQR1OkY7lOatSCJEejixvf15LXFR4yg pFvVuNO34OaK4TOUkv4jyoxl65+oH5kta1O7W/XVslIZosGmMgvJF4EdgGpv94iBvAJE BjPtr8xxnyPw4v+oDEdVwyPiOlRfEexpEB06MOMiR+7x2bTcnL+8OneJYmzq/fgt5q0G 8nb+b4EJC74GzhuGPmkS0SC7YyxIJWi4OyGsjN7A3x1HLSNKx+EvAbnAPhoQ1+ib5znA nVCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796157484; x=1796762284; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=njOI+aWXBpBepa4KookxEgMi2OVIrQUtjQiOB15OxVg=; b=KHlRJ8I+W2dOX7G3jVr5BhZ3pHA4IWBeGnhf7jB57cb+5bMQdiak3VggKFCgcMHuNy d7a29+38tKobNZPfbSQsaLDsNq/9ZOhfgPUzrcNCoQzLFzzNJ1JF37VdLgFY9CJk92GW 7c+HVCiQ81aVK4jHSVKyKsi7zwx4hfEagkD1iajQDO3hsLmGKQW7IGZKGmFkTFyUF9th nHJmZrc+czVKnTV6Gw0ETj9uK0wdrX+ki22ZWb2UwET63j8uh51djSyfMN+bS3EZK2Dk z/Xmdy0s1Mhe3K0F72FDDpm7+bI+Du1o1qzOpKrOfqEkEgaraFYoVXkXuQ0SJIC16z9d Nnow== X-Forwarded-Encrypted: i=1; AL+hErF4NejzAI0z9g3vmngdIniWwPwxyUJC6DhyNhyci7qfv3LPVrS4D+VJFGLfxg7MNn9VMYtzcx+Qm8S+ymw=@vger.kernel.org X-Gm-Message-State: APuU4Z8ZGaeKSo8jZ0W4olf/nF+5+lmNFZNCPmoC/Q8a67p2bGpX8W6L w03VGfZ3wcbnUamPz0tRU/QhtLYOlxGn+eCjqhdyxoUIjRY4owffz+Fs X-Gm-Gg: AZFdTZfMl7mlAeKsBZvtFVPNbdYz03Bbu+3VpUyjQ+82EP5UNVhQx1JOoKSj1yodcXc UVtyunamAF4xz7l8Qfi7C1xWxu/ci+qgIRvwSD6e2WVGbeHHtUNjjaSV0gZN5z3ZyObFiZde3Js gySsxKhzOvdW4XMCfY9P2/XuPZfSrQMbfGUpfMDiArggfnmIaWTCoxJhNi+O8oHjpOPNyH9WOMe B+av7/H8QGaqBDt5kpv4qRZmjXn1WOxtw4GUJ1i9fOcFke6EaVpO8k9mq4QzEYGAmYa8iQ/ao3+ kNkehVu2DYQr9QgtG8HGlST/6+y9Xea46ZfgTZhcfh+xfBx7/Yszv5lKxkOATfQEbw2FKKMFFAZ vef8FX7WkiCJXHC3cOGuPfOWAqP0hzE3Z4lnYn3KCK46T+HQL/FlDkgd5lu6+BkNb/ptEo+Tfj8 qq8O5jzuqKgUj7W+KSHNkAhqxpCJUfPzJ3uukunfTDhHdxtyBxlnd3rlYRYBL5oNo8YRMEaS0rE Z2dLQC2sW0AABWAS3CQJbrgLX8BRtnzgQZsPy0bfLR17TlYVTqvAekzm0GpNMeoxsljFJjQxKwD 07tngo3QD8XFhntWB3VrhS2InXnQ2w== X-Received: by 2002:a05:6a00:b90:b0:8b6:ca80:1ade with SMTP id d2e1a72fcca58-8c7dea69446mr27836269b3a.48.1796157483401; Tue, 01 Dec 2026 12:38:03 -0800 (PST) Received: from omarchy ([206.162.60.125]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c908a56acfsm19583169b3a.23.2026.12.01.12.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 12:38:03 -0800 (PST) From: Kaylin Aurora To: abel.vesa@oss.qualcomm.com Cc: Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab , 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 Message-ID: <20261201203754.865719-1-kaylinaurora93@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261026-b4-media-iris-unload-firmware-hibernation-v1-1-c1af57ac16b1@oss.qualcomm.com> References: <20261026-b4-media-iris-unload-firmware-hibernation-v1-1-c1af57ac16b1@oss.qualcomm.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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