Thread (10 messages) 10 messages, 5 authors, 2004-02-17

Re: atyfb expert needed

From: Daniël Mantione <hidden>
Date: 2004-02-12 09:46:17


On Thu, 12 Feb 2004, Geert Uytterhoeven wrote:
On Thu, 12 Feb 2004, Benjamin Herrenschmidt wrote:
quoted
The current driver in James tree (with generic lcd support) breaks
the display on the LT-G chip of the powerbook wallstreet. I don't
have time at the moment to dig into every change (there's a lot).

The "effect" is that the screen appears to be cut in vertical bands,
each of them displaying a slightly offseted version of what should be
there with some noise near the right edge.

If that symptom rings any bell about what registers can be wrong,
that would help me a lot figuring out what's up.
Sounds like a problem with DSP_CONFIG and DSP_ON_OFF.

Check aty_dsp_gt(), either the value of fifo_size or the dsp_* values.
Please take a look at the fifo size in the table of chips in atyfb_base.c.
That value was set incorrectly in 2.4 too.
BTW, according to Daniël Mantione the DSP calculations in atyfb have always
been wrong (but apparently worked on most machines due to sheer luck ;-), so
you may want to compare with aty_dsp_gt() in current 2.4.
Well, wrong in the sense that the calculations they make are very
different from both Ati's example code and XFree86 code. The original author
(unknown to me at this time) might have had reasons to code it like this,
but it looks realistic that he simply tried to modify it till it worked
for him.

The code in 2.4 is a slightly size optimized version of the XFree86
code from Marc Aurele la France.

Daniël



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help