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)
commit071c92de1d24f36a217fb8264df27998c8c73df6
treed06b6dbf85a26befd22b39508a18f695be58c791
parent65ca7514e21adbee25b8175fc909759c735d00ff
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
This page took 0.025681 seconds and 5 git commands to generate.