]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move debug only per-request pid tracking from request to ctx
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Aug 2016 09:49:08 +0000 (10:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Aug 2016 10:01:15 +0000 (11:01 +0100)
commit1d5ae2f4d6fe111e2f46aea8a399b60053e002dd
treec13424fb336a8660295c4a04f9063ae5b6bf44eb
parentb978d1bf624cbe56e96721d489a53f803d11b90a
drm/i915: Move debug only per-request pid tracking from request to ctx

Since contexts are not currently shared between userspace processes, we
have an exact correspondence between context creator and guilty batch
submitter. Therefore we can save some per-batch work by inspecting the
context->pid upon error instead. Note that we take the context's
creator's pid rather than the file's pid in order to better track fd
passed over sockets.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1471254551-25805-29-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_gem_request.c
drivers/gpu/drm/i915/i915_gem_request.h
drivers/gpu/drm/i915/i915_gpu_error.c