From patchwork Mon Jan 13 21:08:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 857391 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 E556524023A; Mon, 13 Jan 2025 21:08:35 +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=1736802517; cv=none; b=dVz316981QWWpiROX/783nh9L4oQCz6XD5labqaPFuasyJ3FJif4qTIrVRn/xVceV4UsdMbm+gVAOs8tC/iJE2FiREKYUwZGjmvCsBqoHnOuuZHXsIaFL6ORb8oe0C8L1PQd2dheOIcorpb//s1Wf7N+Cg281S7vSHqlPPXY9oc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736802517; c=relaxed/simple; bh=3lREuuVtSOl1tmHGVVe1ZyEBeHuvsXNFYJEbNRMxJGY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=VDiK0fNQEmiU9D8XJVxmNUYqSruFnJsDIUXSaJsx9KVAUiMnnG4q2qKTw62uSXKnt9TOiD+vxKYc7VDyAXgy1o8d4bwQXe9etrjOyY8LNEaLDXsnBdqM8p3OhZpU2wK93pjoeNy/hefQkq9cR4XpjJYkLHqJDwJndt8QtpIy4Jw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=YaRbORoe; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="YaRbORoe" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50DKYfCD024128; Mon, 13 Jan 2025 21:08:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= j1Y8106CHXA63G300lWJGp9s36+rZWuCqEjydNo0SI4=; b=YaRbORoe7VL77zoQ ixkLZBheayoOLsS/QsA94GOMsPWANZSzhfe628hBYrL+Ts8j81wT6SqZRmSjA0XK 1wh+9DIri5Ae88yIpQSoUz9Ek+q27HNK8NeN3Oss71+MM9T23cYUIsctpiddnoLY iAOZYheZbieZA/+eyWVo5FPq8hbwMYNN4ZMPsK+SNfd4hU+6Itaa/Xz1xrkZwPAy Dbjf3pytO4OHrP48/bQ7Wzh4TfMLcyH1mqbIJZLra4AzmJ5GgvU0+Y+DKG7JUNx2 PLxufY1Xf09OAZeCeLho9hj2VJY9QRkvozleDmDNguNQ83Pr+yKaAr7l0JZJV037 8GTalA== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 445a06g1tp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jan 2025 21:08:28 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 50DL8RlT009374 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jan 2025 21:08:27 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 13 Jan 2025 13:08:27 -0800 From: Melody Olvera Date: Mon, 13 Jan 2025 13:08:18 -0800 Subject: [PATCH 2/2] arm64: dts: qcom: sm8750: Add BWMONs Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20250113-sm8750_bwmon_master-v1-2-f082da3a3308@quicinc.com> References: <20250113-sm8750_bwmon_master-v1-0-f082da3a3308@quicinc.com> In-Reply-To: <20250113-sm8750_bwmon_master-v1-0-f082da3a3308@quicinc.com> To: Krzysztof Kozlowski , Georgi Djakov , Rob Herring , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , "Satya Durga Srinivasu Prabhala" , Trilok Soni CC: , , , , Melody Olvera , Shivnandan Kumar X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736802506; l=2287; i=quic_molvera@quicinc.com; s=20241204; h=from:subject:message-id; bh=OBruLVjvKNNSEIQvc1fj2be7ajkHeTjty+lyQV0E80s=; b=5NnB3lHhuifFaCx2Hv3xM3MXL4sTzloAvUn19meqZP55cG8KQQDHFcefCKT7ZzhUlJwTde6TT NmXtnACrOZhCoNehsWIYCD9J88ODSE1MBywmXc9A2fjW1pjCl3ehiXy X-Developer-Key: i=quic_molvera@quicinc.com; a=ed25519; pk=1DGLp3zVYsHAWipMaNZZTHR321e8xK52C9vuAoeca5c= X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 6uEQPY1UfHjak6r8Bz9scIuPKdG5uupF X-Proofpoint-ORIG-GUID: 6uEQPY1UfHjak6r8Bz9scIuPKdG5uupF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=701 priorityscore=1501 malwarescore=0 lowpriorityscore=0 phishscore=0 spamscore=0 mlxscore=0 bulkscore=0 impostorscore=0 clxscore=1015 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501130167 From: Shivnandan Kumar Add the CPU BWMONs for SM8750 SoCs. Signed-off-by: Shivnandan Kumar Signed-off-by: Melody Olvera --- arch/arm64/boot/dts/qcom/sm8750.dtsi | 74 ++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qcom/sm8750.dtsi index 3bbd7d18598ee0a3a0d5130c03a3166e1fc14d82..09fe3149da1926b74a98280fe209ae7f423db864 100644 --- a/arch/arm64/boot/dts/qcom/sm8750.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi @@ -2802,6 +2802,80 @@ rpmhpd_opp_super_turbo_no_cpr: opp-480 { }; }; + /* cluster0 */ + pmu@240b3400 { + compatible = "qcom,sm8750-cpu-bwmon", "qcom,sdm845-bwmon"; + reg = <0x0 0x240b3400 0x0 0x600>; + + interrupts = ; + + interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + + operating-points-v2 = <&cpu_bwmon_opp_table>; + + cpu_bwmon_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-0 { + opp-peak-kBps = <800000>; + }; + + opp-1 { + opp-peak-kBps = <2188000>; + }; + + opp-2 { + opp-peak-kBps = <5414400>; + }; + + opp-3 { + opp-peak-kBps = <6220800>; + }; + + opp-4 { + opp-peak-kBps = <6835200>; + }; + + opp-5 { + opp-peak-kBps = <8371200>; + }; + + opp-6 { + opp-peak-kBps = <10944000>; + }; + + opp-7 { + opp-peak-kBps = <12748800>; + }; + + opp-8 { + opp-peak-kBps = <14745600>; + }; + + opp-9 { + opp-peak-kBps = <16896000>; + }; + + opp-10 { + opp-peak-kBps = <19046400>; + }; + }; + }; + + /* cluster1 */ + pmu@240b7400 { + compatible = "qcom,sm8750-cpu-bwmon", "qcom,sdm845-bwmon"; + reg = <0x0 0x240b7400 0x0 0x600>; + + interrupts = ; + + interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + + operating-points-v2 = <&cpu_bwmon_opp_table>; + }; + timer@16800000 { compatible = "arm,armv7-timer-mem"; reg = <0x0 0x16800000 0x0 0x1000>;