File tree Expand file tree Collapse file tree
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1496,6 +1496,8 @@ bool amdgpu_device_should_use_aspm(struct amdgpu_device *adev)
14961496 default :
14971497 return false;
14981498 }
1499+ if (adev -> flags & AMD_IS_APU )
1500+ return false;
14991501 return pcie_aspm_enabled (adev -> pdev );
15001502}
15011503
Original file line number Diff line number Diff line change @@ -1709,10 +1709,6 @@ static void cik_program_aspm(struct amdgpu_device *adev)
17091709 if (pci_is_root_bus (adev -> pdev -> bus ))
17101710 return ;
17111711
1712- /* XXX double check APUs */
1713- if (adev -> flags & AMD_IS_APU )
1714- return ;
1715-
17161712 orig = data = RREG32_PCIE (ixPCIE_LC_N_FTS_CNTL );
17171713 data &= ~PCIE_LC_N_FTS_CNTL__LC_XMIT_N_FTS_MASK ;
17181714 data |= (0x24 << PCIE_LC_N_FTS_CNTL__LC_XMIT_N_FTS__SHIFT ) |
Original file line number Diff line number Diff line change @@ -516,8 +516,7 @@ static void nv_program_aspm(struct amdgpu_device *adev)
516516 if (!amdgpu_device_should_use_aspm (adev ) || !amdgpu_device_aspm_support_quirk ())
517517 return ;
518518
519- if (!(adev -> flags & AMD_IS_APU ) &&
520- (adev -> nbio .funcs -> program_aspm ))
519+ if (adev -> nbio .funcs -> program_aspm )
521520 adev -> nbio .funcs -> program_aspm (adev );
522521
523522}
Original file line number Diff line number Diff line change @@ -2440,8 +2440,6 @@ static void si_program_aspm(struct amdgpu_device *adev)
24402440 if (!amdgpu_device_should_use_aspm (adev ))
24412441 return ;
24422442
2443- if (adev -> flags & AMD_IS_APU )
2444- return ;
24452443 orig = data = RREG32_PCIE_PORT (PCIE_LC_N_FTS_CNTL );
24462444 data &= ~LC_XMIT_N_FTS_MASK ;
24472445 data |= LC_XMIT_N_FTS (0x24 ) | LC_XMIT_N_FTS_OVERRIDE_EN ;
Original file line number Diff line number Diff line change @@ -646,8 +646,7 @@ static void soc15_program_aspm(struct amdgpu_device *adev)
646646 if (!amdgpu_device_should_use_aspm (adev ))
647647 return ;
648648
649- if (!(adev -> flags & AMD_IS_APU ) &&
650- (adev -> nbio .funcs -> program_aspm ))
649+ if (adev -> nbio .funcs -> program_aspm )
651650 adev -> nbio .funcs -> program_aspm (adev );
652651}
653652
Original file line number Diff line number Diff line change @@ -433,8 +433,7 @@ static void soc21_program_aspm(struct amdgpu_device *adev)
433433 if (!amdgpu_device_should_use_aspm (adev ))
434434 return ;
435435
436- if (!(adev -> flags & AMD_IS_APU ) &&
437- (adev -> nbio .funcs -> program_aspm ))
436+ if (adev -> nbio .funcs -> program_aspm )
438437 adev -> nbio .funcs -> program_aspm (adev );
439438}
440439
Original file line number Diff line number Diff line change @@ -1127,8 +1127,7 @@ static void vi_program_aspm(struct amdgpu_device *adev)
11271127 if (!amdgpu_device_should_use_aspm (adev ) || !amdgpu_device_pcie_dynamic_switching_supported ())
11281128 return ;
11291129
1130- if (adev -> flags & AMD_IS_APU ||
1131- adev -> asic_type < CHIP_POLARIS10 )
1130+ if (adev -> asic_type < CHIP_POLARIS10 )
11321131 return ;
11331132
11341133 orig = data = RREG32_PCIE (ixPCIE_LC_CNTL );
You can’t perform that action at this time.
0 commit comments