OSDN Git Service

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)
commit4a62542ae064e3b645d6bbf2295a6c05136956c6
tree5ece1aea97e9bd5107cecc1f1da1cc29f8d79e45
parent2fb536ea42d557f39f70c755f68e1aa1ad466c55
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