Skip to contentSkip to conversation

drm/amdgpu: Display SPX partition mode for MI3xx VFs

PATCH New Victor Lu 1 participant 1 message Jul 15

Subsystems (2)
lore
Share & tools
lore

Victor Lu

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Display SPX partition mode for MI3xx VFs

VF's accelerator partition mode does not reflect that of the host. For consistency, return SPX mode when accelerator partition mode is queried if running on a VF.

---
 drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c +3 -3
index cddfe4015f53..a558dffa4062 100644
@@ -95,10 +95,10 @@ static int aqua_vanjaram_query_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr)
 		mode = AMDGPU_UNKNOWN_COMPUTE_PARTITION_MODE;
 	struct amdgpu_device *adev = xcp_mgr->adev;
 
-	derv_mode = __aqua_vanjaram_calc_xcp_mode(xcp_mgr);
-
 	if (amdgpu_sriov_vf(adev))
-		return derv_mode;
+		return AMDGPU_SPX_PARTITION_MODE;
+
+	derv_mode = __aqua_vanjaram_calc_xcp_mode(xcp_mgr);
 
 	if (adev->nbio.funcs->get_compute_partition_mode) {
 		mode = adev->nbio.funcs->get_compute_partition_mode(adev);
Signature · 1 line
2.34.1