[Intel-gfx] [PATCH 18/22] drm/i915/selftests: check for missing aperture

Chris Wilson chris at chris-wilson.co.uk
Fri Sep 27 20:51:09 UTC 2019


Quoting Matthew Auld (2019-09-27 18:34:05)
> diff --git a/drivers/gpu/drm/i915/selftests/i915_gem.c b/drivers/gpu/drm/i915/selftests/i915_gem.c
> index 37593831b539..4951957a4d8d 100644
> --- a/drivers/gpu/drm/i915/selftests/i915_gem.c
> +++ b/drivers/gpu/drm/i915/selftests/i915_gem.c
> @@ -42,6 +42,9 @@ static void trash_stolen(struct drm_i915_private *i915)
>         unsigned long page;
>         u32 prng = 0x12345678;
>  
> +       if (!HAS_MAPPABLE_APERTURE(i915))
> +               return;

That's a bit of a nasty loss in coverage. Note we need to extend this
test to trash lmem as well. Ideas? (Possibly using the GPU to trash
everything but itself?)
-Chris


More information about the Intel-gfx mailing list