summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2021-08-17 21:57:41 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2024-01-08 14:01:49 +0100
commit44f2d0ab6bb97df81b33fc3e1b39ad003504dc0a (patch)
treeee9d2f0f8736987d2463715ed8ba58fb601f015b
parentb074a2a8eb37bb890633122ff0c411f033ef4499 (diff)
drm/i915: Document i915_perf_stream.ctx a bit better
Specifically write down the lifetime rules. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
-rw-r--r--drivers/gpu/drm/i915/i915_perf_types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_perf_types.h b/drivers/gpu/drm/i915/i915_perf_types.h
index 46445248d193..2f61235e6547 100644
--- a/drivers/gpu/drm/i915/i915_perf_types.h
+++ b/drivers/gpu/drm/i915/i915_perf_types.h
@@ -201,7 +201,8 @@ struct i915_perf_stream {
/**
* @ctx: %NULL if measuring system-wide across all contexts or a
- * specific context that is being monitored.
+ * specific context that is being monitored. Invariant over the lifetime
+ * of this struct, and we hold a full reference.
*/
struct i915_gem_context *ctx;