[Intel-gfx] [PATCH] Rework DRM proc file handling

Eric Anholt eric at anholt.net
Sat Dec 20 00:19:14 CET 2008


On Tue, 2008-12-09 at 14:00 -0500, Ben Gamari wrote:
> Hey everyone,
> 
> This is the latest version of my procfs file handling patch. I have
> ported the old proc files to use the seq_file interface greatly
> simplifying the code. I have also put in place infrastructure for
> exporting data through debugfs, creating a dri/ directory in the debugfs
> root similar to procfs. I moved /proc/dri/*/vma along with all of the
> i915_gem_* files into this directory. Like the proc code, the debugfs
> code uses seq_file. This code has all been tested and appears to work.
> 
> Lastly, I ported the old ring buffer dump code to the drm. This creates
> a file in debugfs (i915_gem_ringbuf) from which the ring buffer can be
> dumped. Currently, the code is only capable of dumping the ring buffer
> itself. It'll probably be a few weeks before I have time to think about
> getting batchbuffer dumping working. This is the outline I currently
> have,
> - Search through the active batchbuffer list looking for a batchbuffer
> located at the offset indicated in the MI_BATCH_BUFFER_START instruction
> - Pin this batchbuffer into memory somewhere
> - Dump its contents
> - Unpin
> 
> I know practically nothing about gem at the moment, so it'll take me a
> while to get up to speed. If someone else wants to try adding
> batchbuffer dumping, they are more than welcome. 
> 
> At this point, I think the patch is nearing a merge-worthy point. Let me
> know what else is needed to get it merged.

Could this get split up into a step that converts the existing code to
using seq_printf (which seems great!), a second step moving appropriate
parts to debugfs (I'm not really sold on this), and another step adding
the intel ring dumping (I'm very interested in this)?  Then we can look
at the individual parts of the project more easily than reviewing a
1700-line patch :)

-- 
Eric Anholt
eric at anholt.net                         eric.anholt at intel.com


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20081219/19a73488/attachment.sig>


More information about the Intel-gfx mailing list