]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe/mmio: Account for GSI offset when checking ranges
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 8 Sep 2023 22:52:27 +0000 (15:52 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:41:06 +0000 (11:41 -0500)
commit9fa81f914a1ce8ee7a5a0ce6f275a636a15bb109
tree3a11e36ad0240423e7a6f1d20ebf85a69683dc1b
parent9e6fe003d8c7e35bcd93f0a962b8fdc8889db35b
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>
drivers/gpu/drm/xe/xe_gt_mcr.c
drivers/gpu/drm/xe/xe_mmio.h