From nobody Mon Feb 9 03:13:22 2026 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 B7ADB333740 for ; Thu, 13 Nov 2025 08:55:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763024113; cv=none; b=GXWJH9YPL0xvg7It/wGApALCVO/1BCnKqaZW7VdSoa3YQu/bvk5xxkin6VZBFvnFLusGhg0+ecHg37379T/Z+fi2+N77/SBL+xHiHkgVchBK9jBPvKjYVcTrLd0vI6ZJiumZFUWVZZeEDk7ZTDj3iaXWj/QBchMLn4d+qoTON3w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763024113; c=relaxed/simple; bh=yS/Zqmsw1pub5MxoEyCsZ9T6aQWl3nSZ0FCcfD0P/+g=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=gxD/rg4OZkSW9NPDOdMAHmTPji3obWNU2GUo+zek/WU5c+vLCUGy8AsntbA+RgTQmHYVim6ij9XcPIHMNI4aDocaUQc87Y/vKVRMSMj/J2a2lpiUWCDvYr320yooerXX8s433tHO9uruXodqAXglJGIlqNZceLByE6zcFkkp8nE= 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=bE+5hGSf; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=W3J4baSL; arc=none smtp.client-ip=205.220.168.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="bE+5hGSf"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="W3J4baSL" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AD5qPQL3764723 for ; Thu, 13 Nov 2025 08:55:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= qcppdkim1; bh=4v/Fq7VW41o9w6zoYq+6g7Om/dcBe/6lWVVO7aFJcis=; b=bE +5hGSfdFAilT5Gh1ikzSOjECTY4zxdNgucjB5iI9vN5YgBfC5AvROThx/gI0xtNg NnVA8ntDIPwwcdwLl6x7RPTlGiQJ5hIAo8VuY1tp06pGGdx+fPWmlIcco0t0+YxC Avr/nEK0yL1nSDCtk8JVJhlkHF03JJjO2go0ct3MoknV+D8XAlp2JIgFYwZ6AbMv qqYX8OFNPCzkBF7MmFkzps9vWTIgtQ+gfl0rdk6EZcbLNLw/3dpmx+WiDkfGFojI LwERxCBYnMuZtGtw0ULNRBHsobirMkgQ+IprKLp8zSeEVEU3jSVes1r+htj7VqoV 3kGW6vdO5Rdl5F6Q0vag== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ad9jn0hgv-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 13 Nov 2025 08:55:09 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-b6ce1b57b9cso594774a12.1 for ; Thu, 13 Nov 2025 00:55:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1763024109; x=1763628909; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=4v/Fq7VW41o9w6zoYq+6g7Om/dcBe/6lWVVO7aFJcis=; b=W3J4baSLkhvZBWo853UKQVyp0tpA6Bitif89qLpjq/HlhTHqhwjKvlnFAX20WzzcBn fcSDqS12wFRD7FXw/l8QJZzZQy1Muw6zoPUQ7SxU3MZH/4mTxB4/ACIpeL/RBgw4IF2d pf7y1GwCTzVIXgmH6PTOdNrxW6BSoO6maZhvDuhySxJxKL5CKOA6396Nqoem547k6g0M wMRWVGPXumHATKHBpUsEPBW0LyeZZ4iz1hB7ENPQCd72JAsP+f6ennXMmy8/CZc5Gum9 hTjNc2wJ9I3amXqSkh0kutljEaQb9OObfdLkrizdjeqlh9JoIeO/wFP4kLcmbABkmGM4 66uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763024109; x=1763628909; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4v/Fq7VW41o9w6zoYq+6g7Om/dcBe/6lWVVO7aFJcis=; b=dS0EOIsPlrhZrH84z1PB8lENyzYhCjSTa6bxWAmicj/Mr9ymjjiqMA/V9DqMcQZN6Q QoMjkDdqlQN4Lq7PRdcK/XrckCwWZBXMxLXytpok/B0e5a1Gbd451UcEVS/6q1asgdVm MaUEZuE5Zuy4S/1Xq3swtN2fjoXbJQsJLeBtbMMqpsFz43IonYyQSiQKVvRCDJmdMHoq MRD+nSb4gfod1upeJsbwpTMt6B7uXik7fz76YZGj2v+dvtnI0zZO9Fgco9x+76RJ73pz u5wwaNacKCSZxjwOK+Xfy5h/uMiVClmn7XDbLMbNMXFpQimg4gN6Ijq9+rBMj+V1fQnP le/w== X-Forwarded-Encrypted: i=1; AJvYcCUQJuQHzU8QDn8Oaa5A3U3/wf/HVfnKj97ZlB8iNiYAzpv9PHCZI+F5plKGe61jTuvlqUFi4DiFO7ktaVg=@vger.kernel.org X-Gm-Message-State: AOJu0YzsxCP4bEnOyfhblFMs1cdD9vKj7vjREhORY6EommO0tz5ywNhO 1Dq8Dr6U0Rls4kdjldpASqgw4Vb+xWJKHwdfw5Ow/KtKsJeg40zwetWieb6hM+yHA3NaBiIT1Ga hMvo28kMufDvPv7scA16vTnYXg8aDPDSHwLNLOUjGpn8kaG+mvL5LlEHs+JD1483WWNE= X-Gm-Gg: ASbGnct13mT/Ca87yFXgqabvkx9nEG1kMkOqai4hHGi39IUFQ0uNyAehN0VzFhhAE9Z BvL6o00+Ipkcmv7PYFIHphaHNcjSIPTgP535ZzI0lhTQjS+GGyV3IZaKRK5FcIc4vt7WX5lFY1A WCukYJVAjkLxXwJnXZ5v1oaLvj33IfzffHY61dvUDgO6x29ppC2ZlqnP3LV6ppVB6NheXTetPkQ zuVE2yf5GJZrAIhQEm/311pkFxAWw0AvgExy7rj574cdPlXcSHeROvyL3qsO+BkEwIyL7inwXld QU2YmdWLpCP3Je9ge72yfDbhyOG+kAReDW5OwdmSTRxsmAVnGTFzhZ3iLAItgAEvq4NtEDBAglU UYATylzrTSHXwyMICcu/acm2KUIUO5SCIJqFvbOziHqOLMyul X-Received: by 2002:a05:6a20:a10a:b0:33f:4e3d:b003 with SMTP id adf61e73a8af0-35909f74f15mr7790744637.25.1763024108847; Thu, 13 Nov 2025 00:55:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IESdjOq9qu1BkwaKsDbcGdpq3xI09IK44dcLHktdSNqVFansXAWCBUGQF1Eo6eu+xMmevwqOg== X-Received: by 2002:a05:6a20:a10a:b0:33f:4e3d:b003 with SMTP id adf61e73a8af0-35909f74f15mr7790723637.25.1763024108379; Thu, 13 Nov 2025 00:55:08 -0800 (PST) Received: from hu-anancv-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7b921cb6f44sm1592971b3a.0.2025.11.13.00.55.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Nov 2025 00:55:08 -0800 (PST) Date: Thu, 13 Nov 2025 00:55:06 -0800 From: Ananthu C V To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, ananthu.cv@oss.qualcomm.com Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Ananthu C V Subject: [PATCH] soc: qcom: socinfo: add support for new fields in revisions 20,21,22, and 23 Message-ID: <20251113085432.1309629-1-ananthu.cv@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email 2.43.0 X-Authority-Analysis: v=2.4 cv=BvmQAIX5 c=1 sm=1 tr=0 ts=69159ced cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=kj9zAlcOel0A:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=dALc9j6rFnT5Ke-xxj4A:9 a=CjuIK1q_8ugA:10 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-ORIG-GUID: UN3DQO1AxTON8NbJIAAyV5adgfmWC7p6 X-Proofpoint-GUID: UN3DQO1AxTON8NbJIAAyV5adgfmWC7p6 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTEzMDA2MiBTYWx0ZWRfXxL2dq+/LCHLI rZDQ2pyooUAZgGRvDDIzqvxFHTqKyRnAnzA9j43BhIVnYx18JNDpAYqp0YM028qI6YHYL6GB12A knflNwTuWnATZUb4LLTu80Toy7sPAlMGV3qagFo6HgQ0sVCdAC622i1p7saE33cvxoEjSFXM4sk 9os+84q/TeGySvvlBMph87jtFelD3kaAsnyKzYdGa6LHInYt3Fdu2++RtICrV7Etg05nbUxNq1u 1Q9HzUIgunno/83Ke7U1eREUo0FLwkgAYvSdQ42af6TjOplwBZdT+FQ1qTJHiqhDF7uqtYLQBvU oVMmGdRbVEDdywiPNNGtNHR+uiKpF/n1t9MgWkKApEafcu9+FN4Me0CX0XQrIMy9ms/ftKbDFaZ izbSyR32BwXidhGThkP0L5+Pr5LXmw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-13_01,2025-11-12_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 clxscore=1011 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511130062 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" add support for the below fields in socinfo structure: - v20: * raw_package_type: type of the raw package - v21: * partial_features_array_offset: position on array indexed by ChipInfoPartType, each bit notes the corresponding component being enabled or disabled - v22: * cpu_cores_array_offset: position on array of cpu cores per cluster - v23: * part_instances_offset: position on array of PlatformInfoPartInfoType structures * num_part_instances: length of the array of part_instances at part_instances_offset Signed-off-by: Ananthu C V --- drivers/soc/qcom/socinfo.c | 4 ++++ include/linux/soc/qcom/socinfo.h | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 963772f45489..a14aaad51f81 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -621,6 +621,10 @@ static void socinfo_debugfs_init(struct qcom_socinfo *= qcom_socinfo, &qcom_socinfo->info.fmt); =20 switch (qcom_socinfo->info.fmt) { + case SOCINFO_VERSION(0, 23): + case SOCINFO_VERSION(0, 22): + case SOCINFO_VERSION(0, 21): + case SOCINFO_VERSION(0, 20): case SOCINFO_VERSION(0, 19): qcom_socinfo->info.num_func_clusters =3D __le32_to_cpu(info->num_func_cl= usters); qcom_socinfo->info.boot_cluster =3D __le32_to_cpu(info->boot_cluster); diff --git a/include/linux/soc/qcom/socinfo.h b/include/linux/soc/qcom/soci= nfo.h index 608950443eee..40903c54b526 100644 --- a/include/linux/soc/qcom/socinfo.h +++ b/include/linux/soc/qcom/socinfo.h @@ -82,6 +82,15 @@ struct socinfo { __le32 num_func_clusters; __le32 boot_cluster; __le32 boot_core; + /* Version 20 */ + __le32 raw_package_type; + /* Version 21 */ + __le32 partial_features_array_offset; + /* Version 22 */ + __le32 cpu_cores_array_offset; + /* Version 23 */ + __le32 part_instances_offset; + __le32 num_part_instances; }; =20 /* Internal feature codes */ --=20 2.43.0