]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: move the call of ras recovery_init and bad page reserve to proper place
authorTao Zhou <tao.zhou1@amd.com>
Fri, 30 Aug 2019 11:50:39 +0000 (19:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:50:47 +0000 (17:50 -0500)
commitc2190a7619e2130b33cbbecf101f99319c4cb515
tree341868da914a979cf38fd5bca6a2870e66ebb88c
parent014c3e61648af4270ddc1bf2de18251a8bbc50ae
drm/amdgpu: move the call of ras recovery_init and bad page reserve to proper place

ras recovery_init should be called after ttm init,
bad page reserve should be put in front of gpu reset since i2c
may be unstable during gpu reset.
add cleanup for recovery_init and recovery_fini

v2: add more comment and print.
    remove cancel_work_sync in recovery_init.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c