drm/omap: DMM: Print information if we received an error interrupt
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 29 Sep 2017 11:49:48 +0000 (14:49 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 19 Dec 2017 08:32:00 +0000 (10:32 +0200)
To help diagnose DMM errors, print out information if any of the error bits
are set in the interrupt status register.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c

index e3725dc60e2cae7a88337f48f9a2a5e90be2e199..d7f2940cb596311bda01ede160d817229b484742 100644 (file)
@@ -166,6 +166,11 @@ static irqreturn_t omap_dmm_irq_handler(int irq, void *arg)
        dmm_write(dmm, status, DMM_PAT_IRQSTATUS);
 
        for (i = 0; i < dmm->num_engines; i++) {
+               if (status & DMM_IRQSTAT_ERR_MASK)
+                       dev_err(dmm->dev,
+                               "irq error(engine%d): IRQSTAT 0x%02x\n",
+                               i, status & 0xff);
+
                if (status & DMM_IRQSTAT_LST) {
                        if (dmm->engines[i].async)
                                release_engine(&dmm->engines[i]);