]> git.hungrycats.org Git - linux/commit
drm/xe/rtp: Ensure device_oob_was only evaluates correct rules
authorViolet Monti <violet.monti@intel.com>
Mon, 1 Jun 2026 20:09:50 +0000 (13:09 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 2 Jun 2026 21:30:29 +0000 (14:30 -0700)
commit94e15e89f491eb1c226ee996eb15cf5a15d90677
tree9034fe1271114e5013cfdb06012ca6d220a5aafc
parente2cfc5bc0c3ff132cdbe29b4843836c34a38889e
drm/xe/rtp: Ensure device_oob_was only evaluates correct rules

This commit builds on the implementation of the GT WA testing, increasing
the scope of testing to include the device OOB workaround list. As well
as checking for XE_RTP_ENGINE_CLASS(), this test also checks for rules
involving XE_RTP_GRAPHICS() and XE_RTP_MEDIA(), as well as their
derivatives.

This test will raise expectation fails for any workarounds in the
device_oob_was list that has an invalid rule type, preventing evaluation
or inclusion of rules that could be applied in the wrong context.

v6:
    - No change

v5:
    - No change

v4:
    - No change

v3:
    - Removed "VISIBLE_IF_KUNIT" keyword from xe_wa.h
    - Heavily reworked rule checking within _dev_oob_test() function for
      easier understanding and interpreting of errors

v2:
    - Changed xe_rtp_table_dev_oob_test() to follow format of
      xe_rtp_table_gt_test
    - Changed device_oob_was generated params to follow format of
      gt_was

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Violet Monti <violet.monti@intel.com>
Link: https://patch.msgid.link/20260601200947.2032784-10-violet.monti@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/tests/xe_rtp_tables_test.c
drivers/gpu/drm/xe/xe_wa.c
drivers/gpu/drm/xe/xe_wa.h