mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Koegler <martin.koegler@chello.at>
To: airlied@redhat.com, linux-kernel@vger.kernel.org
Subject: Fix cirrus drm driver for qemu use
Date: Tue, 24 Dec 2013 10:41:03 +0100	[thread overview]
Message-ID: <20131224094103.GA9365@mail.zuhause> (raw)

[-- Attachment #1: Type: text/plain, Size: 386 bytes --]

On openSuSE, Xorg start fails, if modeset is enabled (https://bugzilla.novell.com/show_bug.cgi?id=856760).

This is caused by the fact, that the fbhwdev part in Xorg uses smem_start/len of the "fix" part, which is
not initialized by the the cirrus drm driver.

The attached patch fixes this problem. I can't spot such a initialisation in HEAD,
so I forward this patch.

Regards,
Martin

[-- Attachment #2: 0001-Fix-cirrus-drm-driver-for-fbdev-qemu.patch --]
[-- Type: text/x-diff, Size: 891 bytes --]

>From 15952972eff90b19c4063b54d5f1e820987b4605 Mon Sep 17 00:00:00 2001
From: Martin Koegler <martin.koegler@chello.at>
Date: Sun, 22 Dec 2013 16:00:52 +0100
Subject: [PATCH] Fix cirrus drm driver for fbdev + qemu

---
 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 b27e956..e63a753 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;
 
-- 
1.7.10.4


                 reply	other threads:[~2013-12-24  9:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131224094103.GA9365@mail.zuhause \
    --to=martin.koegler@chello.at \
    --cc=airlied@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®