drm/i915/uncore: Convert gen6/gen7 read operations to fwtable
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 10 Sep 2021 20:10:25 +0000 (13:10 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 22 Sep 2021 00:02:10 +0000 (17:02 -0700)
commit1ab2b4cd128382ff64aaab55d6204362296139bc
treed77f04fff90b364643ed34920464fb81e796d4bb
parent45f63790e456455be6a69630042611083effe09b
drm/i915/uncore: Convert gen6/gen7 read operations to fwtable

On gen6-gen8 (except vlv/chv) we don't use a forcewake lookup table; we
simply check whether the register offset is < 0x40000, and return
FORCEWAKE_RENDER if it is.  To prepare for upcoming refactoring, let's
define a single-entry forcewake table from [0x0, 0x3ffff] and switch
these platforms over to use the fwtable reader functions.

v2:
 - Drop __gen6_reg_read_fw_domains which is no longer used.  (Tvrtko)

Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
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-2-matthew.d.roper@intel.com
drivers/gpu/drm/i915/intel_uncore.c