Home
last modified time | relevance | path

Searched refs:timeline (Results 1 – 25 of 54) sorted by relevance

123

/Linux-v5.4/tools/testing/selftests/sync/
Dsync_alloc.c34 int timeline, valid; in test_alloc_timeline() local
36 timeline = sw_sync_timeline_create(); in test_alloc_timeline()
37 valid = sw_sync_timeline_is_valid(timeline); in test_alloc_timeline()
40 sw_sync_timeline_destroy(timeline); in test_alloc_timeline()
46 int timeline, fence, valid; in test_alloc_fence() local
48 timeline = sw_sync_timeline_create(); in test_alloc_fence()
49 valid = sw_sync_timeline_is_valid(timeline); in test_alloc_fence()
52 fence = sw_sync_fence_create(timeline, "allocFence", 1); in test_alloc_fence()
57 sw_sync_timeline_destroy(timeline); in test_alloc_fence()
63 int fence, timeline; in test_alloc_fence_negative() local
[all …]
Dsync_fence.c35 int timeline = sw_sync_timeline_create(); in test_fence_one_timeline_wait() local
37 valid = sw_sync_timeline_is_valid(timeline); in test_fence_one_timeline_wait()
40 fence = sw_sync_fence_create(timeline, "allocFence", 5); in test_fence_one_timeline_wait()
49 ret = sw_sync_timeline_inc(timeline, 1); in test_fence_one_timeline_wait()
57 ret = sw_sync_timeline_inc(timeline, 4); in test_fence_one_timeline_wait()
65 ret = sw_sync_timeline_inc(timeline, 10); in test_fence_one_timeline_wait()
71 sw_sync_timeline_destroy(timeline); in test_fence_one_timeline_wait()
79 int timeline = sw_sync_timeline_create(); in test_fence_one_timeline_merge() local
82 a = sw_sync_fence_create(timeline, "allocFence", 1); in test_fence_one_timeline_merge()
83 b = sw_sync_fence_create(timeline, "allocFence", 2); in test_fence_one_timeline_merge()
[all …]
Dsync_stress_parallelism.c36 int timeline; member
43 int timeline = test_data_two_threads.timeline; in test_stress_two_threads_shared_timeline_thread() local
48 fence = sw_sync_fence_create(timeline, "fence", in test_stress_two_threads_shared_timeline_thread()
66 ret = sw_sync_timeline_inc(timeline, 1); in test_stress_two_threads_shared_timeline_thread()
79 int timeline = sw_sync_timeline_create(); in test_stress_two_threads_shared_timeline() local
81 valid = sw_sync_timeline_is_valid(timeline); in test_stress_two_threads_shared_timeline()
86 test_data_two_threads.timeline = timeline; in test_stress_two_threads_shared_timeline()
108 sw_sync_timeline_destroy(timeline); in test_stress_two_threads_shared_timeline()
Dsync_merge.c35 int timeline = sw_sync_timeline_create(); in test_fence_merge_same_fence() local
37 valid = sw_sync_timeline_is_valid(timeline); in test_fence_merge_same_fence()
40 fence = sw_sync_fence_create(timeline, "allocFence", 5); in test_fence_merge_same_fence()
51 sw_sync_timeline_inc(timeline, 5); in test_fence_merge_same_fence()
57 sw_sync_timeline_destroy(timeline); in test_fence_merge_same_fence()
Dsync_stress_merge.c44 int timeline, timeline_offset, sync_point; in test_merge_stress_random_merge() local
65 timeline = timelines[timeline_offset]; in test_merge_stress_random_merge()
75 tmpfence = sw_sync_fence_create(timeline, "fence", sync_point); in test_merge_stress_random_merge()
/Linux-v5.4/drivers/gpu/drm/i915/gt/selftests/
Dmock_timeline.c11 void mock_timeline_init(struct intel_timeline *timeline, u64 context) in mock_timeline_init() argument
13 timeline->gt = NULL; in mock_timeline_init()
14 timeline->fence_context = context; in mock_timeline_init()
16 mutex_init(&timeline->mutex); in mock_timeline_init()
18 INIT_ACTIVE_REQUEST(&timeline->last_request, &timeline->mutex); in mock_timeline_init()
19 INIT_LIST_HEAD(&timeline->requests); in mock_timeline_init()
21 i915_syncmap_init(&timeline->sync); in mock_timeline_init()
23 INIT_LIST_HEAD(&timeline->link); in mock_timeline_init()
26 void mock_timeline_fini(struct intel_timeline *timeline) in mock_timeline_fini() argument
28 i915_syncmap_free(&timeline->sync); in mock_timeline_fini()
/Linux-v5.4/drivers/gpu/drm/i915/gt/
Dintel_timeline.c54 hwsp_alloc(struct intel_timeline *timeline, unsigned int *cacheline) in hwsp_alloc() argument
56 struct intel_gt_timelines *gt = &timeline->gt->timelines; in hwsp_alloc()
75 vma = __hwsp_alloc(timeline->gt); in hwsp_alloc()
82 hwsp->gt = timeline->gt; in hwsp_alloc()
207 int intel_timeline_init(struct intel_timeline *timeline, in intel_timeline_init() argument
213 kref_init(&timeline->kref); in intel_timeline_init()
214 atomic_set(&timeline->pin_count, 0); in intel_timeline_init()
216 timeline->gt = gt; in intel_timeline_init()
218 timeline->has_initial_breadcrumb = !hwsp; in intel_timeline_init()
219 timeline->hwsp_cacheline = NULL; in intel_timeline_init()
[all …]
Dintel_context.c71 ce->engine->name, ce->timeline->fence_context, in __intel_context_do_pin()
101 ce->engine->name, ce->timeline->fence_context); in intel_context_unpin()
146 ce->engine->name, ce->timeline->fence_context); in __intel_context_retire()
151 intel_timeline_unpin(ce->timeline); in __intel_context_retire()
167 err = intel_timeline_pin(ce->timeline); in __intel_context_active()
181 intel_timeline_unpin(ce->timeline); in __intel_context_active()
228 if (ctx->timeline) in intel_context_init()
229 ce->timeline = intel_timeline_get(ctx->timeline); in intel_context_init()
247 if (ce->timeline) in intel_context_fini()
248 intel_timeline_put(ce->timeline); in intel_context_fini()
[all …]
Dintel_timeline.h43 intel_timeline_get(struct intel_timeline *timeline) in intel_timeline_get() argument
45 kref_get(&timeline->kref); in intel_timeline_get()
46 return timeline; in intel_timeline_get()
50 static inline void intel_timeline_put(struct intel_timeline *timeline) in intel_timeline_put() argument
52 kref_put(&timeline->kref, __intel_timeline_free); in intel_timeline_put()
Dintel_context.h92 lockdep_assert_held(&ce->timeline->mutex); in intel_context_enter()
99 lockdep_assert_held(&ce->timeline->mutex); in intel_context_mark_active()
105 lockdep_assert_held(&ce->timeline->mutex); in intel_context_exit()
127 __acquires(&ce->timeline->mutex) in intel_context_timeline_lock()
129 struct intel_timeline *tl = ce->timeline; in intel_context_timeline_lock()
/Linux-v5.4/tools/power/pm-graph/config/
Dcustom-timeline-functions.cfg29 # graph source functions in the timeline (default: false)
33 # gather detailed ftrace callgraph data on all timeline events (default: false)
45 # graph only devices longer than min in the timeline (default: 0.001 ms)
53 # insert a small visible gap between suspend and resume on the timeline (default: false)
60 # Override default timeline entries
61 # Do not use the internal default functions for timeline entries (default: false)
63 override-timeline-functions: true
65 # Override default dev timeline entries
66 # Do not use the internal default functions for dev timeline entries (default: false)
68 override-dev-timeline-functions: true
[all …]
Dexample.cfg37 # insert a small visible gap between suspend and resume on the timeline (default: false)
41 # Only capture the logs, don't generate the html timeline (default: false)
70 # graph user processes and cpu usage in the timeline (default: false)
74 # graph source functions in the timeline (default: false)
82 # Run two suspend/resumes back to back and display in the same timeline (default: false)
98 # graph only devices longer than min in the timeline (default: 0.001 ms)
109 # Override default timeline entries:
110 # Do not use the internal default functions for timeline entries (def: false)
112 override-timeline-functions: true
114 # Override default dev timeline entries:
[all …]
Dfreeze.cfg37 # insert a small visible gap between suspend and resume on the timeline (default: false)
46 # graph user processes and cpu usage in the timeline (default: false)
50 # graph source functions in the timeline (default: false)
70 # graph only devices longer than min in the timeline (default: 0.001 ms)
76 # gather detailed ftrace callgraph data on all timeline events (default: false)
Dstandby.cfg37 # insert a small visible gap between suspend and resume on the timeline (default: false)
46 # graph user processes and cpu usage in the timeline (default: false)
50 # graph source functions in the timeline (default: false)
70 # graph only devices longer than min in the timeline (default: 0.001 ms)
76 # gather detailed ftrace callgraph data on all timeline events (default: false)
Dfreeze-callgraph.cfg38 # insert a small visible gap between suspend and resume on the timeline (default: false)
47 # graph user processes and cpu usage in the timeline (default: false)
51 # graph source functions in the timeline (default: false)
71 # graph only devices longer than min in the timeline (default: 0.001 ms)
77 # gather detailed ftrace callgraph data on all timeline events (default: false)
Dfreeze-dev.cfg37 # insert a small visible gap between suspend and resume on the timeline (default: false)
46 # graph user processes and cpu usage in the timeline (default: false)
50 # graph source functions in the timeline (default: false)
70 # graph only devices longer than min in the timeline (default: 0.001 ms)
76 # gather detailed ftrace callgraph data on all timeline events (default: false)
Dstandby-callgraph.cfg38 # insert a small visible gap between suspend and resume on the timeline (default: false)
47 # graph user processes and cpu usage in the timeline (default: false)
51 # graph source functions in the timeline (default: false)
71 # graph only devices longer than min in the timeline (default: 0.001 ms)
77 # gather detailed ftrace callgraph data on all timeline events (default: false)
Dstandby-dev.cfg37 # insert a small visible gap between suspend and resume on the timeline (default: false)
46 # graph user processes and cpu usage in the timeline (default: false)
50 # graph source functions in the timeline (default: false)
70 # graph only devices longer than min in the timeline (default: 0.001 ms)
76 # gather detailed ftrace callgraph data on all timeline events (default: false)
Dsuspend-callgraph.cfg38 # insert a small visible gap between suspend and resume on the timeline (default: false)
47 # graph user processes and cpu usage in the timeline (default: false)
51 # graph source functions in the timeline (default: false)
71 # graph only devices longer than min in the timeline (default: 0.001 ms)
77 # gather detailed ftrace callgraph data on all timeline events (default: false)
Dsuspend-dev.cfg37 # insert a small visible gap between suspend and resume on the timeline (default: false)
46 # graph user processes and cpu usage in the timeline (default: false)
50 # graph source functions in the timeline (default: false)
70 # graph only devices longer than min in the timeline (default: 0.001 ms)
76 # gather detailed ftrace callgraph data on all timeline events (default: false)
/Linux-v5.4/drivers/dma-buf/
Dsync_trace.h13 TP_PROTO(struct sync_timeline *timeline),
15 TP_ARGS(timeline),
18 __string(name, timeline->name)
23 __assign_str(name, timeline->name);
24 __entry->value = timeline->value;
/Linux-v5.4/tools/power/pm-graph/
DREADME136 be used to regenerate the html timeline with different options
148 Developer mode adds information on low level source calls to the timeline.
151 subsystem dependent calls to better fill out the timeline.
154 timeline. This is useful in discovering dependent threads to get a better
159 The timeline will be much larger if run with dev mode, so it can be useful
173 Proc mode adds user process info to the timeline. This is done in a manner
202 Simple suspend/resume with basic timeline (mem/freeze/standby)
207 Dev mode suspend/resume with dev timeline (mem/freeze/standby)
212 Simple suspend/resume with timeline and callgraph (mem/freeze/standby)
220 Sample for editing timeline funcs (moves internal functions into config)
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/
Di915_active.c33 u64 timeline; member
188 if (node && node->timeline == idx) in active_instance()
205 if (node->timeline == idx) { in active_instance()
210 if (node->timeline < idx) in active_instance()
219 node->timeline = idx; in active_instance()
259 GEM_BUG_ON(node->timeline != engine->kernel_context->timeline->fence_context); in ____active_del_barrier()
488 return node->timeline == idx && !i915_active_request_isset(&node->base); in is_idle_barrier()
523 if (node->timeline < idx) in reuse_idle_barrier()
540 if (node->timeline > idx) in reuse_idle_barrier()
543 if (node->timeline < idx) in reuse_idle_barrier()
[all …]
Di915_request.c222 lockdep_assert_held(&rq->timeline->mutex); in i915_request_retire()
243 GEM_BUG_ON(!list_is_first(&rq->link, &rq->timeline->requests)); in i915_request_retire()
319 struct intel_timeline * const tl = rq->timeline; in i915_request_retire_upto()
625 struct intel_timeline *tl = ce->timeline; in __i915_request_create()
683 rq->timeline = tl; in __i915_request_create()
789 if (list_is_first(&signal->link, &signal->timeline->requests)) in i915_request_await_start()
793 if (intel_timeline_sync_is_later(rq->timeline, &signal->fence)) in i915_request_await_start()
828 GEM_BUG_ON(!from->timeline->has_initial_breadcrumb); in emit_semaphore_wait()
883 GEM_BUG_ON(to->timeline == from->timeline); in i915_request_await_request()
958 intel_timeline_sync_is_later(rq->timeline, fence)) in i915_request_await_dma_fence()
[all …]
/Linux-v5.4/include/trace/events/
Ddma_fence.h20 __string(timeline, fence->ops->get_timeline_name(fence))
27 __assign_str(timeline, fence->ops->get_timeline_name(fence))
33 __get_str(driver), __get_str(timeline), __entry->context,

123