summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2013-11-18 18:25:59 +0900
committerAlex Deucher <alexander.deucher@amd.com>2013-11-18 09:18:58 -0500
commit1ddce27d8f0ae3f911850e06a4937de89645dfa7 (patch)
tree55b0ea21b208e25030664810b7721f2a6f8935fb /drivers
parent3a118989d58ca9b99f56f16a6fccbe34a9d8047e (diff)
downloadlinux-1ddce27d8f0ae3f911850e06a4937de89645dfa7.tar.gz
linux-1ddce27d8f0ae3f911850e06a4937de89645dfa7.tar.bz2
linux-1ddce27d8f0ae3f911850e06a4937de89645dfa7.zip
drm/radeon/cik: Return backend map information to userspace
This is required to properly calculate the tiling parameters in userspace. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/radeon/radeon_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c
index bb8710531a1b..fa42c81da500 100644
--- a/drivers/gpu/drm/radeon/radeon_kms.c
+++ b/drivers/gpu/drm/radeon/radeon_kms.c
@@ -340,7 +340,7 @@ int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
break;
case RADEON_INFO_BACKEND_MAP:
if (rdev->family >= CHIP_BONAIRE)
- return -EINVAL;
+ *value = rdev->config.cik.backend_map;
else if (rdev->family >= CHIP_TAHITI)
*value = rdev->config.si.backend_map;
else if (rdev->family >= CHIP_CAYMAN)