Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp844124rdb; Wed, 1 Nov 2023 04:46:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZDBh3YrdCGd19Cg6Wz7doFG6J2/0pBKBffu9xTKeXsZRohnlIGvMZYuzntZTx3+j3RbVB X-Received: by 2002:a17:907:2d2b:b0:9b2:a7db:9662 with SMTP id gs43-20020a1709072d2b00b009b2a7db9662mr2035701ejc.12.1698839174724; Wed, 01 Nov 2023 04:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698839174; cv=none; d=google.com; s=arc-20160816; b=cTzx/2lHbEJETkbt1QtO4Et9d01oJCORTy8KWEGMOngO8DVn57mC97DNZvU4Rf5g0D FRgWwv/DY5ux0cBn1fh/0NjinlAYVCN6T+nd1uvLu9tZyAQ6XvlB8UTU/LjJt3K1+8It M8SC4gVhgUv3PHaHtP8UM7vjodZpTA1+iCw1Q0RjrgeG4luk/XdhkW6D2LVZcgb+Td+W qj5bG3mXb1S352KSM+zAsHXJbdJ3XtEUVK/25NcQL7jrRMitkC+gYzR3OeRWd4NEmg1o XJ436Lw0+VGXyLjHXX0bXy4OL9aO6/3ZqCyYdIBV1KNScaGZ0cR4hHw3xTC7wFDRGSKH vAJw== 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=Y4qWGKy+pZQgc4neiYZ4RrQ6V3aKkuJqNqueZsPc9Fk=; fh=17jULyob3dzaRFYTSt0FxTsr+3E8NtdtuNjqmuJzz6M=; b=epggJRMrt6bbTE4sKvMw2qgBnEFSNUrc4JKYNvkYd0kdVk5mjE96fCdUotuUgZE0Ss S8SyZhP6aOh1X3pg0T6E41TScFSiGWC/rJ/ZbeZEISTTWH4dETXpbe3UxjJLXhLIGIML Yl5HjzPfWkEzmcA4PWRSmvnqYzAcNmfgioSWMW5afEDgzurV/ALT0SpItfUKyelOfTpt lpQRebeRDZ+MsIq1LV5yIl8OiALAgg2lNG2I88KsNwuozUAUfTTawpviBau6T1TLHk1+ FTsPQ71lh0GIo5dD9najrEMTsAvePpXvCBJFMsXm0d4Se9fMGdFU5H3bOTC1TbroNUzR pzdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPoaNCBh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bp3-20020a17090726c300b0098da8d0ce54si1521413ejc.834.2023.11.01.04.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 04:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPoaNCBh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id CCDF1806BF20; Wed, 1 Nov 2023 04:46:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235335AbjKALpr (ORCPT + 99 others); Wed, 1 Nov 2023 07:45:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231571AbjKALpp (ORCPT ); Wed, 1 Nov 2023 07:45:45 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EB48119; Wed, 1 Nov 2023 04:45:43 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F09E1C433C7; Wed, 1 Nov 2023 11:45:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698839143; bh=uRdXVaNPSlmlco16plmQ5T/iCvBKB01tajwUhNVdG/g=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=RPoaNCBh+5fWMFs+UXqnfKgZH7T4yKQK6DTDbUkzeIY5Wt0e1UVOXzqawPZnLhVxl dFmYdGqgRQZDNKi8x2I4n1FnaR3qFsPSHO1Rwqrz8AbK/t/1mbqRXJLPIvMj1Ctmp1 PG8bon32+33rlzgcCY6y3ZdQGNRmCtyMlowB56lJ+oMeOUBQZHjkiJRvd7h5Zqbkik 6lTjUGPSERr1/WzpjN+In6K8tIBIfXBTE/NFbRZaOfzDoamWJCpJvGaN3N651KcICo UEytFq27OCxmWI0OUmPMZOF4jB883M7OfExPK/5Cr/sLru00NZICixp6lpb6SHDlaY 6SeEXPqji8vvg== Date: Wed, 1 Nov 2023 06:45:41 -0500 From: Bjorn Helgaas To: Bagas Sanjaya Cc: Linux Kernel Mailing List , Linux Regressions , Linux NVMe , linux-pci@vger.kernel.org, Bjorn Helgaas , Chaitanya Kulkarni , Christoph Hellwig , gloriouseggroll@gmail.com Subject: Re: Fwd: Regression: Kernel 6.4 rc1 and higher causes Steam Deck to fail to wake from suspend (bisected) Message-ID: <20231101114541.GA43502@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0e784280-02bb-4e0e-a5ae-4e0a40ea4c51@gmail.com> X-Spam-Status: No, score=-1.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 01 Nov 2023 04:46:06 -0700 (PDT) [+cc linux-pci] On Tue, Oct 31, 2023 at 03:21:20PM +0700, Bagas Sanjaya wrote: > Hi, > > I notice a regression report on Bugzilla [1]. Quoting from it: > > > On Kernel 6.4 rc1 and higher if you put the Steam Deck into suspend then press the power button again it will not wake up. > > > > I don't have a clue as to -why- this commit breaks wake from suspend on steam deck, but it does. Bisected to: > > > > ``` > > 1ad11eafc63ac16e667853bee4273879226d2d1b is the first bad commit > > commit 1ad11eafc63ac16e667853bee4273879226d2d1b > > Author: Bjorn Helgaas > > Date: Tue Mar 7 14:32:43 2023 -0600 > > > > nvme-pci: drop redundant pci_enable_pcie_error_reporting() > > > > pci_enable_pcie_error_reporting() enables the device to send ERR_* > > Messages. Since f26e58bf6f54 ("PCI/AER: Enable error reporting when AER is > > native"), the PCI core does this for all devices during enumeration, so the > > driver doesn't need to do it itself. > > > > Remove the redundant pci_enable_pcie_error_reporting() call from the > > driver. Also remove the corresponding pci_disable_pcie_error_reporting() > > from the driver .remove() path. > > > > Note that this only controls ERR_* Messages from the device. An ERR_* > > Message may cause the Root Port to generate an interrupt, depending on the > > AER Root Error Command register managed by the AER service driver. > > > > Signed-off-by: Bjorn Helgaas > > Reviewed-by: Chaitanya Kulkarni > > Signed-off-by: Christoph Hellwig > > > > drivers/nvme/host/pci.c | 6 +----- > > 1 file changed, 1 insertion(+), 5 deletions(-) > > ``` > > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.4.y&id=1ad11eafc63ac16e667853bee4273879226d2d1b > > > > Reverting that commit by itself on top of 6.5.9 (stable) allows it to wake from suspend properly. > > See Bugzilla for the full thread. > > Anyway, I'm adding this regression to regzbot: > > #regression introduced: 1ad11eafc63ac1 https://bugzilla.kernel.org/show_bug.cgi?id=218090 > #regression title: Steam Deck fails to wake from suspend due to pci_enable_pcie_error_reporting() removal > > Thanks. > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=218090 Thanks, I requested some dmesg logs and lspci output to help debug this.