Re: tdfx framebuffer garbles display in 2.6.19.5

13 messages, 2 authors, 2007-03-14 · open the first message on its own page

Re: tdfx framebuffer garbles display in 2.6.19.5

From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2007-02-26 15:22:13

On Mon, 2007-02-26 at 15:47 +0100, DervishD wrote:
    Hi all :)

    From time to time, the tdfxfb driver from 2.6.19.5 (sorry, I cannot
test in 2.6.20.x because it doesn't compile, the infamous BDF negative
offset problem) garbles the display, leaving only a lot of thin lines,
just like sync was lost. The display can be repaired by switching to
another console, but this is annoying. This happens with a Voodoo 3
3000, using 800x600x8@100 mode.

    Anyone has this problem? Can it be solved changing anything?

    Raúl Núñez de Arenas Coronado
Try fbset -a -vyres 600 first and let us know of the result.

Tony



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

Re: tdfx framebuffer garbles display in 2.6.19.5

From: DervishD <hidden>
Date: 2007-02-26 17:12:15

    Hi Antonino :)

 * Antonino A. Daplas [off-list ref] dixit:
On Mon, 2007-02-26 at 15:47 +0100, DervishD wrote:
quoted
    From time to time, the tdfxfb driver from 2.6.19.5 (sorry, I cannot
test in 2.6.20.x because it doesn't compile, the infamous BDF negative
offset problem) garbles the display, leaving only a lot of thin lines,
just like sync was lost. The display can be repaired by switching to
another console, but this is annoying. This happens with a Voodoo 3
3000, using 800x600x8@100 mode.
Try fbset -a -vyres 600 first and let us know of the result.
    After doing this, I no longer can garble the display (before, just a
"ls -lR /" was enough to do it, in fact, any big output garbled the
display). The only problem with this solution is that the scroll speed
has decreased a bit. In fact, the scroll speed is affected by the vyres
parameter a lot! The highter the vyres, the faster the scroll, and I
cannot reproduce the problem anymore after changing it once!

    I'm really confused :?

    Thanks a lot for the fix :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

Re: tdfx framebuffer garbles display in 2.6.19.5

From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2007-02-26 17:22:07

On Mon, 2007-02-26 at 18:13 +0100, DervishD wrote:
    Hi Antonino :)

 * Antonino A. Daplas [off-list ref] dixit:
quoted
On Mon, 2007-02-26 at 15:47 +0100, DervishD wrote:
quoted
    From time to time, the tdfxfb driver from 2.6.19.5 (sorry, I cannot
test in 2.6.20.x because it doesn't compile, the infamous BDF negative
offset problem) garbles the display, leaving only a lot of thin lines,
just like sync was lost. The display can be repaired by switching to
another console, but this is annoying. This happens with a Voodoo 3
3000, using 800x600x8@100 mode.
Try fbset -a -vyres 600 first and let us know of the result.
    After doing this, I no longer can garble the display (before, just a
"ls -lR /" was enough to do it, in fact, any big output garbled the
display). The only problem with this solution is that the scroll speed
has decreased a bit. In fact, the scroll speed is affected by the vyres
parameter a lot! The highter the vyres, the faster the scroll, and I
cannot reproduce the problem anymore after changing it once!
Display panning is what makes scrolling fast which is the default scroll
method if vyres > yres.  Unfortunately, tdfxfb occasionally have
problems with this method, the higher the vyres, the greater the
likelihood of screen corruption. That's why tdfxb limits the vyres to a
maximum of 4096. As to why the problem disappeared just by changing this
parameter, that I too don't know.

Tony

Re: tdfx framebuffer garbles display in 2.6.19.5

From: DervishD <hidden>
Date: 2007-02-26 20:31:00

    Hi Antonino :)

 * Antonino A. Daplas [off-list ref] dixit:
On Mon, 2007-02-26 at 18:13 +0100, DervishD wrote:
quoted
quoted
Try fbset -a -vyres 600 first and let us know of the result.
After doing this, I no longer can garble the display (before, just a
"ls -lR /" was enough to do it, in fact, any big output garbled the
display). The only problem with this solution is that the scroll
speed has decreased a bit. In fact, the scroll speed is affected by
the vyres parameter a lot! The highter the vyres, the faster the
scroll, and I cannot reproduce the problem anymore after changing it
once!
Display panning is what makes scrolling fast which is the default
scroll method if vyres > yres.  Unfortunately, tdfxfb occasionally
have problems with this method, the higher the vyres, the greater the
likelihood of screen corruption.
    Then I'll try with 4096 and will diminish the number until the
display is stable.
That's why tdfxb limits the vyres to a maximum of 4096. As to why the
problem disappeared just by changing this parameter, that I too don't
know.
    Probably setting it back to 4096 will make the problem reappear.
Right now I cannot test, but I'll make some experiments.

    Thanks a lot!

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

Re: tdfx framebuffer garbles display in 2.6.19.5

From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2007-02-27 23:07:05

On Mon, 2007-02-26 at 21:32 +0100, DervishD wrote:
    Hi Antonino :)

 * Antonino A. Daplas [off-list ref] dixit:
quoted
On Mon, 2007-02-26 at 18:13 +0100, DervishD wrote:
That's why tdfxb limits the vyres to a maximum of 4096. As to why the
problem disappeared just by changing this parameter, that I too don't
know.
    Probably setting it back to 4096 will make the problem reappear.
Right now I cannot test, but I'll make some experiments.
Can you try this patch?  It might help with the screen corruption.

Tony

Re: tdfx framebuffer garbles display in 2.6.19.5

From: DervishD <hidden>
Date: 2007-02-28 10:48:13

    Hi Antonino :)

 * Antonino A. Daplas [off-list ref] dixit:
On Mon, 2007-02-26 at 21:32 +0100, DervishD wrote:
quoted
    Probably setting it back to 4096 will make the problem reappear.
Right now I cannot test, but I'll make some experiments.
Can you try this patch?  It might help with the screen corruption.
    I'm doing system maintenance now, and won't have spare time until
friday, probably, but as soon as possible I'll test the patch. Thanks a
lot for your invaluable help :)

    If you want me to test more patches, feel free. I'll test them ASAP,
probably this weekend if I can afford the time.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

Re: tdfx framebuffer garbles display in 2.6.19.5

From: DervishD <hidden>
Date: 2007-03-01 16:00:15

    Hi Antonino :)

 * Antonino A. Daplas [off-list ref] dixit:
Can you try this patch?  It might help with the screen corruption.
    With the patch, the scroll slows to a crawl and the system is
unusable. The time to scroll 30 lines is about a minute or so (probably
more, I just measured for a while).

    If you want me to test other patches, just tell :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

Re: tdfx framebuffer garbles display in 2.6.19.5

From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2007-03-06 01:31:45

On Thu, 2007-03-01 at 17:01 +0100, DervishD wrote:
    Hi Antonino :)

 * Antonino A. Daplas [off-list ref] dixit:
quoted
Can you try this patch?  It might help with the screen corruption.
    With the patch, the scroll slows to a crawl and the system is
unusable. The time to scroll 30 lines is about a minute or so (probably
more, I just measured for a while).

    If you want me to test other patches, just tell :)
Can you change the mdelay to udelay and use higher/lower delay values to
see if there's any improvement?

Tony



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Re: tdfx framebuffer garbles display in 2.6.19.5

From: DervishD <hidden>
Date: 2007-03-06 06:24:11

    Hi Antonino :)

 * Antonino A. Daplas [off-list ref] dixit:
On Thu, 2007-03-01 at 17:01 +0100, DervishD wrote:
quoted
 * Antonino A. Daplas [off-list ref] dixit:
quoted
Can you try this patch?  It might help with the screen
corruption.
    With the patch, the scroll slows to a crawl and the system is
    unusable. The time to scroll 30 lines is about a minute or so
    (probably more, I just measured for a while).

    If you want me to test other patches, just tell :)
Can you change the mdelay to udelay and use higher/lower delay values
to see if there's any improvement?
    Yes, as soon as I can build a new kernel and reboot. Any suggested
value?

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

Re: tdfx framebuffer garbles display in 2.6.19.5

From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2007-03-06 06:51:37

On Tue, 2007-03-06 at 07:25 +0100, DervishD wrote:
    Hi Antonino :)

 * Antonino A. Daplas [off-list ref] dixit:
quoted
On Thu, 2007-03-01 at 17:01 +0100, DervishD wrote:
quoted
 * Antonino A. Daplas [off-list ref] dixit:
quoted
Can you try this patch?  It might help with the screen
corruption.
    With the patch, the scroll slows to a crawl and the system is
    unusable. The time to scroll 30 lines is about a minute or so
    (probably more, I just measured for a while).

    If you want me to test other patches, just tell :)
Can you change the mdelay to udelay and use higher/lower delay values
to see if there's any improvement?
    Yes, as soon as I can build a new kernel and reboot. Any suggested
value?
You can start with 5 and increment by 5.  So you need not reboot each
time, compile tdfxfb as a module, and set CONFIG_HW_CONSOLE_BINDING=y
(under drivers->char). Make sure you have vbetool, and use the attached
script.  Thus:

modprobe tdfxfb
unbind.sh
rmmod tdfxfb
edit, make, make modules_install
modprobe tdfxfb
repeat

The script assumes vbetool is in /usr/sbin, if not just edit. Also,
unbinding will only work if X (or any graphics app, for that matter) is
not loaded.

Tony

Re: tdfx framebuffer garbles display in 2.6.19.5

From: DervishD <hidden>
Date: 2007-03-06 11:15:46

    Hi Antonino :)

 * Antonino A. Daplas [off-list ref] dixit:
On Tue, 2007-03-06 at 07:25 +0100, DervishD wrote:
quoted
 * Antonino A. Daplas [off-list ref] dixit:
quoted
On Thu, 2007-03-01 at 17:01 +0100, DervishD wrote:
quoted
 * Antonino A. Daplas [off-list ref] dixit:
quoted
Can you try this patch?  It might help with the screen
corruption.
    With the patch, the scroll slows to a crawl and the system is
    unusable. The time to scroll 30 lines is about a minute or so
    (probably more, I just measured for a while).

    If you want me to test other patches, just tell :)
Can you change the mdelay to udelay and use higher/lower delay values
to see if there's any improvement?
    Yes, as soon as I can build a new kernel and reboot. Any suggested
value?
You can start with 5 and increment by 5.  So you need not reboot each
time, compile tdfxfb as a module, and set CONFIG_HW_CONSOLE_BINDING=y
(under drivers->char).
    I've done that for testing, but I haven't build that kernel yet (not
spare time by now).
Make sure you have vbetool, and use the attached script.
    I don't have vbetool, but I'll get it.
 
The script assumes vbetool is in /usr/sbin, if not just edit. Also,
unbinding will only work if X (or any graphics app, for that matter) is
not loaded.
    No problem, it will be off while I test. I'll try to make the tests
probably this friday or the weekend, as soon as I can.

    Thanks a lot for your interest :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

Re: tdfx framebuffer garbles display in 2.6.19.5

From: DervishD <hidden>
Date: 2007-03-07 10:01:42

    Hi Antonino :)

 * Antonino A. Daplas [off-list ref] dixit:
On Tue, 2007-03-06 at 07:25 +0100, DervishD wrote:
quoted
quoted
quoted
    If you want me to test other patches, just tell :)
Can you change the mdelay to udelay and use higher/lower delay values
to see if there's any improvement?
    Regarding the delay: I've discovered a weird thing. When the display
is garbled, if I insist on outputting more text to the screen, sooner or
later it de-garbles! In fact, once the display has been garbled (not
easy to do, sometimes I can work for hours in a terminal before it gets
garbled, I can't reproduce it always), a continous output makes it
de-garble and garble again, in cycles.

    Looks like an off-by-one error rather than a speed/sync error, am I
completely clueless?

    This happens with vanilla 2.6.19.5, not with the patched one, which
I haven't been able to test yet (sorry...).

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

Re: [TESTED] tdfx framebuffer garbles display in 2.6.19.5

From: DervishD <hidden>
Date: 2007-03-14 09:05:52

    Hi Antonino :)

    NEW INFORMATION ABOUT THE PROBLEM

 * Antonino A. Daplas [off-list ref] dixit:
On Tue, 2007-03-06 at 07:25 +0100, DervishD wrote:
quoted
quoted
quoted
    With the patch, the scroll slows to a crawl and the system is
    unusable. The time to scroll 30 lines is about a minute or so
    (probably more, I just measured for a while).

    If you want me to test other patches, just tell :)
Can you change the mdelay to udelay and use higher/lower delay values
to see if there's any improvement?
    Yes, as soon as I can build a new kernel and reboot. Any suggested
value?
You can start with 5 and increment by 5.  So you need not reboot each
time, compile tdfxfb as a module, and set CONFIG_HW_CONSOLE_BINDING=y
(under drivers->char).
    Until I discovered how to reproduce the bug, I had to reboot for
each test. But I discovered the real problem...

    The garbling doesn't happen, no matter the udelay, until I start X.
Once X is started, even with an udelay(100) (which for me makes the
display untolerably slow) the problem happens.

    This doesn't happen in latest 2.4.x, but I remember that some
characters "dissappeared" from the screen at some 2.4.x when X was
running. That was a known bug in the X driver of this card, so I'm not
sure if the last X.Org driver has this problem or not. Unfortunately, I
cannot test this directly, the most I can do is to test under Ubuntu,
which uses an older 2.6.x kernel.

    If this new discovery doesn't ring any bell for you, I'll make a
test under Ubuntu and after that I'll just wait until I can upgrade X
(which I cannot do now) to latest X.Org (I'm now using 7.0.22).

    Thanks for all your help. I'll keep you informed of any change I
notice, and (although I won't be very fast doing it...) you can count on
me to test any patch you want.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help