From nobody Tue Oct 7 00:25:10 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C09762AD0C; Wed, 16 Jul 2025 12:26:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752668763; cv=none; b=mKEiY4Luxp2mBnOi0zD/+iePnRns3fbx3W6ZQ+3jLNlP/mTINIJhaWIv0KO0LjPyv0fculrmHAiOWBjMgPJaNbPLVvVY35yVbo1J+jFqBZ8VFk+wDm19Fz/j51GBOOf1BwqioO4fmt7GTfZ55yCR3kyTwm+MdR4aquOvw5VD/7I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752668763; c=relaxed/simple; bh=XTcbpx6ly1tN7Dsl/20qzjTFviLC65pdQAn44GRgM1Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FStq+XvkCaI8r34SlqtdPD351pLrO2i1QyTbfkYHKAT8xB4ahG+iCVluAjhq8WGr2suQvXIjo3Z/L0kI8AlJOhhdR3OjGXOzCVD4TXWYElBfruBQNgrzNarzPocaxJDVQPuduBwB2IycjunvqM5JJt/pOZP+REVUzjBdF9c3meY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LxjMcc7g; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LxjMcc7g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FD57C4CEF4; Wed, 16 Jul 2025 12:25:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752668763; bh=XTcbpx6ly1tN7Dsl/20qzjTFviLC65pdQAn44GRgM1Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LxjMcc7gVCehcHe5kdok9nWTK0qkgZyIc0wsf8UpcgRACRBZqm5xNRHow1Y9XGtpK /Iifv9YjGyk14JElvFl5zXNBxNbdXopYue6yfar1aBy5+GDB7xJF9ow2RWNl+Nhmsq /bWGAJTa+IS3CJQm90TgwiiK6em2/mzwaTIfzi64SIRX3B0gt3gU1rnVXzzR80Vjqq MNH68ww+fWpe9wri3sk52rcXn9UE7kM8K66qnW7gS6KvUQ9U/L3RyULFD8RmUs4b9b 10xBp+nbLv6yh9wLcIlbMHSrWA9QP2Oc1SXxxcXhZu7DYkDOt3Z2Q4xRDMAw3656Y3 V53IuxF9IDNNA== From: Konrad Dybcio Date: Wed, 16 Jul 2025 14:25:46 +0200 Subject: [PATCH v4 1/2] dt-bindings: interconnect: qcom,msm8998-bwmon: Allow 'nonposted-mmio' Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250716-8750_cpubwmon-v4-1-12212098e90f@oss.qualcomm.com> References: <20250716-8750_cpubwmon-v4-0-12212098e90f@oss.qualcomm.com> In-Reply-To: <20250716-8750_cpubwmon-v4-0-12212098e90f@oss.qualcomm.com> To: Krzysztof Kozlowski , Georgi Djakov , Rob Herring , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752668753; l=950; i=konrad.dybcio@oss.qualcomm.com; s=20230215; h=from:subject:message-id; bh=H82ybSIYYWgf8nJT6YxvsZanbze8JoVpwEX+cHYGT9U=; b=0Pw8KZUpLk/OR43jwSnsUMpJkYM+Ozv0ppfMbc4Vvf5TOfzsiMv7l4zrHJMGTB0CODCNlwpi/ L+blVU2b/6NDGx1FjJsdFObvqbWPFcO8XjmEK4fbvTD6fxfpqc6cJwP X-Developer-Key: i=konrad.dybcio@oss.qualcomm.com; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= From: Konrad Dybcio One of the BWMON instances on SM8750 requires that its MMIO space is mapped specifically with the nE memory attribute. Allow the nonposted-mmio property which instructs the OS to do so. Signed-off-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml | 2= ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bw= mon.yaml b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmo= n.yaml index 83bcf0575cd372926102e2764055c3576822c915..256de140c03dc50cb77bc38a6bb= c2ff96b910207 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml @@ -76,6 +76,8 @@ properties: minItems: 1 maxItems: 2 =20 + nonposted-mmio: true + required: - compatible - interconnects --=20 2.50.1 From nobody Tue Oct 7 00:25:10 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EECDA3C33; Wed, 16 Jul 2025 12:26:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752668768; cv=none; b=aA+66WjfuF1F+iw2B9U+m/Svcoe2bvzHHmECBv/Ug9qN+wOwk+Qezbc6fIQyScyKHmOYrdlMrM8tN7ndknn/nNhrgdHhs9nDmi6dIkUpEZKrXgLWinjMp9rWrXTYBMyudutnvefBZcMqDWH9XIGL3U21yY6XGSM9/ipPk+Mg30E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752668768; c=relaxed/simple; bh=dn9lR5FWABKGVpMTuPc0ddrkqUBlRT4kbmz/swpsa7w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eOCYZeJuhwijg8xQ5u8V8apzGhyLSj5/WMgUbyogYKgExxnRZrxosxZKWLlTG416ldLkF4tQk5/F7C5St6TkJVASEVlaD+gaBWw9zPL+aTOn7Qf+kRgib2MykWbHiRbAOYLkBra5v5qt4rCJN+VfbZRMi7vWiicTloNyZgQyqjo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Jylo+3qD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Jylo+3qD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1195CC4CEF0; Wed, 16 Jul 2025 12:26:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752668767; bh=dn9lR5FWABKGVpMTuPc0ddrkqUBlRT4kbmz/swpsa7w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Jylo+3qD3WArU1Lqq0T6oQ3z6pUn9mKIbXBUndV/chkQCtxJXKY9ggUGyrT2UI9AQ 8CKn48/vBocOnzLKUOJjoOfoO+juTMrmIt26yS4zx7PaT5MWzHTQQ+4h+CcEPpgwgg fw4uKMI7Al5ZEZvmT/89LINr5O4kY3G+mbt8nX3/5elVrFfQlXtt+vh7h0Hej4j7Gp HIAF9yfdaEFhFTgQ3dpoJQTCGn4JY8ImT4sx3Vatwi8CF7jzE6MZtZ+UKflMijukct 2OC+ZdUuuPf4xNnXIjUkCujrgWoe7bngRz3shHdUS5NdyMEceqwX5ZM5Q6i4tMkp1v XWai4p1m4HuCw== From: Konrad Dybcio Date: Wed, 16 Jul 2025 14:25:47 +0200 Subject: [PATCH v4 2/2] arm64: dts: qcom: sm8750: Add BWMONs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250716-8750_cpubwmon-v4-2-12212098e90f@oss.qualcomm.com> References: <20250716-8750_cpubwmon-v4-0-12212098e90f@oss.qualcomm.com> In-Reply-To: <20250716-8750_cpubwmon-v4-0-12212098e90f@oss.qualcomm.com> To: Krzysztof Kozlowski , Georgi Djakov , Rob Herring , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Shivnandan Kumar X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752668753; l=2579; i=konrad.dybcio@oss.qualcomm.com; s=20230215; h=from:subject:message-id; bh=e8Tn4SYV5rKK6nevRmqForcihoYnzFXcnwD9VcRt8Vo=; b=uQEzUOG2aIHL2x81JLh00rLpD+I6cI0f20ZjNGGXHkfegqdeMHpi7BQToPzFbtYde6W8/aELe WLFb0aXn3NAAIf3Y3wADzEtg4FJPjQtAcmCx/NiD0CNHbxAA/DIddj9 X-Developer-Key: i=konrad.dybcio@oss.qualcomm.com; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= From: Shivnandan Kumar Add the CPU BWMONs for SM8750 SoCs. Notably, the one related to cluster0 requires that it's mapped with the nE memory attribute. This is specific to a single instance, on this platform only and should not be mimicked elsewhere. Signed-off-by: Shivnandan Kumar [konrad: add nonposted-mmio where necessary, re-sort nodes] Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8750.dtsi | 76 ++++++++++++++++++++++++++++++++= ++++ 1 file changed, 76 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qco= m/sm8750.dtsi index 4643705021c6ca095a16d8d7cc3adac920b21e82..79ca262f58115ccc4b0bd91d4ef= a75715e2b7397 100644 --- a/arch/arm64/boot/dts/qcom/sm8750.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi @@ -3617,6 +3617,82 @@ frame@1680d000 { }; }; =20 + /* cluster0 */ + pmu@240b3400 { + compatible =3D "qcom,sm8750-cpu-bwmon", "qcom,sdm845-bwmon"; + reg =3D <0x0 0x240b3400 0x0 0x600>; + + interrupts =3D ; + + interconnects =3D <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ACTIVE_ONLY>; + + operating-points-v2 =3D <&cpu_bwmon_opp_table>; + + nonposted-mmio; + + cpu_bwmon_opp_table: opp-table { + compatible =3D "operating-points-v2"; + + opp-0 { + opp-peak-kBps =3D <800000>; + }; + + opp-1 { + opp-peak-kBps =3D <2188000>; + }; + + opp-2 { + opp-peak-kBps =3D <5414400>; + }; + + opp-3 { + opp-peak-kBps =3D <6220800>; + }; + + opp-4 { + opp-peak-kBps =3D <6835200>; + }; + + opp-5 { + opp-peak-kBps =3D <8371200>; + }; + + opp-6 { + opp-peak-kBps =3D <10944000>; + }; + + opp-7 { + opp-peak-kBps =3D <12748800>; + }; + + opp-8 { + opp-peak-kBps =3D <14745600>; + }; + + opp-9 { + opp-peak-kBps =3D <16896000>; + }; + + opp-10 { + opp-peak-kBps =3D <19046400>; + }; + }; + }; + + /* cluster1 */ + pmu@240b7400 { + compatible =3D "qcom,sm8750-cpu-bwmon", "qcom,sdm845-bwmon"; + reg =3D <0x0 0x240b7400 0x0 0x600>; + + interrupts =3D ; + + interconnects =3D <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ACTIVE_ONLY>; + + operating-points-v2 =3D <&cpu_bwmon_opp_table>; + }; + gem_noc: interconnect@24100000 { compatible =3D "qcom,sm8750-gem-noc"; reg =3D <0x0 0x24100000 0x0 0x14b080>; --=20 2.50.1