]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/xehp: Loop over all gslices for INSTDONE processing
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 5 Aug 2021 16:36:40 +0000 (09:36 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Aug 2021 15:21:12 +0000 (08:21 -0700)
commitb80e6cc22c1c170be28428b531a4d30969d3a69b
tree3943c00599f43511abe8b829b95ba69e1a4a3bc7
parent8ff7f4e3c5c60ccbd6c80e25dde60c2cf7d784a0
drm/i915/xehp: Loop over all gslices for INSTDONE processing

We no longer have traditional slices on Xe_HP platforms, but the
INSTDONE registers are replicated according to gslice representation
which is similar.  We can mostly re-use the existing instdone code with
just a few modifications:

 * Create an alternate instdone loop macro that will iterate over the
   flat DSS space, but still provide the gslice/dss steering values for
   compatibility with the legacy code.

 * We should allocate INSTDONE storage space according to the maximum
   number of gslices rather than the maximum number of legacy slices to
   ensure we have enough storage space to hold all of the values.  XeHP
   design has 8 gslices, whereas older platforms never had more than 3
   slices.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210805163647.801064-3-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_engine_types.h
drivers/gpu/drm/i915/gt/intel_sseu.h
drivers/gpu/drm/i915/i915_gpu_error.c