Re: Re: fbdev cursor part 1.
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2004-02-23 11:14:42
IIRC, there's a big difference between the number of commands you can queue up in the RAGE PRO and earlier chip. Perhaps the queue check always assumes a RAGE PRO? Hope this helps... (No, I didn't look at the code)
The queue check looks for how many entries are free in the queue
by reading the appropriate register in the chip, I should double
check the specs to see if that's done correctly though (or compare
with X, though I do see some artifacts in X here or there, small
but small drawing errors that let me think that X driver isn't
perfect neither. At least it doesn't lockup).
Here's the code in atyfb:
static inline void wait_for_fifo(u16 entries, const struct atyfb_par *par)
{
while ((aty_ld_le32(FIFO_STAT, par) & 0xffff) >
((u32) (0x8000 >> entries)));
}
Ben.
-------------------------------------------------------
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_id=1356&alloc_id=3438&op=click