Skip to content

Commit 0064b0c

Browse files
Kenneth Fengalexdeucher
authored andcommitted
drm/amd/pm: enable ASPM by default
Since ASPM function has been stable, we don't need to add the modprobe parameter and we can enable ASPM by default. Signed-off-by: Kenneth Feng <[email protected]> Reviewed-by: Jiansong Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 3235809 commit 0064b0c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

drivers/gpu/drm/amd/amdgpu/nv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ static void nv_pcie_gen3_enable(struct amdgpu_device *adev)
598598

599599
static void nv_program_aspm(struct amdgpu_device *adev)
600600
{
601-
if (amdgpu_aspm != 1)
601+
if (!amdgpu_aspm)
602602
return;
603603

604604
if (!(adev->flags & AMD_IS_APU) &&

drivers/gpu/drm/amd/amdgpu/soc15.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ static void soc15_pcie_gen3_enable(struct amdgpu_device *adev)
817817

818818
static void soc15_program_aspm(struct amdgpu_device *adev)
819819
{
820-
if (amdgpu_aspm != 1)
820+
if (!amdgpu_aspm)
821821
return;
822822

823823
if (!(adev->flags & AMD_IS_APU) &&

drivers/gpu/drm/amd/amdgpu/vi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ static void vi_program_aspm(struct amdgpu_device *adev)
11361136
bool bL1SS = false;
11371137
bool bClkReqSupport = true;
11381138

1139-
if (amdgpu_aspm != 1)
1139+
if (!amdgpu_aspm)
11401140
return;
11411141

11421142
if (adev->flags & AMD_IS_APU ||

drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ sienna_cichlid_get_allowed_feature_mask(struct smu_context *smu,
302302
if (smu->dc_controlled_by_gpio)
303303
*(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_ACDC_BIT);
304304

305-
if (amdgpu_aspm == 1)
305+
if (amdgpu_aspm)
306306
*(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DS_LCLK_BIT);
307307

308308
return 0;

0 commit comments

Comments
 (0)