The current MAX_GENI_CFG_RAMn_CNT value of 455 is insufficient for
certain Qualcomm SoCs whose GENI firmware requires up to 1020 RAM
entries, causing incorrect bounds checking and preventing firmware
loading on those targets.
Increase MAX_GENI_CFG_RAMn_CNT to 1020 to match the hardware-supported
limit and ensure correct handling of configuration RAM regions across
GENI-based SE blocks.
Signed-off-by: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
---
drivers/soc/qcom/qcom-geni-se.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c
index cd1779b6a91a..d0810960f3da 100644
--- a/drivers/soc/qcom/qcom-geni-se.c
+++ b/drivers/soc/qcom/qcom-geni-se.c
@@ -152,7 +152,7 @@ struct se_fw_hdr {
/*Magic numbers*/
#define SE_MAGIC_NUM 0x57464553
-#define MAX_GENI_CFG_RAMn_CNT 455
+#define MAX_GENI_CFG_RAMn_CNT 1020
#define MI_PBT_NON_PAGED_SEGMENT 0x0
#define MI_PBT_HASH_SEGMENT 0x2
---
base-commit: 550604d6c9b9efc8d068aff94dc301694a7afdee
change-id: 20260522-qup-se-increase-ram-cnt-14530f035b55
Best regards,
--
Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>