Luca Barbieri <l...@luca-barbieri.com> writes: >> Nvidia cards have a synchronization primitive that could be used to >> synchronize several FIFOs in hardware (AKA semaphores, see [1] for an >> example). > > Does this operate wholly on the GPU on all nVidia cards? > > It seems that at least on some GPUs this will trigger "software > methods" that are basically a way for the GPU to trigger an interrupt > and stop the FIFO until the CPU handles the interrupt and restarts it. > Yes, it could be handled without software methods, Maarten (CC'ed) was looking into this, IIRC.
> Also, is there a way on nVidia cards to get interrupts on fences, but > only where the fence sequence number is higher than a dynamically set > value? (so that one could sleep for fence X without getting an > interrupt for every single fence before that) > > If not, it could possibly be hacked around by reading from a DMA > object at the address of the fence sequence number and then resizing > the DMA object so that addresses from a certain point on would trigger > a protection fault interrupt. I don't think you can safely modify a DMA object without stalling the card completely, but i think you could use e.g. PGRAPH NOTIFY interrupts and disable them by flipping a bit in PGRAPH when you stop caring about them.
pgpJlRQwUx57K.pgp
Description: PGP signature
_______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau