diff options
author | Jyri Sarha <jsarha@ti.com> | 2015-12-18 13:07:52 +0200 |
---|---|---|
committer | Jyri Sarha <jsarha@ti.com> | 2016-02-25 16:39:44 +0200 |
commit | c0c2baaab1b553df92a24e9175440f15e6ad3e2c (patch) | |
tree | 28c51e2cf13cc8109c999c7eccbffa2ce2fe7769 /drivers/gpu/drm/tilcdc/tilcdc_crtc.c | |
parent | f3a99946a95b3482eabec63b9f662963d7d2e3c8 (diff) | |
download | lwn-c0c2baaab1b553df92a24e9175440f15e6ad3e2c.tar.gz lwn-c0c2baaab1b553df92a24e9175440f15e6ad3e2c.zip |
drm/tilcdc: Add prints on sync lost and FIFO underrun interrupts
Add ratelimited prints on sync lost and FIFO underrun interrupts.
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_crtc.c')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index b1df04625f50..5ee22c6b37e8 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c @@ -717,6 +717,14 @@ irqreturn_t tilcdc_crtc_irq(struct drm_crtc *crtc) tilcdc_write(dev, LCDC_END_OF_INT_IND_REG, 0); } + if (stat & LCDC_SYNC_LOST) + dev_err_ratelimited(dev->dev, "%s(0x%08x): Sync lost", + __func__, stat); + + if (stat & LCDC_FIFO_UNDERFLOW) + dev_err_ratelimited(dev->dev, "%s(0x%08x): FIFO underfow", + __func__, stat); + return IRQ_HANDLED; } |