drm/amdgpu: Enable light SBR for SMU on passthrough and XGMI configuration
Subsystems (2)
PATCH 2/2 drm/amdgpu: Enable light SBR for SMU on passthrough and XGMI configuration
SMU introduce the new interface to enable light Secondary Bus Reset 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_light_sbr (&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]
Series is reviewed-by: Evan Quan <[email protected]>
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of shaoyunl
Sent: Thursday, March 11, 2021 6:48 AM
To: [email protected]
Cc: Liu, Shaoyun <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu: Enable light SBR for SMU on passthrough and XGMI configuration
SMU introduce the new interface to enable light Secondary Bus Reset 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_light_sbr (&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%7Cevan.quan%40amd.com%7C22bce51c0b2d4f9a00e908d8e4169bc4%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637510133081451493%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=p1H2622MyBOZF4OSPY3Sl92A7DTDNEMtp1a%2BIwwV%2FUo%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx