Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Notify sbios device ready before send request

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

authored by

Rex Zhu and committed by
Alex Deucher
1bced75f 545b0bcd

+3
+3
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
··· 540 540 size_t size; 541 541 u32 retry = 3; 542 542 543 + if (amdgpu_acpi_pcie_notify_device_ready(adev)) 544 + return -EINVAL; 545 + 543 546 /* Get the device handle */ 544 547 handle = ACPI_HANDLE(&adev->pdev->dev); 545 548 if (!handle)