[media] s5p-mfc: Don't allocate codec buffers from pre-allocated region
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 22 Mar 2017 10:34:28 +0000 (07:34 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 5 Apr 2017 19:36:53 +0000 (16:36 -0300)
commitd251510d4c2b6ffa42dfe6c270e1965daa23eca6
tree418f74a603e3e3ea9d31ea676c948bd3d154937a
parenta5cb00eb4223458250b55daf03ac7ea5f424d601
[media] s5p-mfc: Don't allocate codec buffers from pre-allocated region

Further investigation revealed that codec buffers also don't need to
be allocated at higher addresses than firmware base for MFC v6+ hardware.
Those buffers can be quite large and its size depends on the selected
format and framesize. This patch changes the way the codec buffers are
allocated - driver will use generic allocator for them instead of the
pre-allocated buffer for firmware and contexts.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-mfc/s5p_mfc_opr.c
drivers/media/platform/s5p-mfc/s5p_mfc_opr.h
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c