summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_gt_mcr.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2023-09-08 15:52:27 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 11:41:06 -0500
commit9fa81f914a1ce8ee7a5a0ce6f275a636a15bb109 (patch)
tree3a11e36ad0240423e7a6f1d20ebf85a69683dc1b /drivers/gpu/drm/xe/xe_gt_mcr.c
parent9e6fe003d8c7e35bcd93f0a962b8fdc8889db35b (diff)
downloadlinux-stable-9fa81f914a1ce8ee7a5a0ce6f275a636a15bb109.tar.gz
linux-stable-9fa81f914a1ce8ee7a5a0ce6f275a636a15bb109.tar.bz2
linux-stable-9fa81f914a1ce8ee7a5a0ce6f275a636a15bb109.zip
drm/xe/mmio: Account for GSI offset when checking ranges
Change xe_mmio_in_range() to use the same logic to account for the GT's adj_offset as the read and write functions. This is needed when checking ranges for the MCR registers if the GT has an offset to adjust. Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://lore.kernel.org/r/20230908225227.1276610-1-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_gt_mcr.c')
-rw-r--r--drivers/gpu/drm/xe/xe_gt_mcr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt_mcr.c b/drivers/gpu/drm/xe/xe_gt_mcr.c
index e74d3c5743c8..77925b35cf8d 100644
--- a/drivers/gpu/drm/xe/xe_gt_mcr.c
+++ b/drivers/gpu/drm/xe/xe_gt_mcr.c
@@ -448,7 +448,7 @@ static bool xe_gt_mcr_get_nonterminated_steering(struct xe_gt *gt,
continue;
for (int i = 0; gt->steering[type].ranges[i].end > 0; i++) {
- if (xe_mmio_in_range(&gt->steering[type].ranges[i], reg)) {
+ if (xe_mmio_in_range(gt, &gt->steering[type].ranges[i], reg)) {
*group = gt->steering[type].group_target;
*instance = gt->steering[type].instance_target;
return true;
@@ -459,7 +459,7 @@ static bool xe_gt_mcr_get_nonterminated_steering(struct xe_gt *gt,
implicit_ranges = gt->steering[IMPLICIT_STEERING].ranges;
if (implicit_ranges)
for (int i = 0; implicit_ranges[i].end > 0; i++)
- if (xe_mmio_in_range(&implicit_ranges[i], reg))
+ if (xe_mmio_in_range(gt, &implicit_ranges[i], reg))
return false;
/*