mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
media: rkisp1: debug: Count completed frame interrupts
Add a counter to debugfs to count the number of frame-end interrupts. Link: https://lore.kernel.org/r/20231201140433.2126011-4-paul.elder@ideasonboard.com Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
adf1cba7c8
commit
af58c2d9d3
3 changed files with 5 additions and 0 deletions
|
@ -425,6 +425,7 @@ struct rkisp1_debug {
|
|||
unsigned long stats_error;
|
||||
unsigned long stop_timeout[2];
|
||||
unsigned long frame_drop[2];
|
||||
unsigned long complete_frames;
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -221,6 +221,8 @@ void rkisp1_debug_init(struct rkisp1_device *rkisp1)
|
|||
&debug->frame_drop[RKISP1_MAINPATH]);
|
||||
debugfs_create_ulong("sp_frame_drop", 0444, debug->debugfs_dir,
|
||||
&debug->frame_drop[RKISP1_SELFPATH]);
|
||||
debugfs_create_ulong("complete_frames", 0444, debug->debugfs_dir,
|
||||
&debug->complete_frames);
|
||||
debugfs_create_file("input_status", 0444, debug->debugfs_dir, rkisp1,
|
||||
&rkisp1_debug_input_status_fops);
|
||||
|
||||
|
|
|
@ -1009,6 +1009,8 @@ irqreturn_t rkisp1_isp_isr(int irq, void *ctx)
|
|||
if (status & RKISP1_CIF_ISP_FRAME) {
|
||||
u32 isp_ris;
|
||||
|
||||
rkisp1->debug.complete_frames++;
|
||||
|
||||
/* New frame from the sensor received */
|
||||
isp_ris = rkisp1_read(rkisp1, RKISP1_CIF_ISP_RIS);
|
||||
if (isp_ris & RKISP1_STATS_MEAS_MASK)
|
||||
|
|
Loading…
Reference in a new issue