diff options
| author | Lijo Lazar <[email protected]> | 2024-09-30 12:05:50 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-10-01 21:43:50 +0000 |
| commit | f0b919960d6d007ab3a1c8addbd5af336f09062f (patch) | |
| tree | 124bb3516f666e208adc8fb430e9c5fcb1492b1e | |
| parent | drm/amdgpu: update the handle ptr in check_soft_reset (diff) | |
| download | kernel-f0b919960d6d007ab3a1c8addbd5af336f09062f.tar.gz kernel-f0b919960d6d007ab3a1c8addbd5af336f09062f.zip | |
drm/amdgpu: Fix logic to determine TOS reload
Avoid comparing TOS version on APUs. On APUs driver doesn't take care of
TOS load.
Fixes: 0ff382261371 ("drm/amdgpu: Add interface for TOS reload cases")
Signed-off-by: Lijo Lazar <[email protected]>
Acked-by: Rajneesh Bhardwaj <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index f3f191dc8728..02fad4dad7c1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -2270,7 +2270,7 @@ bool amdgpu_psp_tos_reload_needed(struct amdgpu_device *adev) { struct psp_context *psp = &adev->psp; - if (amdgpu_sriov_vf(adev)) + if (amdgpu_sriov_vf(adev) || (adev->flags & AMD_IS_APU)) return false; if (psp->funcs && psp->funcs->is_reload_needed) |
