Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1144830rdb; Wed, 6 Dec 2023 09:42:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1YADkaHCU4g0z+Xbw+7nvftzvHR8ehlC5ZlHXxG10JoqDEFojde52Ui7FBsFo8d3KgfUc X-Received: by 2002:a17:902:e54a:b0:1d0:8388:3701 with SMTP id n10-20020a170902e54a00b001d083883701mr1382558plf.100.1701884576148; Wed, 06 Dec 2023 09:42:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701884576; cv=none; d=google.com; s=arc-20160816; b=zeWnnnVKNmKAOpVzsHi/1jAGe/s7PbNVVDun/+2jPjUwnBny6TUS2u7LR2u2YqNJXI 0VZmk69Ba5RJrpp26mjz610ak1fe3NmxIZkY8WhHcO2OgckK1MyDdXIwsV7HKnFf+5bG iLD22mUQeIMPkQ+JJy6wZvymfsvq3/gA8pid45DPPVrtd+qMN6w5slVENy55FNIub7RT zc0Ws1jN+HnHaOmuVvL9I+2toaFLNWYoAYLmENWPmCz5THcgN1TP6yCq/dauKgnX7bZc jfXHktp1dn+Kap3RCvNRGko1VP+ZBiJmBduav1zMJCB92Wg15kdna7FqH9q6tDa6f/mT Wgcg== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=xL6l/N6Q8ibIUwN32H6CRM/75jAc9m5uQ7LdoK0NFQ0=; fh=ez3zw9uAlysywFFCMhwptWHEcD06Ai1f2JchTm42t4k=; b=eucKpKIR1xknSLeYN/2JCDXZwjZZdymJyhK0rewI+cSDf0QrYLLx0v24P4nfu5Uvwz KoA3SVIFpuLOyCD89/SirJ3pJjPEeheas31Pw3CbBaW2zkfubGPZq4xjuC08m72k432a 1aKd+Sl+fZMXclP3CjWw1ejkZJOr2dkp6qZ8XF0WGY6Zx2Z5ON0PpgisZiRS9XzOSzlP aXLxZHGBUH4XgWde8N92KWByeDsOZbT4270Ew6j65V+TdLfC+id+womZKWbO32LEl8bc jykkD/yNW4L8e9fXjRYekGHoUcHyTBhq2MQVwOhE1t8KCcoDTRRn9lCYzHjPccRrYDYy e82g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oIj54mkE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id q3-20020a656843000000b005c2791fedb4si230033pgt.21.2023.12.06.09.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 09:42:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oIj54mkE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2BC6780292A0; Wed, 6 Dec 2023 09:42:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230193AbjLFRmb (ORCPT + 99 others); Wed, 6 Dec 2023 12:42:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbjLFRma (ORCPT ); Wed, 6 Dec 2023 12:42:30 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A001D42 for ; Wed, 6 Dec 2023 09:42:36 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40c25973988so415585e9.2 for ; Wed, 06 Dec 2023 09:42:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701884555; x=1702489355; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xL6l/N6Q8ibIUwN32H6CRM/75jAc9m5uQ7LdoK0NFQ0=; b=oIj54mkEzYhRHZgTbMbA0I8rJ3vEdGxdoQI2DdlWSHhuP29tXXCQyb91slQ3Eh+XiJ sA+mt/eSQflswEa7wdsYdpZ2BcxSwJ8BW3+1V8h0hK8cA86nvfsDv6N0m93uJWDMVRco bQzjsWQEk4rILJxTWMoYhIrgtgf3EQeNrWtxz96yHbqCCsKkUwHM+vWdF0dXJUrJ8Mfg e3Mw14xHlpmUb0ZPW0GUBJIibyHB4DvbjuG3vVqaTxG2AbLYysbCIiuS9jDNw5gMjuVR WgPQg4PNVJYmBtZo6N5BmKRIYDwTSDLcuFSRou3qe937uDyhK8veo1xc/cJhMMA/YxQk gnzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701884555; x=1702489355; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xL6l/N6Q8ibIUwN32H6CRM/75jAc9m5uQ7LdoK0NFQ0=; b=pEncDqXjvLjw2fWAj7uGAqlv3+AA1131+uyDL7EZcqGi8VzZ3fi2SxQ829CDFcUfvK 9PDK4XmqzhDUnsORRkT9UEvNpHVxjziLEiu1UvTMFmEI6WTHwGdhMwcijC2cojy8c7rT /B29IYJbnOtFuLCtYPo9K1OQyKVssJnIslUu3KdvYurOW7Iys8rg2wzAVKI+uA4DypWp rDvzIyIHqZzu0oWArQCK75/m3Ff1TkzeftmozZ5M86CPa63vlR/HPhl6MuZcZCWngS8l DP2ExeX5A/R+EpAHz8vylQ6PNhtmN4h7LzPJFR+aD8ckZrGRmIq1sL5FLqlHgfcm8KtS XSqw== X-Gm-Message-State: AOJu0Yx+t0LLvS4PEvTPqYuPb913EU7flVYdY3QBIne2Vxs+37u6N1z5 Z9plMAQsIprzLCEDDKED561dIMk7rx1D09zBbB8= X-Received: by 2002:a05:600c:3d88:b0:40c:6e8:610a with SMTP id bi8-20020a05600c3d8800b0040c06e8610amr843330wmb.56.1701884554705; Wed, 06 Dec 2023 09:42:34 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id h15-20020a1709062dcf00b00a0d672bfbb0sm213002eji.142.2023.12.06.09.42.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Dec 2023 09:42:34 -0800 (PST) Message-ID: <3fff866f-fbe8-4d23-87f3-275380adf3d4@linaro.org> Date: Wed, 6 Dec 2023 18:42:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/4] dt-bindings: memory: additional compatible strings for Broadcom DPFE Content-Language: en-US To: Florian Fainelli , Markus Mayer , Rob Herring , Conor Dooley Cc: Linux ARM Kernel List , Device Tree Mailing List , Linux Kernel Mailing List References: <20231205184741.3092376-1-mmayer@broadcom.com> <20231205184741.3092376-2-mmayer@broadcom.com> <42677f2d-190c-4043-a61d-8bfba581a764@broadcom.com> <5497447c-023b-4837-a5e2-b465ba2f624d@linaro.org> <25177e5c-880e-4c7b-8a72-2d908a970afb@bro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/ +HYjC/qfDxT7tjKXqBQEscVODaFicsUkjheOD4BfWEcVUqa+XdUEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <25177e5c-880e-4c7b-8a72-2d908a970afb@broadcom.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 09:42:52 -0800 (PST) On 06/12/2023 18:36, Florian Fainelli wrote: > On 12/6/23 09:29, Krzysztof Kozlowski wrote: >> On 06/12/2023 17:32, Florian Fainelli wrote: >>> >>> >>> On 12/6/2023 3:09 AM, Krzysztof Kozlowski wrote: >>>> On 05/12/2023 19:47, Markus Mayer wrote: >>>>> Add versioned compatible strings for Broadcom DPFE. These take the form >>>>> brcm,dpfe-cpu-v where is a number from 1 to 4. >>>>> >>>>> These API version related compatible strings are more specific than the >>>>> catch-all "brcm,dpfe-cpu" and more generic than chip-specific compatible >>>>> strings. >>>> >>>> None of this explains: Why? I don't see any point in this and commit >>>> does not explain. >>>> >>>>> >>>>> Signed-off-by: Markus Mayer >>>>> --- >>>>> .../bindings/memory-controllers/brcm,dpfe-cpu.yaml | 8 +++++++- >>>>> 1 file changed, 7 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml >>>>> index 08cbdcddfead..6dffa7b62baf 100644 >>>>> --- a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml >>>>> +++ b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml >>>>> @@ -16,6 +16,11 @@ properties: >>>>> - enum: >>>>> - brcm,bcm7271-dpfe-cpu >>>>> - brcm,bcm7268-dpfe-cpu >>>>> + - enum: >>>>> + - brcm,dpfe-cpu-v1 >>>>> + - brcm,dpfe-cpu-v2 >>>>> + - brcm,dpfe-cpu-v3 >>>>> + - brcm,dpfe-cpu-v4 >>>> >>>> No, that's just wrong. So you want to say bcm7271 is brcm,dpfe-cpu-v4? >>> >>> No as the example shows it "speaks" API v1. >> >> Example is not a binding. It does not matter except of validating the >> binding. This is just incorrect. >> >>> >>> I would be inclined to completely remove the chip specific compatible >>> strings from the binding because they are not sufficient or descriptive >>> enough to determine which API version is being spoken, since the >>> firmware is unfortunately allowed to change major APIs (and the >>> messaging format, because why not?) at a moments notice. >> >> Then versions do not give you anything more. > > The versions indicate exactly which API to be spoken to with the > firmware. The firmware API was not properly designed, it should have had > a way to indicate which API it has, regardless of the messaging format > it implements, but for reasons unknown that is not how it was implemented. > > Essentially we need to know right away and ahead of time which API to be > used, otherwise that means doing runtime detection like what patch 4 > does which you do not want to see. Yeah, I see, you explained this deeper in response to 3/4, which I read after this one. Deprecating specific compatibles makes sense. If you have subset of FW per given SoC, you could keep the specific compatible followed by subset of version-compatibles (e.g. bcm7271 + v1 + generic fallback). However then generic fallback is useless and you should actually drop it. The only, *ONLY* point of generic fallback is to be used by OS alone. In that case it cannot be used alone, so it is useless. We do not use generic compatibles in a way of "I want to call all of these devices a DPFE" or "I want to call it a default". Now, if you do not have subset of FW per given SoC, so anything can match with anything, then in one commit: 1. Deprecate specific compatible followed by useless generic fallback 2. Add versioned-compatibles alone, since generic fallback gives nothing. Best regards, Krzysztof