Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1738111iof; Tue, 7 Jun 2022 10:32:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnsR9avG05p6lkSzVN3R9fb5wMwK5d1074tyQHGW83aOjB5+kCpxmxxorqhTqC1EzDxaxJ X-Received: by 2002:a05:6402:4411:b0:42b:a773:4800 with SMTP id y17-20020a056402441100b0042ba7734800mr35430203eda.37.1654623168330; Tue, 07 Jun 2022 10:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654623168; cv=none; d=google.com; s=arc-20160816; b=AoZ1rBxaLoyuAcbeljol5P1RvFMOX9HWpjS/nSTlqmr/aYtZxjgRXKLzKYWbRJ5zq1 OXWKN8L8gEWG3lDMzCC60VSjwXsdCHx7AE/Ap7jrWcM0XWxWBYlnnqq59YhM0X57O5kc FFUTN9/KWZAYclYD+fd8o2KVfgvnDgqKEC5envA8e0QqjtXF/DOwFI7QvI3yyaw2c0MC BrCkoiIS1hQ6/paM158o36q2Fql8w5MT4pOQtvjMS9pwzkUORbpCtnpEmLlwsQ07K6Kc ZYZIy3U/eJB2Zh8mEGPaDNQY5Sl3TiFna6/QLrK2Wpe4aWYlPxZmr6vwORanLnOQtnn4 Kavw== 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=gcjA/D1N6F29apXrVNtiB7cxyQefIwUG0Piy77ZFa00=; b=evLq1vdNKRBQhnYY2YhX0qIAKph+85G0GmLa7JpybrCaTh8lM+GJm9dmRiQuV8pI7j XYrNlM6Z7XQht9ur5v6XSQxjBWOwvf8C1WmsgmD2RYU8xRxX08WjEX9kEofSGW+tEJmH VgqJM8w10lLPqATg/WYTo9y+1QcCPdO1zpXZAChwUlMsJvXSM4uVt2rkmfeOyZR1jxR0 /7aRCZnNfTZ/X5OmGV11/nVZvJvS6PRpGZoPJfXJVvtHaffeXwcMKWsqVEi3G0X1K5jW TddowADwemKUueLcscbGrlp9cCCPCQImcv0HB2aNEnBYylxbYNfJC2W1nxHBKHrV/JqW Lffw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e2qVNFqb; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020a508a82000000b0042dd7c5d240si2901050edj.277.2022.06.07.10.32.21; Tue, 07 Jun 2022 10:32: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=e2qVNFqb; 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 S231271AbiFGGuz (ORCPT + 99 others); Tue, 7 Jun 2022 02:50:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231219AbiFGGuy (ORCPT ); Tue, 7 Jun 2022 02:50:54 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D865DFD0D for ; Mon, 6 Jun 2022 23:50:52 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id fu3so31697020ejc.7 for ; Mon, 06 Jun 2022 23:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=gcjA/D1N6F29apXrVNtiB7cxyQefIwUG0Piy77ZFa00=; b=e2qVNFqbMue2rV7KpSz8oiizqGhv0jaDz+S7v3abMGbZ5xqQPVkya+z5RUS3itUo6A 1j6PkbqlIQuh/gY/koXNA12KXKqn5ULLSpkUSrxg4UuZ7LzSqtZgcgQIFF4CFMqc8s2z GE+4BgBFrSrqjJWANmEjSMXbibBF7EKTb7VwCj0Q2NIOG73uw6IsAYvCGSBBVLHGzo8A ArW+08xmfFtfzTns54FcKHsrtzPOadCFxTQUHTq9tjH90xSVvG5f65DozGw9VA/xMyAC wrePdthLVd1R17UCRUme4Qbxl34TmlRvUHzfD67qsktqJTfmZ2gaLX7rfAz9RE//gBnM WsTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=gcjA/D1N6F29apXrVNtiB7cxyQefIwUG0Piy77ZFa00=; b=FzpxZEE1t80ZKo3SbeJK2S365cvaZbWsGG2jfRZI8MEfELB5KjFtZytARnn/Llw3Ch nOUpl039AI32gNbNNrE5mUBBmYnzc454Qx3qIMlV8dgam9rzA11Y7gGxQZrEFuwUfVKR 0QlrmBvDV7AOhU4qnrZJPii+YNMWJto4vZQOqTeghoPdIEVBFJMqjuIsH0qmwVbCnIhL T4AH1YJAGBxXoZPEwDHqSi4Wsv92ohHfjB65SqOyGJYcPvx8oONcWQV/I84n0OHKQ7Oh aAq+Gz23gnywuglcnyfz3oWBYAZboPzHJZfQihRCH2oNc3hZqYyJ1jVAUqfn2C5q98n9 NVYw== X-Gm-Message-State: AOAM531cnQPBw2zmqSyvWN3MNKB6dLLBSTBTa/M6ULmz+oxtHu45bhHY 4mGr8A77jS8/Qn7pVDOvIl2EMzp7Ao1UmA== X-Received: by 2002:a17:907:c29:b0:704:fbb:1943 with SMTP id ga41-20020a1709070c2900b007040fbb1943mr25005900ejc.486.1654584650908; Mon, 06 Jun 2022 23:50:50 -0700 (PDT) Received: from [192.168.0.181] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id n24-20020aa7c698000000b0042bb229e81esm9694505edq.15.2022.06.06.23.50.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jun 2022 23:50:50 -0700 (PDT) Message-ID: <3e4e504c-5a38-43cd-ea8d-afbbb72eacad@linaro.org> Date: Tue, 7 Jun 2022 08:50:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v4 1/4] dt-bindings: interconnect: qcom,sdm845-cpu-bwmon: add BWMON device Content-Language: en-US To: Bjorn Andersson Cc: Andy Gross , Georgi Djakov , Rob Herring , Catalin Marinas , Will Deacon , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rob Herring References: <20220601101140.170504-1-krzysztof.kozlowski@linaro.org> <20220601101140.170504-2-krzysztof.kozlowski@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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") 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