[RAMEN9610-10029][COMMON] media: mfc: add memset only for firmware except code region
authorSunyoung Kang <sy0816.kang@samsung.com>
Thu, 15 Nov 2018 00:58:40 +0000 (09:58 +0900)
committerhskang <hs1218.kang@samsung.com>
Fri, 28 Dec 2018 09:54:16 +0000 (18:54 +0900)
commite840d517efe557e73937df1cad153f80fa074b7b
tree461795a79c4af866553c7520db2a81cd7e5b19fd
parent3301ef22b368aa420e5935cbc571971835aa5c2c
[RAMEN9610-10029][COMMON] media: mfc: add memset only for firmware except code region

This adds memset '0' to the firmware memory except fw code region.
And also this change to do not use the memory clear by ION allocator
because the firmware performs the memory clear. Since the firmware can not
clear the stack area by itself, it is only cleared by the driver.

Change-Id: Ifea58165d562280b5459c39852f21f34501c4370
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
drivers/media/platform/exynos/mfc/mfc_buf.c
drivers/media/platform/exynos/mfc/mfc_cmd.c
drivers/media/platform/exynos/mfc/mfc_mem.c
drivers/media/platform/exynos/mfc/mfc_regs.h