[PATCH i-g-t 0/3] Adding some generic helpers for future tests

Piórkowski, Piotr piotr.piorkowski at intel.com
Fri Mar 1 15:15:38 UTC 2024


From: Piotr Piórkowski <piotr.piorkowski at intel.com>

I am currently working on some GGTT tests, but it may take a while to get
them upstreamed. As part of the work, I have extracted some generic helpers
that can already be upstreamed and used by others:
 - IS_ALIGNED macro, to check if one value is aligned to the other,
 - ioread64/iowrite64 to access 64-bit value from MMIO
 - xe_is_media_gt to indetify media gt

Signed-off-by: Piotr Piórkowski <piotr.piorkowski at intel.com>

Piotr Piórkowski (3):
  lib/drmtest: Add IS_ALIGNED macro
  lib/intel_mmio: Add 64-bits ioread/iowrite
  lib/xe/xe_query: Add helper to check if given gt id point to media gt

 lib/drmtest.h     |  9 +++++++++
 lib/intel_io.h    |  2 ++
 lib/xe/xe_query.c | 21 +++++++++++++++++++++
 lib/xe/xe_query.h |  1 +
 4 files changed, 33 insertions(+)

-- 
2.34.1



More information about the igt-dev mailing list