Skip to content

drm/xe/rtp: WA table context testing

Violet Monti intel-xe 6 versions – Applied

Status from this message: Applied to drm-xe-next. Thanks for the patches and reviews.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 1 replyApplied
  2. v54 patches 5 repliesSuperseded
  3. v44 patches 3 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v34 patches0 repliesSuperseded
v24 patches5 repliesSuperseded
v14 patches5 repliesSuperseded

Changes in v6 from the cover letter

- Removed sentinels that persisted after changes
- Link to v5: https://lore.kernel.org/intel-xe/[email protected]/

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/4drm/xe/rtp: Add struct types for RTP tablesdrivers/gpu/drm/xe/tests/xe_rtp_test.c drivers/gpu/drm/xe/xe_hw_engine.c drivers/gpu/drm/xe/xe_reg_whitelist.c +5 more+156 -1590 replies
2/4drm/xe/rtp: Ensure gt_was doesn't evaluate rules with engine typesdrivers/gpu/drm/xe/tests/Makefile drivers/gpu/drm/xe/tests/xe_rtp_tables_test.c drivers/gpu/drm/xe/xe_tuning.c +3 more+69 -20 replies
3/4drm/xe/rtp: Ensure oob_was does not evaluate engine type rulesdrivers/gpu/drm/xe/tests/xe_rtp_tables_test.c drivers/gpu/drm/xe/xe_wa.c drivers/gpu/drm/xe/xe_wa.h+18 -10 replies
4/4drm/xe/rtp: Ensure device_oob_was only evaluates correct rulesdrivers/gpu/drm/xe/tests/xe_rtp_tables_test.c drivers/gpu/drm/xe/xe_wa.c drivers/gpu/drm/xe/xe_wa.h+26 -10 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchGustavo SousaMatt Roper
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/4] drm/xe/rtp: WA table context testing

This series adds testing for existing WA lists within drm/xe/xe_wa.c, which previously were allowed to match rules for contexts that were not valid at their initialization time.

These tests function by parsing each target RTP table, checking for invalid contexts rules determined by an enumeration of match types, and raises an expectation fail if an improper match is found

---
Changes in v6:
- Removed sentinels that persisted after changes
- Link to v5: https://lore.kernel.org/intel-xe/[email protected]/

Changes in v5:
- Removed code accidentally added with conflict resolution
- Removed unnecessary headers
- Link to v4: https://lore.kernel.org/intel-xe/[email protected]/

Changes in v4:
- Fix conflicts with main branch
- Link to v3: https://lore.kernel.org/intel-xe/[email protected]/

Changes in v3:
- Removed unnecessary keywords
- Added gt_tunings[] to test cases
- Reworked tests to more easily identify an error
- Link to v2: https://lore.kernel.org/intel-xe/[email protected]/

Changes in v2:
- Cleaned up and refined code logic as per review suggestions.
- Link to v1: https://lore.kernel.org/intel-xe/[email protected]/

---

Gustavo Sousa (1):
drm/xe/rtp: Add struct types for RTP tables

Violet Monti (3):
drm/xe/rtp: Ensure gt_was doesn't evaluate rules with engine types drm/xe/rtp: Ensure oob_was does not evaluate engine type rules drm/xe/rtp: Ensure device_oob_was only evaluates correct rules

 drivers/gpu/drm/xe/tests/Makefile             |   1 +
 drivers/gpu/drm/xe/tests/xe_rtp_tables_test.c |  91 ++++++++++++++++
 drivers/gpu/drm/xe/tests/xe_rtp_test.c        | 103 +++++++-----------
 drivers/gpu/drm/xe/xe_hw_engine.c             |  14 +--
 drivers/gpu/drm/xe/xe_reg_whitelist.c         |   7 +-
 drivers/gpu/drm/xe/xe_rtp.c                   |  31 +++---
 drivers/gpu/drm/xe/xe_rtp.h                   |  16 ++-
 drivers/gpu/drm/xe/xe_rtp_types.h             |  10 ++
 drivers/gpu/drm/xe/xe_tuning.c                |  46 ++++----
 drivers/gpu/drm/xe/xe_tuning.h                |   6 +
 drivers/gpu/drm/xe/xe_wa.c                    |  92 +++++++++-------
 drivers/gpu/drm/xe/xe_wa.h                    |   7 ++
 12 files changed, 265 insertions(+), 159 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_rtp_tables_test.c
Signature · 1 line
2.43.0