]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/adlp: Add workaround to disable CMTG clock gating
authorImre Deak <imre.deak@intel.com>
Tue, 27 Jul 2021 13:44:00 +0000 (16:44 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 28 Jul 2021 13:05:36 +0000 (16:05 +0300)
commitb2e170681d01ed32cc8a410c6ba274a602899ee4
tree5a85bba352c389d9a14ce547ef387200e566b04b
parentfe4357482d0dad4e5044376558c7ef81a60f7760
drm/i915/adlp: Add workaround to disable CMTG clock gating

The driver doesn't depend atm on the common mode timing generator
functionality (it would be used for some power saving feature and panel
timing synchronization), however DMC will corrupt the CMTG registers
across DC5 entry/exit sequences unless the CMTG clock gating is
disabled. This in turn can lead to at least the DPLL0/1 configuration
getting stuck at their last state, which means we can't reprogram them
to a new config.

Add the corresponding Bspec workaround to prevent the above.

v2: Fix checkpatch errors. (CI, Jose)

Cc: Uma Shankar <uma.shankar@intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210727134400.101290-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/i915_reg.h