[Intel-gfx] [RFC] [PATCH] Ring buffer dumping

Ben Gamari bgamari at gmail.com
Thu Jan 15 04:11:44 CET 2009


Hey again everyone,

Here is my latest attempt at implementing batch buffer dumping in GEM. The
patches have changed relatively little except for the fact that they now work.
At this point, reading from the debugfs file will dump not only the ring
buffer but also any batch buffers still valid and mapped into the GTT. While
my GEM knowledge is pretty limited, I think I've done everything necessary to
safely access the batch buffer object.

My one remaining concern is that we read out the batch buffer through the GTT.
Does anyone know if the GTT will stop working if the chip wedges up
(especially with something like an MMU fault)? The other option (as suggested
by keithp) is to use the non-GTT mapping. I would have done this but I just
happened to get this approach working by the time the alternative was
suggested.

Anyways, I think this patch set can still be considered to be in RFC status.
Let me know what you think. Thanks,

- Ben




More information about the Intel-gfx mailing list