[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200708122601.GB19619@lst.de>
Date: Wed, 8 Jul 2020 14:26:01 +0200
From: Christoph Hellwig <hch@....de>
To: Robin Murphy <robin.murphy@....com>
Cc: joro@...tes.org, hch@....de, iommu@...ts.linux-foundation.org,
jonathan.lemon@...il.com, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org, baolu.lu@...ux.intel.com,
dwmw2@...radead.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 1/2] iommu/intel: Avoid SAC address trick for PCIe
devices
Looks pretty sensible.
> - if (!dmar_forcedac && dma_mask > DMA_BIT_MASK(32)) {
> + if (!dmar_forcedac && dma_mask > DMA_BIT_MASK(32) &&
> + dev_is_pci(dev) && !pci_is_pcie(to_pci_dev(dev))) {
The only thing I wonder is if it is worth to add a little helper
for this check, but with everything moving to dma-iommu that might
not be needed.
Btw, does anyone know what the status of the intel-iommu conversion
to dma-iommu is?
Powered by blists - more mailing lists