]> 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)
commitf9d56cd64ef3186d6ce072751f7f44dcd189f6bc
treee5930fed3c95f64e4b5160b7d76e011bd43e7eec
parent39afa4104bedf214e5779ef20655665723ad48cd
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