Skip to content

Commit d417026

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 9887a48 commit d417026

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
@@ -3890,7 +3890,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
38903890

38913891
amdgpu_device_lock_adev(tmp_adev, false);
38923892
r = amdgpu_device_pre_asic_reset(tmp_adev,
3893-
NULL,
3893+
(tmp_adev == adev) ? job : NULL,
38943894
&need_full_reset);
38953895
/*TODO Should we stop ?*/
38963896
if (r) {

0 commit comments

Comments
 (0)