[Intel-gfx] [PATCH 1/1] drm/i915: track first and last processes that touch gem objects

Konstantin Belousov kostikbel at gmail.com
Fri Feb 3 16:49:12 CET 2012

On Fri, Feb 03, 2012 at 01:31:39PM -0200, Eugeni Dodonov wrote:
> This allows to hopefully find out who was responsible for the GPU death.
> We record the 1st and last process to touch each object, to keep track of
> the process which created the object originally and the last process to
> touch it.
> To simplify post-mortem analysis, we also search for the processes names
> when gathering the i915_error_state and when peeking at the list of active
> gem objects in debugfs. This is not perfect for tracking all the
> processes, as they can quit or die before their batchbuffers got executed,
> but having to track them during the entire object lifetime would be
> excessively memcpy hungry.
> v2: also track objects accessed via mmap or pwrite.
Only writes through GTT mappings are recorded, I think that writes when
the object is in CPU domain are almost impossible to note with the driver
(at least it is so on FreeBSD).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20120203/4e614ab3/attachment.sig>

More information about the Intel-gfx mailing list