drm/i915/uncore: Drop gen11/gen12 mmio write handlers
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 10 Sep 2021 20:10:28 +0000 (13:10 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 22 Sep 2021 00:12:58 +0000 (17:12 -0700)
commitaef02736a8516a578098a9f066c67e891a075cb4
tree2dd2b99b6c534cf31eabb69b403081bab2a237ff
parent09b2a597de37032c7571d1b066b5d336df8c14eb
drm/i915/uncore: Drop gen11/gen12 mmio write handlers

Now that the reference to the shadow table is stored within the uncore,
we don't need to generate separate fwtable, gen11_fwtable, and
gen12_fwtable variants of the register write functions; a single
'fwtable' implementation will work for all of those platforms now.

While consolidating the functions, gen11/gen12 pick up a
NEEDS_FORCE_WAKE() check that they didn't have before, allowing them to
bypass a lot of forcewake/shadow checking for non-GT registers (e.g.,
display).  However since these later platforms also introduce media
engines at higher MMIO offsets, the definition of NEEDS_FORCE_WAKE() is
extended to also consider register offsets above GEN11_BSD_RING_BASE.

v2:
 - Restore NEEDS_FORCE_WAKE(), but extend it for compatibility with the
   gen11+ platforms by also passing offsets above GEN11_BSD_RING_BASE.
   (Chris, Tvrtko)

Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
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-5-matthew.d.roper@intel.com
drivers/gpu/drm/i915/intel_uncore.c