drm/i915/xehpsdv/dg1/tgl: Fix issue with LRI relative addressing
authorAkeem G Abodunrin <akeem.g.abodunrin@intel.com>
Mon, 25 Apr 2022 15:23:15 +0000 (20:53 +0530)
committerRamalingam C <ramalingam.c@intel.com>
Mon, 2 May 2022 09:48:07 +0000 (15:18 +0530)
commit7c161b85e88552a037566678128c169fba3b1efe
tree5dbfc2e7bc7b0c59df054e96073f50f416548ca5
parent59a4752895b2e43351c7c1dd2b264d17d74e8466
drm/i915/xehpsdv/dg1/tgl: Fix issue with LRI relative addressing

When bit 19 of MI_LOAD_REGISTER_IMM instruction opcode is set on tgl+
devices, HW does not care about certain register address offsets, but
instead check the following for valid address ranges on specific engines:
RCS && CCS: BITS(0 - 10)
BCS: BITS(0 - 11)
VECS && VCS: BITS(0 - 13)
Also, tgl+ now support relative addressing for BCS engine - So, this
patch fixes issue with live_gt_lrc selftest that is failing where there is
mismatch between LRC register layout generated during init and HW
default register offsets.

Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
cc: Prathap Kumar Valsan <prathap.kumar.valsan@intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220425152317.4275-2-ramalingam.c@intel.com
drivers/gpu/drm/i915/gt/selftest_lrc.c