drivers: bcm2835_unicam: Add logging message when a frame is dropped.
authorNaushir Patuck <naush@raspberrypi.com>
Tue, 30 Nov 2021 10:39:41 +0000 (10:39 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Tue, 30 Nov 2021 13:38:39 +0000 (13:38 +0000)
If a dummy buffer is still active on a frame start, it indicates that this frame
will be dropped. The explicit logging helps users identify performance issues.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/media/platform/bcm2835/bcm2835-unicam.c

index d4a0056..3329a7b 100644 (file)
@@ -951,6 +951,9 @@ static irqreturn_t unicam_isr(int irq, void *dev)
                        if (unicam->node[i].cur_frm)
                                unicam->node[i].cur_frm->vb.vb2_buf.timestamp =
                                                                ts;
+                       else
+                               unicam_dbg(2, unicam, "ISR: [%d] Dropping frame, buffer not available at FS\n",
+                                          i);
                        /*
                         * Set the next frame output to go to a dummy frame
                         * if we have not managed to obtain another frame