mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
drm/amd/display: use a more lax vblank enable policy for DCN35+
Ideally, we want to enable immediate vblank disable, when possible and we should be able to do so on DCN35+, if PSR isn't supported by a given CRTC. Suggested-by: Leo Li <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
1 file changed
+6
-1
@@ -8246,7 +8246,8 @@ static void manage_dm_interrupts(struct amdgpu_device *adev,
|
||||
if (amdgpu_ip_version(adev, DCE_HWIP, 0) <
|
||||
IP_VERSION(3, 5, 0)) {
|
||||
drm_crtc_vblank_on(&acrtc->base);
|
||||
} else {
|
||||
} else if (acrtc_state->stream->link->psr_settings.psr_version <
|
||||
DC_PSR_VERSION_UNSUPPORTED) {
|
||||
timing = &acrtc_state->stream->timing;
|
||||
|
||||
/* at least 2 frames */
|
||||
@@ -8258,6 +8259,10 @@ static void manage_dm_interrupts(struct amdgpu_device *adev,
|
||||
config.offdelay_ms = offdelay ?: 30;
|
||||
drm_crtc_vblank_on_config(&acrtc->base,
|
||||
&config);
|
||||
} else {
|
||||
config.disable_immediate = true;
|
||||
drm_crtc_vblank_on_config(&acrtc->base,
|
||||
&config);
|
||||
}
|
||||
|
||||
amdgpu_irq_get(
|
||||
|
||||
Reference in new issue
Block a user