From: Dave Muhlert <va7dav@yahoo.ca>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] vesafb, kernel 2.4.23
Date: Mon, 15 Dec 2003 23:33:16 -0500 (EST) [thread overview]
Message-ID: <20031216043316.9402.qmail@web9506.mail.yahoo.com> (raw)
The 2.4.23 vesafb driver wasn't using all of my video
memory, so bootsplash images wouldn't load because
they didn't fit in the framebuffer. I apologize in
advance for whatever Yahoo mail does to my formatting.
Relevant vesafb output before the patch:
Dec 14 00:14:31 blue vesafb: framebuffer at
0xe2000000, mapped to 0xd0813000, size 1536k
Dec 14 00:14:31 blue Looking for splash picture....
silenjpeg size 21768 bytes, does not fit into
framebuffer.
With the patched driver:
Dec 15 12:29:12 blue vesafb: framebuffer at
0xe2000000, mapped to 0xd0806000, size 32768k
Dec 15 12:29:12 blue Looking for splash picture....
silenjpeg size 21768 bytes, found (1024x768, 20089
bytes, v3).
I'm using the ck-sources-2.4.23-ck1 Gentoo ebuild (The
one with Con Kolivas's patchset), but the included
vesafb.c is identical to
http://mirror.trouble-free.net/kernel/v2.4/linux-2.4.23/drivers/video/vesafb.c.
(MD5sum: f3bbf3931f5301432a2ea20c6c67b52f)
Here's the patch I applied to fix the problem
(originally suggested by someone on the Gentoo forums
in response to someone else who had the same problem I
did. I'll dig up the source if anyone asks). It's
worked perfectly thus far.
-------------------------------------------------------------
dave@blue video $ diff -u vesafb-original.c
vesafb-modified.c
--- vesafb-original.c 2003-12-14 20:51:32.000000000
-0800
+++ vesafb-modified.c 2003-12-15 20:56:02.000000000
-0800
@@ -529,20 +529,7 @@
video_width = screen_info.lfb_width;
video_height = screen_info.lfb_height;
video_linelength =
screen_info.lfb_linelength;
-
- /* remap memory according to videomode,
multiply by 2 to get space for doublebuffering */
- video_size = screen_info.lfb_width *
screen_info.lfb_height * video_bpp / 8 * 2;
-
- /* check that we don't remap more memory than
old cards have */
- if (video_size > screen_info.lfb_size * 65536)
- video_size = screen_info.lfb_size *
65536;
-
- /* FIXME: Should we clip against declared size
for banked devices ? */
-
- /* sets video_size according to vram boot
option */
- if (vram && vram * 1024 * 1024 != video_size)
- video_size = vram * 1024 * 1024;
-
+ video_size = screen_info.lfb_size *
65536;
video_visual = (video_bpp == 8) ?
FB_VISUAL_PSEUDOCOLOR :
FB_VISUAL_TRUECOLOR;
------------------------------------------------------------
System info:
Gentoo Linux 1.4, ck-sources 2.4.23 compiled with
genkernel
P3-Celeron(Coppermine) 800Mhz
Nvidia TNT2 M64 video card (32MB RAM)
Boot options from lilo.conf: append="root=/dev/hda8
init=/linuxrc hda=autotune video=vesa:ywrap,mtrr
splash=silent"
Relevant excerpts from .config:
CONFIG_FB=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FB_VESA=y
CONFIG_VIDEO_SELECT=y
CONFIG_FBCON_SPLASHSCREEN=y
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
reply other threads:[~2003-12-16 4:33 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=20031216043316.9402.qmail@web9506.mail.yahoo.com \
--to=va7dav@yahoo.ca \
--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®