vdin: fixed the issue of mem mapping from vmap. [1/1]
authorNanxin Qin <nanxin.qin@amlogic.com>
Thu, 28 Mar 2019 15:43:08 +0000 (23:43 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 4 Apr 2019 02:24:36 +0000 (19:24 -0700)
commitd1f81490a2e29770ae174a15eecc90680b5d8cfc
tree0e6ff1f2e5430fa75435eb7e8033d1501d866c11
parent325a18ae9c324a41edafe1dae8af6f6b6172406d
vdin: fixed the issue of mem mapping from vmap. [1/1]

PD#SWPL-6196

Problem:
the memory issue cause to kernel crash.

Solution:
1. add flush cache when the mem oper end.
2. unmap addr which from vmap in vdin driver.

Verify:
X301

Change-Id: Id6efe2b009fe64ad753d51eb06784bd4e66f5e87
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
drivers/amlogic/media/video_processor/pic_dev/picdec.c
drivers/amlogic/media/vin/tvin/vdin/vdin_afbce.c
drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c
drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.h
drivers/amlogic/media/vin/tvin/vdin/vdin_debug.c
drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c