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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B3D4C433F5 for ; Tue, 15 Feb 2022 16:39:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233621AbiBOQjm (ORCPT ); Tue, 15 Feb 2022 11:39:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237375AbiBOQjl (ORCPT ); Tue, 15 Feb 2022 11:39:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 663D0F1EBF for ; Tue, 15 Feb 2022 08:39:31 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1AD5BB81B81 for ; Tue, 15 Feb 2022 16:39:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 505C6C340EB; Tue, 15 Feb 2022 16:39:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644943168; bh=uDxtLw82/Lqy3SuvmfZY4xv40CLYpmGdO0lStxoyPNo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=K3qU48MqS5bfyFeqdD5rCNP4MGZ1k1fYdicbZONquBSHTEMq65cLA2QejjODAYwEv vOF0ttrsVvkdcKKq3GKhO0SEdURrkhDMdNQ9Y50oCMob8QMu5WVG9eQw5cqabrN+tv yt2rYyzDQqgtnW8kqtDkGDgtrI48gMe0wzK6gNlB6i8teZLyHOfy/8JGM1MtIRSGXb F6qLfsbR9jSJEywI3AQWw1Bm1wvUtdvXpBuWOg04wbuutMHuQhCnYfqoJQG3ZsTea5 4aQg2tgSzTV326XDt+3M4YbzfdOFtu2hgwSmBgUFFyLv1HXr7rv9kdZ++qRe4tojL0 SGQ4TbHuQr5lw== Date: Tue, 15 Feb 2022 10:39:25 -0600 From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: Rahul Kumar , Lukas Wunner , Kai-Heng Feng , Mika Westerberg , Lu Baolu Subject: Re: [Bug 215590] New: PCI link is down after suspend after we try to plug device Message-ID: <20220215163925.GA116437@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Fri, Feb 11, 2022 at 02:29:33PM +0000, bugzilla-daemon@kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=215590 > > Summary: PCI link is down after suspend after we try to plug > device > Kernel Version: 5.4 and 5.11 > Hardware: x86-64 > OS: Linux > Tree: Mainline > Severity: high > Priority: P1 > Regression: No > > Created attachment 300434 > --> https://bugzilla.kernel.org/attachment.cgi?id=300434&action=edit > dmesg log > > PCI link is not coming up > > we have been facing a race condition between AER and hoptplug stack which is > happening after suspend when device is unplugged, to avoid that we have used > below three patches. > > 1 - To Avoid lockdep > > https://lore.kernel.org/linux-pci/908047f7699d9de9ec2efd6b79aa752d73dab4b6.1595329748.git.lukas@wunner.de/ > > 2 - AER sleep transition patch > https://lore.kernel.org/linux-pci/20220127025418.1989642-1-kai.heng.feng@canonical.com/ > > 3 - DPC sleep transition patch > https://lore.kernel.org/linux-pci/20220127025418.1989642-2-kai.heng.feng@canonical.com/ > > > Additional info when we are using unplug using sysfs we dont see the issue