From patchwork Mon Jan 9 14:31:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souradeep Chowdhury X-Patchwork-Id: 13093653 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 28615C54EBD for ; Mon, 9 Jan 2023 14:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uJxmDGOg/6nOBP+zxuESVyVuZPGZ1BVthzAWzWluZhY=; b=Zx/tlzzGMx92ns +pwY3HX3TMwbG8bSfHuXUh8LH580A+qBy4FuTYMgpUBUXSSj8KngzkXN0HFJU9QFi4pDb3y/Lc6Zs w30HX54xWhyuARB/HXaKfN93tJQZ/PakIhelmTMfFrpyswdeuI49gVTc7uCnUy9GyncSe+5Bdqtkh qAnn8xS24DffodE1EHBtjsjhg5jIm+9PqDwlwDPqHO+v/EdSc8UWOw/PxHSL91rNJ1TlATGNWXFm2 vkj6wwuTvR4LqQRfDty+JUOAmc2GZuDkWGKqGbvX6F/E0noXQCgvMhAngL2ILVmra3uKjBnnpPJPS wtkgopTSMqjoQqS+brkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEtBh-001zII-WF; Mon, 09 Jan 2023 14:31:46 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEtBY-001zGY-Nt for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2023 14:31:38 +0000 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 309CY0h6015630; Mon, 9 Jan 2023 14:31:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=To2M7m8ifpIWIdwpFICEz3ryGg079W9y4tN8/QOGdV4=; b=C8hhFRcNZoSAPYaBcWSIn41fhcMKbBRPq0+XpDXrxiYoeFElBGJe7WXV2Wgrgv7ETwW1 tFlpzy2g4immZDqO4v0U6sifj/Lb7pa7KJ0z6fozAR8C55omc+8jIW/E0FZ02eq79K4E eFOjxy07sm04gP2Br904yWKwUXgpOTTeh1CfEotCihmDtY+L9hwXu289h3fBJwoeAgw5 jEfDT3H3VCyaBr3WFwkvOrPcyLO4FSwPwHGxR3cuM1hGJbURpG0P0q2O5OM5t34xl+DB OC7kmV+sZ1L82lhQ81kR0XX4xpG9GUvOJrKaz67rZpGqnRhIM5JXpXIE/Sk8fpd/1bZC nw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3my0yab96p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Jan 2023 14:31:34 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 309EVYIk008829 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 9 Jan 2023 14:31:34 GMT Received: from blr-ubuntu-525.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 9 Jan 2023 06:31:31 -0800 From: Souradeep Chowdhury To: Masami Hiramatsu , , Bjorn Andersson CC: , , Sai Prakash Ranjan , Sibi Sankar , Rajendra Nayak , Souradeep Chowdhury Subject: [PATCH V0 1/1] bootconfig: Increase max size of bootconfig from 32 KB to 256 KB for DCC support Date: Mon, 9 Jan 2023 20:01:05 +0530 Message-ID: <654357bcbfd3974072a558c494a51edafaa73e1a.1673261071.git.quic_schowdhu@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: NsW1RMkj6V-w0IFwYdL-EqcGWixwojvg X-Proofpoint-ORIG-GUID: NsW1RMkj6V-w0IFwYdL-EqcGWixwojvg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-09_08,2023-01-09_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=988 adultscore=0 malwarescore=0 clxscore=1015 phishscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 impostorscore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301090104 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_063136_848059_C97DB582 X-CRM114-Status: GOOD ( 17.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Increasing the memory size of bootconfig to be able to handle a max number of 8192 nodes to be fitted in memory size of 256KB. Signed-off-by: Souradeep Chowdhury --- include/linux/bootconfig.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/bootconfig.h b/include/linux/bootconfig.h index 1611f9d..64d233b 100644 --- a/include/linux/bootconfig.h +++ b/include/linux/bootconfig.h @@ -55,11 +55,11 @@ struct xbc_node { } __attribute__ ((__packed__)); #define XBC_KEY 0 -#define XBC_VALUE (1 << 15) -/* Maximum size of boot config is 32KB - 1 */ +#define XBC_VALUE (1 << 18) +/* Maximum size of boot config is 256KB - 1 */ #define XBC_DATA_MAX (XBC_VALUE - 1) -#define XBC_NODE_MAX 1024 +#define XBC_NODE_MAX 8192 #define XBC_KEYLEN_MAX 256 #define XBC_DEPTH_MAX 16