|
@@ -27,7 +27,6 @@
|
|
|
#include <linux/slab.h>
|
|
|
#include <asm/div64.h>
|
|
|
#include <drm/amdgpu_drm.h>
|
|
|
-#include "pp_acpi.h"
|
|
|
#include "ppatomctrl.h"
|
|
|
#include "atombios.h"
|
|
|
#include "pptable_v1_0.h"
|
|
@@ -3615,13 +3614,13 @@ static int smu7_request_link_speed_change_before_state_change(
|
|
|
if (target_link_speed > current_link_speed) {
|
|
|
switch (target_link_speed) {
|
|
|
case PP_PCIEGen3:
|
|
|
- if (0 == acpi_pcie_perf_request(hwmgr->device, PCIE_PERF_REQ_GEN3, false))
|
|
|
+ if (0 == amdgpu_acpi_pcie_performance_request(hwmgr->adev, PCIE_PERF_REQ_GEN3, false))
|
|
|
break;
|
|
|
data->force_pcie_gen = PP_PCIEGen2;
|
|
|
if (current_link_speed == PP_PCIEGen2)
|
|
|
break;
|
|
|
case PP_PCIEGen2:
|
|
|
- if (0 == acpi_pcie_perf_request(hwmgr->device, PCIE_PERF_REQ_GEN2, false))
|
|
|
+ if (0 == amdgpu_acpi_pcie_performance_request(hwmgr->adev, PCIE_PERF_REQ_GEN2, false))
|
|
|
break;
|
|
|
default:
|
|
|
data->force_pcie_gen = smu7_get_current_pcie_speed(hwmgr);
|
|
@@ -3843,7 +3842,7 @@ static int smu7_notify_link_speed_change_after_state_change(
|
|
|
smu7_get_current_pcie_speed(hwmgr) > 0)
|
|
|
return 0;
|
|
|
|
|
|
- if (acpi_pcie_perf_request(hwmgr->device, request, false)) {
|
|
|
+ if (amdgpu_acpi_pcie_performance_request(hwmgr->adev, request, false)) {
|
|
|
if (PP_PCIEGen2 == target_link_speed)
|
|
|
pr_info("PSPP request to switch to Gen2 from Gen3 Failed!");
|
|
|
else
|