[PATCH] cirrus: initialize smem_start and smem_size fields in fb info

Dominik Behr dbehr at chromium.org
Wed Aug 28 20:24:07 PDT 2013


so user space drivers like fbdev can map the memory

Signed-off-by: Dominik Behr <dbehr at chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu at chromium.org>
---
 drivers/gpu/drm/cirrus/cirrus_fbdev.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c
index 6c6b4c8..39e7971 100644
--- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c
+++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c
@@ -198,6 +198,9 @@ static int cirrusfb_create(struct cirrus_fbdev *gfbdev,
 	info->screen_base = sysram;
 	info->screen_size = size;
 
+	info->fix.smem_start = cdev->dev->mode_config.fb_base;
+	info->fix.smem_len = size;
+
 	info->fix.mmio_start = 0;
 	info->fix.mmio_len = 0;
 
-- 
1.8.4



More information about the dri-devel mailing list