drm/radeon/cik: Return backend map information to userspace

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Nov 22 17:59:10 EST 2013


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=1ddce27d8f0ae3f911850e06a4937de89645dfa7
Commit:     1ddce27d8f0ae3f911850e06a4937de89645dfa7
Parent:     3a118989d58ca9b99f56f16a6fccbe34a9d8047e
Author:     Michel Dänzer <michel.daenzer at amd.com>
AuthorDate: Mon Nov 18 18:25:59 2013 +0900
Committer:  Alex Deucher <alexander.deucher at amd.com>
CommitDate: Mon Nov 18 09:18:58 2013 -0500

    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 at amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/radeon/radeon_kms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)



More information about the linux-mtd-cvs mailing list