From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: "Mario Gaucher" <zadiglist@zadig.ca>, adaplas@pol.net
Cc: "Linux-Kernel" <linux-kernel@vger.kernel.org>,
Petr Vandrovec <vandrove@vc.cvut.cz>
Subject: Re: [PATCH] fbdev: Fix crash if fb_set_var() called before register_framebuffer()
Date: Sat, 27 Nov 2004 07:35:19 +0800 [thread overview]
Message-ID: <200411270735.21546.adaplas@hotpop.com> (raw)
In-Reply-To: <20041126231251.M19516@zadig.ca>
On Saturday 27 November 2004 07:17, Mario Gaucher wrote:
> From: "Antonino A. Daplas" <adaplas@hotpop.com>
>
> > > but I still has some problem with my Matrox Millenium PCI card using
> > > matroxfb driver... the kernel boot... but I get corrupted characters on
> > > the console... X load ok and display ok...
> >
> > Try this first.
> >
> > 1. Open drivers/video/matrox/matrofb_accel.c
> > 2. At the end of the file is this function:
> >
> > static void matroxfb_imageblit(struct fb_info* info, const struct
>
> fb_image* image) {
>
> > MINFO_FROM_INFO(info);
> >
> > DBG_HEAVY(__FUNCTION__);
> >
> > if (image->depth == 1) {
> > u_int32_t fgx, bgx;
> >
> > fgx = ((u_int32_t*)info->pseudo_palette)[image->fg_color];
> > bgx = ((u_int32_t*)info->pseudo_palette)[image->bg_color];
> > matroxfb_1bpp_imageblit(PMINFO fgx, bgx, image->data, image->width,
>
> image->height, image->dy, image->dx);
>
> > } else {
> > /* Danger! image->depth is useless: logo painting code always
> > passes framebuffer color depth here, although logo data are
> > always 8bpp and info->pseudo_palette is changed to contain
> > logo palette to be used (but only for true/direct-color... sic...).
> > So do it completely in software... */
> > cfb_imageblit(info, image);
> > }
> > }
> >
> > 3. Replace the above function to use software drawing so it becomes like
>
> this:
> > static void matroxfb_imageblit(struct fb_info* info, const struct
>
> fb_image* image) {
>
> > cfb_imageblit(info, image);
> > }
>
> this patch works fine on my PowerMac 7300 with my Matrox Millenium PCI
> card...
>
> so I think that both patch you sent me should be included in the kernel...
No, this modification is for testing purposes only. It means that hardware
color expansion in matroxfb for powerpc's got broken. CC'ed Petr.
Tony
prev parent reply other threads:[~2004-11-26 23:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-24 17:15 [PATCH] fbdev: Fix crash if fb_set_var() called before register_framebuffer() Antonino A. Daplas
2004-11-26 0:20 ` Mario Gaucher
2004-11-26 0:45 ` Antonino A. Daplas
2004-11-26 23:17 ` Mario Gaucher
2004-11-26 23:35 ` Antonino A. Daplas [this message]
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=200411270735.21546.adaplas@hotpop.com \
--to=adaplas@hotpop.com \
--cc=adaplas@pol.net \
--cc=linux-kernel@vger.kernel.org \
--cc=vandrove@vc.cvut.cz \
--cc=zadiglist@zadig.ca \
/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