drm/vc4: Introduce tracepoints for CL execution.
Subsystems (3)
PATCH 1/1 drm/vc4: Introduce tracepoints for CL execution.
This has been useful for debugging the window movement lag in X11, and I have patches to sysprof that watch these to produce nice visualizations.
Signed-off-by Eric Anholt <[email protected]>
--- drivers/gpu/drm/vc4/vc4_gem.c | 4 +++ drivers/gpu/drm/vc4/vc4_irq.c | 4 +++ drivers/gpu/drm/vc4/vc4_trace.h | 58 +++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+)
drivers/gpu/drm/vc4/vc4_gem.c +4 -0
@@ -479,6 +479,7 @@ vc4_submit_next_bin_job(struct drm_device *dev)*/ if (exec->ct0ca != exec->ct0ea) {submit_cl (dev,0 , exec->ct0ca, exec->ct0ea); +trace_vc4_submit_cl (dev, exec->seqno, false); }else {struct vc4_exec_info *next;
@@ -513,6 +514,7 @@ vc4_submit_next_render_job(struct drm_device *dev)vc4_flush_texture_caches (dev);submit_cl (dev,1 , exec->ct1ca, exec->ct1ea); +trace_vc4_submit_cl (dev, exec->seqno, true); }void
@@ -1124,6 +1126,8 @@ vc4_submit_cl_ioctl(struct drm_device *dev, void *data,struct dma_fence *in_fence;int ret =0 ; +trace_vc4_submit_cl_begin (dev); + if ((args->flags & ~(VC4_SUBMIT_CL_USE_CLEAR_COLOR | VC4_SUBMIT_CL_FIXED_RCL_ORDER | VC4_SUBMIT_CL_RCL_ORDER_INCREASING_X |
drivers/gpu/drm/vc4/vc4_irq.c +4 -0
@@ -47,6 +47,7 @@#include "vc4_drv.h" #include "vc4_regs.h" +#include "vc4_trace.h" #define V3D_DRIVER_IRQS (V3D_INT_OUTOMEM | \ V3D_INT_FLDONE | \
@@ -109,6 +110,7 @@ vc4_irq_finish_bin_job(struct drm_device *dev)if (!exec)return ; +trace_vc4_finish_cl (dev, exec->seqno, false);vc4_move_job_to_render (dev, exec); next =vc4_first_bin_job (vc4);
@@ -147,6 +149,8 @@ vc4_irq_finish_render_job(struct drm_device *dev)if (!exec)return ; +trace_vc4_finish_cl (dev, exec->seqno, true); + vc4->finished_seqno++;list_move_tail (&exec->head, &vc4->job_done_list);
drivers/gpu/drm/vc4/vc4_trace.h +58 -0
64 lines not on this page · raw message
Signature · 1 line
2.17.0
Quoted 5 lines · Eric Anholt
This has been useful for debugging the window movement lag in X11, and I have patches to sysprof that watch these to produce nice visualizations.
Signed-off-by Eric Anholt <[email protected]>
I'd love an ack from someone for this.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel