From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A988C77B7F for ; Fri, 12 May 2023 18:12:52 +0000 (UTC) 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:From:References:Cc:To:Subject: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-Owner; bh=U5hrTY4Q0mLl4CPB25hyDadh24S+MwQG3Rj7eAgRsm8=; b=JefvC3XUbKCXBDfxeVeCwCvwfD VKUGksrFDaXyVQYkLswRaJjSzwnkiDjTIlCpdPjdj6Ym2Nz6HNwD+fDVJlG79dgNJVIkSdYxkwwdp Prlh9puEF9RfOvaL9IpHQ6w3YGhpbgI7E8abFxBy/irHT6zabgDcMxrvpIijgkyT4OMmGqkCmAZyo njhZCrQg7PNLQF2ZSw7Jd5eM18SfTXWo1PHjdE/t/st18gFVS1Vy26LpQvUk/HaJxgmWQWC2lCf/U EAw0Arn7623JAme8GuZX/dVB7ZPsLLhyppHPPJ/m+sduVMMUsXI8L9QHgyEsQo3jjYvdQEqBdDP93 S/sOlXjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pxXG0-00CeUI-29; Fri, 12 May 2023 18:12:44 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pxXFw-00CeRD-1z; Fri, 12 May 2023 18:12:42 +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 A03D3D75; Fri, 12 May 2023 11:13:16 -0700 (PDT) Received: from [10.57.82.232] (unknown [10.57.82.232]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 672A53F67D; Fri, 12 May 2023 11:12:26 -0700 (PDT) Message-ID: <9488a2cc-fbc6-6c1e-58f8-e2e1dc5db579@arm.com> Date: Fri, 12 May 2023 19:12:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 02/20] iommu/terga-gart: Replace set_platform_dma_ops() with IOMMU_DOMAIN_PLATFORM Content-Language: en-GB To: Jason Gunthorpe , Dmitry Osipenko Cc: Thierry Reding , Andy Gross , Alim Akhtar , Bjorn Andersson , AngeloGioacchino Del Regno , Baolin Wang , Gerald Schaefer , Heiko Stuebner , iommu@lists.linux.dev, Jernej Skrabec , Jonathan Hunter , Joerg Roedel , Konrad Dybcio , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-s390@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, Marek Szyprowski , Matthias Brugger , Matthew Rosato , Orson Zhai , Rob Clark , Samuel Holland , Niklas Schnelle , Krishna Reddy , Chen-Yu Tsai , Will Deacon , Yong Wu , Chunyan Zhang , Lu Baolu , Kevin Tian , Nicolin Chen , Steven Price References: <2-v1-21cc72fcfb22+a7a-iommu_all_defdom_jgg@nvidia.com> <1db712d2-9e33-4183-2766-34e32f170507@arm.com> <1a995f30-31fe-354f-ddfe-e944fa36e7a0@arm.com> <4a5ebc65-a384-a8df-c692-ca114f1a018d@gmail.com> From: Robin Murphy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230512_111240_766246_2D26E553 X-CRM114-Status: GOOD ( 18.74 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On 2023-05-12 17:49, Jason Gunthorpe wrote: > On Fri, May 12, 2023 at 05:55:23AM +0300, Dmitry Osipenko wrote: > >>>> This has occasionally come up in the past and I seem to remember that it >>>> had once been proposed to simply remove tegra-gart and there had been no >>>> objections. Adding Dmitry, if he doesn't have objections to remaving it, >>>> neither do I. >>> >>> Dmitry, please say yes and I will remove it instead of trying to carry >>> it. The driver is almost 10 years old at this point, I'm skeptical >>> anyone will need it on a 6.2 era kernel.. >> >> You probably missed that support for many of 10 years old Tegra2/3 >> devices was added to kernel during last years. >> >> This GART isn't used by upstream DRM driver, but it's used by downstream >> kernel which uses alternative Tegra DRM driver that works better for >> older hardware. > > It is kernel policy not to carry code to only support out of tree drivers in > mainline, so it should be removed, thanks Aww, I was literally in the middle of writing a Friday-afternoon patch to fix it... still need to build-test, but it's really not looking too bad at all: drivers/iommu/tegra-gart.c | 53 +++++++++++++++++----------------- 1 file changed, 27 insertions(+), 26 deletions(-) After that I was going to clean up the force_aperture confusion. TBH I've grown to rather like having this driver around as an exception to prove our abstractions and help make sure they make sense - it doesn't take much effort to keep it functional, and it's not like there aren't plenty of in-tree drivers for hardware even more ancient, obscure and less-used than Tegra20. FWIW I have *20*-year-old hardware at home running an up-to-date mainline-based distro for a practical purpose, but I guess that's considered valid if it says Intel on it? :P Thanks, Robin.