Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp26298lqg; Wed, 10 Apr 2024 14:10:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1OnruttANyhOW4UiUdJopxcMhH8fRg/KqZA5BQcF2BfwJJ05jMZ474CHzW3rGgqI5rVvQ4FDFvkqAF6uXIIaYCPWw+cde8EoMoBL8lQ== X-Google-Smtp-Source: AGHT+IGhS0i6eKEJtWv+liVAnuKGtASbhdyBwE3MQ9J9DWdJT8yTfI07z1khHzupGp1jzxW0vdxd X-Received: by 2002:a17:902:f7d3:b0:1e3:f012:568d with SMTP id h19-20020a170902f7d300b001e3f012568dmr2890113plw.15.1712783447753; Wed, 10 Apr 2024 14:10:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712783447; cv=pass; d=google.com; s=arc-20160816; b=OaRLGStX//uM7bGFVkliy5ZKBcQcpS1Xgc2Nnq9xFZMsM4ZmerLxjMANe8TaMShBwc gzKaXpYR9vXGMI8gN407ZmPBApGYr+sXYKtWEBXLyUr7DsSgwubAg51rxGk6a9VRW4hF 3iv9eDuMyFYhbgvbvuP8T85xE3wqXqmv0k5aSXJKNYUcqwx5bfirysg/DY1II6njNIIQ bDzTTjsg20sLChgckhDWpy9HwpVQ62Q+wqFUesIWAeMyw/GWI+bHwOiYXJOeL8lURBv+ fbf8MlRPEAF+k9yCuf/WeQNifrMMBm/sY6Ee69Xg90beSi0eFtJZPQ+xHg7ufMnI02In RfbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=CbSuscu8LGwBrQAmdgvPDT9L/43QS1toy6u6a/73DFU=; fh=qnXknuSLTLQHQ66Kys0si98hq58apxciMN94cQwF+Jg=; b=yCzfZIDg+8nR8k5ltpKwPlWUu7UHx+MLhcGiKVr2TKxi2A6Ti3P/r5Cp26VW8nAuG+ 5bj+9NU3h1bJm5xZjn1AVTjcozdvrWhLdc2a3LaY1D9wRdo+85rNv0ZAodYkGDGnIpW2 Y4wlbPFJsywqMicgSEaTK0/VmUtVg6AFTmOwkhAVjsEF+oIAstqmyebnoIZ5scajytRs N5r5uLCcZ/jKTx1i9fXb50NuP5pfxNUwvy184BT6pD0yKpLbJVS/NBaT0yvLb4tz+fhg XZQAa0c2UCpjN/eb9zJ5/Pgp95AljyVj51G4Hm3BG2gTzvs74HUzfOg88f/mF8ITatnH aUXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RRrjZkxA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139340-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139340-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v20-20020a170902d09400b001e017c4b9e1si10650315plv.156.2024.04.10.14.10.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 14:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139340-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RRrjZkxA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139340-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139340-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id F12D5B28371 for ; Wed, 10 Apr 2024 20:59:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94540181D07; Wed, 10 Apr 2024 20:59:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RRrjZkxA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5F9C181BBC; Wed, 10 Apr 2024 20:59:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712782763; cv=none; b=kBwfS/C8zmJumtCthnKBJHSIwm3+wtfR2HB0tvH54xd7VMJOlcc4SySHTUYE8aAVMNdbqyoUFRwDTdzOnjZlzRkZbsaA0prYnbnMY4ImdCicU43QzUjbTRs6jGMpl2E/LoTvBrxydtbCYCOxFlotD1eXvI2P0XJWoXF70OZqSBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712782763; c=relaxed/simple; bh=zGAh4ICKgST7UhxvjpeVE4w+WnC0LVCFrEni6OL7qNI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=CvNJ29JrN8l/W+y43T/P0n4qo7BIDHTzTDjqepaqa6ZsXv3BrlEHgWkPyzwvu4wN4cjdRV75TwDODltNZ7zB9ZWyqFgK/spf/kjc8cWsetrb8PDY95gtmLsjQKpMU6qEmqqWIWUU3V2cqxlh6c4lv8qcomzopFFIl9+gMfZBBb0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RRrjZkxA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D0D2C433F1; Wed, 10 Apr 2024 20:59:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712782763; bh=zGAh4ICKgST7UhxvjpeVE4w+WnC0LVCFrEni6OL7qNI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=RRrjZkxAzgBqCzAqbahkK2QhXFqCH5r83Fxt9TbKx8//6Qtfqln3qBWMyyUPRq0Sj +e29zeARUs6Lqc9bcLAro54EJ4/2/E6ahXlsyk9h5qKTeHCz0qo4V5Abr7H8UcYYYp v1QgQNd9W1ZaxOVzFzuw+bPIKW3NkCZTX9NtQocnhpsYR5kA3nQ/dmqPk2H/b8+0xN 9tXAjwjVPKuVMpRWYhjC0UkRcxXGTE0VxgL/szUoWMKc/4z0ZbMi5sihaMnfdcys/s gLR4qlFHAFmJE59iyHPbm/xt8AzVuLV7gorDESfkYvsfsGil+/tLCzPUdeGWkKJpPF tLg2WOtQvD3IA== Date: Wed, 10 Apr 2024 15:59:21 -0500 From: Bjorn Helgaas To: Kai-Heng Feng Cc: Bagas Sanjaya , Linux Kernel Mailing List , Linux Regressions , Linux NVMe , linux-pci@vger.kernel.org, Bjorn Helgaas , Chaitanya Kulkarni , Christoph Hellwig , gloriouseggroll@gmail.com, Keith Busch , Sagi Grimberg , Hannes Reinecke Subject: Re: Fwd: Regression: Kernel 6.4 rc1 and higher causes Steam Deck to fail to wake from suspend (bisected) Message-ID: <20240410205921.GA2156865@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Apr 10, 2024 at 02:20:31PM +0800, Kai-Heng Feng wrote: > On Sat, Mar 30, 2024 at 9:47 PM Bjorn Helgaas wrote: > > On Wed, Nov 01, 2023 at 06:45:41AM -0500, Bjorn Helgaas wrote: > > > On Tue, Oct 31, 2023 at 03:21:20PM +0700, Bagas Sanjaya wrote: > > > > 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 > ... > > silverspring attached lspci output and a dmesg log from v6.8 to the > > bugzilla and also noted that "pci=noaer" works around the problem. > > > > The problem commit is 1ad11eafc63a ("nvme-pci: drop redundant > > pci_enable_pcie_error_reporting()") > > (https://git.kernel.org/linus/1ad11eafc63a) > > > > 1ad11eafc63a removed pci_disable_pcie_error_reporting() from the > > nvme_suspend() path, so we now leave the PCIe Device Control error > > enables set when we didn't before. My theory is that the PCIe link > > goes down during suspend, which causes an error interrupt, and the > > interrupt causes a problem on Steam Deck. Maybe there's some BIOS > > connection. > > > > "pci=noaer" would work around this because those error enables would > > never be set in the first place. > > > > I asked reporters to test the debug patches below to disable those > > error interrupts during suspend. > > > > I don't think this would be the *right* fix; if we need to do this, I > > think it should be done by the PCI core, not by individual drivers. > > Kai-Heng has been suggesting this for a while for a different > > scenario. > > Should I send the patch to mailing list again to stir more discussion? Yes, please. Include the folks from this thread, too, and the Steam Deck bugzilla link since we have more more problem reports now. Bjorn