[PATCH v10 0/1] drm/xe: Add helper macro to loop each dss

Zhanjun Dong zhanjun.dong at intel.com
Tue Feb 20 16:19:36 UTC 2024


Add helper macro to loop each dss. This is a precursor patch to allow
for easier iteration through MCR registers and other per-DSS uses.

Signed-off-by: Zhanjun Dong <zhanjun.dong at intel.com>
Suggested-by: Wajdeczko, Michal <Michal.Wajdeczko at intel.com>
Cc: Alan Previn <alan.previn.teres.alexis at intel.com>
Cc: Matt Roper <matthew.d.roper at intel.com>
Cc: Stuart Summers <stuart.summers at intel.com>
Cc: Jose Souza <jose.souza at intel.com>

Reviewed-by: Alan Previn <alan.previn.teres.alexis at intel.com>

Changes from prior revs:
v10:Change macro pointer type for uint to u16.
    Fix macro parameter typo. Updated function kerneldoc text. 
v9: Updated function kerneldoc text.
v8: Chang range check to assertion. Add function kerneldoc
v7: Updated commit message
v6: Optimized for_each_dss_steering macro
v5: Reduced 2 checkpatch warnings
v4: Revert function name with mcr back
v3: Rename functions with mcr removed
v2: Resend with cover letter

Zhanjun Dong (1):
  drm/xe: Add helper macro to loop each dss

 drivers/gpu/drm/xe/xe_gt_mcr.c      | 40 ++++++++++++++++++++++++-----
 drivers/gpu/drm/xe/xe_gt_mcr.h      | 16 ++++++++++++
 drivers/gpu/drm/xe/xe_gt_topology.c | 31 +++++++++++++++++++---
 drivers/gpu/drm/xe/xe_gt_topology.h |  1 +
 drivers/gpu/drm/xe/xe_gt_types.h    |  6 +++--
 5 files changed, 83 insertions(+), 11 deletions(-)

-- 
2.34.1



More information about the Intel-xe mailing list