diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2013-11-18 18:25:59 +0900 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-11-18 09:18:58 -0500 |
commit | 1ddce27d8f0ae3f911850e06a4937de89645dfa7 (patch) | |
tree | 55b0ea21b208e25030664810b7721f2a6f8935fb | |
parent | 3a118989d58ca9b99f56f16a6fccbe34a9d8047e (diff) | |
download | op-kernel-dev-1ddce27d8f0ae3f911850e06a4937de89645dfa7.zip op-kernel-dev-1ddce27d8f0ae3f911850e06a4937de89645dfa7.tar.gz |
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 bb87105..fa42c81 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) |