summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_acpi.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-06-26 00:33:35 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-06-27 19:15:22 -0400
commitdc50ba7f9a6d9a920409892c7f30bce266067345 (patch)
tree17e9dc618117ceacf39c2f2e29907792cdedc598 /drivers/gpu/drm/radeon/radeon_acpi.c
parent66229b200598a3b66b839d1759ff3f5b17ac5639 (diff)
downloadblackbird-op-linux-dc50ba7f9a6d9a920409892c7f30bce266067345.tar.gz
blackbird-op-linux-dc50ba7f9a6d9a920409892c7f30bce266067345.zip
drm/radeon/kms: add dpm support for evergreen (v4)
This adds dpm support for evergreen asics. This includes: - clockgating - dynamic engine clock scaling - dynamic memory clock scaling - dynamic voltage scaling - dynamic pcie gen1/gen2 switching (requires additional acpi support) Set radeon.dpm=1 to enable. v2: reduce stack usage, rename ulv struct v3: fix thermal interrupt check notices by Jerome v4: fix state enable Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_acpi.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_acpi.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_acpi.c b/drivers/gpu/drm/radeon/radeon_acpi.c
index 196d28d99570..87419a4c25ac 100644
--- a/drivers/gpu/drm/radeon/radeon_acpi.c
+++ b/drivers/gpu/drm/radeon/radeon_acpi.c
@@ -78,6 +78,29 @@ struct atcs_verify_interface {
u32 function_bits; /* supported functions bit vector */
} __packed;
+bool radeon_acpi_is_pcie_performance_request_supported(struct radeon_device *rdev)
+{
+ /* XXX: query ATIF */
+
+ return false;
+}
+
+int radeon_acpi_pcie_notify_device_ready(struct radeon_device *rdev)
+{
+ /* XXX: call appropriate ATIF method */
+
+ return -EINVAL;
+
+}
+
+int radeon_acpi_pcie_performance_request(struct radeon_device *rdev,
+ u8 ref_req, bool advertise)
+{
+ /* XXX: call appropriate ATIF method */
+
+ return -EINVAL;
+}
+
/* Call the ATIF method
*/
/**
OpenPOWER on IntegriCloud