* Framebuffer as a module
@ 2001-01-05 17:52 -=da TRoXX=-
2001-01-06 7:41 ` Keith Owens
0 siblings, 1 reply; 4+ messages in thread
From: -=da TRoXX=- @ 2001-01-05 17:52 UTC (permalink / raw)
To: linux-kernel
Hello,
please CC me on any replies to this message since I'm not subscribed to the
list (just toooo much mail for me)
I have a very simple question:
I used to compile-in my framebuffer-device in the kernel
then i just appended "video=tdfxfb:1024x768-32@70" in lilo.conf and it
worked..
now i compiled it as a module, and want modprobe to start it up for me..
how can this be done?
modprobe tdfxfb 1024x768-32@70
won't work, because there is no '=' sign in it so modprobe doesn't recognize
it as a parameter, and doesn't pass it.
so what can i do about it?
tnx in advance :)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Framebuffer as a module
2001-01-05 17:52 Framebuffer as a module -=da TRoXX=-
@ 2001-01-06 7:41 ` Keith Owens
0 siblings, 0 replies; 4+ messages in thread
From: Keith Owens @ 2001-01-06 7:41 UTC (permalink / raw)
To: -=da TRoXX=-; +Cc: linux-kernel
On Fri, 5 Jan 2001 18:52:45 +0100,
"-=da TRoXX=-" <TRoXX@LiquidXTC.nl> wrote:
>I have a very simple question:
>I used to compile-in my framebuffer-device in the kernel
>then i just appended "video=tdfxfb:1024x768-32@70" in lilo.conf and it
>worked..
>
>now i compiled it as a module, and want modprobe to start it up for me..
>how can this be done?
>modprobe tdfxfb 1024x768-32@70
>won't work, because there is no '=' sign in it so modprobe doesn't recognize
>it as a parameter, and doesn't pass it.
A quick look at drivers/video/tdfxfb.c shows a complete lack of
MODULE_PARM entries so modprobe/insmod will not let specify any
parameters. Ask the tdfxfb author to add this feature, or code it
yourself.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] VESA framebuffer w/ MTRR locks 2.4.0 on init
@ 2001-01-05 16:05 Alan Cox
2001-01-06 1:20 ` [PATCH] VESA framebuffer w/MTRR " David Wragg
0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2001-01-05 16:05 UTC (permalink / raw)
To: Bryan Mayland; +Cc: kraxel, linux-kernel, torvalds
> 1) The amount of video memory is being incorrectly reported my the VESA call
> used in arch/i386/video.S (INT 10h AX=4f00h). My Dell Inspiron 3200 (NeoMagic
> video) returns that it has 31 64k blocks of video memory, instead of the
> correct 32. This means that vesafb thinks that I've got 1984k of video ram,
You have 31. The last one is used for audio buffering
> 2) When the vesafb goes to mtrr_add its range (with the incorrect 1984k size)
> mtrr_add fails with -EINVAL. The code in vesafb_init then goes into a while
> loop with no exit, as each size mtrr fails.
> while (mtrr_add(video_base, temp_size, MTRR_TYPE_WRCOMB,
> 1)==-EINVAL) {
> temp_size >>= 1;
> }
Ok that one is the bug.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] VESA framebuffer w/MTRR locks 2.4.0 on init
2001-01-05 16:05 [PATCH] VESA framebuffer w/ MTRR locks 2.4.0 on init Alan Cox
@ 2001-01-06 1:20 ` David Wragg
2001-01-06 17:28 ` Framebuffer as a module Bryan Mayland
0 siblings, 1 reply; 4+ messages in thread
From: David Wragg @ 2001-01-06 1:20 UTC (permalink / raw)
To: Alan Cox, Bryan Mayland; +Cc: kraxel, linux-kernel, torvalds
Alan Cox <alan@lxorguk.ukuu.org.uk> writes:
> > loop with no exit, as each size mtrr fails.
> > while (mtrr_add(video_base, temp_size, MTRR_TYPE_WRCOMB,
> > 1)==-EINVAL) {
> > temp_size >>= 1;
> > }
>
> Ok that one is the bug.
Even with the obvious bug fixed, that code is strange. "temp_size >>=
1" does little to improve the chances of the mtrr_add succeeding.
Something like this would be better:
if (mtrr_add(video_base, temp_size, MTRR_TYPE_WRCOMB, 1) == -EINVAL) {
/* Find the largest power-of-two */
while (temp_size & (temp_size - 1))
temp_sze &= (temp_size - 1);
mtrr_add(video_base, temp_size, MTRR_TYPE_WRCOMB, 1);
}
(But this is just a very crude way to work around the inflexibility of
the MTRRs. Rather than cluttering up calls to mtrr_add, it would be
better to fix this properly, either by implementing PAT support
(Zoltán Böszörményi said he was working on that), or by having a
user-space helper program to make more intelligent MTRR allocations,
or both.)
David Wragg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Framebuffer as a module
2001-01-06 1:20 ` [PATCH] VESA framebuffer w/MTRR " David Wragg
@ 2001-01-06 17:28 ` Bryan Mayland
[not found] ` <002501c07819$21343900$fd1942c3@bluescreen>
0 siblings, 1 reply; 4+ messages in thread
From: Bryan Mayland @ 2001-01-06 17:28 UTC (permalink / raw)
To: David Wragg, linux-kernel; +Cc: TRoXX
> I used to compile-in my framebuffer-device in the kernel
> then i just appended "video=tdfxfb:1024x768-32@70" in lilo.conf and it
> worked..
> now i compiled it as a module, and want modprobe to start it up for me..
> how can this be done?
> modprobe tdfxfb 1024x768-32@70
That's a very good question. The tdfxfb module has no parameters. It would be
ideal if the tdfxfb mainatiner would add some MODULE_PARM lines for all the
parameters and move the code from tdfxfb_setup that does work into tdfxfb_init.
I think a valid work-around for you is to use fbset after you load the module
to set the resolution. Does that work?
Bry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-01-06 20:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-05 17:52 Framebuffer as a module -=da TRoXX=-
2001-01-06 7:41 ` Keith Owens
-- strict thread matches above, loose matches on Subject: below --
2001-01-05 16:05 [PATCH] VESA framebuffer w/ MTRR locks 2.4.0 on init Alan Cox
2001-01-06 1:20 ` [PATCH] VESA framebuffer w/MTRR " David Wragg
2001-01-06 17:28 ` Framebuffer as a module Bryan Mayland
[not found] ` <002501c07819$21343900$fd1942c3@bluescreen>
2001-01-06 20:04 ` Bryan Mayland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox