summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorMukul Joshi <mukul.joshi@amd.com>2025-08-08 17:33:59 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-01-05 16:27:17 -0500
commitfd25254f0bdd8c604052e88a8a77e8e9af8f4c87 (patch)
tree235734a817d9a8a9c35ff799319fd35e7ef3b872 /drivers/gpu/drm/amd/amdgpu
parentb78ec282bbf6b75f87358e4f634010855b770c8c (diff)
drm/amdgpu: Report correct compute partition mode on GFX 12.1
PSP programs the NBIO partition status register. In the absence of PSP, read the current compute partition from the GFX IMU register instead of NBIO. Signed-off-by: Mukul Joshi <mukul.joshi@amd.com> Reviewed-by: Alex Sierra <alex.sierra@amd.com> Reviewed-by: Michael Chen <michael.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc_v1_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c b/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c
index ec9754f687d0..23544cef4101 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c
@@ -379,7 +379,7 @@ static int soc_v1_0_query_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr)
mode = AMDGPU_UNKNOWN_COMPUTE_PARTITION_MODE;
derv_mode = __soc_v1_0_calc_xcp_mode(xcp_mgr);
- if (amdgpu_sriov_vf(adev))
+ if (amdgpu_sriov_vf(adev) || !adev->psp.funcs)
return derv_mode;
if (adev->nbio.funcs &&