[Intel-gfx] [PATCH] drm/i915/selftests: Disable iommu for the mock device

Chris Wilson chris at chris-wilson.co.uk
Mon Sep 18 16:03:04 UTC 2017


Quoting Matthew Auld (2017-09-18 16:32:19)
> On 18 September 2017 at 15:22, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> > Quoting Chris Wilson (2017-09-14 17:22:40)
> >> On some machines, the iommu cannot allocate a domain for the mock device
> >> causing the dma_map_sg() to fail, and the selftest to fail with -ENOMEM.
> >> For the mock selftests, we are using a fake device and do not care about
> >> iommu; so convince intel_iommu to treat us as a dummy device with an
> >> identity mapping (and no iommu domain).
> >>
> >> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101080
> >> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > Tested-by: Elizabeth De La Torre Mena <elizabethx.de.la.torre.mena at intel.com>
> Reviewed-by: Matthew Auld <matthew.auld at intel.com>

And pushed, thanks for the review. Definitely a hack, but works for
now..,
-Chris


More information about the Intel-gfx mailing list