tvin: vdin: fix vdin CMA layout adaptation [1/1]
authorXuhua Zhang <xuhua.zhang@amlogic.com>
Thu, 29 Nov 2018 06:28:43 +0000 (14:28 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 14 Dec 2018 08:52:18 +0000 (00:52 -0800)
commit482e11b95da6fd90455073bc41c5af399ac31571
tree7f9d4a593d6c78aea807d7f28137ce37f3b36083
parent87d67d8a20538aba8669d6d3f13ce4dbfd4b5664
tvin: vdin: fix vdin CMA layout adaptation [1/1]

PD#SWPL-2526

Problem:
1.CMA layout adaptation cause crash
2.vdin buff dump error
3.read_pic error

Solution:
1.codec mm has be moved to high memory area,
we should map memory use vmap.
2.make vdin high mem and low mem to be compatible
when we dump vdin buff.
3.fix read_pic bug.

Verify:
TXLX R311

Change-Id: I90e4f46ba91d38c6ce0f8bfd65b5c22e6be3b83f
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
drivers/amlogic/media/vin/tvin/vdin/vdin_afbce.c
drivers/amlogic/media/vin/tvin/vdin/vdin_debug.c