OSDN Git Service

drm/amd/amdgpu: enable ASPM on navi1x
authorKenneth Feng <kenneth.feng@amd.com>
Wed, 14 Apr 2021 10:31:05 +0000 (18:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:32:44 +0000 (16:32 -0400)
enable ASPM on navi1x for the benifit of system power consumption
without performance hurt.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 46d4bba..d54af7f 100644 (file)
@@ -601,8 +601,7 @@ static void nv_program_aspm(struct amdgpu_device *adev)
        if (amdgpu_aspm != 1)
                return;
 
-       if ((adev->asic_type >= CHIP_SIENNA_CICHLID) &&
-           !(adev->flags & AMD_IS_APU) &&
+       if (!(adev->flags & AMD_IS_APU) &&
            (adev->nbio.funcs->program_aspm))
                adev->nbio.funcs->program_aspm(adev);
 
@@ -934,12 +933,7 @@ static int nv_update_umd_stable_pstate(struct amdgpu_device *adev,
        if (adev->gfx.funcs->update_perfmon_mgcg)
                adev->gfx.funcs->update_perfmon_mgcg(adev, !enter);
 
-       /*
-        * The ASPM function is not fully enabled and verified on
-        * Navi yet. Temporarily skip this until ASPM enabled.
-        */
-       if ((adev->asic_type >= CHIP_SIENNA_CICHLID) &&
-           !(adev->flags & AMD_IS_APU) &&
+       if (!(adev->flags & AMD_IS_APU) &&
            (adev->nbio.funcs->enable_aspm))
                adev->nbio.funcs->enable_aspm(adev, !enter);