]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add process identifier to requests
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Thu, 12 Feb 2015 08:26:02 +0000 (10:26 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Feb 2015 22:28:37 +0000 (23:28 +0100)
commita85006f154a788bf4e31b9ad168577eebfe8dcd2
treed06b6dbf85a26befd22b39508a18f695be58c791
parent23590583813359ef901b86a75a1d0132d6f4a03a
drm/i915: Add process identifier to requests

We use the pid of the process which opened our device when
we track which was the culprit of the gpu hang. But as that
file descriptor might get inherited, we might blame the
wrong process when we record the error state.

Track process identifiers in requests to always find
the correct offender.

v2: Track only user processes (Chris)

Cc: Kenneth Graunke <kenneth@whitecape.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
[danvet: drop NULL check before put_pid as suggested by Chris.]
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gpu_error.c