diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2021-04-12 10:05:08 +0100 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2021-04-20 10:48:55 +0100 |
commit | f44b733e865ae963324e488866a257224e09c85c (patch) | |
tree | 707ed74a8c1e7829c36d26b6a5c993f7fa69aebd /drivers/gpu/drm/i915/selftests | |
parent | 8e6a2ebe4b9d49227304c256a8cbee23c3c95bf5 (diff) | |
download | linux-f44b733e865ae963324e488866a257224e09c85c.tar.gz |
drm/i915/selftests: Skip aperture remapping selftest where there is no aperture
If there is no mappable aperture, we cannot remap it for access, and the
selftest is void.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210412090526.30547-2-matthew.auld@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/selftests')
-rw-r--r-- | drivers/gpu/drm/i915/selftests/i915_vma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_vma.c b/drivers/gpu/drm/i915/selftests/i915_vma.c index 5fe7b80ca0bd..dd0607254a95 100644 --- a/drivers/gpu/drm/i915/selftests/i915_vma.c +++ b/drivers/gpu/drm/i915/selftests/i915_vma.c @@ -967,6 +967,9 @@ static int igt_vma_remapped_gtt(void *arg) intel_wakeref_t wakeref; int err = 0; + if (!i915_ggtt_has_aperture(&i915->ggtt)) + return 0; + obj = i915_gem_object_create_internal(i915, 10 * 10 * PAGE_SIZE); if (IS_ERR(obj)) return PTR_ERR(obj); |