[Intel-gfx] [PATCH i-g-t v3] tests/gem_userptr_blits: Refresh map-fixed-invalidate* subtests

Chris Wilson chris at chris-wilson.co.uk
Wed Feb 26 14:49:00 UTC 2020


Quoting Janusz Krzysztofik (2020-02-26 12:57:46)
> map-fixed-invalidate* subtests utilize gem_set_tiling() which may fail,
> e.g. on hardware with no mappable aperture, due to missing fences.
> Skip those subtests if fences are not available.
> 
> Moreover, those subtests use GEM_MMAP_GTT IOCTL which has been replaced
> by GEM_MMAP_OFFSET that supports other mapping types, not only GTT.
> Use the new IOCTL and dynamically examine all MMAP_OFFSET types
> supported by hardware.
> 
> v2: Examine all supported MMAP_OFFSET types, not only the first one
>     that works,
>   - add subtest description.
> v3: Refresh on top of commit 384e7ecb7464 ("lib/i915: Restrict mmap
>     types to GTT if no MMAP_OFFSET support").
> 
> Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik at linux.intel.com>
> Cc: Michał Winiarski <michal.winiarski at intel.com>
Lgtm,
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the Intel-gfx mailing list