]> 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>
Thu, 20 May 2021 21:03:55 +0000 (17:03 -0400)
commit07d6b583255d949d4103292f113a23649f326b27
tree5ece1aea97e9bd5107cecc1f1da1cc29f8d79e45
parent4f8b6b13c8ab613694f48f72b6b9f994e11b2f61
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c