remoteproc: ZynqMP R5: remove flushing caches
authorWendy Liang <jliang@xilinx.com>
Tue, 2 Aug 2016 20:13:56 +0000 (13:13 -0700)
committerWendy Liang <jliang@xilinx.com>
Thu, 13 Oct 2016 05:01:46 +0000 (22:01 -0700)
We should not flush all caches in the remoteproc driver when
it receives a kick from the other end or before it kick the
other end.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/remoteproc/drivers/zynqmp_remoteproc_a53.c

index 26980affec66d4b033902b06bf06847fd510c5f4..1a4096e183e20970f7997525795755f63c9cd095 100644 (file)
@@ -93,7 +93,6 @@ void _ipi_handler(int vect_id, void *data)
        unsigned int ipi_intr_status =
            (unsigned int)metal_io_read32(io, IPI_ISR_OFFSET);
        if (ipi_intr_status & ipi->ipi_chn_mask) {
-               platform_dcache_all_flush();
                platform_isr(vect_id, data);
                metal_io_write32(io, IPI_ISR_OFFSET,
                                ipi->ipi_chn_mask);
@@ -128,7 +127,6 @@ static void _notify(int cpu_id, struct proc_intr *intr_info)
        struct ipi_info *ipi = (struct ipi_info *)(intr_info->data);
        if (ipi == NULL)
                return;
-       platform_dcache_all_flush();
 
        /* Trigger IPI */
        metal_io_write32(intr_info->io, IPI_TRIG_OFFSET, ipi->ipi_chn_mask);