From: Ville Syrjälä <[email protected]>
Move the mmio locking and unclaimed register detection into the
display code. For now both are still i915 only to keep the
number functional changes in check.
Eventually we want to hook up the unclaimed register detection
for xe as well, but might have to think of a way to do it
without the lock to reduce the overhead a bit. Eliminating
the lock would help i915 on modern platforms as well.
Ville Syrjälä (9):
drm/i915/de: Introduce dislay->mmio and intel_de_init()
drm/i915/de: Convert intel_de_{read,write}() into vfuncs
drm/i915/de: Introduce mmio read/write templates
drm/i915/de: Eliminate runtime overhead from DMC wakelock on pre-LNL
platforms
drm/i915/de: Introduce display->mmio.lock
drm/i915/uncore: Don't meddle with mmio debug upon user forcewake
drm/i915/de: Move unclaimed mmio detection into display code
drm/i915/de: Stop using intel_uncore_{read,write}()
drm/xe: Nuke the intel_uncore_{read,write}() wrappers
drivers/gpu/drm/i915/display/i9xx_wm.c | 9 +-
drivers/gpu/drm/i915/display/intel_de.c | 331 ++++++++++++++++++
drivers/gpu/drm/i915/display/intel_de.h | 29 +-
drivers/gpu/drm/i915/display/intel_display.c | 3 +-
.../gpu/drm/i915/display/intel_display_core.h | 23 ++
.../drm/i915/display/intel_display_device.c | 7 +
.../drm/i915/display/intel_display_driver.c | 15 +
.../drm/i915/display/intel_display_driver.h | 3 +
.../drm/i915/display/intel_display_params.c | 4 +
.../drm/i915/display/intel_display_params.h | 1 +
.../gpu/drm/i915/display/intel_display_regs.h | 8 +
drivers/gpu/drm/i915/display/intel_vblank.c | 16 +-
drivers/gpu/drm/i915/i915_driver.c | 12 +-
drivers/gpu/drm/i915/i915_drv.h | 1 -
drivers/gpu/drm/i915/i915_params.c | 4 -
drivers/gpu/drm/i915/i915_params.h | 1 -
drivers/gpu/drm/i915/i915_reg.h | 7 -
drivers/gpu/drm/i915/intel_uncore.c | 239 +------------
drivers/gpu/drm/i915/intel_uncore.h | 26 --
.../drm/xe/compat-i915-headers/intel_uncore.h | 16 -
20 files changed, 423 insertions(+), 332 deletions(-)
--
2.56.0