summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/sid.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-06-28 18:02:19 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-07-01 16:09:06 -0400
commit7982128c3d447df27db963af67bc6b8dc7efb1de (patch)
tree8f671df217823306b7e469e4df7aff09d3f7a943 /drivers/gpu/drm/radeon/sid.h
parentbdf0c4f07d5fbda79569a11116053bed44873c8a (diff)
downloadop-kernel-dev-7982128c3d447df27db963af67bc6b8dc7efb1de.zip
op-kernel-dev-7982128c3d447df27db963af67bc6b8dc7efb1de.tar.gz
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 299d657..12a20eb 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
OpenPOWER on IntegriCloud