From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73CEC606A31C for ; Sun, 29 Nov 2026 09:38:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=CRkXq1Pl; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=r3W6up2i DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:To:Cc:Date:Message-Id: Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=RHw9mRGDQ8OihYPBsAutX8aFwDq+KGLyaDqzyUHqSpU=; b=CRkXq1PlT8QFy4kHbHCwmeccAn f7xG9lAZHtK4tsy8DEK+rsolN5/ST0ph93OKT9dU1Zw45dieTHrqfB6vYVzLX5fd3WBtYWYa6Yw0t 4tmwiSNPmVGBL3b9wB9wd86zlHQ0SmXhLs1ChrRzhiOqhUGqu50wC+3/BsneC8UjPMjdUHU6pnjgH spTUBUyoO09APFwCl3W+O2iLXYupeqKJbOSJDtvieUQZ+/90IJmPMJTJ0UAF1DzmK+6zA7PGx3V8A IsWJQ8QYE/4MiOahVrHUY5tPIMNQ4+TPRLrq2aNPNBYc8af+fg9er0rMkwANUgI9TzHzMdZutyNTQ swuloZgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbMk-00000001mBg-1iab; Sun, 29 Nov 2026 09:38:38 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbMg-00000001m9P-3drM for linux-arm-kernel@lists.infradead.org; Sun, 29 Nov 2026 09:38:37 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-4ad6219f7d8so8590136f8f.0 for ; Sun, 29 Nov 2026 01:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795945113; x=1796549913; darn=lists.infradead.org; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:content-type:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RHw9mRGDQ8OihYPBsAutX8aFwDq+KGLyaDqzyUHqSpU=; b=r3W6up2iOHgXv84MVU57MM4QWo7wU0ngiC3AvNqmH+VmuJgj6xO3tryzWqARHVrxNm LZUT9PQQ+rVVHBCQixNf+LUM+hkMFzszpC3uBTKKQcDSCZDO+TbCfq34nkvBBOSR3aUB ekbC490v7rsY/sGOtNBCESoDZB2Yl5BJ+AlCupV+zUO62UqktDncMftPeYQni5E54bdO OC/mroUMRUnoKWcgJU3Ou1sF0nfpdqwYylyjYu3SsneusTQeHv2tAGe7NkIMluqMGrTL aw1/LRO50s4xqs9ApxO4Qp3OqAbqX2tCxuCnozeEgykCeAMA5Y7q62N6m9awGbiqqIJU bH4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795945113; x=1796549913; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:content-type:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RHw9mRGDQ8OihYPBsAutX8aFwDq+KGLyaDqzyUHqSpU=; b=ZYm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3YtRaPJTGewm/15D6WszUXyQM4KT 6rPzuW5AJxdK6x0GCWgPv1Us5/Axtkd2V6kKxyqantqtdGFI3T5Enuhh3gZ85JaF8cyAkURzAxh 2KlVmTK8FD+1u+AZTY4ZftczLr4Ui1Sr6I/bjKRdJdnE5AtH/3ozziMiiW05/Le/V1by6qyuktJ 1gY0v X-Received: by 2002:a5d:5d0e:0:b0:48d:f831:2681 with SMTP id ffacd0b85a97d-4abb7d465a9mr65540162f8f.38.1795945112814; Sun, 29 Nov 2026 01:38:32 -0800 (PST) Received: from smtpclient.apple ([151.35.243.10]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6b9add26sm58407009f8f.44.2026.11.29.01.38.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Nov 2026 01:38:31 -0800 (PST) From: Francesco Saverio Pavone Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Archived-By: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.200.71.1.16\)) Subject: rk3588: VOP IOMMU faults at boot while the firmware window is on Message-Id: <16FDB47B-9986-417E-B081-89A381BE9411@gmail.com> Date: Sun, 29 Nov 2026 10:38:19 +0100 Cc: Chaoyi Chen , Damon Ding , Jagan Teki , Lucas Tanure , Jiaxing Hu , Sebastian Reichel , Cristian Ciocaltea , iommu@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org To: Joerg Roedel , Will Deacon , Robin Murphy , Heiko Stuebner , Sandy Huang , Andy Yan X-Mailer: Apple Mail (2.3901.200.71.1.16) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261129_013834_921829_65579A52 X-CRM114-Status: GOOD ( 16.07 ) X-Spam-Score: -1.1 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi, On a ROCK 5B+ (RK3588) booted from EDK2 with the display on, plain v7.4-rc4 logs this around the VOP bind: platform fdd90000.vop: Adding to iommu group 7 ... rk_iommu fdd97e00.iommu: Enable stall request timed out, status: = 0x00001d rk_iommu fdd97e00.iommu: Enable stall request timed out, status: = 0x00030b rockchip-drm display-subsystem: bound fdd90000.vop (ops = vop2_component_ops) rk_iommu fdd97e00.iommu: Page fault at 0x00000000e6810000 of type read Bank 0 stalls. Bank 1 is paging with a page fault active, bus id 0xc, and never stalls. The stall lines and a page fault come once more about 13 s into the boot. This looks like what Jagan Teki reported for RK3328 in 2023 [1], where Robin pointed out that resetting the IOMMU while bootloader framebuffer traffic is still going through is a problem of its own. Lucas Tanure's PX30 patch from 14 Nov [2] deals with the same kind of master at reboot. What I traced here: the firmware leaves one window enabled (Esmart2 on VP2) and it keeps reading its framebuffer. Paging is first enabled from the IOMMU's runtime resume, the read faults because that address is not mapped, and the stall times out. b10d5920cafa acks the stale fault, but the window is still running and faults again at once. A 7.2-rc5 tree without that commit logs the same two lines. Jiaxing Hu's patch from 23 Nov [3] does not change them either: both banks report paging enabled, so its check does not trigger. As an experiment, on a tree with Collabora's rockchip-devel on top, I disabled that window, put VP2 in standby and waited for it before letting the IOMMU enable paging. That took 22 and 31 ms in two boots and the two lines were gone in both. The hack does it from rockchip-iommu.c by writing VOP registers, so it is not a patch. I can post it for reference. Where should this be handled? The driver has no get_resv_regions, so iommu-addresses on a firmware framebuffer node would not help today. The reset that Collabora's tree does in vop2_bind() comes after the first paging enable: with it the page fault line is gone, the two stall lines stay. Or is the firmware expected to turn the display off? One board, one firmware (EDK2 v1.1.1 for the ROCK 5B+). The plain v7.4-rc4 log is from a single boot; the Collabora-based tree shows the two stall lines on every boot. LLM agents (OpenAI Codex and Hermes) wrote the instrumentation and ran the boots on my board, and Claude helped write this mail. I went through the traces quoted here. Francesco [1] = https://lore.kernel.org/all/20230330131746.1475514-2-jagan@amarulasolution= s.com/ [2] https://lore.kernel.org/all/20261114133738.52817-1-tanure@linux.com/ [3] = https://lore.kernel.org/all/20261123235154.315460-1-gahing@gahingwoo.com/