Skip to content

Commit

Permalink
drm/amdgpu: Notify sbios device ready before send request
Browse files Browse the repository at this point in the history
it is required if a platform supports PCIe root complex
core voltage reduction. After receiving this notification,
SBIOS can apply default PCIe root complex power policy.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Rex Zhu authored and Alex Deucher committed Mar 7, 2018
1 parent 545b0bc commit 1bced75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,9 @@ int amdgpu_acpi_pcie_performance_request(struct amdgpu_device *adev,
size_t size;
u32 retry = 3;

if (amdgpu_acpi_pcie_notify_device_ready(adev))
return -EINVAL;

/* Get the device handle */
handle = ACPI_HANDLE(&adev->pdev->dev);
if (!handle)
Expand Down

0 comments on commit 1bced75

Please sign in to comment.