drm/xe: Add helper macro to loop each DSS
authorZhanjun Dong <zhanjun.dong@intel.com>
Thu, 14 Mar 2024 21:07:35 +0000 (14:07 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 14 Mar 2024 23:42:18 +0000 (16:42 -0700)
commitbde5d76785bcf62afcfd873504599539d4e6c014
tree497531972ef086df98f1ea6588424a39bdc0e87d
parent431547134ef7b9cff90d5a7ab95d145136f2bec7
drm/xe: Add helper macro to loop each DSS

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@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240314210735.258553-2-zhanjun.dong@intel.com
drivers/gpu/drm/xe/xe_gt_mcr.c
drivers/gpu/drm/xe/xe_gt_mcr.h
drivers/gpu/drm/xe/xe_gt_topology.c
drivers/gpu/drm/xe/xe_gt_topology.h
drivers/gpu/drm/xe/xe_gt_types.h