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)
commit78b772e1a01f699fbbcaa59d7a298aabe66a9b21
treea7d40a07287aacc87cab77dba3bbc1d631c8f9e5
parent388b863509f76f6a5ecedd7ffdaf184aa813241e
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