mirror of
https://github.com/torvalds/linux.git
synced 2026-11-13 21:53:36 +01:00
drm/i915/psr: Do not enable PSR2 when CMRR is enabled
CMRR is mutually exclusive to PSR2, do not enable PSR2 when CMRR is enabled. --v2: - Restrict selective update config check (Ankit) - Commit message change --v3: - Commit changes --v4: - Add check to psr2_config_valid (Jouni) --v5: - Correct debug message --v6: - Commit message update Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com> Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Link: https://patch.msgid.link/20260730105919.3913412-2-mitulkumar.ajitkumar.golani@intel.com
This commit is contained in:
parent
7a862851e4
commit
8565e6cfb8
|
|
@ -1491,6 +1491,12 @@ static bool intel_psr2_config_valid(struct intel_dp *intel_dp,
|
|||
int crtc_vdisplay = crtc_state->hw.adjusted_mode.crtc_vdisplay;
|
||||
int psr_max_h = 0, psr_max_v = 0, max_bpp = 0;
|
||||
|
||||
if (crtc_state->cmrr.enable) {
|
||||
drm_dbg_kms(display->drm,
|
||||
"PSR2 cannot be enabled when CMRR is enabled\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!connector->dp.psr_caps.su_support || display->params.enable_psr == 1)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user