From f4ecfb8b831724cafb4cc3cf0a8f6f3849a111ae Mon Sep 17 00:00:00 2001 From: Zelong Ren Date: Wed, 26 Jun 2024 11:48:50 +0800 Subject: [PATCH] soc: qcom: hab: increase OUT_LARGE_BUF_SIZE from 50k to 64k The hab team recommends that the maximum message size that the hab client can send is 64k. We increase the size of OUT_LARGE_BUF_SIZE to 64K so that the memory pool can cover all messages of the recommended size. In non-stress scenarios, this helps to avoid jitter in the performance of sending messages due to memory requests. This change does not result in a large amount of additional reserved memory, because OUT_LARGE_BUF_NUM is 10, and each pchan group will only reserves (64k- 50k) * 10 = 140k more memory. Change-Id: Ia26f408230e1121d6f927dd084f551cc64656e96 Signed-off-by: Zelong Ren --- drivers/soc/qcom/hab/hab_virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/hab/hab_virtio.c b/drivers/soc/qcom/hab/hab_virtio.c index 2c087ce19f9d..85e387a52c27 100644 --- a/drivers/soc/qcom/hab/hab_virtio.c +++ b/drivers/soc/qcom/hab/hab_virtio.c @@ -66,7 +66,7 @@ struct vh_buf_header { #define IN_BUF_SIZE 5120 #define OUT_SMALL_BUF_SIZE 512 #define OUT_MEDIUM_BUF_SIZE 5120 -#define OUT_LARGE_BUF_SIZE 51200 +#define OUT_LARGE_BUF_SIZE (64 * 1024) #define IN_BUF_NUM 100 /*64*/ #define OUT_SMALL_BUF_NUM 200 /*64*/