summaryrefslogtreecommitdiff
path: root/tests/i915/gem_blits.c
AgeCommit message (Collapse)Author
2021-11-22tests/gem_blits: Add no-reloc capabilityKamil Konieczny
Add no-relocation mode for GPU gens without relocations. In WC mode on discrete dg1 we need to use device_coherent mmap. Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com> Reviewed-by: Zbigniew KempczyƄski <zbigniew.kempczynski@intel.com>
2021-05-27lib/i915/gem_create: Add gem_create_extAndrzej Turko
Add a wrapper for gem_create_ext ioctl (a version of gem_create that accepts extensions). In preparation for the driver change implementing it, a local definition of its id and necessary structs have been added, which are to be erased as soon as those definitions appear in the i915_drm.h file. The new ioctl wrapper is added to a separate file. For consistency the wrapper of the old ioctl, gem_create is moved from ioctl_wrappers to gem_create. Signed-off-by: Andrzej Turko <andrzej.turko@linux.intel.com> Cc: Zbigniew Kempczynski <zbigniew.kempczynski@intel.com> Cc: Dominik Grzegorzek <dominik.grzegorzek@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Cc: Chris P Wilson <chris.p.wilson@intel.com> Signed-off-by: Matthew Auld <matthew.auld@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
2020-11-20i915/gem_blits: Trim number of basic iterationsChris Wilson
Perform fewer iterations as on our very slow skl device, the basic test is tasking 120s. The basic test is only a cursory scan around boundary conditions, it is not meant to be exhaustive, just explorative. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
2020-05-07lib/i915: Split igt_require_gem() into i915/Chris Wilson
igt_require_gem() is a pecularity of i915/, move it out of the core. Similar opportunistic move of gem_reopen_driver() and gem_quiescent_gpu(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2020-02-06i915/gem_blits: Fix for devices without mappable apertureAshutosh Dixit
Skip using the gtt or applying tiling. Instead use the blitter for detiling on devices without mappable aperture. Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2019-11-11i915/gem_blits: Use common igt_fls()Chris Wilson
igt_aux.h already provides the optimal igt_fls(), so use that in preference to open coding the brute force version. Reported-by: Stuart Summers <stuart.summers@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Stuart Summers <stuart.summers@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
2019-11-07igt: Another combinatorial exercise for blitsChris Wilson
The aim of this test is to combine gem_linear_blits, gem_tiled_blits etc into one test runner that covers investigation into HW alignment issues as well as driver boundaries (relocs, access, thrashing). This here is but a start! See also gem_concurrent_blits which looks for coherency issues between parallel execution. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Katarzyna Dec <katarzyna.dec@intel.com> Cc: Vanshidhar Konda <vanshidhar.r.konda@intel.com> Reviewed-by: Vanshidhar Konda <vanshidhar.r.konda@intel.com>