Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4751013iog; Wed, 22 Jun 2022 05:16:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1trBWvZ848s9GUXwUMIffPUo53yOJN/CMJv48uREXWnm12ynO4/FqxFUVssnX5RPODYpbBC X-Received: by 2002:a17:906:a45a:b0:711:d546:478f with SMTP id cb26-20020a170906a45a00b00711d546478fmr2741579ejb.741.1655900213478; Wed, 22 Jun 2022 05:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655900213; cv=none; d=google.com; s=arc-20160816; b=FoqaOOIPG+F0ovyPti+0MinotZkwyxs2YRmZiK9K7xblwdwe/pQ39n5JaZscogsTXm JfnFhtXO66QaWoXxzsdlJNvicfmyb7UOb1alk9CfDE6g1lEJ1DigLmKOatm1nT1B4bjK GZEvSpae/LSMgiZmhlSyF1qK5GPqM5B7qm6iW2W4yJgsIzIDxSIbJ4u5f6FISOeNoPbt +x80R/R69G1Jz2PVd99T+E9XqHnZWmuwctxRdK+68z1TkeQwCYlOdJCcOdKfvC2eemwP eswRIWhYIyKU8Q9rlPr1zBVryYqeHUvF+GGr116jA9w+w8ZowgtRjJt10HAYVgVqSPQq Vbfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Lr/u0iIly9juJsCDQg+gxnesL/0/rlagsE/GYqfpsMc=; b=bDbV58Tep1pyMNTDZN6Ht4WweJEC44NpfVnpEjUpq5Hap2SQMPgK0CyyGQ065gbaGl MGvd1tDuwpNKPV0Aq95xFimgjS8x6wCp7WJWk8kYx7k+AVcOmFmXAvCy3BFw51g4p4zJ Q4VtvRfK46OHcy05xppm2HXhLYnOi8qm6y9yl57tH2oYRmo/aFnkxORgojZGsd6wS7Qz F9BJulk90n3cLUTOWI+QuZDSHAi8JWk/NM4PlsqAWagEwEeSI3A2kRfd9LquygtBuFU8 63ef2YPx4s1ZACqWcy9TKPO3/iMnhZr7ZnaSiIUJo2OT4MYaG0ADCGpVsJWqNSOOUl/O CTbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=T+mQC6HE; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a05640250ca00b00435201d9705si2506400edb.602.2022.06.22.05.16.23; Wed, 22 Jun 2022 05:16:53 -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=@quicinc.com header.s=qcdkim header.b=T+mQC6HE; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357550AbiFVL7N (ORCPT + 99 others); Wed, 22 Jun 2022 07:59:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357169AbiFVL7K (ORCPT ); Wed, 22 Jun 2022 07:59:10 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FF493CA78; Wed, 22 Jun 2022 04:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655899141; x=1687435141; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Lr/u0iIly9juJsCDQg+gxnesL/0/rlagsE/GYqfpsMc=; b=T+mQC6HE23MT/O0WIJxVN4BLWaQJrsdcQ2VO32CvKIPJlpbgTefpLdB4 MuB36VEv2fy5WUqDDBVnmKzFqlgav/BWEz8p6dnqd33Z3dZ/0mW3cvrO0 JLR7Xzft2vkRpyCL3jP+FYWYZsUH2A/TBsaxCsrcjgi001/9mUWlLVE64 k=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-01.qualcomm.com with ESMTP; 22 Jun 2022 04:59:01 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 04:59:00 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 22 Jun 2022 04:59:00 -0700 Received: from [10.216.32.54] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 22 Jun 2022 04:58:54 -0700 Message-ID: Date: Wed, 22 Jun 2022 17:28:50 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v4 1/4] dt-bindings: interconnect: qcom,sdm845-cpu-bwmon: add BWMON device Content-Language: en-US To: Krzysztof Kozlowski , Bjorn Andersson CC: Andy Gross , Georgi Djakov , "Rob Herring" , Catalin Marinas , "Will Deacon" , , , , , , "Rob Herring" References: <20220601101140.170504-1-krzysztof.kozlowski@linaro.org> <20220601101140.170504-2-krzysztof.kozlowski@linaro.org> <3e4e504c-5a38-43cd-ea8d-afbbb72eacad@linaro.org> From: Rajendra Nayak In-Reply-To: <3e4e504c-5a38-43cd-ea8d-afbbb72eacad@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 6/7/2022 12:20 PM, Krzysztof Kozlowski wrote: > On 06/06/2022 23:11, Bjorn Andersson wrote: >> On Wed 01 Jun 03:11 PDT 2022, Krzysztof Kozlowski wrote: >> >>> Add bindings for the Qualcomm Bandwidth Monitor device providing >>> performance data on interconnects. The bindings describe only BWMON >>> version 4, e.g. the instance on SDM845 between CPU and Last Level Cache >>> Controller. >>> >>> Signed-off-by: Krzysztof Kozlowski >>> Reviewed-by: Rob Herring >>> Acked-by: Georgi Djakov >>> --- >>> .../interconnect/qcom,sdm845-cpu-bwmon.yaml | 97 +++++++++++++++++++ >>> 1 file changed, 97 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sdm845-cpu-bwmon.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,sdm845-cpu-bwmon.yaml b/Documentation/devicetree/bindings/interconnect/qcom,sdm845-cpu-bwmon.yaml >>> new file mode 100644 >>> index 000000000000..8c82e06ee432 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/interconnect/qcom,sdm845-cpu-bwmon.yaml >>> @@ -0,0 +1,97 @@ >>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/interconnect/qcom,sdm845-cpu-bwmon.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Qualcomm Interconnect Bandwidth Monitor >>> + >>> +maintainers: >>> + - Krzysztof Kozlowski >>> + >>> +description: >>> + Bandwidth Monitor measures current throughput on buses between various NoC >>> + fabrics and provides information when it crosses configured thresholds. >>> + >>> +properties: >>> + compatible: >>> + enum: >>> + - qcom,sdm845-cpu-bwmon # BWMON v4 >> >> It seems the thing that's called bwmon v4 is compatible with a number of >> different platforms, should we add a generic compatible to the binding >> as well, to avoid having to update the implementation for each SoC? >> >> (I.e. "qcom,sdm845-cpu-bwmon", "qcom,bwmon-v4") it seems pretty useful to have the "qcom,bwmon-v4" and "qcom,bwmon-v5" compatibles, I tried these patches on a sc7280 device which has a bwmon4 between the cpu and caches (and also has a bwmon5 between the caches and DDR) and the driver works with zero changes. > > I am hesitant. I could not find BWMON IP block versioning in the > Qualcomm docs. Only the downstream sources had it. Therefore I think it > is more applicable to use this one as fallback for other boards, e.g.: > > "qcom,sdm660-cpu-bwmon", "qcom,sdm845-cpu-bwmon" > (even if the number is a bit odd - newer comes as last compatible). > > What's your preference? > > Best regards, > Krzysztof