OSDN Git Service

drm/i915/xelpmp: Consider GSI offset when doing MCR lookups
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 14 Feb 2023 00:19:06 +0000 (16:19 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 15 Feb 2023 21:33:50 +0000 (13:33 -0800)
commitd6683bbe70d4cdbf3da6acecf7d569cc6f0b4382
treecea59e19b6c79b80296e74df956e233b431076b6
parent4583d6beb04976dff3440b1efd2c5956997fd839
drm/i915/xelpmp: Consider GSI offset when doing MCR lookups

MCR range tables use the final MMIO offset of a register (including the
0x380000 GSI offset when applicable).  Since the i915_mcr_reg_t passed
as a parameter during steering lookup does not include the GSI offset,
we need to add it back in for GSI registers before searching the tables.

Fixes: a7ec65fc7e83 ("drm/i915/xelpmp: Add multicast steering for media GT")
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230214001906.1477370-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_gt_mcr.c