Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Mukul Joshi and committed by
Alex Deucher
fd25254f b78ec282

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/soc_v1_0.c
··· 379 379 mode = AMDGPU_UNKNOWN_COMPUTE_PARTITION_MODE; 380 380 derv_mode = __soc_v1_0_calc_xcp_mode(xcp_mgr); 381 381 382 - if (amdgpu_sriov_vf(adev)) 382 + if (amdgpu_sriov_vf(adev) || !adev->psp.funcs) 383 383 return derv_mode; 384 384 385 385 if (adev->nbio.funcs &&