From: David Woodhouse <dwmw2@infradead.org>
To: Petr Vandrovec <VANDROVE@vc.cvut.cz>
Cc: linux-kernel@vger.kernel.org, jsimmons@infradead.org
Subject: matroxfb console oops in 2.4.2x
Date: Thu, 19 Jun 2003 11:06:28 +0100 [thread overview]
Message-ID: <1056017187.27851.154.camel@passion.cambridge.redhat.com> (raw)
If you have matroxfb with acceleration enabled but no other console, and
set console=tty0 on the command line, it dies because its putcs
functions are called before matroxfb_init_putc() is called.
Below is a workaround which lets the machine boot. It's obviously not a
fix.
--- drivers/video/matrox/matroxfb_accel.c~ Wed Jun 18 17:16:40 2003
+++ drivers/video/matrox/matroxfb_accel.c Thu Jun 19 10:57:54 2003
@@ -487,6 +487,9 @@
DBG_HEAVY("matroxfb_cfb8_putc");
+ if (!ACCESS_FBINFO(curr.putc))
+ return;
+
fgx = attr_fgcol(p, c);
bgx = attr_bgcol(p, c);
fgx |= (fgx << 8);
@@ -504,6 +507,9 @@
DBG_HEAVY("matroxfb_cfb16_putc");
+ if (!ACCESS_FBINFO(curr.putc))
+ return;
+
fgx = ((u_int16_t*)p->dispsw_data)[attr_fgcol(p, c)];
bgx = ((u_int16_t*)p->dispsw_data)[attr_bgcol(p, c)];
fgx |= (fgx << 16);
@@ -519,6 +525,9 @@
DBG_HEAVY("matroxfb_cfb32_putc");
+ if (!ACCESS_FBINFO(curr.putc))
+ return;
+
fgx = ((u_int32_t*)p->dispsw_data)[attr_fgcol(p, c)];
bgx = ((u_int32_t*)p->dispsw_data)[attr_bgcol(p, c)];
ACCESS_FBINFO(curr.putc)(fgx, bgx, p, c, yy, xx);
@@ -662,6 +671,9 @@
DBG_HEAVY("matroxfb_cfb8_putcs");
+ if (!ACCESS_FBINFO(curr.putcs))
+ return;
+
c = scr_readw(s);
fgx = attr_fgcol(p, c);
bgx = attr_bgcol(p, c);
@@ -681,6 +693,9 @@
DBG_HEAVY("matroxfb_cfb16_putcs");
+ if (!ACCESS_FBINFO(curr.putcs))
+ return;
+
c = scr_readw(s);
fgx = ((u_int16_t*)p->dispsw_data)[attr_fgcol(p, c)];
bgx = ((u_int16_t*)p->dispsw_data)[attr_bgcol(p, c)];
@@ -697,6 +712,9 @@
MINFO_FROM_DISP(p);
DBG_HEAVY("matroxfb_cfb32_putcs");
+
+ if (!ACCESS_FBINFO(curr.putcs))
+ return;
c = scr_readw(s);
fgx = ((u_int32_t*)p->dispsw_data)[attr_fgcol(p, c)];
--
dwmw2
next reply other threads:[~2003-06-19 9:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-19 10:06 David Woodhouse [this message]
2003-06-19 12:21 Petr Vandrovec
2003-06-19 13:47 ` David Woodhouse
2003-06-19 19:45 Petr Vandrovec
2003-06-19 21:58 ` David Woodhouse
2003-06-20 10:52 ` David Woodhouse
2003-06-24 9:09 ` David Woodhouse
2003-06-24 11:54 Petr Vandrovec
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=1056017187.27851.154.camel@passion.cambridge.redhat.com \
--to=dwmw2@infradead.org \
--cc=VANDROVE@vc.cvut.cz \
--cc=jsimmons@infradead.org \
--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®