Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31905270rwd; Fri, 7 Jul 2023 06:11:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlG2FWmt3HQZSqhgUj/PL/Uir/BFHl6aMYpiq5M3qUGkL58LXJNUcPfANw9IP5ItbkYYcnpT X-Received: by 2002:a05:6a00:2d23:b0:63d:260d:f9dd with SMTP id fa35-20020a056a002d2300b0063d260df9ddmr5284423pfb.33.1688735492741; Fri, 07 Jul 2023 06:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688735492; cv=none; d=google.com; s=arc-20160816; b=T50c3wJs2lsmOtyWZswr1VqloepOdV2489Rfiap/EskVL5n7PVZfTMh6DeuFKc0+n+ J9bJoETjD4luwNwHwKcx28xCHDXs53Pi5Ib+N5HWCW2T//APYYcSvEuJ07cjrlj3mHM3 jlI0lJULK1Q3Bk3RV/vRaomd14a0E05/pIUKpWRHoCRUyGsbE5NOuFB2oT1/KfI5pntU v81aHUC6bx8W3CDEQ2aDTyVU6cn/pGoPyv0NT0AkJHpAYNa6D9/ByKOdei9CDXM3o/qE XSnULBw7yRYh/KDy8IkzmsDSTHLO986A0fJzw3JczSXNpVbZJ7Jad/WfTyqun+80NpUI bzIQ== 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:dkim-signature; bh=aIGBVnL4h550uklj+CUMoa+LNgGz6m/8MWw5loKY/Dk=; fh=3Aam2s99Ye6Aty5ZaKtlbIYyiWkolCZAO46nQW7Cl5o=; b=VMHqqLzm/X/81V/pP3ecrAXOUI7+80ZCwsZGrshuv9Wwczn39YvVtWeTcBw2LsLFPo Z1h8BEnXy7LY8eJqNv7n5tPlPAUgk7ksxSMdOSC+3Lk7sPtx3DLNUl4yfNeS77LdgWBx W9H8tgBMWqk0/OPCgmKZFrydnkAQ2fac6bL45uKPc/AMe1LgfzwIBc6pJ6ARreWUgOYP G52oalIzTGF/64MQFipWfLpByEtShGLFpi3MLu8jCvCS5fldgHezGtqXHqmH0TTrY9bi bPRo3Sr3vDNyngZTEAcxY8lN6vRTh7Ah7HxZFn89iKBDGKvAyI5ezQBK7t5MDDOB5Si4 pX6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U55sAdF2; 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 bd34-20020a056a0027a200b0068254b9108bsi3468754pfb.71.2023.07.07.06.11.05; Fri, 07 Jul 2023 06:11:32 -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=U55sAdF2; 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 S231866AbjGGMrf (ORCPT + 99 others); Fri, 7 Jul 2023 08:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbjGGMre (ORCPT ); Fri, 7 Jul 2023 08:47:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7344124; Fri, 7 Jul 2023 05:47:31 -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 548AE61997; Fri, 7 Jul 2023 12:47:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A32AAC433C7; Fri, 7 Jul 2023 12:47:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688734050; bh=aIGBVnL4h550uklj+CUMoa+LNgGz6m/8MWw5loKY/Dk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U55sAdF24LuBpmMzrBY8PF4P+pcjfEHWJnDCWYRbE9X3jPFEbEmrw9/sTaHxQ4qnR zTB8+hGehm2JZgcMQPW3zSkowkH5D6Ay1sslWMka9pHR03d6zYos/DzSv3uZOAQyx/ K8Bl9btbJeZWHrYpD8jWq1WMRMEXnZkIa6+P+SMvVLpn4u4x+VLYTfgoupbjOIR4E8 lvrFtJqLr4Ky/qCWFLxYUyJUw6FtFwoA+UnUqdGPGkY/lKl8VsKxTuXPy2rDfKJm9J E+6wlHya/uA5YqLio50yZfe7vFB9hPCyQX691xl33ikT6AEbapNZzIM0zKGOxtT+5M cH1eFd8j6Mbwg== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qHksO-0007lO-21; Fri, 07 Jul 2023 14:47:56 +0200 Date: Fri, 7 Jul 2023 14:47:56 +0200 From: Johan Hovold To: Manivannan Sadhasivam Cc: Johan Hovold , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Sajid Dalvi , Ajay Agarwal Subject: Re: [PATCH] Revert "PCI: dwc: Wait for link up only if link is started" Message-ID: References: <20230706082610.26584-1-johan+linaro@kernel.org> <20230706125811.GD4808@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230706125811.GD4808@thinkpad> 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 Thu, Jul 06, 2023 at 06:28:11PM +0530, Manivannan Sadhasivam wrote: > On Thu, Jul 06, 2023 at 10:26:10AM +0200, Johan Hovold wrote: > > Finally, note that the intel-gw driver is the only driver currently not > > providing a start_link callback and instead starts the link in its > > host_init callback, and which may avoid an additional one-second timeout > > during probe by making the link-up wait conditional. If anyone cares, > > that can be done in a follow-up patch with a proper motivation. > The offending commit is bogus since it makes the intel-gw _special_ w.r.t > waiting for the link up. Most of the drivers call dw_pcie_host_init() during the > probe time and they all have to wait for 1 sec if the slot is empty. Just to clarify, the intel-gw driver starts the link and waits for link up in its host_init() callback, which is called during probe. That wait could possibly just be dropped in favour of the one in dw_pcie_host_init() and/or the driver could be reworked to implement start_link(). Either way, the call in dw_pcie_host_init() will only add an additional 1 second delay in cases where the link did *not* come up. > As Johan noted, intel-gw should make use of the async probe to avoid the boot > delay instead of adding a special case. Indeed. Johan