From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADEDD36DA04 for ; Mon, 15 Jun 2026 05:28:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781501332; cv=none; b=EQBQTIYMBdkbYZI5NWVt+Ct1opr04rsgr/I5Dv16UvcFaO8RaCKkfrUMLoEnIINWwc3j1lJJdxqdu9rD+IJG4YxPtFsOpns1UZqytsYqDjv1OPz3plaD52xR20wLts3r/7ibnB6NOawXFE+VaIux5mM8WUt+MuH89q2PAyYFFoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781501332; c=relaxed/simple; bh=y+9qGGf9I7M0vXpGsLYvrL/yp40vASpNdDvaPz1CKzc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QGXfmyPr2Qk4BfxdgvTRcQ0mCDm0ufJDiY0OeMvYIVLmcpRrMqztaWmSShFlizsxwqbC23Ts8VPYqI4CpqNxT0FK7oDJFjaQdHK6vKL9Yk9eMlFE8+hp3AGVi9PEfpDOda78gBfEU9Pbvsh+fPJ8hN/tkpO6VKHQAhb5HAEeDBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=l4GImhbw; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=h3G+aZ7Y; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="l4GImhbw"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="h3G+aZ7Y" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65F1kIv53224521 for ; Mon, 15 Jun 2026 05:28:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Xy7PoIFIEAfKj2xhVR5iaBKwFGuA4+3dDr2MGzLFWsY=; b=l4GImhbw5tzzh3AS 90I2DPhx4eJ4I3z3JgqnQFCIbVe5VgiBfm1+nMxLFVTl6WHDfCFrrE6yV+F92pd8 bYxgfHAVorAmoHO5SxxGxktejjGML7bgtJe6/F9e4PVpBz8C9vCybG5PoDeAyT0u 1J32o2VgJLJP9yXjRafe5I+EJatKQc8biLWr2wVpOSQQ/2jSesjuQsd+7tA8Xt73 Qu1EN3ykf1fOOAUvwpteXLJ/w4L9Qt+qbkdACIEB/9Z2AonPL3UQIjnOTMeGOx0D iqXumfyKooTkhJn2P37wGLn2hf/DZ1lzifBDu7gByU8oFHs3RJUBGLi9gRa8La4C qisFLQ== Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ery7u5nt5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 15 Jun 2026 05:28:47 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-307fe856724so739815eec.1 for ; Sun, 14 Jun 2026 22:28:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781501326; x=1782106126; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Xy7PoIFIEAfKj2xhVR5iaBKwFGuA4+3dDr2MGzLFWsY=; b=h3G+aZ7YJS8ki8q3eiraSigBGhLrftUpZ7K1U8nbLHowxZ0WjZ/Rg+84lp2iS7+P0G +qOM9NOLBFOOFfp3773gYsIq8KTwDzkTsa2L15L5mOQxbZD4JyoVm9FZer/pB5GU+cxw RQoKrIvfbIpaS40U6N3rr5ArEez0auQ5xREi3mOKFsAITskQdw88MCUdivYyHgKQtcgR TUG+eFgFE9ZbMcgljyOG90ygcxKO5efajTelewyglSOtgg85T3XIAAO/nhH91rcdeYB/ jko7wrbtAM++BAh4+zj2bBVMPYIUWx7oAFqNdT+VsLPozGDIWdm9EL8A+hIdpgoEs9aG dKeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781501326; x=1782106126; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Xy7PoIFIEAfKj2xhVR5iaBKwFGuA4+3dDr2MGzLFWsY=; b=XQ1yBFxDWBJfPWuzF8WN9t1DM24QX7YMSkjhiGK1V/yavU+576dG71+yo8GCurbhIW muIqvRJtN0EY6TvRk41xtvNEOkvM8xDyObdbaEHL11mg8U+BQ5jn1DDvv7zS0ZiNys7Z BFlN70iub41kW8ltkrWNqpiZMvgUBYBr9m7MSD8YGBBeL5tY2rhV4/jC/9ovbnK2zdJg D/ljlpaoD0rH7bt+6aZ/ZlEq85ffsi1O//mKIUi6c1T6MUiZkyoWiztQCYYf7rnAOXiz RvCDynfFeTgB28YHkf2lDFQvZnsWD1GwTRefocjhNGMNreG4xJclCe0f5tc7DgLjprcF sQGA== X-Forwarded-Encrypted: i=1; AFNElJ+k8VffoTGTy/xb2CvHcF2W6c1h5BfvJgofH6yNAi8CK7KzjkFrGCkj+6JUdFO0AwyXlQ7+8vVP9S7ckZg=@vger.kernel.org X-Gm-Message-State: AOJu0Yx+Vlbr0ET6P9t63pCN5QzDo0sBhgjxxK8+Pcjv7oZbxekFggB/ UYLK2DE7gEB/1Ly8c3q5mTiKe8pfTpnVkX8OfXnX8YEpqwsTAW6qYp6ga34ULizAa9xK5ePC3iN q4q3oqZlHoq2WYduKChk6DfLl4jRH3MrAnOu5vjfQCRKfRsMxog+6dA3qdWG5HweV0zo= X-Gm-Gg: Acq92OEcVTR++T+h2SQuIqaY4xWm4yZhYC7S0ozHqlc4gOG44lr/LnFP+LemsHUUDZY LWObQe3wAB+8YoQPgJ0oPIplDsPpaxsSic0eG5S/C4nDYBn7zFIOOYioGWT6Kkb/mhWFJO+h8mT O6b+MeDQa8MrDiFT3M4Bxzey7LtbaTXzQitxWrEXcwa/E2NmuHXn3+acqmXeCOEBCAyB5Nsh2wf 6RnPM3gf0usm0LdWo9H3qfO9WDEESXa1ICm9WCDs/gfV4+GiesjO8hu3wMdlm01S36G+5OlGaVh tGHrFEFg6h4bEoU31tf0ypEx3QlVI0oZgqYUaKXCulS+9RHoZR6E/sMpfbrtHBN9jOCrtw7mt1n CNVTx2ZBz2vdKr6T8hfzIrdgfaGDWCMBdplyVnqtaD8LqoIIRDQuDOHo= X-Received: by 2002:a05:7300:8c09:b0:2ed:e12:3773 with SMTP id 5a478bee46e88-308201edd23mr7493791eec.35.1781501326470; Sun, 14 Jun 2026 22:28:46 -0700 (PDT) X-Received: by 2002:a05:7300:8c09:b0:2ed:e12:3773 with SMTP id 5a478bee46e88-308201edd23mr7493765eec.35.1781501325528; Sun, 14 Jun 2026 22:28:45 -0700 (PDT) Received: from [192.168.1.14] ([122.183.32.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3081e5cea89sm14678962eec.8.2026.06.14.22.28.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Jun 2026 22:28:45 -0700 (PDT) Message-ID: Date: Mon, 15 Jun 2026 10:58:39 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] soc: qcom: geni-se: Increase MAX_GENI_CFG_RAMn_CNT to 1020 To: Konrad Dybcio , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260522-qup-se-increase-ram-cnt-v1-1-71854d0b2ef0@oss.qualcomm.com> <09fb9e91-2585-4cb5-8bfb-92df304e9d6c@oss.qualcomm.com> Content-Language: en-US From: Viken Dadhaniya In-Reply-To: <09fb9e91-2585-4cb5-8bfb-92df304e9d6c@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=F8BnsKhN c=1 sm=1 tr=0 ts=6a2f8d8f cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=VoxE8481/GqLGjIQlfxg6Q==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=2tl5gsjNwxIOEu-Ph74A:9 a=QEXdDO2ut3YA:10 a=scEy_gLbYbu1JhEsrz4S:22 X-Proofpoint-GUID: yRe-wIrM2IsjynAOezLHTD0NaiL6ayOp X-Proofpoint-ORIG-GUID: yRe-wIrM2IsjynAOezLHTD0NaiL6ayOp X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE1MDA1NSBTYWx0ZWRfXw26G8OeSG4NE Au4G6t+witi1CnlPsf2qVZwLdzgM3+LbbBssKcfHTFMr9rymweBDxb17CnIW5giTrPM0iqp+xXN Oa5UNOY5+Qu0U5P7ULofVXuUsWbuZGDTb7/A3lncm+rSwWcVyxUw2zQare0jssqTrX1au0KTck8 Se5NhkRXwbWYRKkDisfr+TDlyLh9B13uB63oiCZZPP394E2Nuv9DfuLjJusLHP3QvWaEzb7279K DeEJfL2mf+znCQTek5UfgAYwMt1qVqx+PKoQFsyBkIFThxk1s7xfM45efbqUPnBviHANqi21wfR a0s57iPK2osfpfXfY5By1RbS4BRp0hRSRzXe8ZkhSzw8h+rEtdSciwF2+dkCcwfGcIQ5VRnpflh RvMkXfxRyNdtbDxytSfOHmhWGrpo5aVr28ZJj/cmBAkYnXKipPRw3buLHFUL9xKBbee+fEJx6jf mp3niCHLEYi3zpTfzRw== X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE1MDA1NSBTYWx0ZWRfX675yxT9Qehqv 5Ha0dLwYWzG/BA69bV1lTbmxkM1RGkDqcvNL2q+nd/FHjDDidCJYrCkv3d5RJ498El3NoujcGBx D7Tj0tjmahbV14OKVNX31QCWQf3Pt1I= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-15_01,2026-06-12_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 phishscore=0 impostorscore=0 spamscore=0 suspectscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606040000 definitions=main-2606150055 On 6/9/2026 8:40 PM, Konrad Dybcio wrote: > On 5/22/26 9:21 AM, Viken Dadhaniya wrote: >> 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 >> --- >> 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 > > Is there any SoC where this could overflow the register space > (you say "certain Qualcomm SoCs")? Yes, on Talos (QCS615), the firmware image needs more than 455 CFG RAM entries, so the previous limit could overflow. > > Konrad