drm/i915/mtl: Add Wa_14019821291
authorDnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Fri, 27 Oct 2023 19:50:52 +0000 (01:20 +0530)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 1 Nov 2023 22:57:13 +0000 (15:57 -0700)
commit43dea469e99b10ecc967a3576e50a5d416daf13c
treeef310e7fd18338abe28ad93d23257c1dc5c3bc49
parent2fb771f3b840ff59e593dad9b6289276ea545698
drm/i915/mtl: Add Wa_14019821291

This workaround is primarily implemented by the BIOS.  However if the
BIOS applies the workaround it will reserve a small piece of our DSM
(which should be at the top, right below the WOPCM); we just need to
keep that region reserved so that nothing else attempts to re-use it.

v2: Declare regs in intel_gt_regs.h (Matt Roper)

v3: Shift WA implementation before calculation of *base (Matt Roper)

v4:
-  Change condition gscpmi base to be fall in DSM range.(Matt Roper)

Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231027195052.3676632-1-dnyaneshwar.bhadane@intel.com
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
drivers/gpu/drm/i915/gt/intel_gt_regs.h