]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit333b7dc0dead5f4aced12a8923dc6750719a5943
tree0a00171a52869624d8b9a9eb74b84d34c5e952d5
parentbfc140648f3bc7ff69c35c5fa7cecbc8e4ea0df4
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