[Intel-xe] [PATCH 0/3] Const propagation and helper for WA

Lucas De Marchi lucas.demarchi at intel.com
Mon Mar 6 17:50:22 UTC 2023


In some follow up WAs we will need to check when the first gslice is
fused off (see Wa_1308578152 in i915).  Export a function from
xe_gt_topology.c that can be used for that.

Since we are only reading the array, the pointers passed around can be
const. This helps making sure the struct isn't modified in places we are
not expecting it to. In the RTP infra the match callback to decide if
the WA should be applied for that platform passes a const ref: see
xe_rtp_rule::match_func.  First patch proposes a different way to
implement gt_to_xe() that handles that better.

Lucas De Marchi (3):
  drm/xe: Allow const propagation in gt_to_xe()
  drm/xe: Constify xe_dss_mask_group_ffs()
  drm/xe: Add helper to get dss per group

 drivers/gpu/drm/xe/xe_gt.h          | 8 ++++----
 drivers/gpu/drm/xe/xe_gt_mcr.c      | 2 +-
 drivers/gpu/drm/xe/xe_gt_topology.c | 8 +++++++-
 drivers/gpu/drm/xe/xe_gt_topology.h | 5 ++++-
 4 files changed, 16 insertions(+), 7 deletions(-)

-- 
2.39.0



More information about the Intel-xe mailing list