projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
545b0bc
)
drm/amdgpu: Notify sbios device ready before send request
author
Rex Zhu
<
[email protected]
>
Tue, 27 Feb 2018 10:20:53 +0000
(18:20 +0800)
committer
Alex Deucher
<
[email protected]
>
Wed, 7 Mar 2018 21:27:00 +0000
(16:27 -0500)
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 <
[email protected]
>
Signed-off-by: Rex Zhu <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
Cc:
[email protected]
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
index 57afad79f55d086b673cd6c61c688d532620a033..8fa850a070e0fe8ea7a67823008ff7e543d8d1dc 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
@@
-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)