Skip to content

Commit 07fbbc4

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/display: set vblank_disable_immediate for DC
[ Upstream commit 92020e8 ] Disable vblanks immediately to save power. I think this was missed when we merged DC support. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1781 Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 019fe97 commit 07fbbc4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ int amdgpu_irq_init(struct amdgpu_device *adev)
267267
if (!amdgpu_device_has_dc_support(adev)) {
268268
if (!adev->enable_virtual_display)
269269
/* Disable vblank IRQs aggressively for power-saving */
270-
/* XXX: can this be enabled for DC? */
271270
adev_to_drm(adev)->vblank_disable_immediate = true;
272271

273272
r = drm_vblank_init(adev_to_drm(adev), adev->mode_info.num_crtc);

‎drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,9 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
10691069
adev_to_drm(adev)->mode_config.cursor_width = adev->dm.dc->caps.max_cursor_size;
10701070
adev_to_drm(adev)->mode_config.cursor_height = adev->dm.dc->caps.max_cursor_size;
10711071

1072+
/* Disable vblank IRQs aggressively for power-saving */
1073+
adev_to_drm(adev)->vblank_disable_immediate = true;
1074+
10721075
if (drm_vblank_init(adev_to_drm(adev), adev->dm.display_indexes_num)) {
10731076
DRM_ERROR(
10741077
"amdgpu: failed to initialize sw for display support.\n");

0 commit comments

Comments
 (0)