]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "drm/amdgpu/display: set vblank_disable_immediate for DC"
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 20 Jun 2022 22:29:39 +0000 (18:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Jun 2022 18:50:52 +0000 (14:50 -0400)
This reverts commit 97272eb976cca6994d316956d25e11de3a0c7b87.

This causes stuttering and timeouts with DMCUB for some users
so revert it until we understand why and safely enable it
to save power.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1887
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index b4cf8717f554eaa4163b73bd87dac91026d93e81..89011bae7588e80e0646c9d63aad590209801a4d 100644 (file)
@@ -320,6 +320,7 @@ int amdgpu_irq_init(struct amdgpu_device *adev)
        if (!amdgpu_device_has_dc_support(adev)) {
                if (!adev->enable_virtual_display)
                        /* Disable vblank IRQs aggressively for power-saving */
+                       /* XXX: can this be enabled for DC? */
                        adev_to_drm(adev)->vblank_disable_immediate = true;
 
                r = drm_vblank_init(adev_to_drm(adev), adev->mode_info.num_crtc);
index 39b425d83bb1a5f52030d14f6bc134ef376bcf0c..9dd2e0601ea8ce0d050d6bf87fa7131c5e9aa20c 100644 (file)
@@ -4259,9 +4259,6 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
                }
        }
 
-       /* Disable vblank IRQs aggressively for power-saving. */
-       adev_to_drm(adev)->vblank_disable_immediate = true;
-
        /* loops over all connectors on the board */
        for (i = 0; i < link_cnt; i++) {
                struct dc_link *link = NULL;