drm/amdgpu: correct the gpu reset handling for job != NULL case
Subsystems (2)
PATCH 1/1 drm/amdgpu: correct the gpu reset handling for job != NULL case
Current code wrongly treat all cases as job == NULL.
Change-Id I3d686617bbe67bf64e8a6ff8cc5b0de11b80afb6
Signed-off-by Evan Quan <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -4643,7 +4643,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev, retry:/* Rest of adevs pre asic reset from XGMI hive. */ list_for_each_entry (tmp_adev, device_list_handle, gmc.xgmi.head) { r =amdgpu_device_pre_asic_reset (tmp_adev, -NULL , + (tmp_adev == adev) ? job :NULL , &need_full_reset);/*TODO Should we stop ?*/ if (r) {
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
Reviewed-by Jane Jian <[email protected]>
-----Original Message-----
From: Quan, Evan <[email protected]>
Sent: Thursday, October 15, 2020 3:03 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Jian, Jane <[email protected]>; Quan, Evan <[email protected]>
Subject: [PATCH] drm/amdgpu: correct the gpu reset handling for job != NULL case
Current code wrongly treat all cases as job == NULL.
Change-Id I3d686617bbe67bf64e8a6ff8cc5b0de11b80afb6
Signed-off-by Evan Quan <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -4643,7 +4643,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev, retry:/* Rest of adevs pre asic reset from XGMI hive. */ list_for_each_entry(tmp_adev, device_list_handle, gmc.xgmi.head) { r =amdgpu_device_pre_asic_reset (tmp_adev, -NULL , + (tmp_adev == adev) ? job :NULL , &need_full_reset);/*TODO Should we stop ?*/ if (r) {
--
2.28.0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx