MLK-20923: ISI: improve ISI memory to memory performance
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Wed, 13 Feb 2019 10:50:39 +0000 (18:50 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Refer to ISI validataion code, there is no need to enable ISI
mem2mem read done interrupt and driver can handle buffers in
frame received interrupt service

Remove 50ms delay when enable ISI AXI read, it will improve
performance obviously

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit bdabe035cd5c57d713f824e61f120213ed9357ba)
(cherry picked from commit 7dd4c6affaaceefd80e6b4a033c21f6b26303902)

drivers/media/platform/imx8/mxc-isi-core.h

index 273ac68..c26060c 100644 (file)
@@ -241,7 +241,6 @@ struct mxc_isi_m2m_dev {
        unsigned int    alphaen:1;
 
        unsigned int aborting;
-       unsigned int read_done;
        unsigned int frame_count;
 
        struct list_head                out_active;
@@ -276,6 +275,7 @@ struct mxc_isi_cap_dev {
 struct mxc_isi_dev {
        spinlock_t                              slock;
        struct mutex                    lock;
+       struct mutex                    m2m_lock;
        wait_queue_head_t               irq_queue;
 
        int                                             id;