Skip to content

Commit cd65c33

Browse files
committed
drm/amdgpu/vega20: enable the smu i2c bus for all boards
There is no longer a ras dependency so it's safe to expose on all boards. Reviewed-by: Andrey Grodzovsky <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent a519fd8 commit cd65c33

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,9 @@ static int vega20_smu_init(struct pp_hwmgr *hwmgr)
522522
priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].version = 0x01;
523523
priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].size = sizeof(DpmActivityMonitorCoeffInt_t);
524524

525-
if (adev->psp.ras.ras) {
526-
ret = smu_v11_0_i2c_control_init(&adev->pm.smu_i2c);
527-
if (ret)
528-
goto err4;
529-
}
525+
ret = smu_v11_0_i2c_control_init(&adev->pm.smu_i2c);
526+
if (ret)
527+
goto err4;
530528

531529
return 0;
532530

@@ -562,8 +560,7 @@ static int vega20_smu_fini(struct pp_hwmgr *hwmgr)
562560
(struct vega20_smumgr *)(hwmgr->smu_backend);
563561
struct amdgpu_device *adev = hwmgr->adev;
564562

565-
if (adev->psp.ras.ras)
566-
smu_v11_0_i2c_control_fini(&adev->pm.smu_i2c);
563+
smu_v11_0_i2c_control_fini(&adev->pm.smu_i2c);
567564

568565
if (priv) {
569566
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle,

0 commit comments

Comments
 (0)