]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix dead lock issue for vblank
authorEmily.Deng <Emily.Deng@amd.com>
Mon, 14 Sep 2020 09:57:01 +0000 (17:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Sep 2020 16:25:15 +0000 (12:25 -0400)
commita953f9725c2f75ae4426b2b83a592c363161f648
treef691d5941276c1a0361db93d1a85efd8f622a308
parent596dfaed29b6ae61ef9a4d78c1e7cb79c268ec4b
drm/amdgpu: Fix dead lock issue for vblank

Always start vblank timer, but only calls vblank function
when vblank is enabled.

This is used to fix the dead lock issue.
When drm_crtc_vblank_off want to disable vblank,
it first get event_lock, and then call hrtimer_cancel,
but hrtimer_cancel want to wait timer handler function finished.
Timer handler also want to aquire event_lock in drm_handle_vblank.

Signed-off-by: Emily.Deng <Emily.Deng@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_virtual.c