]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
drm/radeon: print the supported atpx function mask
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Feb 2014 14:16:01 +0000 (09:16 -0500)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Mar 2014 16:13:56 +0000 (17:13 +0100)
commit 9f050c7f9738ffa746c63415136645ad231b1348 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/radeon/radeon_atpx_handler.c

index d7e7c25feaaf20ce5494df20a5865cfd95b1c091..b8db0d7b50896c5dba62c56ee4b527da46e589dc 100644 (file)
@@ -216,7 +216,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);