]> git.hungrycats.org Git - linux/commit
drm/xe/rtp: Ensure oob_was does not evaluate engine type rules
authorViolet Monti <violet.monti@intel.com>
Mon, 1 Jun 2026 20:09:49 +0000 (13:09 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 2 Jun 2026 21:30:29 +0000 (14:30 -0700)
commite2cfc5bc0c3ff132cdbe29b4843836c34a38889e
tree12e86822a511df3e39aa4fbeaca49b3b0282d9b7
parente9845449e37f5a5eb1508760ef048211d7e261ff
drm/xe/rtp: Ensure oob_was does not evaluate engine type rules

This commit builds on the implementation of the GT WA testing, increasing
the scope of testing to include the OOB workaround list. The added test
checks for workarounds with XE_RTP_ENGINE_CLASS() rules and raises an
expectationfailure if any are found. Unlike the GT workarounds, there are
no flags within this workaround list, so all invalid rules will fail.

v6:
    - No change

v5:
    - No change

v4:
    - No change

v3:
    - Removed VISIBLE_IF_KUNIT keyword from xe_wa.h
    - Reworked KUNIT_EXPECT_TRUE for easier decoding of errors

v2:
    - Changed xe_rtp_table_oob_test() to follow format of
      xe_rtp_table_gt_test
    - Changed oob_was generated params to follow format of gt_was
      generated params

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Violet Monti <violet.monti@intel.com>
Link: https://patch.msgid.link/20260601200947.2032784-9-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