From patchwork Fri Apr 11 09:50:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 880944 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 3DA7CEEB1 for ; Fri, 11 Apr 2025 09:50:59 +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=1744365061; cv=none; b=Jf7JSgOELxdZpIwEgIb8d695W18Ksf7e8qP5AC1l9CP4v0ofA33y6SnedyTi/ydyD0pyipX+ZFWCQ3oTC6leau5FSFtWZ+VL2mNMdKtzm1tHOhQ8/Fqky/ejjhE7LRyb5sRw4mjLHjqfSfR8c3A21WQy8Mmx53nwEWR1oYQ0764= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744365061; c=relaxed/simple; bh=OAmrXv4fKRP5dEicBxan4R+MR4jNBF0kOR7k+RwWr/I=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Dq9v2jRbnPRDs3yWLVwfwRAE9D0Ny/c3UqF+rlHrmMynuNb2T8Qq8JSG8cpI1kDAObHDEn7QGJYD62gpADf1TA1DDSROgzG97TBCqhAVOyxhMvy3Y9TGFTcQEXLEugiIitnd04hKbWlX6A00/IY8xR8aVQZDxZ1UC/bT3jA+XpU= 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=YkXp4lQV; 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="YkXp4lQV" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53B64l1v031905 for ; Fri, 11 Apr 2025 09:50:59 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=xypb37583HRw96ug/EnY88BmozjS7Dp9msK YYRNCohs=; b=YkXp4lQVnEckwZKUrz7BzTdTNqAiGWYGdu540G8yVUOaaJtwnNG fqCfZ+DHm/rrh4P1AY0V/foKLrhXhewIxZ23HiMKiJcD88vGPdYZAMeZ4/3KB0KX 5oz25LsQRfTrkPQH4eV7SqhHayweE0A522WgGaTV1vya4it0NHQ+HHEAe1Z78P71 BwaVswH3nGVu12d7yNR8Fa9ej99EFcccbs5qmY1ErnyFooBRqhLjEEuJGqzHC9Ng QYBSYT9mNRevgd2Yxhbk152eWfEyvSWuDZWr9R4gEzFphFka2Xb8v3bs2StR4Dga kWV8ioLjKXhOjafMwNjrC/jQGOxEH1icHGw== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 45twpmhw3v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 11 Apr 2025 09:50:59 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-227e2faab6dso16277235ad.1 for ; Fri, 11 Apr 2025 02:50:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744365058; x=1744969858; 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=xypb37583HRw96ug/EnY88BmozjS7Dp9msKYYRNCohs=; b=kTTB1nYgJGqN8Me/4nKxlxkhzJBDQ9I8W3aetXGCBIPv2bW4v3nPBJ5JUZXAzcXpm6 ucI/FM0Okjtas8w6e4Stlqsok6Uw65Ksmv1QzT7TFno/C8IA9EK2b92H36n7gzsQojZ+ 4LuyNLsY2L7YM574Jk9FxA4T14nU0KEbLEPO9ENOgrt4LEc+acnsSdQMDXM2T6Rh4AeI TsRds8QrLKP3osDy1q4qmLcncoZfBLI792gbKk3JRsFJLdA/VgmhqOXUONK+Uq6oNm5S 5Ru/LNb2WWCqRLUf2PZ1Lmg5iXoChZROJ/IC/O6KlTT866CnNeutvFsrJbLPHV5n8FK6 UNMA== X-Gm-Message-State: AOJu0YxobpIajl8szREiigR79lU4paN+J1vo6x2gwUQkiCZxG7RMA4mS 4s2VMLeprcyc4VraNHQHHRZeyqwrKcix+870dAyLA3yDcvxSKBErg1qab5Qn8upl+H8hp5xckVK /f0iLuAmxejth4gXTWGzArCxH+hkPLuHn5FpYUpCVD5WeaNTaoNkN7rIz1/6Dtphr X-Gm-Gg: ASbGnctiFX7tVjqDCT4A2d+ib7cbEd/K0X5CVveniYnvG7vhTLWKAWcwzAewgScloLG VrrpN60gRhrFn4X5XAs6i4bcKhCcKuNQ8m5SfRr5Ypof/llPKap4ojgMJOMQfpi62hYx5QlvTTe c41r9Jb4hkwmxa2zvz1S1kb2hc6DQzDB8OJy9rvi+MiGktf0exTicEO72sO+tfhQzm1N1mNu9rO kaHLA7D3RgpTJh6HbvE1LGMBW/fIiiUhe0m0KloME9x+/nQtGM7JTZi3mMDSEQiryDdhb8IV0mG 6Y3HNyBxqB/o8gD7hp+PqAvCF63ZL5p5RQnUF2U= X-Received: by 2002:a17:903:3c6d:b0:21f:768:cced with SMTP id d9443c01a7336-22bea495845mr28140055ad.8.1744365058287; Fri, 11 Apr 2025 02:50:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHhJwwebyAoVQn1/4i+u0YKkxKHiwCVGMq2ulrgX68bMl80txEhHqJIkYaBSrTqmcan3XRBQ== X-Received: by 2002:a17:903:3c6d:b0:21f:768:cced with SMTP id d9443c01a7336-22bea495845mr28139795ad.8.1744365057840; Fri, 11 Apr 2025 02:50:57 -0700 (PDT) Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22ac7b87b9fsm45010875ad.54.2025.04.11.02.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Apr 2025 02:50:57 -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 1/3] soc: qcom: socinfo: Add support for new fields in revision 20 Date: Fri, 11 Apr 2025 15:20:23 +0530 Message-Id: <20250411095025.4067964-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-Proofpoint-GUID: nQ76E-yldh6zk3KhRlK3a1sM4AYmAWnM X-Proofpoint-ORIG-GUID: nQ76E-yldh6zk3KhRlK3a1sM4AYmAWnM X-Authority-Analysis: v=2.4 cv=MpRS63ae c=1 sm=1 tr=0 ts=67f8e603 cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=XR8D0OoHHMoA:10 a=EUspDBNiAAAA:8 a=V04GdxmOTIv6GTtReyUA:9 a=324X-CrmTo6CU4MGRt3R:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-11_03,2025-04-10_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxlogscore=999 clxscore=1015 priorityscore=1501 impostorscore=0 spamscore=0 bulkscore=0 suspectscore=0 malwarescore=0 adultscore=0 phishscore=0 mlxscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2504110061 Add support for socinfo version 20. Version 20 adds a new package ID, which is used to tune temperature thresholds on devices which might be able to withstand higher temperatures. Signed-off-by: Mukesh Ojha --- 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 18d7f1be9093..e56fb778e1cf 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -607,6 +607,7 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, &qcom_socinfo->info.fmt); switch (qcom_socinfo->info.fmt) { + case SOCINFO_VERSION(0, 20): 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 Fri Apr 11 09:50:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 880208 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 CDE66298CB3 for ; Fri, 11 Apr 2025 09:51:04 +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=1744365066; cv=none; b=GLaLPTSGvLgD2eBIVUgLpHY+9GfOj9DiN7c5eNHBCfXHXyKutaKkv8NASbE2B0qTZTJNHt0elXClA9Oa/69w5IXEHxYZiUX+mFVcTWWERD9rF5aXix59ZNmV2jFCp+Cp85rU3CTuMsOHAKoFBPz26YLiMlKlA0WF9Bx2XvXttEw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744365066; c=relaxed/simple; bh=kn2J4tKmKY6IP6EV+kBCSzJtadFwe9qSWz6nx/B12wc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=F6Hf3+IHwBb44XovVT9/6yUmFzsIMjhhJcC2CbVNP94F1L1uT6RXt+SBAf1j37qgn94Ui3bR1KoFHBIy83424qyRY97ZNLmQp1s5Fp+8+3yW6GsyoAMjc/d8Au2nncFHI7UPTkPq9LMeVK8ngixs6iym7I5Bx+HwFUsjiQp6cf0= 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=nB5q1odL; 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="nB5q1odL" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53B5X2Pp000644 for ; Fri, 11 Apr 2025 09:51:04 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=PaQEi6Hrc/R qt3l7bn0w9tX63GmJuGdEVb+/2HsLYbA=; b=nB5q1odL+ho0TIEI5Z7jaPAPqXw Ytt7OTFMooYt/dwdgJmybxEnqEk1uOjlNJNqe1XzyOPLXkPwY0TCNgh9DiPtyRyc uJi5X0lUTsXpdritfPN+N+jcgy8uvGPNnzn3qBjHC8zZJXvRuTI2CjtbVcpzss4a xgOvxl7AmWz/r+LDCmMG6Hd7LPyjASyO65YL+YcJnlDqRVuPtw6rEUiBj9XhyYxc mo7XfyV3RJlZbNMnaVJWsGtnzpDvvvz92lZdkY8FrFCo7veaDi/qwl+8nkH0n0OQ cCE+epb0xuSHywYfmHvqYW1+/75nJxhWFaqM09UAeiAQQ10Y2PEtX+H8TWQ== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 45twd31xkp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 11 Apr 2025 09:51:04 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2254e0b4b85so15320405ad.0 for ; Fri, 11 Apr 2025 02:51:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744365063; x=1744969863; 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=PaQEi6Hrc/Rqt3l7bn0w9tX63GmJuGdEVb+/2HsLYbA=; b=GIk7hndNhmNUw0uJd3jAtG40z5MZHRJ5wQ4mt78qLT5WyUnbKSp9RHiSK1eeb02vgt 9JDvpG4OKItUIik1G7xRpSr5MI8DIgriVaaLznRol1Dw6Ic09kbwd1uFYNhZQNlk2eSD UG6yZkzAztZzyNW6/oWV1DlV+tIKJrrjk5dqFl5l+2r/G+mc+kDPKZR9cTaVPS1LZgBG uaOHS04xgjTTHzfuMOdsKIiatnIWNXM1pnekKmF6HhdjC36eVzv0hNLbLk/kSeXDPL6K cT8P1frgeCIS37NjCMi9HvG4cQplOBQlcRcHsJuLzepuzmFKkQpoztHzLY3F9tdpBADe QCbA== X-Gm-Message-State: AOJu0YzCjZ41Xs7dFJ32sDR+FeA6PYjn3bwZQgJ05fReI57WlrPmz9Zd qrr95Jly5JTEkC61s8Z49THpMG+uoi7MN1xfPyTne0R5e3zCvTi8AuioHnc9L3/cgYKDt6xlEhu tcaFIf7xWBtWpgvbnP7SVPt64Jrn/vcC8cHQd8AqFFma0ascTAb06EmoIcjj5ebUW X-Gm-Gg: ASbGncvrTOeqt0WR/BvYcOfa9g5E9JmiXW+YwE85q9rgn2/fBJmIwG/oks8YgPCmamP HFKP5JAyuHB+xtKpJuEpgAaXB2abfjaFsscLDvaHssRjpCNOvEfkwkSPFq83bvzMSEPt25tJjJe aR4niphHcDDBLrWm/RZOEdR8TCIe5F2eL57LiyqDoT5OtbWNo4kARlp/5YYHBX+L0d1WXIUWP5d m8Jc7vCLqFHtdk3mz7rIBkvmqGGNrMjSe1UmwTjKO5FG1hplkpnpWCC0tbk7GiKs8YXS6JUMDvQ dVyYia/PlPHUKuglSQUDhFUTw4TD6yVknzCSAac= X-Received: by 2002:a17:902:fc45:b0:221:89e6:ccb6 with SMTP id d9443c01a7336-22bea0c262fmr40601965ad.25.1744365063015; Fri, 11 Apr 2025 02:51:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGNfxR5YEUyC5pY57vV0dpISwcfK15MuaiwfRAi4sz+t/tfe8cA+U0O5qBySiiNvi6OFfEMlg== X-Received: by 2002:a17:902:fc45:b0:221:89e6:ccb6 with SMTP id d9443c01a7336-22bea0c262fmr40601675ad.25.1744365062658; Fri, 11 Apr 2025 02:51:02 -0700 (PDT) Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22ac7b87b9fsm45010875ad.54.2025.04.11.02.51.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Apr 2025 02:51:02 -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 2/3] soc: qcom: socinfo: Add support for new fields in revision 21 Date: Fri, 11 Apr 2025 15:20:24 +0530 Message-Id: <20250411095025.4067964-2-mukesh.ojha@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250411095025.4067964-1-mukesh.ojha@oss.qualcomm.com> References: <20250411095025.4067964-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-ORIG-GUID: -kRZWud8pgcRMiNA2knLiCYLEXnlfHLf X-Proofpoint-GUID: -kRZWud8pgcRMiNA2knLiCYLEXnlfHLf X-Authority-Analysis: v=2.4 cv=NaLm13D4 c=1 sm=1 tr=0 ts=67f8e608 cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=XR8D0OoHHMoA:10 a=EUspDBNiAAAA:8 a=V04GdxmOTIv6GTtReyUA:9 a=uG9DUKGECoFWVXl0Dc02:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-11_03,2025-04-10_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 priorityscore=1501 adultscore=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=999 clxscore=1015 phishscore=0 spamscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2504110061 Add the subpartfeature offset field to the socinfo structure which came for version 21 of socinfo structure. Signed-off-by: Mukesh Ojha --- 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 e56fb778e1cf..0a6eb8060f5b 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -607,6 +607,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): case SOCINFO_VERSION(0, 19): qcom_socinfo->info.num_func_clusters = __le32_to_cpu(info->num_func_clusters); 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 Fri Apr 11 09:50:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 880943 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 D1EA1298CDD for ; Fri, 11 Apr 2025 09:51: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=1744365072; cv=none; b=VMBB5EtM5UpAN+kne1TW3z+VM3M74B96m4K5mvdoYH1BQnwnAEI1GbQ04PnpuMO6eZB3DsT3DfwgxbYkxPUhuBh1LUGOBU2islM4lpSVsio90G03OiJFxQQM9KXzkaICS0fKb82lnImYxx8mPmO0rgzOkraYZQ9cJitf78KyHCs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744365072; c=relaxed/simple; bh=VPNtz6SZAXaeKvhR4Xe6dLeXms2B1V8n6FHrYC4ztMQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=N8N/kRyXwbH5vlAQ1FXTNY3wmKES+KeSYueXFxJiHUpJMSGCXgtDHH8zM0iuRju7KqYmLfOdXb7hiDdJcxIlshfM963l6QkOfQDqhBJMwgOBzkCNKpZAUReoCt+/l3luB12xqTCHtCN6rF9JUOUywi8iuAyP38ejQS0uB/Xd6Hw= 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=Y/n1MeP/; 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="Y/n1MeP/" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53B4fwvc028856 for ; Fri, 11 Apr 2025 09:51:10 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=kkmv75R9Vmq 9kQbxrsEYeVvWziDZ2ZPYGJqveR1Y+sg=; b=Y/n1MeP/q+L0epKfT9fMZAR+oFH e5T89uQM83FIdAhQbaIBETJ6WsYDHhVFBDDyFubZQS8fLnLPM0MjF82ZY8UUl59W zmCCuBwwKV3QXZ2ueZSidFMjEmPUhSSdbhGJgJSMRTeH5HMW+5dpmuGiEkwBAfYF Uunw6JvQYxf7ELRrL3+XB08j3Wk0iGe7d1H3HMmsEuhwJROUNBDulxl4A4kw/za1 jiPe88xZuWavSgPgag8g/gGqB6FaQVGlesW5GWxJWqrZXIpuVTgxclDnbsTOqa7n ns+8moTnkftHFNqcs23pYQwyayTJ17NMYRaftaNJD3tSIqZknjU6GEZwxIg== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 45twbut08b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 11 Apr 2025 09:51:09 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2240a7aceeaso16952865ad.0 for ; Fri, 11 Apr 2025 02:51:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744365069; x=1744969869; 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=kkmv75R9Vmq9kQbxrsEYeVvWziDZ2ZPYGJqveR1Y+sg=; b=Guo5yWm4ow3xNa8NLZM+egH4kc23TjNacG80GcCrg0rqCoUlVcjhVlYSsVUQCYt6tf 4W+YZ3y8SJWO/XKq/m6O8GSyOCuvmq67Geedm+onP1DfXo33zNCr66mWF0BW/w/N4iRv ePvESbhHgtl1J2BZ2RffafGqOgWoiiEDAktIbmQpHrCHbx2acOtwLlGAuY8tENeagwy0 cixT13AfHrQuZDoDGxMCvrJZTqlNM8KGa0VvtGp0vOqo1qZNCl4A5M5KTMfmPoRlJ2JC M2zpACCwS/Koami9QJo544Lybe5R55ev/fZrwqQ/oB9h9bOMz98Rl1kKbzkIK9ktJOM0 edhA== X-Gm-Message-State: AOJu0YyQTA500VE9Zalgm4fhxFsnXyl3Qk0gWF/o+EOSdQqkJR94TUe+ yuU5vKooOmD9uvYaxF8ufWE7jOKFdLU2dgJHrsalU79+e80ooIBo8ZqQEvvIFv5Z8OzTIQZvt0d V6tsvFIUi3wjN2eDErBIch0JeSzLmiAJWl0qFE7+eQHkJhsg8xXAQCG2ebBb2E+RM X-Gm-Gg: ASbGncuf7YkS+1c1536l0cfwcrIGlx8f47N3W+Iqn8eo260BYK13RiiDiIgYV+9d/k6 lVMNN0A/T2v+t20ykI31gW6oRnMxrCwrp6gFw4hoYZGh0Sg3JV+7AXF0pSUFxlMUCsfrX/N47ky 4uhPdjIDyrxcuEwPf7xFQ6oRmgSLcfX7dGupqS9EhuACjh54fGYFI7k8zfr6GsCsBRD8g1RhfEV M7ruGhtVII4I3/MaqmRL46O5rAk5jC2+vyvVUMAfplac7earWKi44X7iM8cqtIF6Erxh3NYJUxe LwclYDto+peKsniAXDimNIiNGTb1OWZ2/bh65vM= X-Received: by 2002:a17:902:f70a:b0:223:628c:199 with SMTP id d9443c01a7336-22bea5167c1mr31999435ad.52.1744365069009; Fri, 11 Apr 2025 02:51:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHejv+O3EwQky35i7nJepier66XkmJokjC1FYkgJAErFg9z+HQQX4NmrA9VQIZFdQ2rG1b17w== X-Received: by 2002:a17:902:f70a:b0:223:628c:199 with SMTP id d9443c01a7336-22bea5167c1mr31999135ad.52.1744365068593; Fri, 11 Apr 2025 02:51:08 -0700 (PDT) Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22ac7b87b9fsm45010875ad.54.2025.04.11.02.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Apr 2025 02:51:08 -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 3/3] soc: qcom: socinfo: Add support for new fields in revision 22 Date: Fri, 11 Apr 2025 15:20:25 +0530 Message-Id: <20250411095025.4067964-3-mukesh.ojha@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250411095025.4067964-1-mukesh.ojha@oss.qualcomm.com> References: <20250411095025.4067964-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: ruy0Zxohq759MAC9egpsWEK16zDduP8C X-Proofpoint-ORIG-GUID: ruy0Zxohq759MAC9egpsWEK16zDduP8C X-Authority-Analysis: v=2.4 cv=dbeA3WXe c=1 sm=1 tr=0 ts=67f8e60d cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=XR8D0OoHHMoA:10 a=EUspDBNiAAAA:8 a=V04GdxmOTIv6GTtReyUA:9 a=1OuFwYUASf3TG4hYMiVC:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-11_03,2025-04-10_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 spamscore=0 malwarescore=0 clxscore=1015 adultscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2504110061 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 --- 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 0a6eb8060f5b..6319a73a660b 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -607,6 +607,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): case SOCINFO_VERSION(0, 19): 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 */