diff options
author | Jouni Högander <jouni.hogander@intel.com> | 2024-05-10 12:38:17 +0300 |
---|---|---|
committer | Jouni Högander <jouni.hogander@intel.com> | 2024-05-15 10:56:27 +0300 |
commit | 3a745dfc715c50d57e52be744c05c66d65853e94 (patch) | |
tree | e4e58284834b5017a66d0dfa518b435a0d6b8d2d /drivers/gpu/drm/i915/display/intel_psr.c | |
parent | 4b526132cce81cd2430d6548ea031b364538c5c0 (diff) | |
download | linux-3a745dfc715c50d57e52be744c05c66d65853e94.tar.gz linux-3a745dfc715c50d57e52be744c05c66d65853e94.tar.bz2 linux-3a745dfc715c50d57e52be744c05c66d65853e94.zip |
drm/i915/psr: Detect panel replay selective update support
Add new boolean to store panel replay selective update support of sink into
intel_psr struct. Detect panel replay selective update support and store
it into this new boolean.
v3: Clear sink_panel_replay_su_support in intel_dp_detect
v2: Merge adding new boolean into this patch
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240510093823.3146455-7-jouni.hogander@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_psr.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_psr.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 820499f420ba..0a5ce29f09d1 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -522,9 +522,15 @@ static void _panel_replay_init_dpcd(struct intel_dp *intel_dp) return; } - drm_dbg_kms(&i915->drm, - "Panel replay is supported by panel\n"); intel_dp->psr.sink_panel_replay_support = true; + + if (pr_dpcd & DP_PANEL_REPLAY_SU_SUPPORT) + intel_dp->psr.sink_panel_replay_su_support = true; + + drm_dbg_kms(&i915->drm, + "Panel replay %sis supported by panel\n", + intel_dp->psr.sink_panel_replay_su_support ? + "selective_update " : ""); } static void _psr_init_dpcd(struct intel_dp *intel_dp) |