Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1316083pxa; Thu, 20 Aug 2020 08:12:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWph9cB2LE+yCWew5wkHJgSRisNxH2bpa3h2hWb8kf283YRzX1SHQ4uXzP6MzWKj1/VORL X-Received: by 2002:a17:906:d92c:: with SMTP id rn12mr3627106ejb.187.1597936375106; Thu, 20 Aug 2020 08:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597936375; cv=none; d=google.com; s=arc-20160816; b=HBBAzmWbuSOIU9bWIeXBM2iGyUojRyHo+jG+dJ+9REAsb+K/ZRCL/5xVvc/IwlZrex VeCntf2mZ13eINfrYT+mPbDCCR5YIFb1axDew9XxF1+yzBPwAkoGIv2rwVmSTaGFT0iP GpCDWf70W4ZBtAHvlqt5jPK7mx4hw3jVX89vGPznRv/IfEaWsa+Wjs9ig2ir1yWHdPkH spoKZYCv2mTX9DyZ6wUwO3BghRqKB0kXtY9ySfGS2iZOjsRvtc40509dDWWh5mt6dHwl i2pLLDE5xoB5+3V/prypmHJ3M9ihrSE5RMTCZrDqah03/En7Yb9/icpKl5eqaApCmBUk S5Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=OmKtGL3ScSPjNwCvdAvlF2XKRqXnLwOcqscEGku0ZFw=; b=YL8C0rCj+j4Egd/Al6FP88qlyiDp1d1P6I/xtqr0U0k1td/g1wJ0tTTx0IZjx3GxzV sWz9e6aoFPYDgYqqPQZbzDmXGMBDRfovqDRW4e4mrBNUYSJJ/YgPfzeusdIwsrlrIN8x kj5S56dXGKUVZ03dZ9gZ5FB2hqPwAuy7Me1x0wgsZneUzQ4EsKV6c1sSrNfh0b+bBP9s ZJuDGwZIZU/74Eny0bnXzMxIjcJcBmtX++QhM/ifCviuBzRJeI1N/NkH24tVfcNgi0/e 3FcFXb+5FpVwbfogQV+g34BxHLUxuD6fGxi5tpiP0pJYfVeRkyYQUAv8pY9fofMe86K0 C3GQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si1546241edv.545.2020.08.20.08.12.31; Thu, 20 Aug 2020 08:12:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729058AbgHTPLS (ORCPT + 99 others); Thu, 20 Aug 2020 11:11:18 -0400 Received: from foss.arm.com ([217.140.110.172]:41266 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728698AbgHTPJw (ORCPT ); Thu, 20 Aug 2020 11:09:52 -0400 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 D724B1516; Thu, 20 Aug 2020 08:09:50 -0700 (PDT) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 48CAB3F6CF; Thu, 20 Aug 2020 08:09:47 -0700 (PDT) From: Robin Murphy To: hch@lst.de, joro@8bytes.org, linux@armlinux.org.uk Cc: will@kernel.org, inki.dae@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, agross@kernel.org, bjorn.andersson@linaro.org, thierry.reding@gmail.com, jonathanh@nvidia.com, vdumpa@nvidia.com, digetx@gmail.com, matthias.bgg@gmail.com, yong.wu@mediatek.com, geert+renesas@glider.be, magnus.damm@gmail.com, t-kristo@ti.com, s-anna@ti.com, laurent.pinchart@ideasonboard.com, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 15/18] drm/nouveau/tegra: Clean up IOMMU workaround Date: Thu, 20 Aug 2020 16:08:34 +0100 Message-Id: <21d8d42edb9f91e62f9c72875cf2210afacff18c.1597931876.git.robin.murphy@arm.com> X-Mailer: git-send-email 2.28.0.dirty In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that arch/arm is wired up for default domains and iommu-dma, we no longer need to work around the arch-private mapping. Signed-off-by: Robin Murphy --- drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c b/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c index d0d52c1d4aee..410ee1f83e0b 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c @@ -23,10 +23,6 @@ #ifdef CONFIG_NOUVEAU_PLATFORM_DRIVER #include "priv.h" -#if IS_ENABLED(CONFIG_ARM_DMA_USE_IOMMU) -#include -#endif - static int nvkm_device_tegra_power_up(struct nvkm_device_tegra *tdev) { @@ -109,15 +105,6 @@ nvkm_device_tegra_probe_iommu(struct nvkm_device_tegra *tdev) unsigned long pgsize_bitmap; int ret; -#if IS_ENABLED(CONFIG_ARM_DMA_USE_IOMMU) - if (dev->archdata.mapping) { - struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(dev); - - arm_iommu_detach_device(dev); - arm_iommu_release_mapping(mapping); - } -#endif - if (!tdev->func->iommu_bit) return; -- 2.28.0.dirty