drm/radeon: add support for read reg query from radeon info ioctl
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Oct 2014 15:26:50 +0000 (11:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Mar 2015 16:26:42 +0000 (12:26 -0400)
commit4535cb9cefbc736b47bc1e7f8628065aba5ca0d7
tree61ac646bcce16d863c023e05510200e735036ec7
parent353eec2ab229867d59a12375a48fc65e2d749e8b
drm/radeon: add support for read reg query from radeon info ioctl

This allows us to query certain registers from userspace
for profiling and harvest configuration.  E.g., it can
be used by the GALLIUM_HUD for profiling the status of
various gfx blocks.

Tested-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_kms.c
include/uapi/drm/radeon_drm.h