From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1699DC433EF for ; Wed, 22 Jun 2022 12:21:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Zku7+VQwfsxwlLWV/FBImscKY8d03NBxepyOgHQxqmM=; b=0a0qiSr964qRHB 2j9exaRsiSvkvQV4VIirtvHDNB6NDPsTS/gZEXVsxQXZfzyk75eGeQom+wVYyjvRyn1sx9FCK3VL1 t4TI0NwoijYSmKugQZzmOxc/wrC8h2pfipc86A1Y19qyCCYyxkXDN6ORXcrUjT2VjwVBmekVM3zlB qiilL2bAobV2i+LTzAyEskMbj0Q7zULpGUT0ZHPBjVKJiryU0DA8qbpC8j1T9l0HHco4UhFjQg+q4 MwjjUARZxNeQj0/4PxPajF7PsnHrvFn2Bur1OAHQUVA1kYZbwGuApngxcvh/Zdwv5L/NPFdyj7DV1 cMTm8kfv1069UiX9OT0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3zLW-00AKHh-Cw; Wed, 22 Jun 2022 12:20:34 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3zLT-00AKGl-1D for linux-arm-kernel@lists.infradead.org; Wed, 22 Jun 2022 12:20:32 +0000 Received: by mail-ej1-x630.google.com with SMTP id mf9so13505411ejb.0 for ; Wed, 22 Jun 2022 05:20:27 -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=YqZl55YlnzKJuZvnAvOYUqgqzVWeklNXo8K4BWb79NY=; b=K+vUm9h4zeZ2BY+AkhsLxdTYyhJwqnMXqQq77ZRQfWdtzXQwazdV7BvakFNKvQJxGb YbZqFHNUdhLZ5rkfeG9GzWzmy0i05jF+yiQg8vU/hKgJvaCCmROqzo1ePUT0nW3nKGUb awSUdhmwMFCXKWFnTe0GlnC6o/TV/UIx84e8QJEZjXf+qSo/JH9yEfluwL4JpjwyP6lJ C3v6aS4CbXAKHBZ3u0eWXDUTiz5mZLZLDle3Ex5Cr41wSJ3Ouze7STBZxmb+C++WIMaz YkGxZucrMsZHESuItdlF4xdJ5T7GkNi5dtvrDtaLfu+1DR9q6wJLUUJbdkozGT3mKCLX mILg== 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=YqZl55YlnzKJuZvnAvOYUqgqzVWeklNXo8K4BWb79NY=; b=PYvY2cwg6MX6A6GkismV/nmqWUZSFBEqvaeSzmlDPK1K+hLxYCQRPf4fpF+CzuehB1 GuPxRu39+k7FA/UtRXcLFE2pDhcrIw9OlsRV3R6W7wnYS5wCV1Kv0ua1YCLb8QU0vyd/ MicQRI0A5wZAKemH8qli/YuBG3UOaopALmUiyd9G0oyAjUVjNH4Z6UH+2PjZDK4Jejs9 Xxob3pfJEjloDs4cSIPuUM7S5bCD87p/hkUgdqW6YBMu75mL9Tb1caZKoB0xA0rZsUEW tvBqk5kMGIjRjgo6pr1JBDKA8O8PNK0HHxu0GsTeBMy+lsvGlymz+wsAiHSziVnpB5e+ zx+g== X-Gm-Message-State: AJIora+NBRQn3ENKb8HJca4INWern6jGaZx98IsnScTZnsTqbriPQxE1 H8fxyoLPqH90lA4GJc0LOZlF7g== X-Google-Smtp-Source: AGRyM1tRaVprGVLQKE51VKBB6prua/fQyAH18plkrLguHseuDTTg9AZY0HC40TSxd49AsE/GzfvZTQ== X-Received: by 2002:a17:907:d0d:b0:711:d554:1c8f with SMTP id gn13-20020a1709070d0d00b00711d5541c8fmr2878279ejc.223.1655900426586; Wed, 22 Jun 2022 05:20:26 -0700 (PDT) Received: from [192.168.0.224] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id p6-20020a17090653c600b00722e0b1fa8esm3077762ejo.164.2022.06.22.05.20.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jun 2022 05:20:25 -0700 (PDT) Message-ID: Date: Wed, 22 Jun 2022 14:20:24 +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: Rajendra Nayak , 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> <3e4e504c-5a38-43cd-ea8d-afbbb72eacad@linaro.org> From: Krzysztof Kozlowski In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220622_052031_141141_B415E19C X-CRM114-Status: GOOD ( 20.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 22/06/2022 13:58, Rajendra Nayak wrote: > > > 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. The trouble with naming it v4 is that such versioning does not exist in documentation. At least I failed to find it. Neither there is clear mapping between SoC and block version. The only indication about BWMON versioning comes from downstream sources, which I find not enough to justify usage of versions for blocks. Therefore as per DT recommendation (which I am enforcing on others) I am not planning put there bwmon-v4. Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel