[PATCH 2/2] drm/amdgpu: Enable lightSBR for SMU on passthrough and XGMI configuration
shaoyunl
shaoyun.liu at amd.com
Wed Mar 10 17:55:30 UTC 2021
SMU introduce the new interface to enable lightSBR mode, driver enable it
on passthrough + XGMI configuration
Signed-off-by: shaoyunl <shaoyun.liu at amd.com>
Change-Id: I59aef0559aba418b764e7cf716b0d98aca14fec5
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 4640cafae619..31a1783f211a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -3630,6 +3630,10 @@ int amdgpu_device_init(struct amdgpu_device *adev,
if (amdgpu_device_cache_pci_state(adev->pdev))
pci_restore_state(pdev);
+ /* Enable lightSBR on SMU in passthrough + xgmi configuration */
+ if (amdgpu_passthrough(adev) && adev->gmc.xgmi.num_physical_nodes > 1)
+ smu_set_lightSBR(&adev->smu, true);
+
if (adev->gmc.xgmi.pending_reset)
queue_delayed_work(system_wq, &mgpu_info.delayed_reset_work,
msecs_to_jiffies(AMDGPU_RESUME_MS));
--
2.17.1
More information about the amd-gfx
mailing list