[PATCH 0/3] tests/xe_eudebug_online: update thread count handling in query_attention_bitmask_size()

Jan Maslak jan.maslak at intel.com
Thu Nov 28 13:05:00 UTC 2024


This patch series adds a helper function to lib/xe/xe_query for looking up 
the values of hwconfig attributes and updates the thread count handling in
the query_attention_bitmask_size().

v2: Added hwconfig to xe_device, so that its value will only be queried
    once, cached and later used by the helper function.
    Added proper commit messages.
    Fixed stylistic issues in the code.
v3: xe_hwconfig_lookup_value() returns a pointer to cached data rather
    than copying it to a new buffer that the caller would later need
    to free.
    Added assert for length returned by xe_hwconfig_lookup_value()
    in the test.
    Reworded xe_hwconfig_lookup_value() description to clarify that it
    returns the length of the value in uint32_t elements.

Jan Maslak (3):
  lib/xe_query: add hwconfig to xe_device
  lib/xe_query: add xe_hwconfig_lookup_value() helper
  tests/xe_eudebug_online: update thread count handling in
    query_attention_bitmask_size()

 lib/xe/xe_query.c               | 67 +++++++++++++++++++++++++++++++++
 lib/xe/xe_query.h               |  8 ++++
 tests/intel/xe_eudebug_online.c | 12 +++++-
 3 files changed, 85 insertions(+), 2 deletions(-)

-- 
2.34.1



More information about the igt-dev mailing list