media_module: fix hevc back mmu dmc warnning [2/2]
authorHui Zhang <hui.zhang@amlogic.com>
Thu, 16 May 2019 02:45:49 +0000 (10:45 +0800)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 06:35:56 +0000 (14:35 +0800)
commitcf5b2408d4ac1f6bc5fb599637578d7d75e6d524
treee38f9cbe740b44ab1a3679395c2e4c9cf0eca75f
parentde698430831aced7c581c7ba2e52cc703f186504
media_module: fix hevc back mmu dmc warnning [2/2]

PD#TV-5832

Problem:
when mmu scatter tail is freed. sometimes sao mmu is not
stopped or in idle. there is potential memory pollution

Solution:
before free unused scatter, to check hw statu idle and
diable sao mmu to avoid hevc back overwrite system memory

Verify:
X301

Change-Id: Ib784809a0946bd0a6c479a98678cb40edacc4118
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
include/linux/amlogic/media/registers/regs/hevc_regs.h