drm/i915/d12+: Disable DMC handlers during loading/disabling the firmware
authorImre Deak <imre.deak@intel.com>
Thu, 28 Jul 2022 08:14:40 +0000 (11:14 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 28 Jul 2022 13:51:27 +0000 (16:51 +0300)
commitfa6a4cdeafa0ab674d0f72067304c5408c89964f
tree0a00171a52869624d8b9a9eb74b84d34c5e952d5
parentc4cf059d9c2c4849c65b481c6853bb93c8b33f3b
drm/i915/d12+: Disable DMC handlers during loading/disabling the firmware

Disable the DMC event handlers before loading the firmware and after
uninitializing the display, to make sure the firmware is inactive. This
matches the Bspec "Sequences for Display C5 and C6" page for GEN12+.

Add a TODO comment for doing the same on pre-GEN12 platforms.

v2:
- Add a macro for the number of event handlers.
- Disable the event handlers only on GEN12+.
- s/dev_priv/i915/ in docbook comment.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/20220728081440.1676857-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_dmc.c
drivers/gpu/drm/i915/display/intel_dmc.h
drivers/gpu/drm/i915/display/intel_dmc_regs.h