drm/amdgpu: Enable light SBR in XGMI+passthrough configuration
Subsystems (2)
PATCH 1/1 drm/amdgpu: Enable light SBR in XGMI+passthrough configuration
This is to fix the commit dda9bbb26c7 where it only enable the light SMU on normal device init. This feature actually need to be enabled after ASIC been reset as well.
Signed-off-by shaoyunl <[email protected]>
Change-Id Ie7ee02cd3ccdab3522aad9a02f681963e211ed44
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +5 -4
@@ -2513,6 +2513,11 @@ static int amdgpu_device_ip_late_init(struct amdgpu_device *adev)if (r)DRM_ERROR ("enable mgpu fan boost failed (%d).\n" , r); +/* For XGMI + passthrough configuration on arcturus, enable light SBR */ +if (adev->asic_type ==CHIP_ARCTURUS && +amdgpu_passthrough (adev) && + adev->gmc.xgmi.num_physical_nodes >1 ) +smu_set_light_sbr (&adev->smu, true);if (adev->gmc.xgmi.num_physical_nodes >1 ) {mutex_lock (&mgpu_info.mutex);
@@ -3615,10 +3620,6 @@ 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