]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/vcn1: add cancel_delayed_work_sync before power gate
authorJames Zhu <James.Zhu@amd.com>
Tue, 18 May 2021 14:58:22 +0000 (10:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 May 2021 14:32:09 +0000 (10:32 -0400)
commitecf5702fb9e12fee6f24090bfb95f0fa11fecee4
tree945e7ca8624b95f86680478ad94fd4432a96c434
parent55d9120714d1b2e22bf5e5368ff9156e481811c5
drm/amdgpu/vcn1: 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_v1_0.c