diff options
author | Evan Quan <evan.quan@amd.com> | 2020-10-15 14:57:46 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-10-15 12:23:15 -0400 |
commit | ded08454e56b70186bff74374d31f57a90cb497f (patch) | |
tree | ab2a38ecd39d3831e9c4d876b64736318d1bbecc /drivers/gpu | |
parent | 5bab858eee046fb76cb516a4cac976abf922647a (diff) | |
download | linux-stable-ded08454e56b70186bff74374d31f57a90cb497f.tar.gz linux-stable-ded08454e56b70186bff74374d31f57a90cb497f.tar.bz2 linux-stable-ded08454e56b70186bff74374d31f57a90cb497f.zip |
drm/amdgpu: correct the gpu reset handling for job != NULL case
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index f8f298b34805..abddcd9dab3d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -4642,7 +4642,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) { |