diff options
| author | Jack Xiao <[email protected]> | 2022-07-20 07:57:22 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-07-28 20:28:54 +0000 |
| commit | ed67f7292b99f5d3876fa02dd51a43f46986c61c (patch) | |
| tree | e18de5cecf6d568f61f345d88314a9a3054ea0b4 /drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | |
| parent | drm/amdgpu: drop non-necessary call trace dump (diff) | |
| download | kernel-ed67f7292b99f5d3876fa02dd51a43f46986c61c.tar.gz kernel-ed67f7292b99f5d3876fa02dd51a43f46986c61c.zip | |
drm/amdgpu: move mes self test after drm sched re-started
mes self test rely on vm mapping, move it after
drm sched re-started so that vm mapping can work
during gpu reset.
Signed-off-by: Jack Xiao <[email protected]>
Acked-and-tested-by: Evan Quan <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mes_v10_1.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c b/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c index 0082e2e1e0b4..067d10073a56 100644 --- a/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c +++ b/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c @@ -1233,7 +1233,8 @@ static int mes_v10_0_late_init(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; - amdgpu_mes_self_test(adev); + if (!amdgpu_in_reset(adev)) + amdgpu_mes_self_test(adev); return 0; } |
