From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 64F7BC001B0 for ; Wed, 16 Aug 2023 11:45:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=r02ArtKrm97OtrOy8z3YgLhV3HLVWJKFG97hw76yuxI=; b=hArdrB9Dpl7sMv 1PzfWKHPugUkiL2UR7kgoMLN3hfpJ4e6192aAJiMJH5vl0iGQhV5xGSGYaKOvubSJvC8qNmkwUefj Wt/LIk8CLHqbPEP8clSHCO/uJ9u91N/Xk1jtMQbjKPjUX37R0kOW7bZ6PLeBEejBWw4gHQI2cKBxS SLx4StHSYnN/yhAjIdVMfdkvrsYw1gijWOjcjG/Z5rzEOmf5dfK7clNx1vZGx4vhQV8QDrQy7Ps9s 5/hzAv3gGjxzyJrPtUq8pnbTCDy9AmQDpML050iQsLBDyuWbeL1UTaSHubgt/+pIHhfrHqTPIglqc nPc+ulnVS6ZeJqnlI/fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWExW-0041B0-1c; Wed, 16 Aug 2023 11:45:06 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qWExT-0041AY-1z for linux-arm-kernel@lists.infradead.org; Wed, 16 Aug 2023 11:45:05 +0000 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 5C739666DA; Wed, 16 Aug 2023 11:45:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ECC2C433C7; Wed, 16 Aug 2023 11:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692186301; bh=zWNrCC9D/ZGZLVx6/MNogtB5y4I71xfms58Io+1Vxhg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=HrMr+pjtgrAkRbb4vE11dFmpCmp9zzwJcqbmWnO65g9F9hiJULyc+WCzKGCpYC3Md Axw/XJr/4JIvfHpZOmweW9sE5CuNBU9eaCF/nClsBnP2Z/vld/akXe+48yD11fRSsX lokhOaE5gwkDzCSo57oXRtIdksNfOSA9WgdOIFQTh1bzacBKdaPfxgpeo3DsDuFVdq unf8bLX4SSuQWYMMQi5PAG7ycVEaY3y1uKebUKpSaDcc5I8MMI/5j3C1TjYFhxq/rH t8yHKkAOnzlh9h1BNG0IdQwA0YZ5xVjR6gICiQVShzPBIr1itAYMDOZ/AYx5yw9a42 S5+WU9npF/slg== Date: Wed, 16 Aug 2023 06:44:59 -0500 From: Bjorn Helgaas To: Frank Li Cc: bhelgaas@google.com, devicetree@vger.kernel.org, gustavo.pimentel@synopsys.com, imx@lists.linux.dev, kw@linux.com, leoyang.li@nxp.com, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lorenzo.pieralisi@arm.com, lpieralisi@kernel.org, mani@kernel.org, manivannan.sadhasivam@linaro.org, minghuan.lian@nxp.com, mingkai.hu@nxp.com, robh+dt@kernel.org, roy.zang@nxp.com, shawnguo@kernel.org, zhiqiang.hou@nxp.com Subject: Re: [PATCH v11 1/3] PCI: Add macro PCIE_PME_TO_L2_TIMEOUT_US Message-ID: <20230816114459.GA284194@bhelgaas> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230809153540.834653-2-Frank.Li@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230816_044503_720424_EE81C14D X-CRM114-Status: GOOD ( 16.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Aug 09, 2023 at 11:35:38AM -0400, Frank Li wrote: > Introduce the PCIE_PME_TO_L2_TIMEOUT_US macro to facilitate checking the > L2 ready timeout in the PCI subsystem. > > Acked-by: Manivannan Sadhasivam > Signed-off-by: Frank Li Looks good, thanks! Acked-by: Bjorn Helgaas > --- > drivers/pci/pci.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h > index a4c3974340576..da8156663c825 100644 > --- a/drivers/pci/pci.h > +++ b/drivers/pci/pci.h > @@ -13,6 +13,12 @@ > > #define PCIE_LINK_RETRAIN_TIMEOUT_MS 1000 > > +/* > + * PCIe r6.0, sec 5.3.3.2.1 > + * Recommends 1ms to 10ms timeout to check L2 ready. > + */ > +#define PCIE_PME_TO_L2_TIMEOUT_US 10000 > + > extern const unsigned char pcie_link_speed[]; > extern bool pci_early_dump; > > -- > 2.34.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel