From: Ayoung Sim Date: Tue, 5 Jun 2018 01:50:03 +0000 (+0900) Subject: [COMMON] media: mfc: change the number of NAL_Q slot X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=954c16e742b62d65d27f85404061e2a755b2880e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] media: mfc: change the number of NAL_Q slot If MFC run with max multi-instance in NAL_Q mode, 32 slot is needed because one slot is needed for one command(job). Becuase one instance can get 5 jobs at the same time, we increase the slot size to 32KB such as below. - 32 instance * 4 jobs = 128 slot. - 256 byte(one slot size) * 128 = total 32KB. Change-Id: I1b32235febc63d4ec4eb2144601c605371cf3bf8 Signed-off-by: Ayoung Sim --- diff --git a/drivers/media/platform/exynos/mfc/s5p_mfc_data_struct.h b/drivers/media/platform/exynos/mfc/s5p_mfc_data_struct.h index 297dca3ddabf..3b52cbb31bc0 100644 --- a/drivers/media/platform/exynos/mfc/s5p_mfc_data_struct.h +++ b/drivers/media/platform/exynos/mfc/s5p_mfc_data_struct.h @@ -417,8 +417,9 @@ struct s5p_mfc_platdata { #define NAL_Q_OUT_DEC_STR_SIZE 248 #define NAL_Q_OUT_ENC_STR_SIZE 64 -#define NAL_Q_IN_QUEUE_SIZE 16 /* 256*16 = 4096 bytes */ -#define NAL_Q_OUT_QUEUE_SIZE 16 /* 256*16 = 4096 bytes */ +/* 256*128(max instance 32 * slot 4) = 32 kbytes */ +#define NAL_Q_IN_QUEUE_SIZE 128 +#define NAL_Q_OUT_QUEUE_SIZE 128 typedef struct __DecoderInputStr { int StartCode; /* = 0xAAAAAAAA; Decoder input structure marker */