mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@ChaoticDreams.ORG>
To: Martin Diehl <lists@mdiehl.de>
Cc: linux-kernel@vger.kernel.org, jsimmons@transvirtual.com
Subject: Re: 2.5.22: FB_VESA - early crash in fbcon_cursor()
Date: Tue, 18 Jun 2002 08:38:29 -0700	[thread overview]
Message-ID: <20020618083829.A316@ChaoticDreams.ORG> (raw)
In-Reply-To: <Pine.LNX.4.21.0206181001300.1798-100000@notebook.diehl.home>; from lists@mdiehl.de on Tue, Jun 18, 2002 at 12:31:29PM +0200

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

Hi Martin,

On Tue, Jun 18, 2002 at 12:31:29PM +0200, Martin Diehl wrote:
> no luck here getting 2.5.22 to boot on my ob800 with vesafb enabled.
> Same with 2.5.21. Last one working was 2.5.16 but I haven't tried 17-20.
> Box oopses due to NULL-pointer dereference during inital fbdev setup.
> 
> config, dmesg + decoded dump from serial console below.
> 
<snip>

> Code: 8b 40 18 85 c0 74 4a 66 8b 7f 2c 89 ea 66 89 bb e4 00 00 00 
> Error (Oops_bfd_perror): set_section_contents Bad value
> 
> >>EIP; c0192baf <fbcon_cursor+6f/200>   <=====
> Trace; c0177281 <hide_cursor+81/90>
> Trace; c017a79c <vt_console_print+8c/310>
<snip>

Looks like the dispsw isn't being set and you're running into the NULL
dereference in fbcon_cursor() upon trying to dereference it.. it looks like
fbgen.c is the culprit here, as it never sets display->dispsw if we aren't in
24-bpp or have FBCON_HAS_ACCEL set..

James, what's the point of th FBCON_HAS_ACCEL ifdef? It looks like all the
accel wrapper code does is provide a wrapper to the fillrect, imageblit, and
copyarea routines -- if the driver doesn't have accelerated ones to provide
for itself, it just uses the cfb_fillrect/imageblit/copyarea as a fallback,
thus it should _always_ be safe to call them.

If that's not the case, we'll have to re-introduce the FBON_CAS_CFBx
brain-damage in gen_set_disp() to keep dispsw happy.

Regards,

-- 
Paul Mundt <lethal@chaoticdreams.org>

--- linux-fbdev-2.5/drivers/video/fbgen.c	Tue Jun 18 11:37:46 2002
+++ linux-fbdev-2.5/drivers/video/fbgen.c	Tue Jun 18 11:37:59 2002
@@ -452,10 +452,9 @@
 #endif
 	}
 
-#ifdef FBCON_HAS_ACCEL
 	display->scrollmode = SCROLL_YNOMOVE;
 	display->dispsw = &fbcon_accel;
-#endif
+
 	return;
 }
 

[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]

  reply	other threads:[~2002-06-18 15:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-18 10:31 Martin Diehl
2002-06-18 15:38 ` Paul Mundt [this message]
2002-06-18 17:15   ` James Simmons
2002-06-18 17:43     ` Paul Mundt
2002-06-18 22:30       ` James Simmons

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=20020618083829.A316@ChaoticDreams.ORG \
    --to=lethal@chaoticdreams.org \
    --cc=jsimmons@transvirtual.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lists@mdiehl.de \
    /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®