]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu/vcn2.5: add cancel_delayed_work_sync before power gate
authorJames Zhu <James.Zhu@amd.com>
Wed, 19 May 2021 15:40:39 +0000 (11:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 May 2021 14:32:10 +0000 (10:32 -0400)
commitaef06d2b1b8c2181c6d5890b56c00ad5b31eb22f
tree280af1833b2b1a63831ede64139f3df083e3f14e
parent386061cd99c1d5cf268b954065d05db15214d4ff
drm/amdgpu/vcn2.5: add cancel_delayed_work_sync before power gate

Add cancel_delayed_work_sync before set power gating state
to avoid race condition issue when power gating.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c