drm/i915/mtl: fix mocs selftest
authorFei Yang <fei.yang@intel.com>
Fri, 21 Apr 2023 18:25:35 +0000 (20:25 +0200)
committerAndi Shyti <andi.shyti@linux.intel.com>
Sun, 23 Apr 2023 00:11:23 +0000 (02:11 +0200)
commitfaca6aaa4838c3c234caa619d3c7d1f09da0d303
treea74be05ac9fab982edde2e48491ffe7b74453215
parentb76c0deef6273609c02ed5053209f6397cd1b0fb
drm/i915/mtl: fix mocs selftest

Media GT has a different base for MOCS register, need to apply
gsi_offset to the mmio address if not using the intel_uncore_r/w
functions for register access.

Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230421182535.292670-3-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/gt/selftest_mocs.c