Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29232313rwd; Wed, 5 Jul 2023 08:58:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlHrF0PbvOD99DLx5ei7gmfGrDdrmMmIoeE/tGJUiv6B3nVMzFt29R0sfGTBL9+LfPdXB2lh X-Received: by 2002:a17:90a:ea81:b0:262:f99b:a530 with SMTP id h1-20020a17090aea8100b00262f99ba530mr16803002pjz.34.1688572709576; Wed, 05 Jul 2023 08:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688572709; cv=none; d=google.com; s=arc-20160816; b=V4j8d5nbcYy4W5OIOLrOU83Q6FscMbCFNGWmi1o3QyPjASnCFuxrBlE8F0Kw5skZ3i hZ2nIOT+c0BZwBrUJlYtReb6j5zkgMrYerkhLVY7Jh9TF+cKPiy9ipb7rjf5+QEg8v7l 1RhI9Gue4RysfV49cf9gtzoIsTh1HuTNx3ohDBZtHw2ne2/YnfWPuKuowM1wxDDtYpj2 SgQcJST7+v/Ex4pRAp25tOxY27at9vwtwvSz19Iptu17GCpa3+kX58ORu69n8w0Rfh68 fxpMoqgFxRlvqZDucoXvEBp6AGKGKDhHjG8xq9yYbWFJVtzPEBE6PicUi6Hjpos8Q2mT omtg== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=SHjXwhleCwPHMJwq8Jz+s7+7bc9FvWquH7DHzwOGIS4=; fh=0ejqLuZYXJBeQTWq/OKY++F1jKKJEOl/ick48nvsHYc=; b=o88pdpnnbL3NUC5trjgxyyjjeh0sgtULGYdCSFNOM8t3A1VAxEgn+sdO+ZyggE/1Ke FwykOF+jp3ldxtiKE6nnUrZBVAA5VyqSd3K8h3PbRn/eD7Iv6qYvw3hJzEw2/AbZvqbE iamh8N2VE7cidp9dIgi+41KMjCbZ7VxJMc4fVJVzVnw3IjIE4f/tdkeF/xxH8EHxxgqT f4/taDR4wR0Kyvgptiz+eUTwEcqmYF+dMD4mssTWSm2sfSC44nGquFEa4cDx8uOHKVvB rI73F8260D/pXllrsQGuV+mgTOutnywZeEchwJ3CHaI79bbsnLQ+9IDBmVSLkqMBTdnj TOpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E84fDqN4; 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 bv63-20020a632e42000000b0055b950821basi8374450pgb.181.2023.07.05.08.57.53; Wed, 05 Jul 2023 08:58:29 -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=@kernel.org header.s=k20201202 header.b=E84fDqN4; 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 S232757AbjGEPtt (ORCPT + 99 others); Wed, 5 Jul 2023 11:49:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233041AbjGEPte (ORCPT ); Wed, 5 Jul 2023 11:49:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A570B19BA; Wed, 5 Jul 2023 08:49:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3A61161607; Wed, 5 Jul 2023 15:49:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A42CC433CA; Wed, 5 Jul 2023 15:49:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688572169; bh=Wk/EDtW10p6pp6WTwmzgYg6QrckaCsMdnVGkAU0iNaM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=E84fDqN41ael8RB8O2f19tkcvhuFrd6zuDsO1tXY+Z69XQqtcA8ljbDN3XG9xIvif b7leT2sE2Va1DD2f17avNwUaKmLa34lG+4mlM4x85RPbEOknw69N/pYzYezhSFqqup 0KKeAOQsCvZy5uN4LSh+o5Cuu/ii46NBVP7cgrdoJfcSF79vYVfpa9zPF4oSC8QeIC XEIYuhbcxhv3IHSSnzV4/Pyj4lk+mtohnz6+vdgt9RJYCgiy69Qbpig58lUkHLagBQ 3mTvoW1lDdZm3CXh2XjueeU6y+5BW3v9XYvGubIqP3WSEdI1gyDCiM2XQ4xtlhDH0t XX/gNQXDhk1xQ== Date: Wed, 5 Jul 2023 10:49:27 -0500 From: Bjorn Helgaas To: "Verma, Achal" Cc: Vignesh Raghavendra , Tom Joseph , Lorenzo Pieralisi , Krzysztof Wilczy_ski , Rob Herring , Bjorn Helgaas , linux-omap@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [EXTERNAL] Re: [PATCH] PCI: j721e: Fix delay before PERST# deassert Message-ID: <20230705154927.GA62511@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 On Tue, Jul 04, 2023 at 09:36:43PM +0530, Verma, Achal wrote: > On 7/3/2023 9:51 PM, Bjorn Helgaas wrote: > > In subject, "Fix" doesn't convey much information. Does it increase? > > Decrease? How much time are we talking about? PERST# deassert is at > > one end of the delay; what event is at the other end? > > How about "Increase delay to 100ms for PERST# deassert from moment > power-rails achieve operating limits" Maybe something like "Delay 100ms T_PVPERL from power stable to PERST# inactive" to match the language in the spec? > > Is this delay for the benefit of the Root Port or for the attached > > Endpoint? If the latter, my guess is that some Endpoints might > > tolerate the current shorter delay, while others might require > > more, and it doesn't sound like "TI's K3 SoC" would be relevant > > here. > > Its for the endpoints, TI's EVB doesn't exhibit any issues with > 100us delay but some customer reported the issue with shorter delay. I wouldn't bother mentioning "some custom platform implemented using TI's K3 SOCs" then, because the problem is that the driver didn't observe T_PVPERL, so the problem will happen with some endpoints but not others. > > Numbers like 100ms that come from the PCIe specs should have #defines > > for them. If we don't have one already, can you add one, please? > > Sure, will do it in next revision but should this go in some generic PCI > header file or just pci-j721e.c I think it should be in drivers/pci/pci.h so all the controller drivers can use the same thing. Obviously none of them *currently* use it, although there are a bunch of "msleep(100)" and a few comments that mention T_PVPERL. Bjorn