From patchwork Thu May 8 13:12:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 888866 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 97FE822CBE9 for ; Thu, 8 May 2025 13:13:37 +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=1746710019; cv=none; b=j5eKtliNENncBdfUKJuL0H8R0i5hjmaomcoU+aCmgtRBT9OQP2OxD0japJ4TDZG3PEp8QBTBJpVQtB/jrcZ9viRkPQGc1D0aYf68JywGdWf3Ef16vxvQDZj0b24d/p8BAjyBonXA2A2WtU3UrjBIxZ/lTQ4MgvQbkdUUw5I/7h4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746710019; c=relaxed/simple; bh=XujGJkZhCSkwHMGSuBJNd55TPO2Z4BJb7HiFfSAi9Gk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=IKAF+5FLff2cbZzejbKYUvvq+4bom/EC0ZckcCfxtNUj5g3HMnHcMUkUzI9L0t5vaCBdJQhjddsQwA65N/0fATrizbxKiqmyqSWjWEYbBM3DoSNwiEptCeDTtYiNLG5kuUvww/GC8W+V55FEs1RGr4K+Aj6MQHraN3KFJf/p/FI= 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=gfj5ktEk; 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="gfj5ktEk" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 548Ck2Dq002323 for ; Thu, 8 May 2025 13:13:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=TRUWHokJKC7m2iCGbohZyoJjf8FEo8fZCbp VE1hpGPY=; b=gfj5ktEkh1JuFJ8KseuLjyjciRAT211YtJPunx+55YzGIF670g4 CqK0nwyr31guhCWtQDzY9ZcNdgymzM51SgjmQvJ5lkz8eoZb7TG9U/bAk03FHNkP jthjNq86zGaJKDBehWcCAVe4zPD0gMW0mxOW7zdE8LA0dHOLuuRp8gBdyWLKdg/K VHCOrXU/wEGB7VkAfdpQ9tzVjhP2+zqTuAyiuzxNb3hNtzaIQS5BF03LD/bphOKc dDITz5aXJ3b1/MpetI/XRB3DnTiA5E7GzNmDsZnRvo6Jc3UDBVAkhw6LFGOooV6I naFEbGqWipfgS3vE+zlJ6k+6IFn6Rp8FQvQ== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 46gnp59dbq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 08 May 2025 13:13:36 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7c543ab40d3so141531785a.2 for ; Thu, 08 May 2025 06:13:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746710015; x=1747314815; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TRUWHokJKC7m2iCGbohZyoJjf8FEo8fZCbpVE1hpGPY=; b=XaSiPImwbyvqzMRg0kg4XQJQs864IxN7+TtHybDIh9sc6ua5bBZtKL6Xtpj53bi20H PFOOcmbnfNw1IakNR45E+qdJcU19HEqxIfQBzAB/PVdmCQP/BpSFgP8vZDYf5ClatuDl /bVynRehUXUiNVonkenQ35hUtKjZw2DWaBshzS9qs7AK2C5TyzURX0DvSE7nudcta0Gz w+Ujeku9Bc6EyqTCrPxIes1LK/7CLHpa25h8JAIVOX2PEkgmhPulWKsvV9BL7t11JCbB QFZVRbvbTgGWxCRczlNKaTZw1gE6nTp955cD7RXAWgKcOhMr2rczGljuMGZJKAVRZhXR h9vw== X-Gm-Message-State: AOJu0YzvflP0pPgbDuGyE8rtPAOErxk/Yv9QQSXlBErz7HyT82Tq9eJY mk6giNizIPi09aRraBR25DxynA6G5xKp2HjNNGwB4YDbOagB4UcM31/lTx8liGmvu7lyrmMNmtf R2ANlBmcFIkaxz9MBX08/S+KbJjWUSpT1ujhdHv7GyCDEchCo03LOQBGOUbV3yJepfz74R8im X-Gm-Gg: ASbGncsF4T4SieuyjVNgfHxdQdqV+MJu3Ezhrl0TjCiEqEXGnHwIYlIFxHFHCL29mCe F79Aqdd2+3/huYgw4f8FgisglW7wqzM6seBu3WMELfMiWkXaBfRVuVUOm/o+fD9LM+t/E+9N9tf RzpjIsQ4W8DKqqpRRQx/JQMbMbva0hSoz4UfHu/QW5nA4yF5BeW7cIRosjUGEA6pR58Nb+p6617 KhR2oafG6SYhAbW7XwYWj2dTYT1R6AdtYO0gqSILS4wnuIBuufj1ESZnKLBMYxPFnClyWCkJHos s1rc/p87g8d1hiEvyJtxxtaElfx7iQPftGYIh90= X-Received: by 2002:a05:620a:318f:b0:7c0:a70e:b934 with SMTP id af79cd13be357-7caf73760aamr1248318985a.7.1746710015438; Thu, 08 May 2025 06:13:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDrhVc+yGPmNSfozBhPFrM2mPRVmMRXF9BT/DnRW3LWoaMYbKtuFctdQKyEiyRscqYA3Detw== X-Received: by 2002:a17:90b:1e08:b0:308:65d4:9dda with SMTP id 98e67ed59e1d1-30aac1b49b9mr12384398a91.16.1746710003891; Thu, 08 May 2025 06:13:23 -0700 (PDT) Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30ad4d2e499sm2135477a91.16.2025.05.08.06.13.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 May 2025 06:13:23 -0700 (PDT) From: Mukesh Ojha To: Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Mukesh Ojha , Konrad Dybcio Subject: [PATCH v3 1/3] soc: qcom: socinfo: Add support for new fields in revision 20 Date: Thu, 8 May 2025 18:42:56 +0530 Message-Id: <20250508131258.1605086-1-mukesh.ojha@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=XL0wSRhE c=1 sm=1 tr=0 ts=681cae00 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=dt9VzEwgFbYA:10 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=zoRWVKxRGUSOgPgIeVcA:9 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-GUID: 5Mqa4A6F5QtSc1e_xcXAeQHZVd7ybc90 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTA4MDExMCBTYWx0ZWRfX7SF7bC5bM3xL EljmKZRmj2F2MUe2fHg7FV6kudx3dS5AIjOZXTZMAXfN68RQtIp0sursSM2QdRS7XKMWwNuRhMJ uxdCyiifO1cHKXbmmM/E+rk2UiuLCng60Oq+RaMgUZfEfX/HCwLN7RZUNmGuofF9FFUwWOhpTy3 u60iOvqNToyncCj2ijQgNNZPJgO7OvH97rEt2KtT4qOY1adp1wmGrRUSXNCxFg0qB31VU5vrLh0 Z9u7fTNzxi+NIYjdR6ZyYMHXnYHQIDieqY+AdCYtk7y0RmjimU06iAr9wj86I2KV1IY8NmVBb0w SYdITw+TgyWW1P6MTrLos7CRtGv6pBGdBVe8G3A/jGlGjhshhVIB/4Lcp5CIQ9jPl5Ha1k8+99c 62QaRaxlyNgH5E9Dv4LsU/A+iyn3kHUcgJbrA6KTqSyHBJjnj1icQp4mNr0i3GM7HMUeUVwm X-Proofpoint-ORIG-GUID: 5Mqa4A6F5QtSc1e_xcXAeQHZVd7ybc90 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-05-08_04,2025-05-07_02,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 priorityscore=1501 bulkscore=0 spamscore=0 phishscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2505080110 Add support for socinfo version 20. Version 20 adds a new field package id and its zeroth bit contain information that can be can be used to tune temperature thresholds on devices which might be able to withstand higher temperatures. Zeroth bit value 1 means that its heat dissipation is better and more relaxed thermal scheme can be put in place and 0 means a more aggressive scheme may be needed. Reviewed-by: Konrad Dybcio Signed-off-by: Mukesh Ojha --- Changes in v3: - Added Reviewed-by tag. Changes in v2: https://lore.kernel.org/lkml/20250425135946.1087065-1-mukesh.ojha@oss.qualcomm.com/ - Added debugfs entry and described more about the field in commit text. drivers/soc/qcom/socinfo.c | 6 ++++++ include/linux/soc/qcom/socinfo.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 18d7f1be9093..9a92c9c5713e 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -153,6 +153,7 @@ struct socinfo_params { u32 num_func_clusters; u32 boot_cluster; u32 boot_core; + u32 raw_package_type; }; struct smem_image_version { @@ -607,6 +608,11 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, &qcom_socinfo->info.fmt); switch (qcom_socinfo->info.fmt) { + case SOCINFO_VERSION(0, 20): + qcom_socinfo->info.raw_package_type = __le32_to_cpu(info->raw_package_type); + debugfs_create_u32("raw_package_type", 0444, qcom_socinfo->dbg_root, + &qcom_socinfo->info.raw_package_type); + fallthrough; case SOCINFO_VERSION(0, 19): qcom_socinfo->info.num_func_clusters = __le32_to_cpu(info->num_func_clusters); qcom_socinfo->info.boot_cluster = __le32_to_cpu(info->boot_cluster); diff --git a/include/linux/soc/qcom/socinfo.h b/include/linux/soc/qcom/socinfo.h index 608950443eee..c4dae173cc30 100644 --- a/include/linux/soc/qcom/socinfo.h +++ b/include/linux/soc/qcom/socinfo.h @@ -82,6 +82,8 @@ struct socinfo { __le32 num_func_clusters; __le32 boot_cluster; __le32 boot_core; + /* Version 20 */ + __le32 raw_package_type; }; /* Internal feature codes */ From patchwork Thu May 8 13:12:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 888867 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 A913F22A1C5 for ; Thu, 8 May 2025 13:13:30 +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=1746710012; cv=none; b=gUM/qd/um9/8bsnmzGHDFEA1m+WnCAoglUWOTHK3fjCYTJea/mFiNPKQ+6e4/ZeA3+pxj8iWmfHoKxymUxnCy0jJRS2Ys7EHxnsJvHXKMXTrXUH5GvNdV2DxBOBce8lmXQCqoxX9R3WxFYcfo2kS2kGEE3cI2dpf0wG1X4c5U2o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746710012; c=relaxed/simple; bh=39lKtowy3pICwEKF1R5izU3l8zKwnzcqGSa95Y+dwBw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=nBwQ7Y9PuBdRHBKx8h4KcphfB5Xs9LtkPWjzLUSupbb8ccmancV+mHC2jR8HLkREuMoPq1dDcftfMDrm9CrC9kjmAq+ap60SX+HX7ZTNZZ++u1BZpheCu1r+o1891Ax0dGR1Panu+k2+hpMJqhtBmCgm2I9xaAJyvxxMbdi2+yI= 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=M4jUZa9u; 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="M4jUZa9u" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 548Cs62H008448 for ; Thu, 8 May 2025 13:13:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=8KZayw8bWAE pG6U2eryKSIHbza6t1WgC9YVOFUXwkQU=; b=M4jUZa9uXkIJ2lrYhWVbfr+WSjy 0CNNpI8oy+aQeWWLgfnox2qhiDwbDvb7z7g9SU0kA+Qw4FEflXBPlvfiezP7l4gj aA0cgcAXeaYpJwifGhA5aaxUtJjjP+XLgoPsKO6N/loqiJz9PQcsbk/rex5Jow9K VQEigBrGYYebw2X8F73ZsKz8xjNwga2al6nYXzVc28pB5KMxldIViK7BwmgrQtyj Ac4Q3fpsATvGCkF+wvT+VnSIATTUeAEFHIG9EtslKPyuq3zQVjuzZXvfu3chrbQx Wxf+4Aj1FnPOEkl3SWcc10llCdqbifHhT++C1Fm7Q+liJZPRPMQzivixVTA== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 46gnp59dxa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 08 May 2025 13:13:29 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3082946f829so1704839a91.0 for ; Thu, 08 May 2025 06:13:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746710008; x=1747314808; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8KZayw8bWAEpG6U2eryKSIHbza6t1WgC9YVOFUXwkQU=; b=bFTj+L51ejLfpXZKWhL43aVoUYT64dQZFGUjFuvN689UhxeVY4lQkMligKuf/QQ4ao /rE9OQ+IMDYMSIrSEA5QeKsbj6fILpQjOIx+24oUxZO6+9cYJPzIxQnU6SdH0c82YZk/ gQ0aT9TQXLD3kjoEK59mu6uZ47LJdLwmpZ0dfFmW6axGeBp3Z145vBhFFEEhUsDc8A7G vjTwzSY+xeifAaV2ywnRcsSt68JnWMVbIfyg+W9kl56D/+O0mAl3w0ZAAMnYUTrdnimH YEObPH51CaCcdkSbL8GbGDW77d6JZ8xqi+tFoTbVi4Ww++bUtEAuDMfVtUEhI5EG8wbE mM3g== X-Gm-Message-State: AOJu0Yz57XSt1NwowsW3LatIMZocbDJ9bGy3AK/KhJEoCcXuG+1ah4aG 0yEnfl25NHO8yYJokByhdRoN10X0BrGxX5FFNi6bvJccZG2p2EWfrZyHUH+V4SUJ3Y9OcbD0k96 vzkrGMxl1Ui2cPqJSpdYL7rwRiyyONHe/51aGz4VFevyKT8O2otdzr0a1mXb3aLSd X-Gm-Gg: ASbGnctnXdsffHVDaQ/lzk6dy4FmZnIGvTx5MwO8zDxLxbTXYR3efcXsdxKMuH2xrwE GQJPqFybhdTZF5eOS/dTl40gc+7VkrViCuhshrZx7YiD5kMZ2ojxuOXzJKsEOyotF3UB+NvPet3 pyTMUOMuN5r5RFaZwWuA+df2Cobohzqvgvu/YTpni52pJU5rfsXabhnEnzlBRIHD3M+AD9PM/xV aOWhfqh5ctU6JYuKRO/prn1xjVBpGUaztjlmd8xY6cox10uhM2f7/3nB8syNqikkp9BGWfpdJHk VgHe3VizBq0lGyK0VW6rbogt7JMEGOuHfwDV5UE= X-Received: by 2002:a17:90b:1d09:b0:2ff:7c2d:6ff3 with SMTP id 98e67ed59e1d1-30aac257b1dmr11703284a91.35.1746710008011; Thu, 08 May 2025 06:13:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTtDjE8pqu0/foquZITAqO1yInYezn2eYa5QWjI3Q9Gl6jLwwLSljPRQBSd0OVvMo4aimzyA== X-Received: by 2002:a17:90b:1d09:b0:2ff:7c2d:6ff3 with SMTP id 98e67ed59e1d1-30aac257b1dmr11703215a91.35.1746710007390; Thu, 08 May 2025 06:13:27 -0700 (PDT) Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30ad4d2e499sm2135477a91.16.2025.05.08.06.13.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 May 2025 06:13:27 -0700 (PDT) From: Mukesh Ojha To: Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Mukesh Ojha Subject: [PATCH v3 2/3] soc: qcom: socinfo: Add support for new fields in revision 21 Date: Thu, 8 May 2025 18:42:57 +0530 Message-Id: <20250508131258.1605086-2-mukesh.ojha@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250508131258.1605086-1-mukesh.ojha@oss.qualcomm.com> References: <20250508131258.1605086-1-mukesh.ojha@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=Lu2Symdc c=1 sm=1 tr=0 ts=681cadf9 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=dt9VzEwgFbYA:10 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=V04GdxmOTIv6GTtReyUA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: fWnH3FF9zq_3SJvIIGCXbtMfnnzjOhaD X-Proofpoint-ORIG-GUID: fWnH3FF9zq_3SJvIIGCXbtMfnnzjOhaD X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTA4MDExMSBTYWx0ZWRfX3Na2x0PbNiNZ 7h7E52qvnUN5jL2tLBN10TJrf6JG48bFjVNi9yNPNlwf+ZrTjUDmEgtnzM3S2Q04FRDSMyEm6v8 TUJKsWcP0YNpMYjsDTRiYRUChVd9HGPEsH5ecrbCjJyalogCFt0KH8mL6ooxHqb7vR1Blw0NkT+ JLF3nT6OiFFPYhGZ673SHe7WKuFmQkVqJztX+cuBCqd4/cli6DTzFOAySDVnI9PQ51rfF6ffqvJ ka2IIg43CCkAvBwqMt1dyHa1YyKHz1ygYtYaumePGoUlW/KOVNZyfZCJWPuJL1HSyxDunzkkRFb epgEtxRvk1Q/Pf5RQlMmXfX/+mLZEr5tCXFtS3g26dYck6f6Hr+b315L9XFf6tcdyPs4wky+MfS d9VI9mVlu0pyT2PYJJ9u/iXsjRLqWRGKLv5IF8Df2o0ddY9EOVtjyDUVE0NISVuwuRGqfNFf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-05-08_04,2025-05-07_02,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=999 priorityscore=1501 suspectscore=0 clxscore=1015 adultscore=0 malwarescore=0 spamscore=0 impostorscore=0 mlxscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2505080111 Add the subpartfeature offset field to the socinfo structure which came for version 21 of socinfo structure. Subpart_feat_offset is subpart like camera, display, etc., and its internal feature available on a bin. Signed-off-by: Mukesh Ojha --- Changes in v3: - Removed debugfs entry as per comment from [Dmitry B]. Changes in v2: https://lore.kernel.org/lkml/20250425135946.1087065-2-mukesh.ojha@oss.qualcomm.com/ - Added debugfs entry and described more about the field in commit. drivers/soc/qcom/socinfo.c | 1 + include/linux/soc/qcom/socinfo.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 9a92c9c5713e..55acae79ec3a 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -608,6 +608,7 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, &qcom_socinfo->info.fmt); switch (qcom_socinfo->info.fmt) { + case SOCINFO_VERSION(0, 21): case SOCINFO_VERSION(0, 20): qcom_socinfo->info.raw_package_type = __le32_to_cpu(info->raw_package_type); debugfs_create_u32("raw_package_type", 0444, qcom_socinfo->dbg_root, diff --git a/include/linux/soc/qcom/socinfo.h b/include/linux/soc/qcom/socinfo.h index c4dae173cc30..3666870b7988 100644 --- a/include/linux/soc/qcom/socinfo.h +++ b/include/linux/soc/qcom/socinfo.h @@ -84,6 +84,8 @@ struct socinfo { __le32 boot_core; /* Version 20 */ __le32 raw_package_type; + /* Version 21 */ + __le32 nsubpart_feat_array_offset; }; /* Internal feature codes */ From patchwork Thu May 8 13:12:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 888627 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 B061322ACFB for ; Thu, 8 May 2025 13:13:32 +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=1746710014; cv=none; b=mkaALBNCGi7WYi1tr+hTDfU64lL+eT8uXCDiR0nIkD5jTOcCqLKhE8kuwmuSBCFg6vbzAOrNnd9bsueJ8wX/3JcGmLAldQqCR0x/5r/0qYgCit2ZW2eiMuXXti6kW5yWoppVoNBqySSyHlrJ0vMBFHsFdh7pr7bNOQn9P+e+uKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746710014; c=relaxed/simple; bh=L0Moi4f1O1O/7Z3W++9fu2ewfyT3ssNEmDKRTtyM2Wg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=j4Ceu7PWXPStW6IRg+GYBN9dsSnE6yL7tgngXXPH5YnDnkLA9xrCiKGdcnwkk767zRMC0qDq6O9r48Xjy5S0NQk+PWlrIVoex6V8oKXmvqfS96u+NTvkfZZp4b2YJRSqfyVKTGGtOHngshVpdLoEII3OFLeNtudwnqWqqdu1yRo= 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=Ok1YrwKX; 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="Ok1YrwKX" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5484X84K016151 for ; Thu, 8 May 2025 13:13:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=5gCvBHzV4SX gzzgzkWVLKwTim9/9MmKEiaEQq6fbHgs=; b=Ok1YrwKXz/fBAaix62DoKSxQWm8 TQbddWnZ7Mcy0RWA2noj6kzoXrZ/Br6eOJBWs1OXiyzhCO19pxVGC2WhcjQTekES GBL6Y2PlWkE+dF+535tAWG2Qyy3EOLrf35hqNJDHAGOLXTZeoW7oFvAq+Zdw/Orm 5kuzF5w0OVN9hwzkZUW1ENsvD5A/2i4+RXg1vtjRhRtbuUJCwqphSAZSl1I23wiF D0K0eZu6awfADLCtdemdgEfbVEBCbT00nIxEHacckvQbO/AB48HEBH0Kaw4YWx9m TcAQUdnYm+7kmU/cOmDSf99jii86lcAHPqIyBxUxFp8tkryEr1dEVIkmgdQ== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 46gnp8sd2a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 08 May 2025 13:13:31 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-30ad1e374e2so1084075a91.0 for ; Thu, 08 May 2025 06:13:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746710010; x=1747314810; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5gCvBHzV4SXgzzgzkWVLKwTim9/9MmKEiaEQq6fbHgs=; b=FtB5kahTp1rY0lpv1ZNS2aaTvHaEB1kTwXFUqWmOg6eOnZIayp4U5H662+6uB+0wRM TbC9SA50+65Wdq9bc4QElL5WjrbtFmWjZiz7VgP0yMjr1aj6hrnk9Y4Hb/BROt5qXyMc bPgwbx8UIGFfD1YTlpAWqxWUXkHlkClzulaaVu5UyzWW0Xw08xPM20iGHgBp0HekdXYl lRe4jiZ4vk66czOqctsP3WlRUjSxJMGHaF7zRSaYPdi7fZBgovPCsUI85/YhMon5fHU3 m7BQkClWZy+yrXwhibJp3rKgBHIkniKDnxyS4Tv1mWIY8njHZwERvXBCigXctsBv+jfo qibA== X-Gm-Message-State: AOJu0YxAZ+0gNfi9g4nIOzKhfYczTWsescXePpDtMYcdQ9pl2XhBy005 M5J1pFbDwym6xEVTvPmzd9UX/cK+YrzID2PkynuzxKSZd7Hh15FiMqXYe8OCzNtwNu2h5RFajXH ib4A6gYdyYZJK+lTUND0xnrp290GC/FTqcXRxQeaMonxDR1u1cYV23ZCyhSXBnSCg X-Gm-Gg: ASbGnctYIhrm3N31MTTxbnsIJ3hE/+Gb1mTwFcXpxw6/AUxK9dYbojA37IERKWNtPk3 JNoYvHZZbPChEDtMIPjAlajxfvCtcuOfnIklQrShBmRbk33eltQW1ldJPg6Oh2UojPv6IdC2Tfb nH0j68dCfjG9TBHVHE7TaqSdhews7NtK9+c9km36Ob6p8nQmokxHVvU08GpsmEgmeGbu9bHnsvk 69qhqe08d5f1/VOvQnFuJcCj1RJTCG+g6IENOeK8cvs8F+85tLsr8/45prvMSHXa76wTZanFC8S R/QLs9v1wIXBlcY/uE6DIwnZ5jJmbgSRz66lspM= X-Received: by 2002:a17:90b:4a05:b0:30a:4ce4:5287 with SMTP id 98e67ed59e1d1-30aac093fd4mr13759716a91.0.1746710010072; Thu, 08 May 2025 06:13:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeJn4r2vJnVdLAy9QQ6STCGE+MtqmPNGyDNrVcPHKh1skv55MS2gSqEK8DVD8+uVCY1eedVQ== X-Received: by 2002:a17:90b:4a05:b0:30a:4ce4:5287 with SMTP id 98e67ed59e1d1-30aac093fd4mr13759681a91.0.1746710009717; Thu, 08 May 2025 06:13:29 -0700 (PDT) Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30ad4d2e499sm2135477a91.16.2025.05.08.06.13.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 May 2025 06:13:29 -0700 (PDT) From: Mukesh Ojha To: Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Mukesh Ojha Subject: [PATCH v3 3/3] soc: qcom: socinfo: Add support for new fields in revision 22 Date: Thu, 8 May 2025 18:42:58 +0530 Message-Id: <20250508131258.1605086-3-mukesh.ojha@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250508131258.1605086-1-mukesh.ojha@oss.qualcomm.com> References: <20250508131258.1605086-1-mukesh.ojha@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: LBtARlPoug3b7OVj-iYIRzU4D3_gs1Nf X-Proofpoint-ORIG-GUID: LBtARlPoug3b7OVj-iYIRzU4D3_gs1Nf X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTA4MDExMSBTYWx0ZWRfX39PNIJAtCZ/m GYn73NrHbQppcTeDf8KXbwCvLxn6fcTCdScORc/Huq0JTshTRJFFV9n8rcO5bHd1krJYf6L9MfE 7LVZLw58i6ijj8jCgUvuvuo6mgIxB/uTfF/iQ8/31V9OCaYIOI13ZWH1L+WnjlYWtNxKsAliVC4 OejmepZVZAwWmV7JYWy8cKK70Ahc/yV080ZPOABNTkdBQHbjuRxavAOjJbHdeYR6hO+1Egix9bX Bq3u12YcpsGC0xrlT/G/BEcWgJQ4gveGa6xnH5jmdOR14lik0ElHagPI//8Q6DVUZUYGQ8EZ64A kqIdz09NRp3S6/Pg/Dr8iXrsvDoHfdTTYLCKtT3CvE6VJ6uLE+trxVFrDlu624bp2ioMsPD6Nm2 CcDPrCV9u/j+v8wIoh2W7rrWVa+jt6l/3fTz77TV3yRvZrkOIdh8lf/WY3WkcTPndgeorcWj X-Authority-Analysis: v=2.4 cv=e/4GSbp/ c=1 sm=1 tr=0 ts=681cadfb cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=dt9VzEwgFbYA:10 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=V04GdxmOTIv6GTtReyUA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-05-08_04,2025-05-07_02,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 adultscore=0 phishscore=0 clxscore=1015 mlxlogscore=999 spamscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2505080111 Add the ncluster_cores_array_offset field with socinfo structure revision 22 which specifies no of cores present in each cluster. Signed-off-by: Mukesh Ojha --- Changes in v3: - Removed debugfs entry as per review comment by [Dmitry B] Changes in v2: https://lore.kernel.org/lkml/20250425135946.1087065-3-mukesh.ojha@oss.qualcomm.com/ - Added debugfs entry. drivers/soc/qcom/socinfo.c | 1 + include/linux/soc/qcom/socinfo.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 55acae79ec3a..7ae4c602e3cd 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -608,6 +608,7 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, &qcom_socinfo->info.fmt); switch (qcom_socinfo->info.fmt) { + case SOCINFO_VERSION(0, 22): case SOCINFO_VERSION(0, 21): case SOCINFO_VERSION(0, 20): qcom_socinfo->info.raw_package_type = __le32_to_cpu(info->raw_package_type); diff --git a/include/linux/soc/qcom/socinfo.h b/include/linux/soc/qcom/socinfo.h index 3666870b7988..0c12090311aa 100644 --- a/include/linux/soc/qcom/socinfo.h +++ b/include/linux/soc/qcom/socinfo.h @@ -86,6 +86,8 @@ struct socinfo { __le32 raw_package_type; /* Version 21 */ __le32 nsubpart_feat_array_offset; + /* Version 22 */ + __le32 ncluster_cores_array_offset; }; /* Internal feature codes */