diff options
author | Martin Koegler <martin.koegler@chello.at> | 2014-01-09 13:05:07 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-01-13 08:15:04 +0400 |
commit | 99d4a8ae93ead27b5a88cdbd09dc556fe96ac3a8 (patch) | |
tree | 19d54f917a6cf730b0161e8a660e60e68591a17a | |
parent | ca2a2bb13efd1cb42c227d3e2ddac35708146cc1 (diff) | |
download | linux-99d4a8ae93ead27b5a88cdbd09dc556fe96ac3a8.tar.xz |
drm/cirrus: Fix cirrus drm driver for fbdev + qemu
Xorg fbdev driver requires smem_start/smem_len, otherwise
it tries to map 0 bytes as video memory.
Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=856760
Signed-off-by: Martin Koegler <martin.koegler@chello.at>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/cirrus/cirrus_fbdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c index b27e95666fab..e63a7533f849 100644 --- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c +++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c @@ -233,6 +233,9 @@ static int cirrusfb_create(struct drm_fb_helper *helper, info->apertures->ranges[0].base = cdev->dev->mode_config.fb_base; info->apertures->ranges[0].size = cdev->mc.vram_size; + info->fix.smem_start = cdev->dev->mode_config.fb_base; + info->fix.smem_len = cdev->mc.vram_size; + info->screen_base = sysram; info->screen_size = size; |