From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380561; b=S22xb+1iUq04g3GZmpuBzr2Ou2LCc4JGEXXl85ZAy0EotdDkgNE8QzHaiDKPx8ucy+3N v3FTyJjXJiWHhGfO2PSo5IPyd3Bffb224B3KjfvNCb52vu1cYtift6Qfv6KcLf4sA3ssV vONYc2ne2Oi4/6xi/db04SO2MzxEUX7MfLLW/Gm093axEf7fkCHVsBEba5m0ksja4gabL N/tZnXNpdm5Fyk5qr9WppAF8HQCYlcY3vbE9MtwZMYraBig13trTOJsUW0n3PZhfYQs1Z 3kbYSeOhV6YGHdv0293KaKdsKfxpH1sC9MDoKFHzeaBXB6cZmxsMRnZmnw8q2is9XUA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380561; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=ClTmTIzIBy+EidBvtSlk3lPFuoP/tJgkDCgHTcPc2Zc=; b=BM56JqRfOg5oTtw6Ll0jx7ZdpXMlBenLjBoGvHYr4FLFk5mFrm8VwIZxuVgMloKBvdMo RM/AqKHRnIfyyxpHXWRFBZGMavsbdfek3+2wcYwkb3gZRFO9eMFvHouWxG60dCJRsf3uR 3i6rAMC58QzursQgt8fTzyQaRBxu7F0yVeMm5YYLyKYCCrh4/RYpYyZ0G1RYTxmt0/bx7 3ubyU9KKm+NPqZ2UEU4yL/+1z59pXeJMer+UDGaWEmpx28q+lWkUOaINEp3J5aCi1t0aU XGrqSu5ow4CH/hgQw/kpZIhRIub/cklRqbA5WsT+2ZlqYfAvF7p2PyuJ33Ur6udhEOQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jThR5DJa; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37ED7606A681; Fri, 4 Dec 2026 10:36:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jThR5DJa Received: by smtp.kernel.org (Postfix) with ESMTPSA id A48FD1F00897; Fri, 4 Dec 2026 10:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380561; bh=ClTmTIzIBy+EidBvtSlk3lPFuoP/tJgkDCgHTcPc2Zc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jThR5DJaaLSydJEo3eF8TnHetd9ZrA/mrj7JjQLsOKczWI/4wAgX3/J7TmiO8Zcrp LaTkryU19o3mhBsHYFcCL/PJDqI+iUJgqzsl4gG53rsimsxitfgOrRhlWU94odT7FR 05uDr3GqVg87bABZufLmktprKfgPCfTvcCcdDu4s= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Daniel Golle , Benjamin Gaignard , Joerg Roedel , Sasha Levin Subject: [PATCH 7.3 327/742] iommu/vsi: keep the runtime PM callbacks without PM_SLEEP Date: Fri, 4 Dec 2026 19:03:11 +0900 Message-ID: <20261204100643.721840064@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@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 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Daniel Golle [ Upstream commit 0008c5d5030c4bddad186be9c5c3959f21012a66 ] The runtime PM operations are handed to the driver core through pm_sleep_ptr(), which is NULL unless CONFIG_PM_SLEEP is set. Without system sleep support the IOMMU has no runtime PM callbacks at all: its clocks are never enabled by the driver, the page table is not restored when the power domain comes back, and iommu->enable stays set while genpd powers the domain off. The TLB flush issued from vsi_iommu_map() then writes to the unpowered IOMMU, and the first buffer allocation of the RK3588 AV1 decoder ends in an asynchronous SError. Use pm_ptr(), which keeps the operations whenever CONFIG_PM is set. Fixes: 917ace84b770 ("iommu: Add verisilicon IOMMU driver") Signed-off-by: Daniel Golle Reviewed-by: Benjamin Gaignard Signed-off-by: Joerg Roedel Signed-off-by: Sasha Levin --- drivers/iommu/vsi-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/vsi-iommu.c b/drivers/iommu/vsi-iommu.c index 5dac20b143a55..1b447c0693936 100644 --- a/drivers/iommu/vsi-iommu.c +++ b/drivers/iommu/vsi-iommu.c @@ -780,7 +780,7 @@ static struct platform_driver rockchip_vsi_iommu_driver = { .driver = { .name = "vsi_iommu", .of_match_table = vsi_iommu_dt_ids, - .pm = pm_sleep_ptr(&vsi_iommu_pm_ops), + .pm = pm_ptr(&vsi_iommu_pm_ops), .suppress_bind_attrs = true, }, }; -- 2.53.0