]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/uncore: Associate shadow table with uncore
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 10 Sep 2021 20:10:26 +0000 (13:10 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 22 Sep 2021 00:07:07 +0000 (17:07 -0700)
commit6de14c87c9a73ea6fe9dbad442a3ce9d2a84b0d0
tree797262eaa97efe7876475abfbd1e45c3f2586420
parentfc06a8fbc53c964d9acf7d7958b4c238d7e230cf
drm/i915/uncore: Associate shadow table with uncore

Store a reference to a platform's shadow table inside the uncore, the
same as we do with the forcewake table.  This will allow us to use a
single set of functions that operate on the shadow table reference
rather than generating lots of nearly-identical functions via macros
that differ only in terms of the table that they reference.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210910201030.3436066-3-matthew.d.roper@intel.com
drivers/gpu/drm/i915/intel_uncore.c
drivers/gpu/drm/i915/intel_uncore.h