Home
last modified time | relevance | path

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

123

/linux/drivers/gpu/drm/i915/gt/
A Dintel_timeline.c65 timeline->hwsp_map = vaddr; in intel_timeline_pin_map()
77 kref_init(&timeline->kref); in intel_timeline_init()
80 timeline->gt = gt; in intel_timeline_init()
93 timeline->hwsp_map = NULL; in intel_timeline_init()
94 timeline->hwsp_seqno = (void *)(long)timeline->hwsp_offset; in intel_timeline_init()
125 if (timeline->hwsp_map) in intel_timeline_fini()
139 kfree(timeline); in intel_timeline_fini()
150 timeline = kzalloc(sizeof(*timeline), GFP_KERNEL); in __intel_timeline_create()
151 if (!timeline) in __intel_timeline_create()
156 kfree(timeline); in __intel_timeline_create()
[all …]
A Dintel_context.c172 err = intel_timeline_pin(ce->timeline, ww); in intel_context_pre_pin()
187 intel_timeline_unpin(ce->timeline); in intel_context_pre_pin()
198 intel_timeline_unpin(ce->timeline); in intel_context_post_unpin()
356 __intel_timeline_pin(ce->timeline); in __intel_context_active()
425 if (ce->timeline) in intel_context_fini()
426 intel_timeline_put(ce->timeline); in intel_context_fini()
456 intel_timeline_enter(ce->timeline); in intel_context_enter_engine()
461 intel_timeline_exit(ce->timeline); in intel_context_exit_engine()
468 struct intel_timeline *tl = ce->timeline; in intel_context_prepare_remote_request()
522 lockdep_unpin_lock(&ce->timeline->mutex, rq->cookie); in intel_context_create_request()
[all …]
A Dintel_engine_pm.c68 ce->timeline->seqno, in __engine_unpark()
69 READ_ONCE(*ce->timeline->hwsp_seqno), in __engine_unpark()
71 GEM_BUG_ON(ce->timeline->seqno != in __engine_unpark()
72 READ_ONCE(*ce->timeline->hwsp_seqno)); in __engine_unpark()
90 mutex_acquire(&ce->timeline->mutex.dep_map, 2, 0, _THIS_IP_); in __timeline_mark_lock()
98 mutex_release(&ce->timeline->mutex.dep_map, _THIS_IP_); in __timeline_mark_unlock()
183 GEM_BUG_ON(ce->timeline->hwsp_ggtt != engine->status_page.vma); in switch_to_kernel_context()
218 GEM_BUG_ON(atomic_read(&ce->timeline->active_count) < 0); in switch_to_kernel_context()
245 __queue_and_release_pm(rq, ce->timeline, engine); in switch_to_kernel_context()
A Dintel_timeline.h33 intel_timeline_get(struct intel_timeline *timeline) in intel_timeline_get() argument
35 kref_get(&timeline->kref); in intel_timeline_get()
36 return timeline; in intel_timeline_get()
40 static inline void intel_timeline_put(struct intel_timeline *timeline) in intel_timeline_put() argument
42 kref_put(&timeline->kref, __intel_timeline_free); in intel_timeline_put()
A Dintel_engine_heartbeat.c184 if (!mutex_trylock(&ce->timeline->mutex)) { in heartbeat()
201 mutex_unlock(&ce->timeline->mutex); in heartbeat()
252 lockdep_assert_held(&ce->timeline->mutex); in __intel_engine_pulse()
293 err = mutex_lock_interruptible(&ce->timeline->mutex); in intel_engine_set_heartbeat()
308 mutex_unlock(&ce->timeline->mutex); in intel_engine_set_heartbeat()
327 if (!mutex_lock_interruptible(&ce->timeline->mutex)) { in intel_engine_pulse()
329 mutex_unlock(&ce->timeline->mutex); in intel_engine_pulse()
350 if (mutex_lock_interruptible(&ce->timeline->mutex)) { in intel_engine_flush_barriers()
365 mutex_unlock(&ce->timeline->mutex); in intel_engine_flush_barriers()
/linux/tools/testing/selftests/sync/
A 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()
57 sw_sync_timeline_destroy(timeline); in test_alloc_fence()
63 int fence, timeline; in test_alloc_fence_negative() local
65 timeline = sw_sync_timeline_create(); in test_alloc_fence_negative()
[all …]
A 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()
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
107 sw_sync_timeline_inc(timeline, 1); in test_fence_one_timeline_merge()
113 sw_sync_timeline_inc(timeline, 1); in test_fence_one_timeline_merge()
119 sw_sync_timeline_inc(timeline, 1); in test_fence_one_timeline_merge()
[all …]
A 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()
A 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()
/linux/drivers/gpu/drm/i915/gt/selftests/
A 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_FENCE(&timeline->last_request); 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/tools/power/pm-graph/config/
A 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)
60 # Override default timeline entries
63 override-timeline-functions: true
65 # Override default dev timeline entries
68 override-dev-timeline-functions: true
72 # Function calls to display in the timeline alongside device callbacks.
112 # Example: Display cpu resume in the timeline
139 # Dev mode function calls to display inside timeline entries
[all …]
A Dexample.cfg41 # 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)
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:
117 override-dev-timeline-functions: true
153 # Add kprobe functions to the timeline
[all …]
A 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)
A 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)
A 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)
A 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)
A 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)
A 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)
A 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)
A 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)
A Dsuspend-x2-proc.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/drivers/dma-buf/
A 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/tools/power/pm-graph/
A DREADME142 be used to regenerate the html timeline with different options
157 subsystem dependent calls to better fill out the timeline.
325 config/custom-timeline-functions.cfg
406 # Override default timeline entries:
409 override-timeline-functions: true
411 # Override default dev timeline entries:
414 override-dev-timeline-functions: true
497 execution within the timeline entries.
500 timeline. However, if a function call is not within a main timeline event,
561 timeline data source: FTRACE (all trace events found)
[all …]
/linux/drivers/gpu/drm/i915/gem/
A Di915_gem_throttle.c64 if (!ce->timeline) in i915_gem_throttle_ioctl()
67 mutex_lock(&ce->timeline->mutex); in i915_gem_throttle_ioctl()
69 &ce->timeline->requests, in i915_gem_throttle_ioctl()
81 mutex_unlock(&ce->timeline->mutex); in i915_gem_throttle_ioctl()
/linux/drivers/gpu/drm/i915/
A Di915_active.c30 u64 timeline; member
275 if (it->timeline < idx) { in __active_lookup()
308 if (node->timeline == idx) in active_instance()
311 if (node->timeline < idx) in active_instance()
327 node->timeline = idx; in active_instance()
374 GEM_BUG_ON(node->timeline != engine->kernel_context->timeline->fence_context); in ____active_del_barrier()
826 if (node->timeline < idx) in reuse_idle_barrier()
843 if (node->timeline > idx) in reuse_idle_barrier()
846 if (node->timeline < idx) in reuse_idle_barrier()
913 node->timeline = idx; in i915_active_acquire_preallocate_barrier()
[all …]

Completed in 23 milliseconds

123