[AMD Official Use Only - General] Looks good to me . Reviewed-By : shaoyun.liu <shaoyun....@amd.com>
-----Original Message----- From: Chander, Vignesh <vignesh.chan...@amd.com> Sent: Thursday, August 18, 2022 1:38 PM To: amd-gfx@lists.freedesktop.org Cc: Kim, Jonathan <jonathan....@amd.com>; Liu, Shaoyun <shaoyun....@amd.com>; Chander, Vignesh <vignesh.chan...@amd.com> 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 <vignesh.chan...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c index 1b108d03e785..1a2b4c4b745c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c @@ -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