mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
drm/vc4: add tracepoints for CL submissions
Trace submit_cl_ioctl and related IRQs for CL submission and bin/render jobs execution. It might be helpful to get a rendering timeline and track job throttling. Signed-off-by: Melissa Wen <mwen@igalia.com> Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20220201212651.zhltjmaokisffq3x@mail.igalia.com
This commit is contained in:
committed by
Maxime Ripard
parent
4442ac1af1
commit
044feb9748
@@ -51,6 +51,7 @@
|
||||
|
||||
#include "vc4_drv.h"
|
||||
#include "vc4_regs.h"
|
||||
#include "vc4_trace.h"
|
||||
|
||||
#define V3D_DRIVER_IRQS (V3D_INT_OUTOMEM | \
|
||||
V3D_INT_FLDONE | \
|
||||
@@ -123,6 +124,8 @@ vc4_irq_finish_bin_job(struct drm_device *dev)
|
||||
if (!exec)
|
||||
return;
|
||||
|
||||
trace_vc4_bcl_end_irq(dev, exec->seqno);
|
||||
|
||||
vc4_move_job_to_render(dev, exec);
|
||||
next = vc4_first_bin_job(vc4);
|
||||
|
||||
@@ -161,6 +164,8 @@ vc4_irq_finish_render_job(struct drm_device *dev)
|
||||
if (!exec)
|
||||
return;
|
||||
|
||||
trace_vc4_rcl_end_irq(dev, exec->seqno);
|
||||
|
||||
vc4->finished_seqno++;
|
||||
list_move_tail(&exec->head, &vc4->job_done_list);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user