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 09EEF606A322 for ; Fri, 4 Dec 2026 17:15:36 +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=spSlkgH6; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=qOJ6wVqK 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:Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Cc:To:Subject:From:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=RvNItEq+gNOv2vRXv3/JpkTSHedkG0rCAMW+DerYRag=; b=spSlkgH6eSQBXx TMtNksmAYZH7hQXYqLK5nPF+dkkiuOmQ4kVl2Co7gE3T9Va/EAtncw533QLN0/1aWBK1yG2DjtHol UFD0eXOK1yj5SqJqUZuSLQZk5btx6p1yuUsGO7lCiLDFetduBaaE51hBndrf9trUXgO628nsIf+l2 edRv4emJYd4P2cUIkKssWiBcAI9MjUoCTUDuikHHoXloIGRRKKESFAJSfXw28WNL/DlxDmlims1A2 BVDp+5vDfhTFPcxd91t7tQHWilIrn7n2BcyjUKTDWEgM5hjCPOC4oPdNzRb17s+QgZ2RlmwMHq0Z1 FE83+fMprP9Yyvdpn7FA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZWrZ-000000011r5-0gBY; Fri, 04 Dec 2026 17:14:25 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZWrP-000000011ga-26a4; Fri, 04 Dec 2026 17:14:18 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 13F151576; Fri, 4 Dec 2026 09:14:10 -0800 (PST) Received: from [10.0.128.22] (unknown [10.0.128.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B61813F86F; Fri, 4 Dec 2026 09:14:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796404452; bh=9F2I2uudZf09IBY3rKLqL9P+fgppPQW/f/AyL/FnAKo=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=qOJ6wVqK3zjbGoHZ94jMflw4rssf/SmMasFlwkXxZYHumZvtnPRxSGG0XMLClbqmO V4Yg753o6bd1YzbH7rgWXqgsQA4QOFNtsWlcxTDAGq8/QdbMNSkHRhnGUYsjJ2elTV 8cIGrZZaG9vqjdo3zy1k8+7n9KZhsFwm59gFBoHg= Message-ID: Date: Fri, 4 Dec 2026 17:14:06 +0000 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Robin Murphy Subject: Re: [RFC PATCH v2 3/3] drm/rockchip: Map the reserved regions 1:1 in the DRM IOMMU domain To: Francesco Saverio Pavone Cc: Joerg Roedel , Will Deacon , Sandy Huang , Heiko Stuebner , Andy Yan , Chaoyi Chen , Damon Ding , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jiaxing Hu , iommu@lists.linux.dev, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <20261204153227.7794-1-pavone.lawyer@gmail.com> Content-Language: en-GB In-Reply-To: <20261204153227.7794-1-pavone.lawyer@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_091417_096866_D24D3363 X-CRM114-Status: GOOD ( 18.51 ) X-Spam-Score: -4.4 (----) 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=-7.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 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 On 04/12/2026 3:32 pm, Francesco Saverio Pavone wrote: > Hi Robin, > > On 2026-12-04 12:00, Robin Murphy wrote: >> If you reach the point of creating private abstractions of entire >> IOMMU API concepts inside a DRM driver, you should probably stop and >> think "Why aren't other drivers doing this?" > > Thank you. That was blunt, and it was right. I went and looked: no > driver outside drivers/iommu walks the reserved regions the way my > patch does. Heh, sometimes it's hard to see the wood for the trees when you're working backwards from one very specific symptom of a larger issue. > I am withdrawing the series. > > The driver already does the standard takeover. I think the real gap > is smaller: the VOP2 is not stopped before it is attached to the > IOMMU domain, while the older VOP driver resets itself first. I will > look at that instead, and only send something if it removes the > faults on my board. I don't doubt that both the IOMMU driver and the VOP drivers might need a bit of smoothing out to make this properly work, it's just one of those scenarios where I'm almost certain that taking a step back to do things the "right" way will end up being easier. And that's not to say that this "minimal glitch" approach of pre-mapping the initial framebuffer prior to attaching the domain (and ideally unmapping it again as soon as we're sure it's out of use) isn't still potentially worth exploring, just that I'd hope we could pull the relevant config straight out of the VOP registers, or at worst add a DRM-appropriate way to query any existing sysfb aperture. But yeah, if just stopping the thing for the duration of driver registration is good enough for now, even simpler! Cheers, Robin.