Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2536278rwl; Thu, 6 Apr 2023 11:37:02 -0700 (PDT) X-Google-Smtp-Source: AKy350YeAWtXK1xwPl0bxmNQil3quWr5H+seN9VHQUYlfIZ4ZR7ei3f0vtugGQxrNOgyCrgQciv7 X-Received: by 2002:a05:6402:7c1:b0:501:fd71:7e18 with SMTP id u1-20020a05640207c100b00501fd717e18mr579352edy.2.1680806221830; Thu, 06 Apr 2023 11:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680806221; cv=none; d=google.com; s=arc-20160816; b=E2mZCutVPzjIdzjJSjKfKtLyhTHFjQxp7RRWMnQQ/Xzo8e373NCl/vNXQmS5+GHQir 8W+9FrVJNqv+8nUmhAyvEwaYST1Si2hdWh+PHNJ+y2N63Yt7K/VsYY/zlQIV1GLcdhHV QqAIwqZXhnS54H+v3Rta0oRYtC/6YiWPvO5uW55PUd/WRqR3GeCODu2yeKo5G/RO41Rq zr39VBcasN2DjZDWKtQ1G4fIjNrS8qIf7XYNniqiGaekzDUxfJb4WATbDIcCJgNSdzip 1OcGrvWOE/KPrpPHYHEfb0pFfanL16yJxZBufGxICmPJJ6rSmBPeV5dzrm0SFYWk0tjq yFXw== 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=LRBfuBs8WR3evGR0Ox5esepb+ZZtacne/dKbCY/+uw0=; b=PqMC8DQu8N74u4JHJOJ1mlkUO3YWSteIRnVDUY5Fh9s9CmaIrvHul+ccglM7HnYvr9 fZjNJPdz2ObUSnmHtbFvkfOrpT+LuN4MtlBhjpItMn2bIiaG22MxnDTl1aLkEhGjNzKA Zb6fYE9ILQmLkASsKRc4EqRkz8x2R1vpcBzAZtX4czNThoDeyjFO8gvFb+QZA03p4sGq mkx7qmzgV0ybiwhmtACl0juDqifsSNZucbz5YEc7akcP4DJFjcSCmVHzZU5EFJIurViz pvbTNa8fQI4fJxN4HpMt1qTqdcRwZ/znUUYPeexSMz9GJKzSvaqS4JZH0MB/loQqKeNT CzAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oUIbr+v9; 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 z13-20020aa7c64d000000b00502682409a2si1449337edr.690.2023.04.06.11.36.35; Thu, 06 Apr 2023 11:37:01 -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=oUIbr+v9; 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 S240224AbjDFSfm (ORCPT + 99 others); Thu, 6 Apr 2023 14:35:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240213AbjDFSfl (ORCPT ); Thu, 6 Apr 2023 14:35:41 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 670A683E2 for ; Thu, 6 Apr 2023 11:35:38 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id qb20so3607212ejc.6 for ; Thu, 06 Apr 2023 11:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680806137; 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=LRBfuBs8WR3evGR0Ox5esepb+ZZtacne/dKbCY/+uw0=; b=oUIbr+v90hVa39JXi3mXIgC1TeH9PSzaS7EZXT/F1GC6mYdTj06JgmgH66imoWFs9b d18y6Nz0GlpXkPinB/vaWWr75BD3Dbw+T6NBC1rfd7P7xecONruW6oPoBuPn1GPkNMBN FMYLMF6ApOxOJc1U7MEOJxd+dJuENgTGxY6GIKZxqNiYE+bazeQ4vIPmDf2lCu27q5D+ Eghn3E3eKZfjMP7MhlQxjieTSCw729zE88FJLmof2bJflrIv114mm53l5VSXpZ+7lw/V l9tZ+UJQjQa9MPpBGjmm9IJkYtaGxxsdC9RWnpptOikl22clNtqPsHC+lMWP1M10tumL hiFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680806137; 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=LRBfuBs8WR3evGR0Ox5esepb+ZZtacne/dKbCY/+uw0=; b=6fzuRxQg9hwLwsfi/+pervTAqx41Roogidia8edUoqGy1W2qYTGDnqwfFvX/MsJBbT o6YvBybqgdUp+FiRgJd42sB7boooIjaJf/2/ZwWNlNfK8OZm4K23V4RXMD3hgZbjkId+ HdGJ3vCWsgnE4wX31B+G8l+2hKFvhKxdwYVO9yYeFabmjSGrUA8x8LmS/hs5JZWMdBzR 1qYM7k/ILGqTdeHKVJVxQaITLOlfGC7M8CbVJP9Nt/eoQA55CJs/0iXPMwg02hOZArmn quaHUt/eVIeTrkWSUzp4VgzRRRWsbmkeVuzEleeXexUv7MaqSadMp01Qjt0FqFlerWaf KLXQ== X-Gm-Message-State: AAQBX9fKvYYNX/B4TUBB9kNuvRJz7yfJSwtzslG5pY/+TOkAB3iVXejT SY73czE6AAyrOplyT6hsOfxwbw== X-Received: by 2002:a17:906:bfc9:b0:93d:b767:9fea with SMTP id us9-20020a170906bfc900b0093db7679feamr7614503ejb.31.1680806136900; Thu, 06 Apr 2023 11:35:36 -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 22-20020a170906319600b00930525d89e2sm1127806ejy.89.2023.04.06.11.35.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 11:35:36 -0700 (PDT) Message-ID: Date: Thu, 6 Apr 2023 20:35:35 +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: Jim Quinlan , Stefan Wahren Cc: 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, Florian Fainelli , 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> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 18:58, Jim Quinlan wrote: > On Thu, Apr 6, 2023 at 11:39 AM Stefan Wahren wrote: >> >> Hi Jim, >> >> Am 06.04.23 um 14:46 schrieb Jim Quinlan: >>> 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# >> >> not sure about this, but maybe we should avoid references to Linux >> kernel config parameter in a DT binding. Since the driver already gaves >> warning in case the DT parameter is present, but kernel config doesn't >> fit, this should be enough. > > Hello Stefan, > I will remove this reference. >> >>> + assertion to clock active must be within 400ns. >>> + type: boolean >>> + >>> + brcm,completion-timeout-msecs: >>> + description: Number of msecs before completion timeout >>> + abort occurs. >>> + $ref: /schemas/types.yaml#/definitions/uint32 >> >> According to the driver at least 0 is not allowed, maybe we should >> define minimum and maximum here and let dtbs_check take care of invalid >> values? > I'm not sure I follow what you mean about a zero value; the property > may have any value but the driver will clamp it > to a minimum of ~30msec. Regardless, I can add a "minimum: 30" line > to the YAML. If "completion" means Linux completion, then it is not suitable for DT and entire property should be removed. If it is something else, then explain here and commit msg. So far both refer to some completion... Best regards, Krzysztof