drm/amdgpu: skip set_topology_info for VF
Subsystems (2)
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.
Signed-off-by Vignesh Chander <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +3 -0
@@ -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
[AMD Official Use Only - General]
Looks good to me .
Reviewed-by shaoyun.liu <[email protected]>
-----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.
Signed-off-by Vignesh Chander <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +3 -1
@@ -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