drm/amdgpu: cancel late_init_work before gpu reset
authorxinhui pan <xinhui.pan@amd.com>
Fri, 17 May 2019 02:27:44 +0000 (10:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Jun 2019 03:18:09 +0000 (22:18 -0500)
commitc53e4db71276bf257b09010935a04bdafddd458e
treea81079362b1faa8210701cc0ad3da1c77cfd59dc
parentfbebaa72992ee14068bfbba51bc55da4aef2c606
drm/amdgpu: cancel late_init_work before gpu reset

gpu reset will run late_init and schedule the late_init_work.  if we
keep triggering gpu reset in a short time, there are potenial races.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c