]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Re-use gen11 forcewake read functions on gen12
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 29 Jul 2021 05:41:14 +0000 (22:41 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Aug 2021 22:34:46 +0000 (15:34 -0700)
commit7a1c1aa6d328ab52dffef1b9bb8c35c379cf0855
treec9e3a21426350fb00f97e384c8112f6dc1814390
parentc439991ed57db2c56bc27f0db10cd1cbed729e38
drm/i915: Re-use gen11 forcewake read functions on gen12

The forcewake read logic is identical between gen11 and gen12, only the
forcewake table data (which is tracked separately) differs; there's no
need to generate a separate set of gen12 read functions when the gen11
functions will work just as well.

We'll keep the separate write functions for now since the generated code
directly references different shadow tables between the two platforms.

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/20210729054118.2458523-3-matthew.d.roper@intel.com
drivers/gpu/drm/i915/intel_uncore.c