Skip to contentSkip to conversation

drm/amdgpu: skip set_topology_info for VF

PATCH In review Vignesh Chander 2 participants 2 messages Aug 19, 2022 – Aug 24, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: skip set_topology_info for VF

Skip set_topology_info as xgmi TA will now block it and host needs to program it.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +3 -0
index 1b108d03e785..1a2b4c4b745c 100644
@@ -504,6 +504,9 @@ int amdgpu_xgmi_update_topology(struct amdgpu_hive_info *hive, struct amdgpu_dev
 {
 	int ret;
 
+	if (amdgpu_sriov_vf(adev))
+		return 0;
+
 	/* Each psp need to set the latest topology */
 	ret = psp_xgmi_set_topology_info(&adev->psp,
 					 atomic_read(&hive->number_devices),
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

Looks good to me .

-----Original Message-----
From: Chander, Vignesh <[email protected]>
Sent: Thursday, August 18, 2022 1:38 PM
To: [email protected]
Cc: Kim, Jonathan <[email protected]>; Liu, Shaoyun <[email protected]>; Chander, Vignesh <[email protected]>
Subject: [PATCH] drm/amdgpu: skip set_topology_info for VF

Skip set_topology_info as xgmi TA will now block it and host needs to program it.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +3 -1
index 1b108d03e785..1a2b4c4b745c 100644
@@ -504,6 +504,9 @@ int amdgpu_xgmi_update_topology(struct amdgpu_hive_info *hive, struct amdgpu_dev  {
        int ret;
 
+       if (amdgpu_sriov_vf(adev))
+               return 0;
+
        /* Each psp need to set the latest topology */
        ret = psp_xgmi_set_topology_info(&adev->psp,
                                         atomic_read(&hive->number_devices),
--

2.25.1