All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH 0/3] Const propagation and helper for WA
@ 2023-03-06 17:50 Lucas De Marchi
  2023-03-06 17:50 ` [Intel-xe] [PATCH 1/3] drm/xe: Allow const propagation in gt_to_xe() Lucas De Marchi
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Lucas De Marchi @ 2023-03-06 17:50 UTC (permalink / raw)
  To: intel-xe; +Cc: Lucas De Marchi, Matt Roper

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-03-06 18:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-06 17:50 [Intel-xe] [PATCH 0/3] Const propagation and helper for WA Lucas De Marchi
2023-03-06 17:50 ` [Intel-xe] [PATCH 1/3] drm/xe: Allow const propagation in gt_to_xe() Lucas De Marchi
2023-03-06 17:50 ` [Intel-xe] [PATCH 2/3] drm/xe: Constify xe_dss_mask_group_ffs() Lucas De Marchi
2023-03-06 18:08   ` Jani Nikula
2023-03-06 18:17     ` Lucas De Marchi
2023-03-06 17:50 ` [Intel-xe] [PATCH 3/3] drm/xe: Add helper to get dss per group Lucas De Marchi
2023-03-06 17:52 ` [Intel-xe] ✓ CI.Patch_applied: success for Const propagation and helper for WA Patchwork
2023-03-06 17:53 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-03-06 17:57 ` [Intel-xe] ✓ CI.Build: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.