Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp17284rwf; Thu, 6 Apr 2023 12:02:15 -0700 (PDT) X-Google-Smtp-Source: AKy350ZgtG/i3dhugs+QC4MZbldl4nkJfViAICrHPdJptgM3lVHACQRu9X9QDR9CpcZDdikRzHj+ X-Received: by 2002:aa7:cc06:0:b0:502:32ae:14fb with SMTP id q6-20020aa7cc06000000b0050232ae14fbmr491078edt.5.1680807735312; Thu, 06 Apr 2023 12:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680807735; cv=none; d=google.com; s=arc-20160816; b=004fku1XRyO/4IrlYZs0NfiSyTTixrbJuWfaasdmIdWkR+L18fZwpoFEdtokyTFJMH 6EuCtadpRbX1WWsxcCYg9VffBCcidioVTZY2LE4eHD3U7kcXZ/QK7nOqCM8ZlfkyvFld SPTJeHmNmFKORPKVtnUYgvHvcWX4kHsJNoBQQKQE8hXfdD9u30HpKIPToMzwprJ1Ce7o QpwJCUxxIrd20VoujXcYko7LZuSA5Po7cWrN+S+3l8Wyt2QfcP7FxYMtf7sg0IdETca4 cSoKg4H5XxTURWVcc/9lid3GhMvICcjv1zdrV/qqjedOudZb1GcrpxwP1+csJ5JLxeX/ IoCw== 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=GDe1sENHqqI/d/KCYB866ORqPLaZkKZCUTL+XlVCWbo=; b=e0sXSM/I/7Poqgx7FWTlrlSOex4RXP9683DLD8czsQg1FyJFda84gFOnKVSKCt+lhd CjDhGksSo6P7XnvARTou/lZgUcCucY4EFtZx3fYj0eJrq00hJbD4K+bc2MxRfiJa/0fV 2sNajmgttYdyapXxcQ+NGg51rAk2GILUQdQL7n7sr+Kr96YdQV+APngsSHftL3wgZrmi oNs38SQSN1rBzAGmq25OcYBq3cNISaxy2jnE11IxTiq/J1fAFhmYERbHMALFifEHzVzg qezzfWthEFKspoo6ZqJL36YLw4EsKofDCgnmXBWI+I5Y2pqFMsiCji5tjppVjx0qokGm YrMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GrEl3QNb; 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 i12-20020aa7dd0c000000b00501dd471e58si818226edv.37.2023.04.06.12.01.48; Thu, 06 Apr 2023 12:02:15 -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=GrEl3QNb; 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 S240179AbjDFSzQ (ORCPT + 99 others); Thu, 6 Apr 2023 14:55:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240137AbjDFSyy (ORCPT ); Thu, 6 Apr 2023 14:54:54 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5A5886A5 for ; Thu, 6 Apr 2023 11:54:52 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id 11so3714252ejw.0 for ; Thu, 06 Apr 2023 11:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680807291; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GDe1sENHqqI/d/KCYB866ORqPLaZkKZCUTL+XlVCWbo=; b=GrEl3QNbr2/uGDQCngerqAbT5bLfc3Oi/elT80KjhVGsTIWcS68iCzgd6AIdBIRERf HYUDsB+topW4/Q+7irLZP6nqRsXRYwNykBW5UCU0cX3MJ9y6K4jlTuo6yK++CkY8EFEi r6WEdLlqPwG2BzpizhLACUbmBY+M4CExpBqXKkSEHmRP1ABRTtCUlhZChB19NeUA7rCN qJ01j5LiaZHrnep3fdBdi/lPQkold1m+9vq7SU+odeUJ+lA2Otc/UZrSKHWKgqUYDXBW FNCjFb2F9euUCFsDc6lXIptHsFLlRxIoNkQ9WaF0ZBwyKe/5lgpSQX3IrNXvkKLnxw+z yk8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680807291; h=content-transfer-encoding:in-reply-to: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=GDe1sENHqqI/d/KCYB866ORqPLaZkKZCUTL+XlVCWbo=; b=cPQz+h/3PuIrc/nnyEMlO9Dh0alV62efBU+N/N/xw0NBnFW+5lXmW+v5ulSTnYsWj0 5jfQIqdisuauBIxC6B5N1cyXqZ46QtoaihmjCc+LWMfR4pkUSZ41Ya/Y//mTMpf8pkJl Q3tztjdOkjaUQFja+5NUY3zlpamfiOoRCy3mw1pKcOmsN7Q2YOrCCtpvfRUaw/JnSScT 5GihPuPajAHmdXP7ZtvB0Ewzeuh4jM0mkqKRkbbTaes5qqqstrfxS7FQ2JiG2WneUPGN HAcJ9LyUYSwy2gAZ9mwwRSDWEXuB1iNuBKvZycAORELjHhy9fFKqRIZSKI7Ebbc2b+64 XsXg== X-Gm-Message-State: AAQBX9f5IqNDd/AbiAERWDN6GZrG6IcuqDcC3VGkqh3YiN30UY4FcAqC eMdIgmRVOPguJfcCdDdMhHELpA== X-Received: by 2002:a17:906:2e86:b0:931:b4d3:fc7f with SMTP id o6-20020a1709062e8600b00931b4d3fc7fmr7688208eji.30.1680807291091; Thu, 06 Apr 2023 11:54:51 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:49e6:bb8c:a05b:c4ed? ([2a02:810d:15c0:828:49e6:bb8c:a05b:c4ed]) by smtp.gmail.com with ESMTPSA id p7-20020a170906838700b009484e17e7f5sm1135463ejx.100.2023.04.06.11.54.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 11:54:50 -0700 (PDT) Message-ID: Date: Thu, 6 Apr 2023 20:54:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 1/3] dt-bindings: PCI: brcmstb: Add two optional props Content-Language: en-US To: Florian Fainelli , Jim Quinlan , linux-pci@vger.kernel.org, Nicolas Saenz Julienne , Bjorn Helgaas , Lorenzo Pieralisi , Cyril Brulebois , Phil Elwell , bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com Cc: Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Rob Herring , Krzysztof Kozlowski , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list References: <20230406124625.41325-1-jim2101024@gmail.com> <20230406124625.41325-2-jim2101024@gmail.com> <9e98496b-73a0-78a5-e890-7d7e4be1f469@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <9e98496b-73a0-78a5-e890-7d7e4be1f469@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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/04/2023 20:53, Florian Fainelli wrote: > On 4/6/23 11:34, Krzysztof Kozlowski wrote: >> On 06/04/2023 14:46, Jim Quinlan wrote: >>> Regarding "brcm,enable-l1ss": >>> >>> The Broadcom STB/CM PCIe HW -- which is also used by RPi SOCs -- requires >>> the driver probe to configure one of three clkreq# modes: >>> >>> (a) clkreq# driven by the RC >>> (b) clkreq# driven by the EP for ASPM L0s, L1 >>> (c) bidirectional clkreq#, as used for L1 Substates (L1SS). >>> >>> The HW can tell the difference between (a) and (b), but does not know >>> when to configure (c). Further, the HW will cause a CPU abort on boot if >>> guesses wrong regarding the need for (c). So we introduce the boolean >>> "brcm,enable-l1ss" property to indicate that (c) is desired. This >>> property is already present in the Raspian version of Linux, but the >>> driver implementaion that will follow adds more details and discerns >>> between (a) and (b). >>> >>> Regarding "brcm,completion-timeout-msecs" >>> >>> Our HW will cause a CPU abort if the L1SS exit time is longer than the >>> completion abort timeout. We've been asked to make this configurable, so >>> we are introducing "brcm,completion-abort-msecs". >>> >>> Signed-off-by: Jim Quinlan >>> --- >>> .../devicetree/bindings/pci/brcm,stb-pcie.yaml | 12 ++++++++++++ >>> 1 file changed, 12 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml >>> index 7e15aae7d69e..ef4ccc05b258 100644 >>> --- a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml >>> +++ b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml >>> @@ -64,6 +64,18 @@ properties: >>> >>> aspm-no-l0s: true >>> >>> + brcm,enable-l1ss: >>> + description: Indicates that the downstream device is L1SS >>> + capable and L1SS is desired, e.g. by setting >>> + CONFIG_PCIEASPM_POWER_SUPERSAVE=y. Note that CLKREQ# >> >> How does CONFIG_PCIEASPM_POWER_SUPERSAVE apply to *BSD? > > In other words, there should be no OS/Linux specific comments in a > Device Tree binding, which would be a friendlier and nicer way of > providing the same feedback. I want to give also the answer also why there should be no OS/Linux specific comments, so the reader can stop a bit and think about it :) Best regards, Krzysztof