summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2013-11-18 10:25:59 +0100
committerAlex Deucher <alexander.deucher@amd.com>2013-11-18 15:18:58 +0100
commit1ddce27d8f0ae3f911850e06a4937de89645dfa7 (patch)
tree55b0ea21b208e25030664810b7721f2a6f8935fb
parentdrm/radeon: enable DPM by default in TN asics (diff)
downloadlinux-1ddce27d8f0ae3f911850e06a4937de89645dfa7.tar.xz
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>
-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)