drm/amdgpu: Enable lightSBR for SMU on passthrough and XGMI configuration
Subsystems (2)
PATCH 2/2 drm/amdgpu: Enable lightSBR for SMU on passthrough and XGMI configuration
SMU introduce the new interface to enable lightSBR mode, driver enable it on passthrough + XGMI configuration
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4 -0
@@ -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 ));
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Public Use]
Regards,
Hawking
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of shaoyunl
Sent: Thursday, March 11, 2021 01:56
To: [email protected]
Cc: Liu, Shaoyun <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu: Enable lightSBR for SMU on passthrough and XGMI configuration
SMU introduce the new interface to enable lightSBR mode, driver enable it on passthrough + XGMI configuration
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4 -0
@@ -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
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Chawking.zhang%40amd.com%7C04784f230da34296c57508d8e3edbae2%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637509957533562385%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2Bfx6ycEu2mX1unj7oi0bEvM0JMtMbFQ9u2J0UrxWQCI%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx