]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix disable ras feature failed when unload drvier v2
authorStanley.Yang <Stanley.Yang@amd.com>
Fri, 26 Nov 2021 09:24:39 +0000 (17:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 21:03:22 +0000 (16:03 -0500)
commit2b41bccf79a4b541d0c947195f3842de4a678a39
tree787db8c87b7b9d65214327cf0e3f617100673ff9
parent03a2ecac984ad88965f0ff5c3ad42f8a150d903d
drm/amdgpu: fix disable ras feature failed when unload drvier v2

v2:
    still need call ras_disable_all_featrures to handle
    ras initilization failure case.

Function amdgpu_device_fini_hw is called before amdgpu_device_fini_sw,
so ras ta will unload before send ras disable command, ras dsiable operation
must before hw fini.

Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@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