From patchwork Tue Jul 11 14:35:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 118590 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp531145vqm; Tue, 11 Jul 2023 07:44:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlE9INeIvtl8OIdd0eYWelSIo2ypfCrqCTlMohUUwDcyhWMxs4gjqag9QxCZB7jKiyzyUb2G X-Received: by 2002:a17:907:3205:b0:993:b230:936b with SMTP id xg5-20020a170907320500b00993b230936bmr22283458ejb.6.1689086698606; Tue, 11 Jul 2023 07:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689086698; cv=none; d=google.com; s=arc-20160816; b=076/g+M4Jc/ZyOq1Utne7JbQhPQBJU67SWv0iQy1KCXEqb15fktVBRs/XNYQIyiVt8 s3jDnguVUEO7uB/4L9uuBfxSDFHOHk+tQcxxUrGnddlo70QC+3YOuz7jRI7viTfNsSHG vs0kUr3iy6qRa+IEJzwb8QphH0R4TfSA4cCWgUulI51zAmrzpvJwwS19VYNr/7OPiGXX 7W6L3OR0CngkrvtlAKIDRJIQ6/VMuCILeD6KNn5or7dGxBE+p9yXFrFo0u3QgmpyQfZ+ WrzZxnCLzFcugf4MlM4q752fMwWMmxL4/oNO9/gzRXvU94avyyS77smuDjRvgUM/nOhh tDtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=yTj3v5b/T8fx5kMDAJroBSUFDjNBSAXDUnSVT8FEMlY=; fh=8TsU57QaQ7Q+6vhHYjb3o5BqCiE7wETAaNU7imQTtOY=; b=odYLFBBEuvISL+MjHLlZUsEoi5Ae6SGHjoic3rwx5q1ES6wkkX3FcoRvXa7R4Gt6cq dWRJ2DB+ACo4qkyscghEd/TkEOTGCyqQjt1eY66umXOK92CRAZ4EPJsRV1o6jtssYxE1 79HwH3KMLUn8U/DSlSz5fGmXn2oqZEiEQbwBU1TD03yvLvtuHr3jRbP4aRvrHrdKB7z4 hUk5kJL9uFS8G4MuvyYcaXrSWC0IJk3tFmT0tFFaTu48qzF4EprIfUOwwozQ+y1G96KG xNmL8NF91mu4yBJCCEHQNWGEOI+ELMoE9UT8v0niuEAzI8L2wOTBUOKTln4a22laXVT3 gvtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f28jKzVo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cf13-20020a170906b2cd00b0098e4aef078esi2060547ejb.778.2023.07.11.07.44.32; Tue, 11 Jul 2023 07:44:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f28jKzVo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233039AbjGKOfp (ORCPT + 99 others); Tue, 11 Jul 2023 10:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232359AbjGKOfm (ORCPT ); Tue, 11 Jul 2023 10:35:42 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B28A91715 for ; Tue, 11 Jul 2023 07:35:21 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b5c2433134so72418511fa.0 for ; Tue, 11 Jul 2023 07:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689086118; x=1691678118; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=yTj3v5b/T8fx5kMDAJroBSUFDjNBSAXDUnSVT8FEMlY=; b=f28jKzVoqE61/ysNWJIuTqe4Xo109EAmC8uDia7HFkXUM46qHdbIhyb4FJDiMXwWoT 4pURB7RhBP3unj3DUSf3FcIis8ZoiGxBgDKf3DTOw5nshqoclYQ+SHwLvpp01Ix2W6nx WxgOtNq8Z/FevAWoZgKuMnNfSivH3/GEFSNtf8S3pWTvg3UrfYjk/x16REO3NT4TC/LJ l0s6Fylzy4o2cgdSSx/nWFGXPpWXDNOeGevK2bMqgiHOOR0+Pn4MXu7xrCwja/on5wa5 rSzlEC4IPoZjZx8SgGv3DHtyIbbvmeuT/zIpeTXDUiFFBJR5hswnxAqOl3nZDh33ie8A iaEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689086118; x=1691678118; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yTj3v5b/T8fx5kMDAJroBSUFDjNBSAXDUnSVT8FEMlY=; b=iTHzM0OeUGTDZR1oDF4gr/ZLy8IFI7WAL36UMVe2NcoDWx3XmaFAxQvhstkhZmaEC6 +EQJuSi09uOV8ykE016RhX80m9T8a4TIdkOKl2FhvvG8Sg5E+Q/SrF8U/PmGLtnjmBE8 GLiXjP1UzPTDWPC1G4jVsQKzjAqpMiElbXrPmSGTRaSjPvC3L6odttZQDoxr3zowDVRu Pn620QP+m1sXFwFWos/5zzs1ZgADnnhdBRQdvHQMVut0GZvcwLQ6fi9pSmWIb69eljeY J0g/rXlTd+uTkXIgT4cGyfmKBgXqwW9SUKTKOIFbV7vTb9wxkla3vfnlEvJ2hsvqJki7 prRg== X-Gm-Message-State: ABy/qLbiqOuORU5UCMGUIQFRQtQguujFSzB3vIt1Qc7lrHLhItXfFogz be15mzHJnIc8Bbh8ew/HWRhGHw== X-Received: by 2002:a05:651c:2d0:b0:2b6:b30f:5bf with SMTP id f16-20020a05651c02d000b002b6b30f05bfmr7797469ljo.13.1689086117999; Tue, 11 Jul 2023 07:35:17 -0700 (PDT) Received: from [192.168.1.101] (abyl96.neoplus.adsl.tpnet.pl. [83.9.31.96]) by smtp.gmail.com with ESMTPSA id o11-20020a2e90cb000000b002b71c128ea0sm484221ljg.117.2023.07.11.07.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 07:35:17 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Jul 2023 16:35:13 +0200 Subject: [PATCH 1/4] dt-bindings: interconnect: qcom,msm8998-bwmon: Add SM8250 bwmon instances MIME-Version: 1.0 Message-Id: <20230711-topic-sm638250_bwmon-v1-1-bd4bb96b0673@linaro.org> References: <20230711-topic-sm638250_bwmon-v1-0-bd4bb96b0673@linaro.org> In-Reply-To: <20230711-topic-sm638250_bwmon-v1-0-bd4bb96b0673@linaro.org> To: Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , Georgi Djakov , Rob Herring , Conor Dooley , 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.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1689086115; l=1231; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Mqr8aIJT7OZuMDiUt6qt7vmC8e4+0eA84eAoPkmAsQ0=; b=Pdrs+pvhJY/Lq+tgf8yLN+hoT2PFhKdwhUatRVatUnxk3FISdBGQShns4VZcj2l6rF2Wax2TP D0PtwBpplJuDgpniBlm/qwQqTH5hForQlhuyb8p86/MAPWOxZSC6762 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771135774224007686 X-GMAIL-MSGID: 1771135774224007686 SM8250 has a BWMONv5 for LLCC and a BWMONv4 for CPU. Document them. Signed-off-by: Konrad Dybcio Acked-by: Conor Dooley --- Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml index b63db9098345..51ba6490c951 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml @@ -29,12 +29,14 @@ properties: - qcom,sc7280-cpu-bwmon - qcom,sc8280xp-cpu-bwmon - qcom,sdm845-cpu-bwmon + - qcom,sm8250-cpu-bwmon - qcom,sm8550-cpu-bwmon - const: qcom,sdm845-bwmon # BWMON v4, unified register space - items: - enum: - qcom,sc7180-llcc-bwmon - qcom,sc8280xp-llcc-bwmon + - qcom,sm8250-llcc-bwmon - qcom,sm8550-llcc-bwmon - const: qcom,sc7280-llcc-bwmon - const: qcom,sc7280-llcc-bwmon # BWMON v5 From patchwork Tue Jul 11 14:35:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 118597 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp536493vqm; Tue, 11 Jul 2023 07:53:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlEkZEZXqgC7kkzllW8TTiachDld/nrdyam/tanRHXkZN4R8Ajnptcn3oJa7uek8nu9ke8rG X-Received: by 2002:a17:902:ea0b:b0:1b8:abe7:5a80 with SMTP id s11-20020a170902ea0b00b001b8abe75a80mr19416259plg.40.1689087228838; Tue, 11 Jul 2023 07:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689087228; cv=none; d=google.com; s=arc-20160816; b=nSW6tmLqw4aWTUGPZUacD8PZE7D7z/N97qDZCw7exUuvcE6j27N6IhLx0PuV1JneRp Wg1JtpUg5T+sGc1vF5AMQ/2OwaT8u3o+IrsWXBb/6NYUscG/mg2byfNLTNPl7mHBkiQk JnRF/QvuZ5GVrEIkDRvlk06n/8pJYjSMNj2OwPQ5giKsNECW9dbG5uTaxLA4xAbIaUeO ajvy7PCPlepChTphxsMi7NSgqjlmfNBmcFDevY74MvOj44+lZCZzY5Q7uD6KTBsQVYcx PEtKcOPdmps56dSND2jnN1oqLF7AQOW3vziYjfoxImcUqLtfCombp2j+s5OucHitQp1H UjzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Oyco5JDx037j3CC/5Ihu7xd9SFL7i1B5RPFit6DU5NA=; fh=8TsU57QaQ7Q+6vhHYjb3o5BqCiE7wETAaNU7imQTtOY=; b=MZUMxvQ0vsH5Xmqs5mcnSrxLhEMP9AKnWzmYeTllkiJG4KMB9rI3qtliLxoawZj8vW yeEusJdg04Nr1WkWEgloi0QoleR78pe35EzZ/VrNI/XB9787J2UZ+liumA2/oGAM6dRN JOzaY3Ix19jzkP0SbxWf+ao0clPJu0n3E1lfaeun6PX2q0qAO8s3fxQ2MegLddTCVTPw XkCL1kx8e9b+lUB+MEMNoOkEEMPD5DfIlRJo87Rp8R+BHHf3/yxw2t5nkEiYhNIZMsl6 dyFHF7ocejG2tkjKESG3qZLLI2a467Ltu50jyzjP7AD4pFEmd0xP2L3IwcR14wtaoeQq cNWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w23R4XLZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12-20020a170903110c00b001b7fb114495si1683209plh.475.2023.07.11.07.53.35; Tue, 11 Jul 2023 07:53:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w23R4XLZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232124AbjGKOfu (ORCPT + 99 others); Tue, 11 Jul 2023 10:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbjGKOfo (ORCPT ); Tue, 11 Jul 2023 10:35:44 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 922551987 for ; Tue, 11 Jul 2023 07:35:22 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b6fdaf6eefso90363291fa.0 for ; Tue, 11 Jul 2023 07:35:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689086119; x=1691678119; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Oyco5JDx037j3CC/5Ihu7xd9SFL7i1B5RPFit6DU5NA=; b=w23R4XLZWoALYIhRhp+TogWJwABOEn2vt1cbkdZ2tGM9PHf4528vjlapChg8/xYAPt tCMP9c1NZ+Ro/pahFhbg6iIlrdHgeRj7HIwJksVEskQnIMoWVlMT1gmEChCnbODahxfa /DGRtrHzhG9JNGIG6PV4Gqsfj6h+T+wQWqsmCw02FQfOdgB4jU1SdNgb1rMJoEZIiriG GXEBlcgZUl17w/zrEDTfG73ff87Val3pFLoks29DV+UzjE8ODKUgP6dU8QMwsXm9bf02 eQ3DNvACQuEe0KUE2PMEwfPH15Yb2tvH/0Vpr/MkK4Rz3wmlZQPhzKMYrLDj5YqTH/FK R+HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689086119; x=1691678119; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Oyco5JDx037j3CC/5Ihu7xd9SFL7i1B5RPFit6DU5NA=; b=Em9hHyrsB/lm++icMrTEyKkTGmvLFirKxvj2oxtqaZOmPBEWsgOWS3NRnv78GiYz55 x4pQGfgPj1L486lsDAG1epwNwQWtomE4s/cGoof7v+vH2tmtK30TVqyWOrX8U3Kdyseo Leo6VJ+yEIcxEOgAYUf3r8FvO4NoEeBnHBl0EGMFA29Mp8ksXkMqBaXHBNI1RzfuuHAR Y8E7nRqZ/bKHVTTwQ57epDpPup2KC1/x7C/tHJWC0HTWP58dscSKNHLLTn1AAhpU91Wm K1WIwc38FfsbI1Jooj17jnBGP3tKjyj/fBCn28zeCCYhQzWVi1CgcLHMAv6R6o0fQmQ5 U1gg== X-Gm-Message-State: ABy/qLZoc67mwSHiqKom0RBd1McQoXebeup9BX2t0u2hSQeYwOYSGf+F V68OoQyY/7TF8enM0Q+8+O2CpA== X-Received: by 2002:a2e:8eca:0:b0:2b6:fa92:479e with SMTP id e10-20020a2e8eca000000b002b6fa92479emr14208937ljl.42.1689086119325; Tue, 11 Jul 2023 07:35:19 -0700 (PDT) Received: from [192.168.1.101] (abyl96.neoplus.adsl.tpnet.pl. [83.9.31.96]) by smtp.gmail.com with ESMTPSA id o11-20020a2e90cb000000b002b71c128ea0sm484221ljg.117.2023.07.11.07.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 07:35:18 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Jul 2023 16:35:14 +0200 Subject: [PATCH 2/4] dt-bindings: interconnect: qcom,msm8998-bwmon: Add SM6350 bwmon instances MIME-Version: 1.0 Message-Id: <20230711-topic-sm638250_bwmon-v1-2-bd4bb96b0673@linaro.org> References: <20230711-topic-sm638250_bwmon-v1-0-bd4bb96b0673@linaro.org> In-Reply-To: <20230711-topic-sm638250_bwmon-v1-0-bd4bb96b0673@linaro.org> To: Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , Georgi Djakov , Rob Herring , Conor Dooley , 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.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1689086115; l=1271; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=y8JreLdLXyJLqMWdu1OHC8XLto0h/XQOLRW3FKQUVDc=; b=TJkZnuVQFZcromYVHOBquze+DCg5ojW6C/LKh3G/LeyhIhmrHFfzWKs/5+qpl4uzyUR4QwoXf iz/D0silT+1Bfh+PBV4hINAYh4XsIK925W+Rrn4S8jOBTObnPbfPnNQ X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771136329847229543 X-GMAIL-MSGID: 1771136329847229543 SM6350 has a BWMONv4 for LLCC and a BWMONv5 for CPU. Document them. Signed-off-by: Konrad Dybcio Acked-by: Conor Dooley --- Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml index 51ba6490c951..73f809cdb783 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml @@ -29,6 +29,7 @@ properties: - qcom,sc7280-cpu-bwmon - qcom,sc8280xp-cpu-bwmon - qcom,sdm845-cpu-bwmon + - qcom,sm6350-llcc-bwmon - qcom,sm8250-cpu-bwmon - qcom,sm8550-cpu-bwmon - const: qcom,sdm845-bwmon # BWMON v4, unified register space @@ -36,6 +37,7 @@ properties: - enum: - qcom,sc7180-llcc-bwmon - qcom,sc8280xp-llcc-bwmon + - qcom,sm6350-cpu-bwmon - qcom,sm8250-llcc-bwmon - qcom,sm8550-llcc-bwmon - const: qcom,sc7280-llcc-bwmon From patchwork Tue Jul 11 14:35:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 118594 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp535576vqm; Tue, 11 Jul 2023 07:52:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlHg6vw5rQLgVpmZUzxMV2cyNBwB1FWPSBXAs8Au+cKQsjA4oDyylyH4aYy2zdB0znDkrh8D X-Received: by 2002:a17:903:234e:b0:1b8:9bd4:297 with SMTP id c14-20020a170903234e00b001b89bd40297mr13600955plh.15.1689087137318; Tue, 11 Jul 2023 07:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689087137; cv=none; d=google.com; s=arc-20160816; b=IFtAn5O274xQRlUan4NMlM1cPBlZ+7ipSYGW7CCxB1C1pjmdti3weT6/H1wddgaQUj V3US9O5eS6yKmefM5TvOb5GEnL95QnUl637Fmrcwt8SpAAW6Mhr1/pzFrQCkThxHJOD6 afxElL9o+4pL4M9YU4kdw0l9XFb31T3NtGDntnL7r0niQiV1PMoL+mo2pRlX2pZ92bqB z3K3k/wD8mLW5leY5kqG6aEfcT6Ko4LUNR8WEJzm39bCIWTCSEQtSM7pCPKxRYIrkoQd pgNUdh3yy3DGtPpRmibof9XC5JlDTPkRDcLToYUg4pg8dwMv9p/ypk2gtx5XmP0nEr03 /OWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=7822Zli8Tp5k/SZN6d8OwvrpyzkoEFi3QjuAaZmR3SA=; fh=8TsU57QaQ7Q+6vhHYjb3o5BqCiE7wETAaNU7imQTtOY=; b=HfKjLALiDeYyOTmRQL+X6vxu2GPJsYcWuP7YMNHE9EZlvXTiGv+hZ6Q7zIVKgoeo3k 5FPSuM4eOFDz0K+Bi8N+/MfDsumPP52k5BRskoI/4n1GTg2ulqsorVLdxnkmL9vKtALN Ul2R7cliZwex4DKF4a0DSOUIW0fUMKpynkmtimw7o1LKrq/T/omALY3Z4ZW/uPSsJ74W QEfoInZg9EP6sQQlKr1I965sJEyPyZyPLTNxY9fgVe2GbMZVe5VNMvbTmr3W9d2QK2vP 2dGO0FH/SoDMop9PsThuyQjIaVjBK1Uga3z/WwxaDUtb7dApnTWJXKTmajz5ZLDTrTpn 0/Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Huhm4XgN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ij8-20020a170902ab4800b001b89bcfb2c3si1634558plb.162.2023.07.11.07.52.05; Tue, 11 Jul 2023 07:52:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Huhm4XgN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231960AbjGKOfz (ORCPT + 99 others); Tue, 11 Jul 2023 10:35:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbjGKOfp (ORCPT ); Tue, 11 Jul 2023 10:35:45 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEBBE171C for ; Tue, 11 Jul 2023 07:35:23 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b6a084a34cso88573161fa.1 for ; Tue, 11 Jul 2023 07:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689086120; x=1691678120; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7822Zli8Tp5k/SZN6d8OwvrpyzkoEFi3QjuAaZmR3SA=; b=Huhm4XgNW75OEhw3a42sRrUuoix8e9mjt55v3QngBR/SLmqCP7J80/rmLfx8SeL7fn av2nBMZHP/qhsOPHwHKmW1YF1cYgu9nf7rHjPLTFLebfMGPAuR0ViIf7R/ske/uX9ZxN bLdemNdf6F1LMJduDvr0Vi/jQIhwLn+CsqiAe2PQeiyPv2CF0EJ+ycjMT0y9eDkRx914 +MpSoA1zYqOH2m+qdyZSBvOx6fk6zGngJ2n2ZEd+4HrWlkwyoBl5qAf9D2aHPp7mIm1N HQaL3naVoz67Iq0lE5TjTyRsPajiiLxQ7eCKeRoFxuBRwR10d/n2X+UBt+0utwSukcYV cNFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689086120; x=1691678120; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7822Zli8Tp5k/SZN6d8OwvrpyzkoEFi3QjuAaZmR3SA=; b=aSsjkksqbKVfVY9g71jelixyENSoPWzym8bxZFLnSoGxKFKe5/58aGtrbKdZnmS4Le 3mM9q7VHHvJJhskrn9TB8qtmXCi2h4FtuDAEMg40z7IH8ahL6sY7sHw2WU5Xgh7Fm7/l w+TxTDcSBo8ET3rJAxG3YOTZ6HH8HmgXNtDdMX66nHBNex0oSo5VBJMQa+cSZmMFj/di sqChMhzyV/z8Ty5WjR6po/6O+Xk+j8JJPuW5SCxiz/yt1jSteTpfdRrnAqESVR20JYvW wt4EVzKw6Xixv6IdNg36wDrVO/NYktzwnY4Gtq+YGCM1FMoSF5tU+UnXPnzOWbZz5MG2 DmxQ== X-Gm-Message-State: ABy/qLZ7QqWHu/IE1j8naNa5HzFW3cflo24w4q8vlkNw79AuUmYJAw4u RkRcLa8WPsUBWRqZkVRUfL8ebQ== X-Received: by 2002:a2e:b615:0:b0:2b6:a3a0:5f7 with SMTP id r21-20020a2eb615000000b002b6a3a005f7mr13241124ljn.9.1689086120586; Tue, 11 Jul 2023 07:35:20 -0700 (PDT) Received: from [192.168.1.101] (abyl96.neoplus.adsl.tpnet.pl. [83.9.31.96]) by smtp.gmail.com with ESMTPSA id o11-20020a2e90cb000000b002b71c128ea0sm484221ljg.117.2023.07.11.07.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 07:35:20 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Jul 2023 16:35:15 +0200 Subject: [PATCH 3/4] arm64: dts: qcom: sm8250: Add BWMONs MIME-Version: 1.0 Message-Id: <20230711-topic-sm638250_bwmon-v1-3-bd4bb96b0673@linaro.org> References: <20230711-topic-sm638250_bwmon-v1-0-bd4bb96b0673@linaro.org> In-Reply-To: <20230711-topic-sm638250_bwmon-v1-0-bd4bb96b0673@linaro.org> To: Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , Georgi Djakov , Rob Herring , Conor Dooley , 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.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1689086115; l=3475; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=AjSbQFowYEpEAVY6Ao5qGWn/ZAomBZOs9ZzqIelG35Y=; b=vewgiErH5HUNculf4ayVWQLYqVP3SzOhtfH/Uez+HWq49AESmrGxC4z6BnlRAK9IYaPJ5LNOC yFj42ej2mBAC1U2fHUUuaDD3aHylik3JYlO6804wl3j6/ko17hZE/do X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771136234277178019 X-GMAIL-MSGID: 1771136234277178019 Add the CPU and LLC BWMONs (skip the NPU ones for now) on sm8250. LPDDR4X levels are skipped, as LPDDR5 seems more popular with SM8250 and voting for inexistent levels doesn't uptick the bus frequency, which results in no increased bandwidth, which results in bwmon deciding we shouldn't go higher.. you see the point! Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 122 +++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index e03007e23e91..80abd0bdc526 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3694,6 +3694,128 @@ opp-202000000 { }; }; + pmu@9091000 { + compatible = "qcom,sm8250-llcc-bwmon", "qcom,sc7280-llcc-bwmon"; + reg = <0 0x09091000 0 0x1000>; + + interrupts = ; + + interconnects = <&mc_virt MASTER_LLCC 3 &mc_virt SLAVE_EBI_CH0 3>; + + operating-points-v2 = <&llcc_bwmon_opp_table>; + + llcc_bwmon_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-800000 { + opp-peak-kBps = <(200 * 4 * 1000)>; + }; + + opp-1200000 { + opp-peak-kBps = <(300 * 4 * 1000)>; + }; + + opp-1804000 { + opp-peak-kBps = <(451 * 4 * 1000)>; + }; + + opp-2188000 { + opp-peak-kBps = <(547 * 4 * 1000)>; + }; + + opp-2724000 { + opp-peak-kBps = <(681 * 4 * 1000)>; + }; + + opp-3072000 { + opp-peak-kBps = <(768 * 4 * 1000)>; + }; + + opp-4068000 { + opp-peak-kBps = <(1017 * 4 * 1000)>; + }; + + /* 1353 MHz, LPDDR4X */ + + opp-6220000 { + opp-peak-kBps = <(1555 * 4 * 1000)>; + }; + + opp-7216000 { + opp-peak-kBps = <(1804 * 4 * 1000)>; + }; + + opp-8368000 { + opp-peak-kBps = <(2092 * 4 * 1000)>; + }; + + /* LPDDR5 */ + opp-10944000 { + opp-peak-kBps = <(2736 * 4 * 1000)>; + }; + }; + }; + + pmu@90b6400 { + compatible = "qcom,sm8250-cpu-bwmon", "qcom,sdm845-bwmon"; + reg = <0 0x090b6400 0 0x600>; + + interrupts = ; + + interconnects = <&gem_noc MASTER_AMPSS_M0 3 &gem_noc SLAVE_LLCC 3>; + operating-points-v2 = <&cpu_bwmon_opp_table>; + + cpu_bwmon_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-800000 { + opp-peak-kBps = <(200 * 4 * 1000)>; + }; + + opp-1804000 { + opp-peak-kBps = <(451 * 4 * 1000)>; + }; + + opp-2188000 { + opp-peak-kBps = <(547 * 4 * 1000)>; + }; + + opp-2724000 { + opp-peak-kBps = <(681 * 4 * 1000)>; + }; + + opp-3072000 { + opp-peak-kBps = <(768 * 4 * 1000)>; + }; + + /* 1017MHz, 1353 MHz, LPDDR4X */ + + opp-6220000 { + opp-peak-kBps = <(1555 * 4 * 1000)>; + }; + + opp-6832000 { + opp-peak-kBps = <(1708 * 4 * 1000)>; + }; + + opp-8368000 { + opp-peak-kBps = <(2092 * 4 * 1000)>; + }; + + /* 2133MHz, LPDDR4X */ + + /* LPDDR5 */ + opp-10944000 { + opp-peak-kBps = <(2736 * 4 * 1000)>; + }; + + /* LPDDR5 */ + opp-12784000 { + opp-peak-kBps = <(3196 * 4 * 1000)>; + }; + }; + }; + dc_noc: interconnect@90c0000 { compatible = "qcom,sm8250-dc-noc"; reg = <0 0x090c0000 0 0x4200>; From patchwork Tue Jul 11 14:35:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 118589 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp530803vqm; Tue, 11 Jul 2023 07:44:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlEIIcNwKO4ZJ69MNU8j5JsVYK3lmd2zbGNcnzi7TMnX0j0QzU1AGna80X8UlyRPivJ9mX5u X-Received: by 2002:a05:6402:3493:b0:51e:48e7:72ca with SMTP id v19-20020a056402349300b0051e48e772camr14819777edc.13.1689086659863; Tue, 11 Jul 2023 07:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689086659; cv=none; d=google.com; s=arc-20160816; b=xSbbzABEnvjZfASM2ueG8IXX0RsbtxJkHHkgJ5hPCnM2WzM6p5g+sWyc2hdRCmfDkF Zjm5xUhhp2X3v+2pfqkPvTg3s/ZZP858jKsZCqb1qFVdDhgRB9t9DxR9zewoKYuq+VkW xOk2VCZd/mpWAD3LC+8pfBGb8907dK4mYXj2MZtnMtnb0gFOkQn8NjIykYQ2AJWXegFk pYpDCQx46gQ6Zv4mq5RNk3HAHzcoetGuVg+dsYQHRSl/YBmodOFTqXcL3ZynMQKXBHVo dFqf9I/uTGW0mkKwgOQUrmZVdMxVrbZnJ02ior6h4H4MKzjP/nE348M8m8J0sFEG6bhU frtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=WsIqWYC9/diWISQr1ELVqdM7UPfiMlya6fflWvKUqUc=; fh=8TsU57QaQ7Q+6vhHYjb3o5BqCiE7wETAaNU7imQTtOY=; b=Bjvl2GJ/ZsPQU5MNgcoR/adZI+O8qoHnFvzZNcvq1QXTf4LhOWkI89MVGFWEy5xich HjcMxSdEHVFerxEqJhZDB4P01/wuKyAIm2fSJbcTUkSq6yPjA6lPEix7U6g7OM7YJt4p A6adHloAAOgDWTFj62jIHM9cai228eFqocvJbikmXcQHR3s+W7dsxx7j1aDeBHsKL6LQ roadDddnyA0yGCDeR0F4rvgX3vGHCB0c2jKsmXoYn2BQYRF4YCIR/DjbYc6lqL8JzR4Y /tHsXf5CC228wKWqepg92evtEZg0v61ockqTU8q+aDY4ATbT2lmulYnsUmBvSNVF5P22 sTwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C9HzQSY7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q22-20020aa7da96000000b0051dd591ac1dsi2175404eds.162.2023.07.11.07.43.56; Tue, 11 Jul 2023 07:44:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C9HzQSY7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233484AbjGKOgF (ORCPT + 99 others); Tue, 11 Jul 2023 10:36:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233417AbjGKOf4 (ORCPT ); Tue, 11 Jul 2023 10:35:56 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D90E1739 for ; Tue, 11 Jul 2023 07:35:28 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4fb7373dd35so8598323e87.1 for ; Tue, 11 Jul 2023 07:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689086122; x=1691678122; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=WsIqWYC9/diWISQr1ELVqdM7UPfiMlya6fflWvKUqUc=; b=C9HzQSY7qbYF7DQrVuV45BdThQ1q7mr6ajP4SxckGWTD0eWJ+QSt+I0Fv/eEFc8XVe VW9bt2f04Bcim7GKBHcXOEevpWjaqZa8X8vhAGaIlARtDX55Ac7XRpHXqCMbO9wnO3jq o8w8l6Vmabu9PBVWHH7DaIvIyZ96KwN3fKG35lccrxL2LZKuonKvrZ12wPxpzMjrMzM1 SQfPLL+3DhtimYBTWJO4qOT/LcwFWYXUjOA1pru7wtc7Wn9Qx1ktPHgpqaSR1MxzDvR+ sFTDcTfIaggOYegxgW8fsa05dIwLR1i1dMZ92GicSU8vKbQWBF24y6gpvNdEJBhMPjMO dW0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689086122; x=1691678122; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WsIqWYC9/diWISQr1ELVqdM7UPfiMlya6fflWvKUqUc=; b=OLO2I3nUlk+1S2UAuWNvjobz0AqILunhrcyteClrKMThW4X+qb54i35ME/vLv1Oxsk Z5cXYZWZi3Z/6YtsZVfZ0yNyMpLPWwUmMbj6ZukEs4ba/d0ye9yXMSMm8Lax6vX3hlEm T+0GJxrXHZYBoQ/P6j+mDr6FtCKDimt8PumJ9YV5tVwr6LFq17stbO0rXNrTV7r2fgPv ylofAXILn8Wo6exy677REO1RotGvlILbdpkX7jL19IM3jE+Yn10RvjCirYL9myFjocSL dIJOcaPhal1LKhsy1rSkmdR28C15NvbpWjGECYuU1h/1L0ioJAKzJwOxBx3sl8/rtuKE FF1w== X-Gm-Message-State: ABy/qLanhTlo8qZwuNWseB7PN3HPrxdzTN+0iYg539iPZedsRm0AQW35 pNgLkIOPTDnWElhur/0RA5K7zC7yPpF6OJo62UZgbA== X-Received: by 2002:a2e:7c1a:0:b0:2b6:f85a:20af with SMTP id x26-20020a2e7c1a000000b002b6f85a20afmr6512049ljc.4.1689086121846; Tue, 11 Jul 2023 07:35:21 -0700 (PDT) Received: from [192.168.1.101] (abyl96.neoplus.adsl.tpnet.pl. [83.9.31.96]) by smtp.gmail.com with ESMTPSA id o11-20020a2e90cb000000b002b71c128ea0sm484221ljg.117.2023.07.11.07.35.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 07:35:21 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Jul 2023 16:35:16 +0200 Subject: [PATCH 4/4] arm64: dts: qcom: sm6350: Add BWMONs MIME-Version: 1.0 Message-Id: <20230711-topic-sm638250_bwmon-v1-4-bd4bb96b0673@linaro.org> References: <20230711-topic-sm638250_bwmon-v1-0-bd4bb96b0673@linaro.org> In-Reply-To: <20230711-topic-sm638250_bwmon-v1-0-bd4bb96b0673@linaro.org> To: Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , Georgi Djakov , Rob Herring , Conor Dooley , 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.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1689086115; l=2717; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=0XE3+DwbePvBDrBAILTBPGuFKg1IJ0tvtE/4fmfHL3g=; b=Q1Ph6t4Tb0bPztBcT/QeOqbjmwx1KKiJJz4quBT8sWaMCl4zkOn81Q9Au3JxmbebyjiRSxBFU LwH7Ic5riwzA7p80kIXPOIMHQUT3c1Gcop6wzfXssnCfhrH1P3LjOao X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771135733561787206 X-GMAIL-MSGID: 1771135733561787206 Add the CPU and LLC BWMONs (skip the NPU ones for now) on sm6350. There are 3 more NPU BWMONs, but these are skipped for now. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 97 ++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index c2b5d56ba242..8f66306d1de3 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -1723,6 +1723,103 @@ npu_noc: interconnect@9990000 { qcom,bcm-voters = <&apps_bcm_voter>; }; + pmu@90b6300 { + compatible = "qcom,sm6350-llcc-bwmon", "qcom,sdm845-bwmon"; + reg = <0x0 0x090b6300 0x0 0x600>; + interrupts = ; + + operating-points-v2 = <&llcc_bwmon_opp_table>; + interconnects = <&clk_virt MASTER_LLCC QCOM_ICC_TAG_ACTIVE_ONLY + &clk_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ACTIVE_ONLY>; + + llcc_bwmon_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-0 { + opp-peak-kBps = <2288000>; + }; + + opp-1 { + opp-peak-kBps = <4577000>; + }; + + opp-2 { + opp-peak-kBps = <7110000>; + }; + + opp-3 { + opp-peak-kBps = <9155000>; + }; + + opp-4 { + opp-peak-kBps = <12298000>; + }; + + opp-5 { + opp-peak-kBps = <14236000>; + }; + + }; + }; + + pmu@90cd000 { + compatible = "qcom,sm6350-cpu-bwmon", "qcom,sc7280-llcc-bwmon"; + reg = <0x0 0x090cd000 0x0 0x1000>; + interrupts = ; + + operating-points-v2 = <&cpu_bwmon_opp_table>; + interconnects = <&gem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ACTIVE_ONLY + &clk_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ACTIVE_ONLY>; + + cpu_bwmon_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-0 { + opp-peak-kBps = <762000>; + }; + + opp-1 { + opp-peak-kBps = <1144000>; + }; + + opp-2 { + opp-peak-kBps = <1720000>; + }; + + opp-3 { + opp-peak-kBps = <2086000>; + }; + + opp-4 { + opp-peak-kBps = <2597000>; + }; + + opp-5 { + opp-peak-kBps = <2929000>; + }; + + opp-6 { + opp-peak-kBps = <3879000>; + }; + + opp-7 { + opp-peak-kBps = <5161000>; + }; + + opp-8 { + opp-peak-kBps = <5931000>; + }; + + opp-9 { + opp-peak-kBps = <6881000>; + }; + + opp-10 { + opp-peak-kBps = <7980000>; + }; + }; + }; + usb_1: usb@a6f8800 { compatible = "qcom,sm6350-dwc3", "qcom,dwc3"; reg = <0 0x0a6f8800 0 0x400>;