ion: add invalid cache function [1/1]
authorYao.Liu <yao.liu@amlogic.com>
Fri, 28 Dec 2018 12:38:21 +0000 (07:38 -0500)
committerLuan Yuan <luan.yuan@amlogic.com>
Sat, 29 Dec 2018 11:20:49 +0000 (19:20 +0800)
commit436438177e60e8908c2490d4353f5a5365933de5
treeddb33dcccc9b355c577e7137c7abbaaf8c79adc8
parent06872141a9ee24d4a04e931db57a9108fb26b618
ion: add invalid cache function [1/1]

PD#SWPL-3736

Problem:
H265 encoder use ge2d to do format convert, ge2d dst
buffer is allocated from ion heap and is cached buffer.
The cache consistency problem caused encoded stream error.

Solution:
ION add invalid cache function, invalid cache before
CPU access cache buffer

Verify:
U212

Change-Id: Ib14f2a9ee5b536c3546c5957fd0505cacae45f80
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
drivers/staging/android/ion/compat_ion.c
drivers/staging/android/ion/ion-ioctl.c
drivers/staging/android/ion/ion.c
drivers/staging/android/ion/ion_priv.h
drivers/staging/android/uapi/ion.h