]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make shadow tables range-based
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 29 Jul 2021 15:21:58 +0000 (08:21 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Aug 2021 22:34:47 +0000 (15:34 -0700)
commit3c6350990b2ff4effed62028cf65a35da1879e8f
treee5930fed3c95f64e4b5160b7d76e011bd43e7eec
parent7a1c1aa6d328ab52dffef1b9bb8c35c379cf0855
drm/i915: Make shadow tables range-based

Rather than defining our shadow tables as a list of individual
registers, provide them as a list of register ranges; we'll have some
ranges of multiple registers being added soon (and we already have a
couple adjacent registers that we can squash into a single range now).

This change also defines the table with hex literal values rather than
symbolic register names; since that's how the tables are defined in the
bspec, this change will make it easier to review the tables overall.

v2:
 - Force signed comparison on range overlap sanity check

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Caz Yokoyama <caz.yokoyama@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210729152158.2646246-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_workarounds.c
drivers/gpu/drm/i915/intel_uncore.c
drivers/gpu/drm/i915/intel_uncore.h
drivers/gpu/drm/i915/selftests/intel_uncore.c