media: starfive: Fix isp line cache coherence issue
authormason.huo <mason.huo@starfivetech.com>
Tue, 7 Jun 2022 02:51:31 +0000 (10:51 +0800)
committermason.huo <mason.huo@starfivetech.com>
Fri, 1 Jul 2022 07:05:39 +0000 (15:05 +0800)
commit3536cceb412f4d183145e12406a51fc728f5801a
tree30017e7517f7c81a7a540a53f8c96d339597dc61
parentb8e276877a7dfdf2514913c6c1336643bd62169f
media: starfive: Fix isp line cache coherence issue

The isp app uses the mmap buffer mode which needs to
sync the cache before isp controller writes data into
the buffer.

Add L2 cache flushing before sending data to user space,
so that make sure the cache coherence.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
drivers/media/platform/starfive/v4l2_driver/stf_video.c
drivers/media/platform/starfive/v4l2_driver/stf_video.h
drivers/media/platform/starfive/v4l2_driver/stf_vin.c