aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Mateo <oscar.mateo@intel.com>2014-07-03 11:28:01 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-07-08 06:30:47 -0400
commit31b7a88d354e5d7f7d2e68818e4bd8f115ab1ba6 (patch)
tree93a2ac1ebcea93d23fff422b77565ed0b85cddc2
parent821d66dd7ca3f59f68478d0d0ee1f28a1de74267 (diff)
drm/i915: Add kerneldoc comments to the intel_context struct
A bit of background on the context elements. Cc: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> [danvet: Appease checkpatch.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index dcef38b1ea61..8fa8172fcfbb 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -586,6 +586,23 @@ struct i915_ctx_hang_stats {
586 586
587/* This must match up with the value previously used for execbuf2.rsvd1. */ 587/* This must match up with the value previously used for execbuf2.rsvd1. */
588#define DEFAULT_CONTEXT_HANDLE 0 588#define DEFAULT_CONTEXT_HANDLE 0
589/**
590 * struct intel_context - as the name implies, represents a context.
591 * @ref: reference count.
592 * @user_handle: userspace tracking identity for this context.
593 * @remap_slice: l3 row remapping information.
594 * @file_priv: filp associated with this context (NULL for global default
595 * context).
596 * @hang_stats: information about the role of this context in possible GPU
597 * hangs.
598 * @vm: virtual memory space used by this context.
599 * @legacy_hw_ctx: render context backing object and whether it is correctly
600 * initialized (legacy ring submission mechanism only).
601 * @link: link in the global list of contexts.
602 *
603 * Contexts are memory images used by the hardware to store copies of their
604 * internal state.
605 */
589struct intel_context { 606struct intel_context {
590 struct kref ref; 607 struct kref ref;
591 int user_handle; 608 int user_handle;