From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=144.76.133.104 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796287522; b=Hqn315UNAv6JIAYt/0bXLMqtFuW5nvvyYa9GFTRVFa+3gq02YPVtXzvNzTlW0ybcQIlq P7utbj63TOpj9p4Ll3sdzgmlufdnO4+r969C78t2EYVvbS73t7qck8w7O66BZWYqULF25 dq8Btun1FtIuoPl621sR3eXAa8va3pvaYgcL2Cl43n7yYrJMzcwkUjD9rhObtBCahA3xp y2mcOaCsRDdc5H7ZE7AVXU227WuybjLHk8QGenuuLT1KtLuTIvvwbHkn4NMHZoO0Nh4HG 9HfQZZ9YnwQZBQKOIpcwhRV0872lBeO9tOEyU1JkXvikzlnpyPphbqwbj6moI6HeArQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796287522; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=1QXIBVUF/e0pilsNUQc1/K6OmgZ9DFyYozg0KKY0+uc=; b=X/2GJI+SnTq7YdgluYP98sK341BaGfaVOVKsYjGjuemN1SHO/FpcNlhlfwRJH9n5RbO0 H2y70utIOp/mtV99a6de/UpgZLCNB8UtnD2ChK2dqBSYu947L84VdO5jbE+jme3bXRhzl 7XTf4SkN+Dlo+BjI9M/FNWDTXTLq/6kwA05DoNLjQ5jItqBgwoXTF6Yuwx5HiZs90hLsD 3wZYyY+79q9QhMvGFVxz616KzIwQFQPH1RR6rdeeMy70nNp0oAFg6+SuJ/L9iV4ir+Msn kLLW4nQ4Y6f6nBsRzVby8H7BxcozTX/qpuM/os9+7il2ifNMySvOol+9bI77MCSslFQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=wunner.de; spf=pass smtp.mailfrom=wunner.de; arc=none smtp.remote-ip=144.76.133.104 Received: from mailout3.hostsharing.net (mailout3.hostsharing.net [144.76.133.104]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2B68606A32F; Thu, 3 Dec 2026 08:45:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A2B68606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wunner.de Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "*.hostsharing.net", Issuer "GlobalSign GCC R6 AlphaSSL CA 2025" (verified OK)) by mailout3.hostsharing.net (Postfix) with ESMTPS id 394F05F5; Thu, 03 Dec 2026 09:45:14 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 01917602178B; Thu, 3 Dec 2026 09:45:13 +0100 (CET) Date: Thu, 3 Dec 2026 09:45:13 +0100 From: Lukas Wunner To: Brett Creeley Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Eric Joyner , "Nikhil P. Rao" Subject: Re: [PATCH RFC 0/3] PCI: Allow a device more time for its link to return after a reset Message-ID: References: <20261202-b4-pci-link-up-timeout-v1-0-04fba0824d63@amd.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202-b4-pci-link-up-timeout-v1-0-04fba0824d63@amd.com> On Wed, Dec 02, 2026 at 04:43:25PM -0800, Brett Creeley wrote: > - Is a device quirk the right place for this, rather than having the > device's driver set the value at probe? A quirk covers the card even > when no driver is bound to its functions, and it is set before any > driver probes. It's the right place. > - Should the core cap link_up_timeout (e.g. at > PCIE_RESET_READY_POLL_MS), or is the quirk's value trusted as is? It's trusted. > - Hotplug-capable slots are not handled yet. Vulcano cards are deployed > in slots that support hotplug, and there pciehp waits only 4 s in > pci_dpc_recovered() for DPC recovery before treating the Link Down as > a removal, so a ~12 s outage still ends in the card being torn down. > That wait covers the DPC recovery which, with this series, already > includes link_up_timeout, so one possible approach is to reuse the > same field: have pci_dpc_recovered() extend its 4 s by the amount a > quirked device below the port adds to the link-up wait, leaving other > devices unchanged. Bjorn has suggested instead that this wait match > PCIE_RESET_READY_POLL_MS for everyone [2]. Which would you prefer? > This part is not implemented or tested yet. I don't really know. > - Ports at or below 5 GT/s still use the fixed 1 s budget. Is it worth > extending that path too, or is it fine to leave it until a device > needs it? Leave it until a need arises. I'm wondering if it would be possible to detect in the driver's ->error_detected() callback that the card is undergoing a power cycle, wait 12 sec if so, then when dpc_reset_link() brings the port out of containment, the link comes back quicker? Maybe the ->error_detected() callback has a way to talk to some OOB management controller on the card to detect a power cycle? Thanks, Lukas