vdec: h265 alloc mmu_box when dw changed from 0x10 to 0x1 [1/1]
authorapollo.ling <apollo.ling@amlogic.com>
Wed, 22 Jul 2020 02:47:08 +0000 (10:47 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Tue, 28 Jul 2020 07:03:28 +0000 (00:03 -0700)
commitba3ab96fd7ce1cf012b2935a13adc94927d63568
treeb9afa5d72c3737786e1f8f08e34c2853d09dbd88
parent5054b6df8bcdb0badae4ebe1acbc9b7ab67a4270
vdec: h265 alloc mmu_box when dw changed from 0x10 to 0x1 [1/1]

PD#SWPL-28883

Problem:
When h265 dw changed from 0x10 to 1, mmu_box is NULL,can not play video

Solution:
1. When h265 dw changes to 1, check and alloc mmu_box
2. add calling vm_unmap_aliases() every 64 times because vfree is not
   synchronize.

Verify:
ac214

Change-Id: I0c8920debf79a0af2fafaca07b5bc20e8467adab
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
drivers/frame_provider/decoder/h265/vh265.c