Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2770472rwr; Fri, 21 Apr 2023 13:55:59 -0700 (PDT) X-Google-Smtp-Source: AKy350Y7oKPvUqo24Yg6wkwpn4UUOd0a6SyHyVEvrfDmd737CuyGR4SzRl4blQxbBRzTohwrcs2s X-Received: by 2002:a17:903:41c6:b0:19e:94ff:6780 with SMTP id u6-20020a17090341c600b0019e94ff6780mr7518603ple.6.1682110559222; Fri, 21 Apr 2023 13:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682110559; cv=none; d=google.com; s=arc-20160816; b=bN+fO+cy0ihzF5FLfen/LIWMmAEKThO8Q7qDee3U7mxzjRD3g4NhUtlp0iD3CPoKZ+ aV8LOZlqCJ8TqgyVji2a9xSVlAhjih+KzgB8WT3XqT4Y/wxC1ZFPgB0zL8u7avDaLdlh f4sqKQCicsOVVhGv3mscMB0IgLmwZ+ivkeJH3tVhV1r4Cdx5V31/nqWEHXWXnjwEIo6h l5Q909/YA7xD2nYuA8+qu4jUbcK9IJu2PtqH6E3TgUmoeHcaQjlTq/6BhaIvO71Twd+c jjz3Vvn2xeT/rjmDuGQzaVLIfzgs+SABNYcrIeno5I31GlPEeqYfS8wVY+xipuVUslDQ lGUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=W84o70SFFAn33dQVLvp99vQMoIhhXVO36lCwloIL3Jk=; b=UgJ/lDtv1IadJacM2yltjNFSmPRmeYnrALW334P3PjcIOPubdbhifDQQF4zGLPamtz cYTImi0BM7FMBsaa1U+hhCinXb4ZWTJzABcCMMmQpbPSsCuIaS/1JoR9bZWH1MIbrHd+ 8pbIFTC4HSr29UXLKlGbSbTqGA8Iy9bAvOLKUTqUO1Ln7lJ4TRyIXSZS9wqQL7Uj7FR6 2azxj2F7ENWgIvlbLzDapKBpd72/Zrifcsv7HH7gTixKRBLgFLSdi1qC3VAQtd/cAZHX RZ3I7o6Z213V+hB4KAoiEyX3yd9lNnThkXnevn4e+unqrbIxrfXC8sD1aSIznkp+o7eB Ak6g== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a170902b48700b001a801f42d14si5217367plr.432.2023.04.21.13.55.47; Fri, 21 Apr 2023 13:55:59 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbjDUUzb (ORCPT + 99 others); Fri, 21 Apr 2023 16:55:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231282AbjDUUz3 (ORCPT ); Fri, 21 Apr 2023 16:55:29 -0400 Received: from mail-oo1-f44.google.com (mail-oo1-f44.google.com [209.85.161.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FFD71FD5; Fri, 21 Apr 2023 13:54:53 -0700 (PDT) Received: by mail-oo1-f44.google.com with SMTP id 006d021491bc7-546db536a6bso1271871eaf.1; Fri, 21 Apr 2023 13:54:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682110493; x=1684702493; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W84o70SFFAn33dQVLvp99vQMoIhhXVO36lCwloIL3Jk=; b=dwmimoBj5692sLUqgCCW4PgQMVTOROa5+MboUjCApV9CxCHTMBLzDiBYgh6UkkcXXR hYFEw6bEYoFd9O/NB08211YkwpotVln0Wdoi2WHjjDb4aSi6Br/yUPqJLfOgixfxC2tU pVkDYAQpl2M5TT+V4ItbwpYt1nEOVaYGRwNyutH6aSRUoPUXSbEUjPK/X1HpyavdIxQw u9lC8UJWKLOFOzW3BLt09NzFdiO8WIwsHYjSAXMR+ncnzeOWlabgbpeO2LDN4YcMiQPl Qu0Z7R3J0xFWP/sr07zWngI5s1w91OsMDuJJ9NpDkHhvTaiDAEn/V+TMYgEcJqSmy9sd Tswg== X-Gm-Message-State: AAQBX9cqzW0T76MaYsKj/EJKIuvxTvFBgEF5VhlA6GvJrhpqBoVUK4fn p3JXyHGf043iTLvlnL5icQ== X-Received: by 2002:a05:6808:209f:b0:386:9720:77da with SMTP id s31-20020a056808209f00b00386972077damr3883015oiw.26.1682110492770; Fri, 21 Apr 2023 13:54:52 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id p82-20020acad855000000b00383ef567cfdsm1984996oig.21.2023.04.21.13.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 13:54:52 -0700 (PDT) Received: (nullmailer pid 1750051 invoked by uid 1000); Fri, 21 Apr 2023 20:54:51 -0000 Date: Fri, 21 Apr 2023 15:54:51 -0500 From: Rob Herring To: Jim Quinlan Cc: linux-rpi-kernel@lists.infradead.org, Lorenzo Pieralisi , Lorenzo Pieralisi , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Phil Elwell , james.quinlan@broadcom.com, Cyril Brulebois , Florian Fainelli , Nicolas Saenz Julienne , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bjorn Helgaas , bcm-kernel-feedback-list@broadcom.com Subject: Re: [PATCH v3 1/3] dt-bindings: PCI: brcmstb: brcm,{enable-l1ss,completion-timeout-us} props Message-ID: <168211049118.1749998.10567032742795047284.robh@kernel.org> References: <20230419165721.29533-1-jim2101024@gmail.com> <20230419165721.29533-2-jim2101024@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230419165721.29533-2-jim2101024@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, 19 Apr 2023 12:57:18 -0400, Jim Quinlan wrote: > This commit introduces two new properties: > > brcm,enable-l1ss (bool): > > The Broadcom STB/CM PCIe HW -- a core that is also used by RPi SOCs -- > requires the driver probe() to deliberately place the HW one of three > CLKREQ# modes: > > (a) CLKREQ# driven by the RC unconditionally > (b) CLKREQ# driven by the EP for ASPM L0s, L1 > (c) Bidirectional CLKREQ#, as used for L1 Substates (L1SS). > > The HW+driver can tell the difference between downstream devices that > need (a) and (b), but does not know when to configure (c). All devices > should work fine when the driver chooses (a) or (b), but (c) may be > desired to realize the extra power savings that L1SS offers. So we > introduce the boolean "brcm,enable-l1ss" property to inform the driver > that (c) is desired. Setting this property only makes sense when the > downstream device is L1SS-capable and the OS is configured to activate > this mode (e.g. policy==superpowersave). > > This property is already present in the Raspian version of Linux, but the > upstream driver implementaion that follows adds more details and discerns > between (a) and (b). > > brcm,completion-timeout-us (u32): > > Our HW will cause a CPU abort on any PCI transaction completion abort > error. It makes sense then to increase the timeout value for this type > of error in hopes that the response is merely delayed. Further, > L1SS-capable devices may have a long L1SS exit time and may require a > custom timeout value: we've been asked by our customers to make this > configurable for just this reason. > > Signed-off-by: Jim Quinlan > --- > .../devicetree/bindings/pci/brcm,stb-pcie.yaml | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > Reviewed-by: Rob Herring