MLK-19460-1: drm: imx: dcss: lower CTXLD trigger IRQ threshold
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Wed, 5 Sep 2018 13:12:41 +0000 (16:12 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Currently, the CTXLD IRQ trigger interrupt is set to 98% of the total
vertical frame lines.  This leaves little room for interrupt handling
since the DB trigger point is set to 99%.

This patch moves the CTXLD IRQ trigger to 95%. Hence, if PM_QoS is
disabled, and A-53 cores are allowed to go to idle (hence slightly
bigger interrupt servicing time), we have enough time to handle the
interrupt and arm the CTLXD, before DB trigger point.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/imx/dcss/dcss-dtg.c

index 157f153..1bd686d 100644 (file)
@@ -308,7 +308,7 @@ void dcss_dtg_sync_set(struct dcss_soc *dcss, struct videomode *vm)
        dcss_dtg_write(dtg, 0, DCSS_DTG_LINE0_INT);
 
        /* CTXLD trigger */
-       dcss_dtg_write(dtg, ((98 * dis_lrc_y) / 100) << 16, DCSS_DTG_LINE1_INT);
+       dcss_dtg_write(dtg, ((95 * dis_lrc_y) / 100) << 16, DCSS_DTG_LINE0_INT);
 }
 EXPORT_SYMBOL(dcss_dtg_sync_set);