Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp70948pxa; Fri, 21 Aug 2020 01:11:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmbBVd+oIMY6fHuuboTbPrieX/rgRPCzkBrXNQobetq51Q+qhomSdnxA2JGQ7DBkfJaWMc X-Received: by 2002:a50:e844:: with SMTP id k4mr1519956edn.237.1597997473330; Fri, 21 Aug 2020 01:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597997473; cv=none; d=google.com; s=arc-20160816; b=kfi4Am8nCyOIZKwee+T78y6kzemj8QM0bYOMPrKaYHCuCd78gkGk8jrUh8CL1z8qqc yautOktV5UP07JD2LA+VS+P+IVRrT4jX3SXN3MyLFffUZpwjbAla/4JnbHWuuKetmeWv HfSI0wLzm2E77zZkEAs5+USMFd0Iiwkt+w0MsvYN8G7clsccOIjwSc+UPc3+F7NZv/8i 1Fy16xAwYDBc8EcCGyNEZZ1ToLsZZKWyCy8SJWLCOM3EPUN/fw2Xtv0J5KvM74uz2+lu 8heTHbfk2fXsOI22u8zfoaefkTrlyYwpHHs8Gu2N2Pemd0dEjEtw+ENSBsHFGGXsbCxq laww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bYwr1xkjYsWL32FeddOrT/ib2VogKmGIRvauKoU2GZo=; b=UrPyOcVwm1KLbQuIuZ4sWhHszdfAm0SBPPxWBD4JDPLs2MwjXa5F/t81ReBMZXGU37 594CKJaob1YXujkYaMlXb36x4SqojEOamF/Ik2cFzOcV1NQPDqMYL2ydQ6HexSLi9MiY E0kJTdEsUgevMN2u2WQExOtzAXr2XzD3V9ajn/R0kZa7VgBtNlTSN49IORHI2iyEm1Bq LHb+qg4RGts+1o+1MzLkU7B6TJxpt9wyOFiob6DQajU88CXUz6o4MkmYJyaBDN1d/itf +Cq6/ITMbSqJ2g/TKPXFJ6/zQrc9AA2whzjWMwGo4pn/ALagjrhBPWbxY3Yf9ceoSUA0 qjgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lvzNVTn3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si734064edp.462.2020.08.21.01.10.49; Fri, 21 Aug 2020 01:11:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=lvzNVTn3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727906AbgHUIHf (ORCPT + 99 others); Fri, 21 Aug 2020 04:07:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:35258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727840AbgHUIHd (ORCPT ); Fri, 21 Aug 2020 04:07:33 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4DA4C2078D; Fri, 21 Aug 2020 08:07:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597997252; bh=LaMlJ8OWitxR94LYzLAW+/aCIQp70S1xt+7fdRecGkM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lvzNVTn3kK+R6rhX3v2r5kGGWFVmcbdZ4VJtDADKQTwh2Aes+1MU5H+LAHiN8OQ+H ket2nq3Gs0f+y7KGGrtoh30Khl+NLrKZB5sMVZ4StNWFcKM28IvThm25QAGBbg8Bw9 DAQdnRs+m1kjIK5XxPYS+MsULpHW1cs7ylBpEn4U= Date: Fri, 21 Aug 2020 09:07:25 +0100 From: Will Deacon To: Robin Murphy Cc: hch@lst.de, joro@8bytes.org, linux@armlinux.org.uk, 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: Re: [PATCH 07/18] iommu/arm-smmu: Remove arch/arm workaround Message-ID: <20200821080724.GA20060@willie-the-truck> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 20, 2020 at 04:08:26PM +0100, Robin Murphy wrote: > Now that arch/arm is wired up for default domains and iommu-dma, remove > the add_device workaround. > > Signed-off-by: Robin Murphy > --- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c b/drivers/iommu/arm/arm-smmu/arm-smmu.c > index 09c42af9f31e..4e52d8cb67dd 100644 > --- a/drivers/iommu/arm/arm-smmu/arm-smmu.c > +++ b/drivers/iommu/arm/arm-smmu/arm-smmu.c > @@ -1164,17 +1164,7 @@ static int arm_smmu_attach_dev(struct iommu_domain *domain, struct device *dev) > return -ENXIO; > } > > - /* > - * FIXME: The arch/arm DMA API code tries to attach devices to its own > - * domains between of_xlate() and probe_device() - we have no way to cope > - * with that, so until ARM gets converted to rely on groups and default > - * domains, just say no (but more politely than by dereferencing NULL). > - * This should be at least a WARN_ON once that's sorted. > - */ > cfg = dev_iommu_priv_get(dev); > - if (!cfg) > - return -ENODEV; > - > smmu = cfg->smmu; > > ret = arm_smmu_rpm_get(smmu); Acked-by: Will Deacon Will