diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2013-11-18 10:25:59 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-11-18 15:18:58 +0100 |
commit | 1ddce27d8f0ae3f911850e06a4937de89645dfa7 (patch) | |
tree | 55b0ea21b208e25030664810b7721f2a6f8935fb | |
parent | drm/radeon: enable DPM by default in TN asics (diff) | |
download | linux-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.c | 2 |
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) |