]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Assign every HW context a unique ID
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Apr 2016 08:56:51 +0000 (09:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Apr 2016 11:17:32 +0000 (12:17 +0100)
commitdcd2741ef5cd42b2d1dbc11c162391295b4aae82
treea126fde5d6f0266ec212e7b6b32b882333bbdfa3
parent45a3a91a6e404306335e403a30dd2e7524025fc2
drm/i915: Assign every HW context a unique ID

The hardware tracks contexts and expects all live contexts (those active
on the hardware) to have a unique identifier. This is used by the
hardware to assign pagefaults and the like to a particular context.

v2: Reorder to make sure ctx->link is not left dangling if the
assignment of a hw_id fails (Mika).

v3: We have 21bits of context space, not 20.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461833819-3991-17-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