[PATCH] drm/amdgpu: skip set_topology_info for VF

Liu, Shaoyun Shaoyun.Liu at amd.com
Fri Aug 19 16:35:24 UTC 2022


[AMD Official Use Only - General]

Looks good to me .
Reviewed-By : shaoyun.liu <Shaoyun.liu at amd.com>

-----Original Message-----
From: Chander, Vignesh <Vignesh.Chander at amd.com>
Sent: Thursday, August 18, 2022 1:38 PM
To: amd-gfx at lists.freedesktop.org
Cc: Kim, Jonathan <Jonathan.Kim at amd.com>; Liu, Shaoyun <Shaoyun.Liu at amd.com>; Chander, Vignesh <Vignesh.Chander at 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.Chander at 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



More information about the amd-gfx mailing list