media: remap the addr to prevent crash on the 32bit & 2G board [1/1]
authorNanxin Qin <nanxin.qin@amlogic.com>
Thu, 25 Oct 2018 02:42:17 +0000 (10:42 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 16 Nov 2018 02:59:19 +0000 (19:59 -0700)
commit16cbe10144aa670944b5233aaeccc025248fb9ca
tree4ed476d086470bddd66c922c7a4f907e1365e500
parent8d0507c8109243bf8c85b721e33a275eb12e90ce
media: remap the addr to prevent crash on the 32bit & 2G board [1/1]

PD#SWPL-1909

Problem:
mem rw exception caused crashed.

Solution:
1. add mapping the highmem address by the func vmap().
2. remove the flag CODEC_MM_FLAGS_CPU if not necessary.

Verify:
p212, w400

Change-Id: I982c775d7c009335cae5802f0eb6287d22037db6
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
drivers/amlogic/media/common/codec_mm/codec_mm.c
drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c
drivers/amlogic/media/video_processor/video_dev/amlvideo2.c
drivers/amlogic/media/video_sink/video_keeper.c
drivers/amlogic/media/vin/tvin/vdin/vdin_canvas.c
drivers/staging/android/ion/ion_codec_mm_heap.c
include/linux/amlogic/media/codec_mm/codec_mm.h