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

2017-09-18 Thread Chris Wilson
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_iomm

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

2017-09-18 Thread Chris Wilson
Quoting Matthew Auld (2017-09-18 16:32:19) > On 18 September 2017 at 15:22, Chris Wilson 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.

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

2017-09-18 Thread Matthew Auld
On 18 September 2017 at 15:22, Chris Wilson 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 dev

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

2017-09-18 Thread Chris Wilson
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_iomm

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

2017-09-14 Thread Chris Wilson
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 ma