summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/sid.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-06-29 00:02:19 +0200
committerAlex Deucher <alexander.deucher@amd.com>2013-07-01 22:09:06 +0200
commit7982128c3d447df27db963af67bc6b8dc7efb1de (patch)
tree8f671df217823306b7e469e4df7aff09d3f7a943 /drivers/gpu/drm/radeon/sid.h
parentdrm/radeon/dpm: add debugfs support for cayman (diff)
downloadlinux-7982128c3d447df27db963af67bc6b8dc7efb1de.tar.xz
linux-7982128c3d447df27db963af67bc6b8dc7efb1de.zip
drm/radeon/dpm: add debugfs support for SI
This allows you to look at the current DPM state via debugfs. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/sid.h')
-rw-r--r--drivers/gpu/drm/radeon/sid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/sid.h b/drivers/gpu/drm/radeon/sid.h
index 299d657d0168..12a20eb77d0c 100644
--- a/drivers/gpu/drm/radeon/sid.h
+++ b/drivers/gpu/drm/radeon/sid.h
@@ -220,6 +220,10 @@
# define GFX_CLK_OFF_ACPI_D3 (1 << 13)
# define DYN_LIGHT_SLEEP_EN (1 << 14)
+#define TARGET_AND_CURRENT_PROFILE_INDEX 0x798
+# define CURRENT_STATE_INDEX_MASK (0xf << 4)
+# define CURRENT_STATE_INDEX_SHIFT 4
+
#define CG_FTV 0x7bc
#define CG_FFCT_0 0x7c0