All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Simmons <jsimmons@infradead.org>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Dave Airlie <airlied@linux.ie>,
	DRI mailing list <dri-devel@lists.freedesktop.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [git pull] drm for rc1
Date: Wed, 12 Jan 2011 13:32:00 +0000 (GMT)	[thread overview]
Message-ID: <alpine.LFD.2.00.1101121324550.8212@casper.infradead.org> (raw)
In-Reply-To: <4D2DA6A7.4010609@de.ibm.com>


> Am 12.01.2011 13:49, schrieb James Simmons:
> > I see the problem. Nouveau for some hardware does a accelerated 
> > clearing of the screen before we register the framebuffer. The above patch 
> > does fix a real issue so please don't revert it. Can you try this patch.
> > 
> > diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
> > index a26d047..4ef24d6 100644
> > --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c
> > +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
> > @@ -359,6 +359,8 @@ nouveau_fbcon_create(struct nouveau_fbdev *nfbdev,
> >  	info->screen_base = nvbo_kmap_obj_iovirtual(nouveau_fb->nvbo);
> >  	info->screen_size = size;
> > 
> > +	info->fix.visual = fb->depth == 8 ? FB_VISUAL_PSEUDOCOLOR :
> > +                FB_VISUAL_TRUECOLOR;
> >  	drm_fb_helper_fill_var(info, &nfbdev->helper, sizes->fb_width, sizes->fb_height);
> > 
> >  	/* Set aperture base/size for vesafb takeover */
> 
> Hmm, does not seem to work. Any more initialization missing?

Okay. The nouveau driver also uses the pitch as well. It 
really should be using the pitch field from drm_framebuffer instead of the 
line_length from fb_fix_screeninfo. This patch is just to make sure this 
is the issue. I will submit another patch later that uses 
drm_fb_framebuffer's pitch field. As for the visual unfortunely their is 
no real mapping between drm and fbdev.

diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
index a26d047..de3b067 100644
--- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
@@ -359,6 +359,9 @@ nouveau_fbcon_create(struct nouveau_fbdev *nfbdev,
 	info->screen_base = nvbo_kmap_obj_iovirtual(nouveau_fb->nvbo);
 	info->screen_size = size;
 
+	info->fix.visual = fb->depth == 8 ? FB_VISUAL_PSEUDOCOLOR :
+                FB_VISUAL_TRUECOLOR;
+	info->fix.line_length = fb->pitch;
 	drm_fb_helper_fill_var(info, &nfbdev->helper, sizes->fb_width, sizes->fb_height);
 
 	/* Set aperture base/size for vesafb takeover */

  reply	other threads:[~2011-01-12 13:32 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-10 22:59 [git pull] drm for rc1 Dave Airlie
2011-01-11  4:16 ` Linus Torvalds
2011-01-11  4:48   ` Dave Airlie
2011-01-11  4:48     ` Dave Airlie
2011-01-11  4:51     ` Dave Airlie
2011-01-11 10:58       ` Chris Wilson
2011-01-11 10:58         ` Chris Wilson
2011-01-11  6:06     ` Jesse Barnes
2011-01-11  6:06       ` Jesse Barnes
2011-01-11  6:28       ` Dave Airlie
2011-01-11  6:28         ` Dave Airlie
2011-01-11  7:04         ` Dave Airlie
2011-01-11 10:35           ` Anca Emanuel
2011-01-11 13:33       ` Pavel Machek
2011-01-11 14:14         ` Chris Wilson
2011-02-23 18:53           ` Pavel Machek
2011-01-11 16:01       ` Linus Torvalds
2011-01-11 16:11         ` Anca Emanuel
2011-01-11 16:25           ` Anca Emanuel
2011-01-11 17:58             ` Anca Emanuel
2011-01-11 19:00         ` Linus Torvalds
2011-01-11 19:00           ` Linus Torvalds
2011-01-11 19:12           ` Jesse Barnes
2011-01-11 19:25             ` Linus Torvalds
2011-01-11 19:45               ` Jesse Barnes
2011-01-11 19:53                 ` Linus Torvalds
2011-01-11 20:05                 ` Chris Wilson
2011-01-11 22:16               ` Linus Torvalds
2011-01-11 22:31                 ` Chris Wilson
2011-01-11 23:01                 ` Linus Torvalds
2011-01-12  1:36                   ` Linus Torvalds
2011-01-12  1:36                     ` Linus Torvalds
2011-01-12  1:54                     ` Dave Airlie
2011-01-11 23:20 ` Christian Borntraeger
2011-01-11 23:28   ` Linus Torvalds
2011-01-11 23:28     ` Linus Torvalds
2011-01-12 11:21     ` Christian Borntraeger
2011-01-12 12:49       ` James Simmons
2011-01-12 13:03         ` Christian Borntraeger
2011-01-12 13:32           ` James Simmons [this message]
2011-01-12 13:45             ` Christian Borntraeger
2011-01-12 15:55             ` Linus Torvalds
2011-01-12 16:39               ` James Simmons
2011-01-12 13:36       ` Anca Emanuel
2011-01-12 13:45         ` James Simmons
2011-01-12 13:55           ` Anca Emanuel
2011-01-12 13:55             ` Anca Emanuel
2011-01-12 14:35           ` Christian Borntraeger
2011-01-12 16:53             ` James Simmons
2011-01-12 15:13           ` Anca Emanuel
2011-01-12 15:25             ` Anca Emanuel
2011-01-12 15:40               ` James Simmons
2011-01-12 15:55                 ` Anca Emanuel
2011-01-12 15:55                   ` Anca Emanuel
2011-01-13 17:55                 ` James Simmons
2011-01-13 19:53                   ` Anca Emanuel
2011-01-14 16:29                     ` Anca Emanuel
2011-01-14 16:29                       ` Anca Emanuel
2011-01-14 16:38                     ` James Simmons
2011-01-14 18:22                       ` Anca Emanuel
2011-01-14 18:26                         ` James Simmons
2011-01-14 18:40                           ` Anca Emanuel
2011-01-14 18:40                             ` Anca Emanuel
2011-01-14 19:02                             ` Anca Emanuel
2011-02-19 15:14 ` Alex Riesen

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=alpine.LFD.2.00.1101121324550.8212@casper.infradead.org \
    --to=jsimmons@infradead.org \
    --cc=airlied@linux.ie \
    --cc=borntraeger@de.ibm.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.