MLK-19845: drm/imx/dcss: fix suspend/resume issue
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Tue, 9 Oct 2018 05:50:42 +0000 (08:50 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
While running suspend/resume tests it may happen to go to suspend while
CTXLD still has entries to be commited. Currently, when this happens,
the scaler freezes.

This patch will fire up context loader just before going to suspend,
thus commiting everything to DCSS before cutting off the clocks.

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

index fbcad90..9debefe 100644 (file)
@@ -452,6 +452,8 @@ int dcss_ctxld_suspend(struct dcss_soc *dcss)
        int wait_time_ms = 0;
        unsigned long flags;
 
+       dcss_ctxld_kick(dcss);
+
        while (ctxld->in_use && wait_time_ms < 500) {
                msleep(20);
                wait_time_ms += 20;