]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/vcn2.0: add cancel_delayed_work_sync before power gate
authorJames Zhu <James.Zhu@amd.com>
Wed, 19 May 2021 15:26:32 +0000 (11:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 21:03:10 +0000 (17:03 -0400)
commit572c40d04dd99d3e4868887fb9c14976c29cd114
treed580e642a5eff1ce202ac92b118e31e866ab240d
parentabbabd0e042b6a1d678a4fe66892a744739d4002
drm/amdgpu/vcn2.0: 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_v2_0.c