forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/i915/i915_trace.h
....@@ -6,16 +6,96 @@
66 #include <linux/types.h>
77 #include <linux/tracepoint.h>
88
9
-#include <drm/drmP.h>
9
+#include <drm/drm_drv.h>
10
+
11
+#include "display/intel_display_types.h"
12
+#include "gt/intel_engine.h"
13
+
1014 #include "i915_drv.h"
11
-#include "intel_drv.h"
12
-#include "intel_ringbuffer.h"
15
+#include "i915_irq.h"
1316
1417 #undef TRACE_SYSTEM
1518 #define TRACE_SYSTEM i915
1619 #define TRACE_INCLUDE_FILE i915_trace
1720
1821 /* watermark/fifo updates */
22
+
23
+TRACE_EVENT(intel_pipe_enable,
24
+ TP_PROTO(struct intel_crtc *crtc),
25
+ TP_ARGS(crtc),
26
+
27
+ TP_STRUCT__entry(
28
+ __array(u32, frame, 3)
29
+ __array(u32, scanline, 3)
30
+ __field(enum pipe, pipe)
31
+ ),
32
+ TP_fast_assign(
33
+ struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
34
+ struct intel_crtc *it__;
35
+ for_each_intel_crtc(&dev_priv->drm, it__) {
36
+ __entry->frame[it__->pipe] = intel_crtc_get_vblank_counter(it__);
37
+ __entry->scanline[it__->pipe] = intel_get_crtc_scanline(it__);
38
+ }
39
+ __entry->pipe = crtc->pipe;
40
+ ),
41
+
42
+ TP_printk("pipe %c enable, pipe A: frame=%u, scanline=%u, pipe B: frame=%u, scanline=%u, pipe C: frame=%u, scanline=%u",
43
+ pipe_name(__entry->pipe),
44
+ __entry->frame[PIPE_A], __entry->scanline[PIPE_A],
45
+ __entry->frame[PIPE_B], __entry->scanline[PIPE_B],
46
+ __entry->frame[PIPE_C], __entry->scanline[PIPE_C])
47
+);
48
+
49
+TRACE_EVENT(intel_pipe_disable,
50
+ TP_PROTO(struct intel_crtc *crtc),
51
+ TP_ARGS(crtc),
52
+
53
+ TP_STRUCT__entry(
54
+ __array(u32, frame, 3)
55
+ __array(u32, scanline, 3)
56
+ __field(enum pipe, pipe)
57
+ ),
58
+
59
+ TP_fast_assign(
60
+ struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
61
+ struct intel_crtc *it__;
62
+ for_each_intel_crtc(&dev_priv->drm, it__) {
63
+ __entry->frame[it__->pipe] = intel_crtc_get_vblank_counter(it__);
64
+ __entry->scanline[it__->pipe] = intel_get_crtc_scanline(it__);
65
+ }
66
+ __entry->pipe = crtc->pipe;
67
+ ),
68
+
69
+ TP_printk("pipe %c disable, pipe A: frame=%u, scanline=%u, pipe B: frame=%u, scanline=%u, pipe C: frame=%u, scanline=%u",
70
+ pipe_name(__entry->pipe),
71
+ __entry->frame[PIPE_A], __entry->scanline[PIPE_A],
72
+ __entry->frame[PIPE_B], __entry->scanline[PIPE_B],
73
+ __entry->frame[PIPE_C], __entry->scanline[PIPE_C])
74
+);
75
+
76
+TRACE_EVENT(intel_pipe_crc,
77
+ TP_PROTO(struct intel_crtc *crtc, const u32 *crcs),
78
+ TP_ARGS(crtc, crcs),
79
+
80
+ TP_STRUCT__entry(
81
+ __field(enum pipe, pipe)
82
+ __field(u32, frame)
83
+ __field(u32, scanline)
84
+ __array(u32, crcs, 5)
85
+ ),
86
+
87
+ TP_fast_assign(
88
+ __entry->pipe = crtc->pipe;
89
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
90
+ __entry->scanline = intel_get_crtc_scanline(crtc);
91
+ memcpy(__entry->crcs, crcs, sizeof(__entry->crcs));
92
+ ),
93
+
94
+ TP_printk("pipe %c, frame=%u, scanline=%u crc=%08x %08x %08x %08x %08x",
95
+ pipe_name(__entry->pipe), __entry->frame, __entry->scanline,
96
+ __entry->crcs[0], __entry->crcs[1], __entry->crcs[2],
97
+ __entry->crcs[3], __entry->crcs[4])
98
+);
1999
20100 TRACE_EVENT(intel_cpu_fifo_underrun,
21101 TP_PROTO(struct drm_i915_private *dev_priv, enum pipe pipe),
....@@ -28,9 +108,10 @@
28108 ),
29109
30110 TP_fast_assign(
111
+ struct intel_crtc *crtc = intel_get_crtc_for_pipe(dev_priv, pipe);
31112 __entry->pipe = pipe;
32
- __entry->frame = dev_priv->drm.driver->get_vblank_counter(&dev_priv->drm, pipe);
33
- __entry->scanline = intel_get_crtc_scanline(intel_get_crtc_for_pipe(dev_priv, pipe));
113
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
114
+ __entry->scanline = intel_get_crtc_scanline(crtc);
34115 ),
35116
36117 TP_printk("pipe %c, frame=%u, scanline=%u",
....@@ -50,9 +131,10 @@
50131
51132 TP_fast_assign(
52133 enum pipe pipe = pch_transcoder;
134
+ struct intel_crtc *crtc = intel_get_crtc_for_pipe(dev_priv, pipe);
53135 __entry->pipe = pipe;
54
- __entry->frame = dev_priv->drm.driver->get_vblank_counter(&dev_priv->drm, pipe);
55
- __entry->scanline = intel_get_crtc_scanline(intel_get_crtc_for_pipe(dev_priv, pipe));
136
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
137
+ __entry->scanline = intel_get_crtc_scanline(crtc);
56138 ),
57139
58140 TP_printk("pch transcoder %c, frame=%u, scanline=%u",
....@@ -72,12 +154,10 @@
72154 ),
73155
74156 TP_fast_assign(
75
- enum pipe pipe;
76
- for_each_pipe(dev_priv, pipe) {
77
- __entry->frame[pipe] =
78
- dev_priv->drm.driver->get_vblank_counter(&dev_priv->drm, pipe);
79
- __entry->scanline[pipe] =
80
- intel_get_crtc_scanline(intel_get_crtc_for_pipe(dev_priv, pipe));
157
+ struct intel_crtc *crtc;
158
+ for_each_intel_crtc(&dev_priv->drm, crtc) {
159
+ __entry->frame[crtc->pipe] = intel_crtc_get_vblank_counter(crtc);
160
+ __entry->scanline[crtc->pipe] = intel_get_crtc_scanline(crtc);
81161 }
82162 __entry->old = old;
83163 __entry->new = new;
....@@ -114,8 +194,7 @@
114194
115195 TP_fast_assign(
116196 __entry->pipe = crtc->pipe;
117
- __entry->frame = crtc->base.dev->driver->get_vblank_counter(crtc->base.dev,
118
- crtc->pipe);
197
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
119198 __entry->scanline = intel_get_crtc_scanline(crtc);
120199 __entry->primary = wm->pipe[crtc->pipe].plane[PLANE_PRIMARY];
121200 __entry->sprite = wm->pipe[crtc->pipe].plane[PLANE_SPRITE0];
....@@ -159,8 +238,7 @@
159238
160239 TP_fast_assign(
161240 __entry->pipe = crtc->pipe;
162
- __entry->frame = crtc->base.dev->driver->get_vblank_counter(crtc->base.dev,
163
- crtc->pipe);
241
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
164242 __entry->scanline = intel_get_crtc_scanline(crtc);
165243 __entry->level = wm->level;
166244 __entry->cxsr = wm->cxsr;
....@@ -194,8 +272,7 @@
194272
195273 TP_fast_assign(
196274 __entry->pipe = crtc->pipe;
197
- __entry->frame = crtc->base.dev->driver->get_vblank_counter(crtc->base.dev,
198
- crtc->pipe);
275
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
199276 __entry->scanline = intel_get_crtc_scanline(crtc);
200277 __entry->sprite0_start = sprite0_start;
201278 __entry->sprite1_start = sprite1_start;
....@@ -216,25 +293,24 @@
216293
217294 TP_STRUCT__entry(
218295 __field(enum pipe, pipe)
219
- __field(const char *, name)
220296 __field(u32, frame)
221297 __field(u32, scanline)
222298 __array(int, src, 4)
223299 __array(int, dst, 4)
300
+ __string(name, plane->name)
224301 ),
225302
226303 TP_fast_assign(
304
+ __assign_str(name, plane->name);
227305 __entry->pipe = crtc->pipe;
228
- __entry->name = plane->name;
229
- __entry->frame = crtc->base.dev->driver->get_vblank_counter(crtc->base.dev,
230
- crtc->pipe);
306
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
231307 __entry->scanline = intel_get_crtc_scanline(crtc);
232308 memcpy(__entry->src, &plane->state->src, sizeof(__entry->src));
233309 memcpy(__entry->dst, &plane->state->dst, sizeof(__entry->dst));
234310 ),
235311
236312 TP_printk("pipe %c, plane %s, frame=%u, scanline=%u, " DRM_RECT_FP_FMT " -> " DRM_RECT_FMT,
237
- pipe_name(__entry->pipe), __entry->name,
313
+ pipe_name(__entry->pipe), __get_str(name),
238314 __entry->frame, __entry->scanline,
239315 DRM_RECT_FP_ARG((const struct drm_rect *)__entry->src),
240316 DRM_RECT_ARG((const struct drm_rect *)__entry->dst))
....@@ -246,27 +322,88 @@
246322
247323 TP_STRUCT__entry(
248324 __field(enum pipe, pipe)
249
- __field(const char *, name)
325
+ __field(u32, frame)
326
+ __field(u32, scanline)
327
+ __string(name, plane->name)
328
+ ),
329
+
330
+ TP_fast_assign(
331
+ __assign_str(name, plane->name);
332
+ __entry->pipe = crtc->pipe;
333
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
334
+ __entry->scanline = intel_get_crtc_scanline(crtc);
335
+ ),
336
+
337
+ TP_printk("pipe %c, plane %s, frame=%u, scanline=%u",
338
+ pipe_name(__entry->pipe), __get_str(name),
339
+ __entry->frame, __entry->scanline)
340
+);
341
+
342
+/* fbc */
343
+
344
+TRACE_EVENT(intel_fbc_activate,
345
+ TP_PROTO(struct intel_crtc *crtc),
346
+ TP_ARGS(crtc),
347
+
348
+ TP_STRUCT__entry(
349
+ __field(enum pipe, pipe)
250350 __field(u32, frame)
251351 __field(u32, scanline)
252352 ),
253353
254354 TP_fast_assign(
255355 __entry->pipe = crtc->pipe;
256
- __entry->name = plane->name;
257
- __entry->frame = crtc->base.dev->driver->get_vblank_counter(crtc->base.dev,
258
- crtc->pipe);
356
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
259357 __entry->scanline = intel_get_crtc_scanline(crtc);
260358 ),
261359
262
- TP_printk("pipe %c, plane %s, frame=%u, scanline=%u",
263
- pipe_name(__entry->pipe), __entry->name,
264
- __entry->frame, __entry->scanline)
360
+ TP_printk("pipe %c, frame=%u, scanline=%u",
361
+ pipe_name(__entry->pipe), __entry->frame, __entry->scanline)
362
+);
363
+
364
+TRACE_EVENT(intel_fbc_deactivate,
365
+ TP_PROTO(struct intel_crtc *crtc),
366
+ TP_ARGS(crtc),
367
+
368
+ TP_STRUCT__entry(
369
+ __field(enum pipe, pipe)
370
+ __field(u32, frame)
371
+ __field(u32, scanline)
372
+ ),
373
+
374
+ TP_fast_assign(
375
+ __entry->pipe = crtc->pipe;
376
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
377
+ __entry->scanline = intel_get_crtc_scanline(crtc);
378
+ ),
379
+
380
+ TP_printk("pipe %c, frame=%u, scanline=%u",
381
+ pipe_name(__entry->pipe), __entry->frame, __entry->scanline)
382
+);
383
+
384
+TRACE_EVENT(intel_fbc_nuke,
385
+ TP_PROTO(struct intel_crtc *crtc),
386
+ TP_ARGS(crtc),
387
+
388
+ TP_STRUCT__entry(
389
+ __field(enum pipe, pipe)
390
+ __field(u32, frame)
391
+ __field(u32, scanline)
392
+ ),
393
+
394
+ TP_fast_assign(
395
+ __entry->pipe = crtc->pipe;
396
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
397
+ __entry->scanline = intel_get_crtc_scanline(crtc);
398
+ ),
399
+
400
+ TP_printk("pipe %c, frame=%u, scanline=%u",
401
+ pipe_name(__entry->pipe), __entry->frame, __entry->scanline)
265402 );
266403
267404 /* pipe updates */
268405
269
-TRACE_EVENT(i915_pipe_update_start,
406
+TRACE_EVENT(intel_pipe_update_start,
270407 TP_PROTO(struct intel_crtc *crtc),
271408 TP_ARGS(crtc),
272409
....@@ -280,8 +417,7 @@
280417
281418 TP_fast_assign(
282419 __entry->pipe = crtc->pipe;
283
- __entry->frame = crtc->base.dev->driver->get_vblank_counter(crtc->base.dev,
284
- crtc->pipe);
420
+ __entry->frame = intel_crtc_get_vblank_counter(crtc);
285421 __entry->scanline = intel_get_crtc_scanline(crtc);
286422 __entry->min = crtc->debug.min_vbl;
287423 __entry->max = crtc->debug.max_vbl;
....@@ -292,7 +428,7 @@
292428 __entry->scanline, __entry->min, __entry->max)
293429 );
294430
295
-TRACE_EVENT(i915_pipe_update_vblank_evaded,
431
+TRACE_EVENT(intel_pipe_update_vblank_evaded,
296432 TP_PROTO(struct intel_crtc *crtc),
297433 TP_ARGS(crtc),
298434
....@@ -317,7 +453,7 @@
317453 __entry->scanline, __entry->min, __entry->max)
318454 );
319455
320
-TRACE_EVENT(i915_pipe_update_end,
456
+TRACE_EVENT(intel_pipe_update_end,
321457 TP_PROTO(struct intel_crtc *crtc, u32 frame, int scanline_end),
322458 TP_ARGS(crtc, frame, scanline_end),
323459
....@@ -585,42 +721,12 @@
585721 TP_printk("dev=%d, vm=%p", __entry->dev, __entry->vm)
586722 );
587723
588
-TRACE_EVENT(i915_gem_ring_sync_to,
589
- TP_PROTO(struct i915_request *to, struct i915_request *from),
590
- TP_ARGS(to, from),
591
-
592
- TP_STRUCT__entry(
593
- __field(u32, dev)
594
- __field(u32, from_class)
595
- __field(u32, from_instance)
596
- __field(u32, to_class)
597
- __field(u32, to_instance)
598
- __field(u32, seqno)
599
- ),
600
-
601
- TP_fast_assign(
602
- __entry->dev = from->i915->drm.primary->index;
603
- __entry->from_class = from->engine->uabi_class;
604
- __entry->from_instance = from->engine->instance;
605
- __entry->to_class = to->engine->uabi_class;
606
- __entry->to_instance = to->engine->instance;
607
- __entry->seqno = from->global_seqno;
608
- ),
609
-
610
- TP_printk("dev=%u, sync-from=%u:%u, sync-to=%u:%u, seqno=%u",
611
- __entry->dev,
612
- __entry->from_class, __entry->from_instance,
613
- __entry->to_class, __entry->to_instance,
614
- __entry->seqno)
615
-);
616
-
617724 TRACE_EVENT(i915_request_queue,
618725 TP_PROTO(struct i915_request *rq, u32 flags),
619726 TP_ARGS(rq, flags),
620727
621728 TP_STRUCT__entry(
622729 __field(u32, dev)
623
- __field(u32, hw_id)
624730 __field(u64, ctx)
625731 __field(u16, class)
626732 __field(u16, instance)
....@@ -629,19 +735,17 @@
629735 ),
630736
631737 TP_fast_assign(
632
- __entry->dev = rq->i915->drm.primary->index;
633
- __entry->hw_id = rq->gem_context->hw_id;
738
+ __entry->dev = rq->engine->i915->drm.primary->index;
634739 __entry->class = rq->engine->uabi_class;
635
- __entry->instance = rq->engine->instance;
740
+ __entry->instance = rq->engine->uabi_instance;
636741 __entry->ctx = rq->fence.context;
637742 __entry->seqno = rq->fence.seqno;
638743 __entry->flags = flags;
639744 ),
640745
641
- TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%llu, seqno=%u, flags=0x%x",
746
+ TP_printk("dev=%u, engine=%u:%u, ctx=%llu, seqno=%u, flags=0x%x",
642747 __entry->dev, __entry->class, __entry->instance,
643
- __entry->hw_id, __entry->ctx, __entry->seqno,
644
- __entry->flags)
748
+ __entry->ctx, __entry->seqno, __entry->flags)
645749 );
646750
647751 DECLARE_EVENT_CLASS(i915_request,
....@@ -650,28 +754,23 @@
650754
651755 TP_STRUCT__entry(
652756 __field(u32, dev)
653
- __field(u32, hw_id)
654757 __field(u64, ctx)
655758 __field(u16, class)
656759 __field(u16, instance)
657760 __field(u32, seqno)
658
- __field(u32, global)
659761 ),
660762
661763 TP_fast_assign(
662
- __entry->dev = rq->i915->drm.primary->index;
663
- __entry->hw_id = rq->gem_context->hw_id;
764
+ __entry->dev = rq->engine->i915->drm.primary->index;
664765 __entry->class = rq->engine->uabi_class;
665
- __entry->instance = rq->engine->instance;
766
+ __entry->instance = rq->engine->uabi_instance;
666767 __entry->ctx = rq->fence.context;
667768 __entry->seqno = rq->fence.seqno;
668
- __entry->global = rq->global_seqno;
669769 ),
670770
671
- TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%llu, seqno=%u, global=%u",
771
+ TP_printk("dev=%u, engine=%u:%u, ctx=%llu, seqno=%u",
672772 __entry->dev, __entry->class, __entry->instance,
673
- __entry->hw_id, __entry->ctx, __entry->seqno,
674
- __entry->global)
773
+ __entry->ctx, __entry->seqno)
675774 );
676775
677776 DEFINE_EVENT(i915_request, i915_request_add,
....@@ -696,32 +795,28 @@
696795
697796 TP_STRUCT__entry(
698797 __field(u32, dev)
699
- __field(u32, hw_id)
700798 __field(u64, ctx)
701799 __field(u16, class)
702800 __field(u16, instance)
703801 __field(u32, seqno)
704
- __field(u32, global_seqno)
705802 __field(u32, port)
706
- __field(u32, prio)
803
+ __field(s32, prio)
707804 ),
708805
709806 TP_fast_assign(
710
- __entry->dev = rq->i915->drm.primary->index;
711
- __entry->hw_id = rq->gem_context->hw_id;
807
+ __entry->dev = rq->engine->i915->drm.primary->index;
712808 __entry->class = rq->engine->uabi_class;
713
- __entry->instance = rq->engine->instance;
809
+ __entry->instance = rq->engine->uabi_instance;
714810 __entry->ctx = rq->fence.context;
715811 __entry->seqno = rq->fence.seqno;
716
- __entry->global_seqno = rq->global_seqno;
717812 __entry->prio = rq->sched.attr.priority;
718813 __entry->port = port;
719814 ),
720815
721
- TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%llu, seqno=%u, prio=%u, global=%u, port=%u",
816
+ TP_printk("dev=%u, engine=%u:%u, ctx=%llu, seqno=%u, prio=%d, port=%u",
722817 __entry->dev, __entry->class, __entry->instance,
723
- __entry->hw_id, __entry->ctx, __entry->seqno,
724
- __entry->prio, __entry->global_seqno, __entry->port)
818
+ __entry->ctx, __entry->seqno,
819
+ __entry->prio, __entry->port)
725820 );
726821
727822 TRACE_EVENT(i915_request_out,
....@@ -730,30 +825,25 @@
730825
731826 TP_STRUCT__entry(
732827 __field(u32, dev)
733
- __field(u32, hw_id)
734828 __field(u64, ctx)
735829 __field(u16, class)
736830 __field(u16, instance)
737831 __field(u32, seqno)
738
- __field(u32, global_seqno)
739832 __field(u32, completed)
740833 ),
741834
742835 TP_fast_assign(
743
- __entry->dev = rq->i915->drm.primary->index;
744
- __entry->hw_id = rq->gem_context->hw_id;
836
+ __entry->dev = rq->engine->i915->drm.primary->index;
745837 __entry->class = rq->engine->uabi_class;
746
- __entry->instance = rq->engine->instance;
838
+ __entry->instance = rq->engine->uabi_instance;
747839 __entry->ctx = rq->fence.context;
748840 __entry->seqno = rq->fence.seqno;
749
- __entry->global_seqno = rq->global_seqno;
750841 __entry->completed = i915_request_completed(rq);
751842 ),
752843
753
- TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%llu, seqno=%u, global=%u, completed?=%u",
844
+ TP_printk("dev=%u, engine=%u:%u, ctx=%llu, seqno=%u, completed?=%u",
754845 __entry->dev, __entry->class, __entry->instance,
755
- __entry->hw_id, __entry->ctx, __entry->seqno,
756
- __entry->global_seqno, __entry->completed)
846
+ __entry->ctx, __entry->seqno, __entry->completed)
757847 );
758848
759849 #else
....@@ -780,31 +870,6 @@
780870 #endif
781871 #endif
782872
783
-TRACE_EVENT(intel_engine_notify,
784
- TP_PROTO(struct intel_engine_cs *engine, bool waiters),
785
- TP_ARGS(engine, waiters),
786
-
787
- TP_STRUCT__entry(
788
- __field(u32, dev)
789
- __field(u16, class)
790
- __field(u16, instance)
791
- __field(u32, seqno)
792
- __field(bool, waiters)
793
- ),
794
-
795
- TP_fast_assign(
796
- __entry->dev = engine->i915->drm.primary->index;
797
- __entry->class = engine->uabi_class;
798
- __entry->instance = engine->instance;
799
- __entry->seqno = intel_engine_get_seqno(engine);
800
- __entry->waiters = waiters;
801
- ),
802
-
803
- TP_printk("dev=%u, engine=%u:%u, seqno=%u, waiters=%u",
804
- __entry->dev, __entry->class, __entry->instance,
805
- __entry->seqno, __entry->waiters)
806
-);
807
-
808873 DEFINE_EVENT(i915_request, i915_request_retire,
809874 TP_PROTO(struct i915_request *rq),
810875 TP_ARGS(rq)
....@@ -816,12 +881,10 @@
816881
817882 TP_STRUCT__entry(
818883 __field(u32, dev)
819
- __field(u32, hw_id)
820884 __field(u64, ctx)
821885 __field(u16, class)
822886 __field(u16, instance)
823887 __field(u32, seqno)
824
- __field(u32, global)
825888 __field(unsigned int, flags)
826889 ),
827890
....@@ -832,20 +895,17 @@
832895 * less desirable.
833896 */
834897 TP_fast_assign(
835
- __entry->dev = rq->i915->drm.primary->index;
836
- __entry->hw_id = rq->gem_context->hw_id;
898
+ __entry->dev = rq->engine->i915->drm.primary->index;
837899 __entry->class = rq->engine->uabi_class;
838
- __entry->instance = rq->engine->instance;
900
+ __entry->instance = rq->engine->uabi_instance;
839901 __entry->ctx = rq->fence.context;
840902 __entry->seqno = rq->fence.seqno;
841
- __entry->global = rq->global_seqno;
842903 __entry->flags = flags;
843904 ),
844905
845
- TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%llu, seqno=%u, global=%u, blocking=%u, flags=0x%x",
906
+ TP_printk("dev=%u, engine=%u:%u, ctx=%llu, seqno=%u, flags=0x%x",
846907 __entry->dev, __entry->class, __entry->instance,
847
- __entry->hw_id, __entry->ctx, __entry->seqno,
848
- __entry->global, !!(__entry->flags & I915_WAIT_LOCKED),
908
+ __entry->ctx, __entry->seqno,
849909 __entry->flags)
850910 );
851911
....@@ -948,19 +1008,17 @@
9481008 TP_STRUCT__entry(
9491009 __field(u32, dev)
9501010 __field(struct i915_gem_context *, ctx)
951
- __field(u32, hw_id)
9521011 __field(struct i915_address_space *, vm)
9531012 ),
9541013
9551014 TP_fast_assign(
9561015 __entry->dev = ctx->i915->drm.primary->index;
9571016 __entry->ctx = ctx;
958
- __entry->hw_id = ctx->hw_id;
959
- __entry->vm = ctx->ppgtt ? &ctx->ppgtt->vm : NULL;
1017
+ __entry->vm = rcu_access_pointer(ctx->vm);
9601018 ),
9611019
962
- TP_printk("dev=%u, ctx=%p, ctx_vm=%p, hw_id=%u",
963
- __entry->dev, __entry->ctx, __entry->vm, __entry->hw_id)
1020
+ TP_printk("dev=%u, ctx=%p, ctx_vm=%p",
1021
+ __entry->dev, __entry->ctx, __entry->vm)
9641022 )
9651023
9661024 DEFINE_EVENT(i915_context, i915_context_create,