Re: [Dri-devel] Re: PCI Bus and Mach64's DMA ring

2002-06-15 Thread Leif Delgass
On Sat, 15 Jun 2002, Keith Whitwell wrote: Linus Torvalds wrote: On Fri, 14 Jun 2002, José Fonseca wrote: So to avoid being constantly checking for conclusion before asking to process new entries we devised a different scheme: - after adding new entries to the ring - toggle

Re: [Dri-devel] Re: PCI Bus and Mach64's DMA ring

2002-06-15 Thread José Fonseca
On 2002.06.15 18:25 Leif Delgass wrote: On Sat, 15 Jun 2002, Keith Whitwell wrote: ... Is this necessary if the toggle is really just a write? Jose, you're not doing a read-modify-write operation on that flag are you? Actually, with the current implementation it is a

Re: [Dri-devel] Re: PCI Bus and Mach64's DMA ring

2002-06-15 Thread Linus Torvalds
On Sat, 15 Jun 2002, Keith Whitwell wrote: I also hope you do the toggle with a locked cycle so that you don't lose any information.. Is this necessary if the toggle is really just a write? Jose, you're not doing a read-modify-write operation on that flag are you? That depends on the

Re: [Dri-devel] Re: PCI Bus and Mach64's DMA ring

2002-06-15 Thread Leif Delgass
On Sat, 15 Jun 2002, Linus Torvalds wrote: On Sat, 15 Jun 2002, Keith Whitwell wrote: I also hope you do the toggle with a locked cycle so that you don't lose any information.. Is this necessary if the toggle is really just a write? Jose, you're not doing a read-modify-write

Re: [Dri-devel] Re: PCI Bus and Mach64's DMA ring

2002-06-15 Thread Linus Torvalds
On Sat, 15 Jun 2002, Leif Delgass wrote: I forgot about that. The mach64 _does_ seem to update the word to indicate the bytes of the DMA buffer remaining to be processed. You write the number of bytes in the buffer and the DMA engine seems to decrement this number as it processes the

[Dri-devel] Re: PCI Bus and Mach64's DMA ring

2002-06-14 Thread Linus Torvalds
On Fri, 14 Jun 2002, José Fonseca wrote: So to avoid being constantly checking for conclusion before asking to process new entries we devised a different scheme: - after adding new entries to the ring - toggle the end flag of the previous last entry, so that the engine will also

[Dri-devel] Re: PCI Bus and Mach64's DMA ring

2002-06-14 Thread José Fonseca
On 2002.06.14 18:20 Linus Torvalds wrote: On Fri, 14 Jun 2002, José Fonseca wrote: So to avoid being constantly checking for conclusion before asking to process new entries we devised a different scheme: - after adding new entries to the ring - toggle the end flag of the