[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210816120836.GD15860@lst.de>
Date: Mon, 16 Aug 2021 14:08:36 +0200
From: Christoph Hellwig <hch@....de>
To: David Stevens <stevensd@...omium.org>
Cc: Robin Murphy <robin.murphy@....com>,
Christoph Hellwig <hch@....de>, Joerg Roedel <joro@...tes.org>,
Will Deacon <will@...nel.org>,
Lu Baolu <baolu.lu@...ux.intel.com>,
Tom Murphy <murphyt7@....ie>, iommu@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5 5/7] dma-iommu: Check CONFIG_SWIOTLB more broadly
> - if (IS_ENABLED(CONFIG_SWIOTLB) && dev_is_untrusted(dev) &&
> + if (IS_ENABLED(CONFIG_SWIOTLB) && dev_use_swiotlb(dev) &&
> iova_offset(iovad, phys | size)) {
This can drop the explicit CONFIG_SWIOTLB check now (and make the remaining
conditional fit onto a single line).
Powered by blists - more mailing lists