OSDN Git Service

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)
commit573d7ce4f69a85010fe2a40f4976326ee347f584
tree5a85bba352c389d9a14ce547ef387200e566b04b
parentba3b049f477436b7e4bb19c293c78c9068582d54
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