6914c13c865b2928d5e2dfa0e4cdccba238570d9
[openwrt/staging/ldir.git] /
1 From 0050fef5616e557182a9cccbc8ff507f7a21d47d Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Tue, 30 Nov 2021 10:39:41 +0000
4 Subject: [PATCH] drivers: bcm2835_unicam: Add logging message when a
5 frame is dropped.
6
7 If a dummy buffer is still active on a frame start, it indicates that this frame
8 will be dropped. The explicit logging helps users identify performance issues.
9
10 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
11 ---
12 drivers/media/platform/bcm2835/bcm2835-unicam.c | 3 +++
13 1 file changed, 3 insertions(+)
14
15 --- a/drivers/media/platform/bcm2835/bcm2835-unicam.c
16 +++ b/drivers/media/platform/bcm2835/bcm2835-unicam.c
17 @@ -951,6 +951,9 @@ static irqreturn_t unicam_isr(int irq, v
18 if (unicam->node[i].cur_frm)
19 unicam->node[i].cur_frm->vb.vb2_buf.timestamp =
20 ts;
21 + else
22 + unicam_dbg(2, unicam, "ISR: [%d] Dropping frame, buffer not available at FS\n",
23 + i);
24 /*
25 * Set the next frame output to go to a dummy frame
26 * if we have not managed to obtain another frame