Skip to content

Commit 58d6fa1

Browse files
Evan Quangregkh
authored andcommitted
drm/amdgpu: correct the gpu reset handling for job != NULL case
commit 207ac68 upstream. Current code wrongly treat all cases as job == NULL. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-and-tested-by: Jane Jian <Jane.Jian@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bacae00 commit 58d6fa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4374,7 +4374,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
43744374
retry: /* Rest of adevs pre asic reset from XGMI hive. */
43754375
list_for_each_entry(tmp_adev, device_list_handle, gmc.xgmi.head) {
43764376
r = amdgpu_device_pre_asic_reset(tmp_adev,
4377-
NULL,
4377+
(tmp_adev == adev) ? job : NULL,
43784378
&need_full_reset);
43794379
/*TODO Should we stop ?*/
43804380
if (r) {

0 commit comments

Comments
 (0)