drm/i915: Include priority and completed status in request in/out tracepoints
Subsystems (2)
Tvrtko Ursulin
maintainerPATCH 1/1 drm/i915: Include priority and completed status in request in/out tracepoints
From: Tvrtko Ursulin <[email protected]>
It is useful to see the priority as requests are coming in and completed status as requests are coming out of the GPU.
To achieve this in a more readable way we need to abandon the common request_hw tracepoint class.
--- drivers/gpu/drm/i915/i915_trace.h | 93 ++++++++++++++++++++++++--------------- 1 file changed, 58 insertions(+), 35 deletions(-)
drivers/gpu/drm/i915/i915_trace.h +58 -35
@@ -679,45 +679,68 @@ DEFINE_EVENT(i915_request, i915_request_execute,TP_ARGS (rq) ); -DECLARE_EVENT_CLASS (i915_request_hw, - TP_PROTO(struct i915_request *rq, unsigned int port), -TP_ARGS (rq, port), - -TP_STRUCT__entry ( - __field(u32, dev) - __field(u32, hw_id) - __field(u32, ring) - __field(u32, ctx) - __field(u32, seqno) - __field(u32, global_seqno) -__field (u32, port) - ), - -TP_fast_assign ( - __entry->dev = rq->i915->drm.primary->index; - __entry->hw_id = rq->ctx->hw_id; - __entry->ring = rq->engine->id; - __entry->ctx = rq->fence.context; - __entry->seqno = rq->fence.seqno; - __entry->global_seqno = rq->global_seqno; - __entry->port = port; - ), - -TP_printk ("dev=%u, hw_id=%u, ring=%u, ctx=%u, seqno=%u, global=%u, port=%u" , - __entry->dev, __entry->hw_id, __entry->ring, - __entry->ctx, __entry->seqno, - __entry->global_seqno, __entry->port) -); +TRACE_EVENT (i915_request_in, + TP_PROTO(struct i915_request *rq, unsigned int port), +TP_ARGS (rq, port), + +TP_STRUCT__entry ( + __field(u32, dev) + __field(u32, hw_id) + __field(u32, ring) + __field(u32, ctx) + __field(u32, seqno) + __field(u32, global_seqno) + __field(u32, port) +__field (u32, prio) + ), -DEFINE_EVENT (i915_request_hw, i915_request_in, - TP_PROTO(struct i915_request *rq, unsigned int port), -TP_ARGS (rq, port) +TP_fast_assign ( + __entry->dev = rq->i915->drm.primary->index; + __entry->hw_id = rq->ctx->hw_id; + __entry->ring = rq->engine->id; + __entry->ctx = rq->fence.context; + __entry->seqno = rq->fence.seqno; + __entry->global_seqno = rq->global_seqno; + __entry->prio = rq->sched.attr.priority; + __entry->port = port; + ), + +TP_printk ("dev=%u, hw_id=%u, ring=%u, ctx=%u, seqno=%u, prio=%u, global=%u, port=%u" , + __entry->dev, __entry->hw_id, __entry->ring, __entry->ctx, + __entry->seqno, __entry->prio, __entry->global_seqno, + __entry->port) ); -DEFINE_EVENT (i915_request, i915_request_out, - TP_PROTO(struct i915_request *rq), -TP_ARGS (rq) +TRACE_EVENT (i915_request_out, + TP_PROTO(struct i915_request *rq), +TP_ARGS (rq), + +TP_STRUCT__entry ( + __field(u32, dev) + __field(u32, hw_id) + __field(u32, ring) + __field(u32, ctx) + __field(u32, seqno) + __field(u32, global_seqno) +__field (u32, completed) + ), + +TP_fast_assign ( + __entry->dev = rq->i915->drm.primary->index; + __entry->hw_id = rq->ctx->hw_id; + __entry->ring = rq->engine->id; + __entry->ctx = rq->fence.context; + __entry->seqno = rq->fence.seqno; + __entry->global_seqno = rq->global_seqno; + __entry->completed = i915_request_completed(rq); + ), + +TP_printk ("dev=%u, hw_id=%u, ring=%u, ctx=%u, seqno=%u, global=%u, completed?=%u" , + __entry->dev, __entry->hw_id, __entry->ring, + __entry->ctx, __entry->seqno, + __entry->global_seqno, __entry->completed) ); +#else #if !defined(TRACE_HEADER_MULTI_READ ) static inline void
Signature · 6 lines
2.14.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Tvrtko Ursulin (2018-05-04 12:56:43)
Quoted 9 lines
From: Tvrtko Ursulin <[email protected]>
It is useful to see the priority as requests are coming in and completed status as requests are coming out of the GPU.
To achieve this in a more readable way we need to abandon the common
request_hwtracepoint class.Signed-off-by Tvrtko Ursulin <[email protected]>
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for drm/i915: Include priority and completed status in request in/out tracepoints
In reply to Tvrtko Ursulin== Series Details ==
== Series Details ==
Series: drm/i915: Include priority and completed status in request in/out tracepoints
URL : https://patchwork.freedesktop.org/series/42678/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
0e6962a6d576 drm/i915: Include priority and completed status in request in/out tracepoints
-:57: CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#57: FILE: drivers/gpu/drm/i915/i915_trace.h:686:
+ TP_STRUCT__entry(-:71: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #71: FILE: drivers/gpu/drm/i915/i915_trace.h:697:
+ TP_fast_assign(
-:95: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #95: FILE: drivers/gpu/drm/i915/i915_trace.h:718:
+ TP_STRUCT__entry(
-:105: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #105: FILE: drivers/gpu/drm/i915/i915_trace.h:728:
+ TP_fast_assign(
total: 0 errors, 0 warnings, 4 checks, 103 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Include priority and completed status in request in/out tracepoints
In reply to Tvrtko Ursulin== Series Details ==
== Series Details ==
Series: drm/i915: Include priority and completed status in request in/out tracepoints
URL : https://patchwork.freedesktop.org/series/42678/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4146 -> Patchwork_8906 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/42678/revisions/1/mbox/
== Known issues ==
Here are the changes found in Patchwork_8906 that come from known issues:
=== IGT changes ===
==== Possible fixes ====
igt@gem_exec_suspend@basic-s4-devices:
fi-skl-guc: FAIL (fdo#105900, fdo#104699) -> PASS +1
igt@kms_frontbuffer_tracking@basic:
fi-hsw-4200u: DMESG-FAIL (fdo#102614) -> PASS fdo#102614 https://bugs.freedesktop.org/show_bug.cgi?id=102614
fdo#104699 https://bugs.freedesktop.org/show_bug.cgi?id=104699
fdo#105900 https://bugs.freedesktop.org/show_bug.cgi?id=105900
== Participating hosts (39 -> 35) ==
Missing (4): fi-ctg-p8600 fi-ilk-m540 fi-glk-j4005 fi-skl-6700hq
== Build changes ==
* Linux: CI_DRM_4146 -> Patchwork_8906
CI_DRM_4146: be068d4cb8a8b4709af83ffa993d8fc8889f0230 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4461: f772d9a910130b3aec8efa4f09ed723618fae656 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_8906: 0e6962a6d57698005540537884abf39e548b4f2c @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4461: 55207ea5154dfaa6d2c128124c50e3be4f9b6440 @ git://anongit.freedesktop.org/piglit
== Linux commits ==
0e6962a6d576 drm/i915: Include priority and completed status in request in/out tracepoints
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8906/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915: Include priority and completed status in request in/out tracepoints
In reply to Tvrtko Ursulin== Series Details ==
== Series Details ==
Series: drm/i915: Include priority and completed status in request in/out tracepoints
URL : https://patchwork.freedesktop.org/series/42678/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4146_full -> Patchwork_8906_full =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_8906_full need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_8906_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/42678/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_8906_full:
=== IGT changes ===
==== Warnings ====
igt@pm_rc6_residency@rc6-accuracy:
shard-snb: PASS -> SKIP== Known issues ==
Here are the changes found in Patchwork_8906_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_exec_store@cachelines-bsd:
shard-hsw: PASS -> FAIL (fdo#100007)
igt@kms_atomic_transition@plane-all-modeset-transition:
shard-apl: PASS -> INCOMPLETE (fdo#103927)
igt@kms_flip@2x-flip-vs-expired-vblank-interruptible:
shard-hsw: PASS -> FAIL (fdo#102887) +1
igt@kms_flip@flip-vs-wf_vblank-interruptible:
shard-glk: PASS -> FAIL (fdo#100368) +1
igt@kms_rotation_crc@sprite-rotation-90-pos-100-0:
shard-apl: PASS -> FAIL (fdo#103925)
igt@kms_sysfs_edid_timing:
shard-apl: PASS -> WARN (fdo#100047)
==== Possible fixes ====
igt@kms_flip@basic-flip-vs-wf_vblank:
shard-hsw: FAIL (fdo#103928) -> PASS
igt@kms_flip@flip-vs-expired-vblank-interruptible:
shard-glk: FAIL (fdo#105707) -> PASS fdo#100007 https://bugs.freedesktop.org/show_bug.cgi?id=100007
fdo#100047 https://bugs.freedesktop.org/show_bug.cgi?id=100047
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#103927 https://bugs.freedesktop.org/show_bug.cgi?id=103927
fdo#103928 https://bugs.freedesktop.org/show_bug.cgi?id=103928
fdo#105707 https://bugs.freedesktop.org/show_bug.cgi?id=105707
== Participating hosts (6 -> 5) ==
Missing (1): pig-snb-2600
== Build changes ==
* Linux: CI_DRM_4146 -> Patchwork_8906
CI_DRM_4146: be068d4cb8a8b4709af83ffa993d8fc8889f0230 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4461: f772d9a910130b3aec8efa4f09ed723618fae656 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_8906: 0e6962a6d57698005540537884abf39e548b4f2c @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4461: 55207ea5154dfaa6d2c128124c50e3be4f9b6440 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8906/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx