From: Peter Ujfalusi Date: Fri, 29 Sep 2017 11:49:48 +0000 (+0300) Subject: drm/omap: DMM: Print information if we received an error interrupt X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b8c456d31b64e46b68b6de4e209bd906f10aa314;p=openwrt%2Fstaging%2Fblogic.git drm/omap: DMM: Print information if we received an error interrupt 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 Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c index e3725dc60e2c..d7f2940cb596 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c @@ -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]);