]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/vcn3: add cancel_delayed_work_sync before power gate
authorJames Zhu <James.Zhu@amd.com>
Mon, 17 May 2021 20:39:17 +0000 (16:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 May 2021 14:32:11 +0000 (10:32 -0400)
commit41884cdda653d8a20a99b5d6f321c496cb377690
treefcf09a7fa0e6a761616ab45a19d353050b80de15
parentaef06d2b1b8c2181c6d5890b56c00ad5b31eb22f
drm/amdgpu/vcn3: 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_v3_0.c