Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4747605rwr; Sun, 30 Apr 2023 14:25:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PwRfn5E8tFqswQZ9AsN7YlN3yF9NR/zHTHWxJR6KtpY3p/3FyEMfI8Sl+Amz2WrWV9f0n X-Received: by 2002:a17:90b:218:b0:24b:3dea:d922 with SMTP id fy24-20020a17090b021800b0024b3dead922mr12757792pjb.20.1682889929543; Sun, 30 Apr 2023 14:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682889929; cv=none; d=google.com; s=arc-20160816; b=S+v9WNloQReKPeQTWqntI/7j2/Vf9nnntzLlFOCBNvGCVR8aKMA26ObftivSZg/Cjm Vwi3ghCu7eVdxdXoRbYWgpmgo32t7QJy0YIgUAry6f2e9tsCAU/KitZJuJ86TwozxxHR 4arjdJiq0eaagpOTlhou+eoz1N8TGm0TVHiXB2fJ2zgbm3y48R6KEszi4jxMD9iQzaQA XZnK/GCybn47OmeAgkNLmGd88qfozJQLbMPsNtJ9Ajounn2vv4ybcBEbJBEh3/h0PIRm YxxqyXKyPUcAHfNH2TPjpNbC5ZpeOMYbZv6Sf80EXH630a3YlhCMjhQBS3O4Y517MhVL Ugjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6CZyvJSrbLUzm/irC8AcoV2dat+7Ixn2/RGXUbBdRb4=; b=kMo4DajqXwpX1RaQOLEs3Yd3mrheM2ZZCF/+dQVwdczpVK3KvPf7q2uX7axMxHrJeW R+Cea2/mWSc5laZLWxzFvs1CZ27B6UQ9yDCIHYIL9gWhShWDzpnmKK/SE18QiPLzepzP eatCagF0cirVCYONGuaTLkQxmlail3B6CUaWYXto0vlsFqBP++uSkMzpTjZ2ANQ3OwD1 C0nk9UKo8JDGAbtzLtW8EUl4VJyQSoOoo8kge3362nChTh9ZYtN7qfJaNzpnPl31v5wj kd3nOEAB+7bpMmlSPMx5puVJ3MJJ4wqDLbRxhT52O+X9hUj3OMDuYPzLIsvFA1rRrKLD 7PNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=UZq23EA0; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a63c104000000b0051b5974f978si25273054pgf.313.2023.04.30.14.25.07; Sun, 30 Apr 2023 14:25:28 -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=@broadcom.com header.s=google header.b=UZq23EA0; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231362AbjD3VYm (ORCPT + 99 others); Sun, 30 Apr 2023 17:24:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbjD3VYl (ORCPT ); Sun, 30 Apr 2023 17:24:41 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02D00E41 for ; Sun, 30 Apr 2023 14:24:39 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-2fa36231b1cso1038012f8f.2 for ; Sun, 30 Apr 2023 14:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1682889878; x=1685481878; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6CZyvJSrbLUzm/irC8AcoV2dat+7Ixn2/RGXUbBdRb4=; b=UZq23EA0XkgJocFO684W7JWK80oCzdmqz9vyOSobEi8En8fx68EjSx8+m/HF+arFVR 0pur/0wiqrK1w2opG28ZZmjwdmVYFbgTn/2UvWJEY8OIHVJErkY6FVt3UVdNhPtDjaju mZKM5m4rH+7bSasZfgfd0V2SE/hZl8+AMtjOw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682889878; x=1685481878; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6CZyvJSrbLUzm/irC8AcoV2dat+7Ixn2/RGXUbBdRb4=; b=j1ahcdRmS4NVLMxtXTmaaVnJMjU5MgUCixpeUxtlsJCGsIfHyx6t9pZ8Va2vmoJr9t ANgOFjV+X1RJygsMr7kuO40z/GM92U81ejiKMjBQb0HUiFJXlwOwZWVgnhfmau/HO5zB gPw9F+dDjVbYOWk5DDr5FytvFERVDnas2A35nkK9vOZgQO82aaY4i7K+ldPxXtONZEX3 aOi7xBmyb+p2ud7zuF/UoBITp55sPtBRgua64D9CLTReunF3Rg/qwicE2/XZsIV9xdUC FdTnPseptfRVFtM1xZP+EifjHgHgAAz7Ffs7RitzvcTtmrUO2j3RBMDA4228WAy0Oprj Yf7g== X-Gm-Message-State: AC+VfDxupGKAOyBPJG5ZsF1+YeMxVWCWM9O3TS2NkYDNugNy15ZHJaHM 7ico/R/avurp4W7TlJHp3edHjp1c+1i/MFkoELGfWQ== X-Received: by 2002:adf:efd1:0:b0:306:2fab:1f81 with SMTP id i17-20020adfefd1000000b003062fab1f81mr180845wrp.21.1682889878330; Sun, 30 Apr 2023 14:24:38 -0700 (PDT) MIME-Version: 1.0 References: <20230428223500.23337-4-jim2101024@gmail.com> <20230430191323.GA388047@bhelgaas> In-Reply-To: <20230430191323.GA388047@bhelgaas> From: Jim Quinlan Date: Sun, 30 Apr 2023 17:24:26 -0400 Message-ID: Subject: Re: [PATCH v4 3/5] PCI: brcmstb: Set PCIe transaction completion timeout To: Bjorn Helgaas Cc: Jim Quinlan , linux-pci@vger.kernel.org, Nicolas Saenz Julienne , Bjorn Helgaas , Lorenzo Pieralisi , Cyril Brulebois , Phil Elwell , bcm-kernel-feedback-list@broadcom.com, Florian Fainelli , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , open list Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000695d0505fa9455c3" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --000000000000695d0505fa9455c3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Apr 30, 2023 at 3:13=E2=80=AFPM Bjorn Helgaas = wrote: > > On Fri, Apr 28, 2023 at 06:34:57PM -0400, Jim Quinlan wrote: > > Since the STB PCIe HW will cause a CPU abort on a PCIe transaction > > completion timeout abort, we might as well extend the default timeout > > limit. Further, different devices and systems may requires a larger or > > smaller amount commensurate with their L1SS exit time, so the property > > "brcm,completion-timeout-us" may be used to set a custom timeout value. > > s/requires/require/ > > AFAIK, other platforms do not tweak Configuration Timeout values based > on L1SS exit time. Why is brcm different? Keep in mind that our Brcm PCIe HW signals a CPU abort on a PCIe completion timeout. Other PCIe HW just returns 0xffffffff. I've been maintaining this driver for over eight years or so and we've done fine with the HW default completion timeout value. Only recently has a major customer requested that this timeout value be changed, and their reason was so they could avoid a CPU abort when using L1SS. Now we could set this value to a big number for all cases and not require "brcm,completion-timeout-us". I cannot see any downsides, other than another customer coming along asking us to double the default or lessen it. But I'm certainly willing to do that -- would that be acceptable? Regards, Jim > > Bjorn --000000000000695d0505fa9455c3 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQbgYJKoZIhvcNAQcCoIIQXzCCEFsCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3FMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vs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