summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-02-20 15:16:01 +0100
committerAlex Deucher <alexander.deucher@amd.com>2014-02-27 20:05:27 +0100
commit9f050c7f9738ffa746c63415136645ad231b1348 (patch)
tree81d9e8fcab9b77eedc1c67e36cad5a7a2a1079b3
parentMAINTAINERS: update drm git tree entry (diff)
downloadlinux-9f050c7f9738ffa746c63415136645ad231b1348.tar.xz
linux-9f050c7f9738ffa746c63415136645ad231b1348.zip
drm/radeon: print the supported atpx function mask
Print the supported functions mask in addition to the version. This is useful in debugging PX problems since we can see what functions are available. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
-rw-r--r--drivers/gpu/drm/radeon/radeon_atpx_handler.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atpx_handler.c b/drivers/gpu/drm/radeon/radeon_atpx_handler.c
index 485848f889f5..fa9a9c02751e 100644
--- a/drivers/gpu/drm/radeon/radeon_atpx_handler.c
+++ b/drivers/gpu/drm/radeon/radeon_atpx_handler.c
@@ -219,7 +219,8 @@ static int radeon_atpx_verify_interface(struct radeon_atpx *atpx)
memcpy(&output, info->buffer.pointer, size);
/* TODO: check version? */
- printk("ATPX version %u\n", output.version);
+ printk("ATPX version %u, functions 0x%08x\n",
+ output.version, output.function_bits);
radeon_atpx_parse_functions(&atpx->functions, output.function_bits);