On Friday 19 October 2001 06:13 pm, Manuel Teira wrote:

> Well, after some tests, it seems that the problem was caused by the FIFO
> size. This was one of the differences between running the little module
> (ati_mach64gui.o) under or without X  (this is because in the 2D driver,
> GUI_CNTL is set to zero when pATI->Chip >= ATI_CHIP_264VT4, in order to use
> the max possible fifo depth, 192) . Furthermore, I tested that once X has
> run, the DMA test in ati_mach64gui didn't work anymore with or without X
> (because the FIFO depth was changed before).
>
> So, I was able to simulate the same behaviour clearing GUI_CNTL (exactly
> the 0 and 1 bits: CMDFIFO_SIZE_MODE, that was set to one by the 2D driver)
> in the ati_mach64gui.o. I changed the DRI driver to set the 0 bit in
> GUI_CNTL (that is the default value, and, after this, reading GUI_STAT, as
> is said in the documentation), and it didn't work. So, I changed some other
> things in the DRI driver: set the busmastering in the init function and not
> in the bm_test one, removed the call to the dump_engine_info and changed
> some register manipulations. After this, the BusMastering test worked and
> finally: PAT_REG0=0x22222222 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

This is cool.  I've been swamped for quite a bit (this week, I'd not really 
even had time to pull my e-mail (over 300 messages in my in box...) so I 
couldn't do much of anything (sorry for the silence gang...).  I suspected 
that this was the problem, but I'd had a problem with the old code that I 
thought was due to something stupid that I did so I was going to take your 
newer code and work from that to see if I was right- ran out of personal time 
on my end (my "employer" has not been making payroll for the past month and 
half- so I've been doing other things to keep my family afloat...) so I 
didn't follow up.

> I'm attaching the mach64_dma.c in this mail, so anyone can check it in
> another machine.

I plan on using it to check and do some further cleanups with the 2D driver 
so that we don't have other "surprises".  Thanks for the code.

-- 
Frank Earl

_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to