aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorLijo Lazar <[email protected]>2024-09-30 12:05:50 +0000
committerAlex Deucher <[email protected]>2024-10-01 21:43:50 +0000
commitf0b919960d6d007ab3a1c8addbd5af336f09062f (patch)
tree124bb3516f666e208adc8fb430e9c5fcb1492b1e /drivers/gpu/drm/amd
parentdrm/amdgpu: update the handle ptr in check_soft_reset (diff)
downloadkernel-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]>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c2
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)