]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/display: Fill PSR state during hardware configuration read out
authorJosé Roberto de Souza <jose.souza@intel.com>
Sun, 18 Apr 2021 00:21:22 +0000 (17:21 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Tue, 11 May 2021 19:28:51 +0000 (12:28 -0700)
commit1bbf24dad888bf4785949c2ff6eddf36c5880945
treea7d40a07287aacc87cab77dba3bbc1d631c8f9e5
parentdafa4dfe5574e7688d96e33c7acc8eeafb27fcb7
drm/i915/display: Fill PSR state during hardware configuration read out

So far if we had a mismatch between the state asked and what was
programmed in hardware for PSR, this mismatch would go unnoticed.

So here adding the PSR to the hardware configuration readout,
EDP_PSR_CTL and EDP_PSR2_CTL can't be directly read because its state
flips due to other factors like frontbuffer modifications and CRC.

Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210418002126.87882-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_psr.c
drivers/gpu/drm/i915/display/intel_psr.h