From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796404454; b=RHbKYfDsOEjqgMNkacBENM9suDMp06BsXTFt/eI1Ue0mVyfy9ZL2w1K4lP8UJ2tguLpJ vxHuwEbFbQ9AeFt9B70k8EktQxrUKpwTm/UDHKLElpm7CpL4q7FcZ3zbq1Z/y1qtYIsjx 6SN4dT/P3Vs5N/hws2dAGdZ6eSPwNV9mfwUcJtl35RJLiHldHHnRrdH7NZqHoNBRq/Fft LjxdbbXJcXvRbvDPGtuKxHgl7qzzE9OLClXSgYZhPnXfcq74zupdxK5c5zFJJIiPko/uD 3IZBTmyihdWsu7FmgHYXtjq7Vgw6uEoPUkqbO0aDECec0N4/uDZagCgi7rxhXR50Fng== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796404454; h=DMARC-Filter:Received:Received:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:From:Subject:To:Cc:References: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=RvNItEq+gNOv2vRXv3/JpkTSHedkG0rCAMW+DerYRag=; b=3QoK3sAqYNmIDrzfTGsL7epCKKjTIm42p3LPHrE6xA+e0ti2W2J4a+9p5UommG+NI4W/ Pe4Jp+J6thM18fUGN0Em1gmeEmAlD6GNmb8L0Ue0ktICSbWrQyGsBYhThTKLgjPOApPA5 EbyXVvDbG2mVJm45YVwJ0Wx5KLbbXVNbiC1eMZf3yvVWEYP849dISD4jcyBi/1yujLLvq JZf0nu9UgGCDRol0p7TwPmXCumzOsuiZ2qvADVA0X4yKh5RWpLfe9QYKj6yLFgYKosJog /OIh2m7w5y3cKXmxAW4E2iS2merWYpE8gp2GmFyRNCUn0kpYv0QnwsuYS1OH+dJltoA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=qOJ6wVqK; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1B2A606A68C for ; Fri, 4 Dec 2026 17:14:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B1B2A606A68C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=qOJ6wVqK 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-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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.