Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1553754pxb; Tue, 8 Feb 2022 22:05:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyL6oSGArhpdAz5Zo/rN2bgn4TMd2+us/R7GUaAv/uSSfWQEB62ck7JZUmVEsTKx6bIOXy8 X-Received: by 2002:a63:df46:: with SMTP id h6mr737629pgj.26.1644386725401; Tue, 08 Feb 2022 22:05:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644386725; cv=none; d=google.com; s=arc-20160816; b=fX723VJvbLU9sFi8jwKToQ/a//lH3bdyrL35e2WLia9UZQ5hL36zIr5tS+T2OwUuUy 0+PHomF92PGhn5IhXEQYqSmz583M9m3l4/v10BDZxjtFQvB0jnaigo2Aju2r5+y/CY+D vOU2G705MQBArYFNnO0X3dcAiX/LmTj3461O5dzngJxtfvFihe8yASGfw8ZC9wILXLYp mWdAZYbQebUHQYdtJKTa6QObekos6xAK6cdQGHUBQRSfshQHB2UBDWgKXfW3It9sZeLn CMdTeCf5xloX1Q+N9OjIMjpCw9PDON2jyCxkagwUwt9z/myazh9XwafUihqtHAr9AwBk sJmg== 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=nNdSHR16hrcGbw7fiHSMp0Cj9fIoxr7KI7MNAsSlAiA=; b=Y429Rbl6/Wm+v7qRfX9HtSPbBEjRC81NBhMZ1E7IJDB0mOPeC3fMr4W+c5NACtH6L1 XeJqcfmdKUjZBaFLHnROOfEsLKjTzboYfuuXEwgQkEZTdwA27PMAGF8c9imTwvUQRhhe TFDrlK1T44u4w+4D2oMvpYyC/bQlCbuhsM9LzHN31SDGtDUwX+wnfk0oOWRxxE0XvlsZ Nos3rBsI+FLvxrQNSyi+HqxJ8Mn60s1xJXPemlU2UVHtkgSzMh+6CPl2SJ9VW/HorfXF SAn+2Jr7S6RQ9o/pnLH4zOucfTNV9gL9UB2n3b8xXrdVY9bBJ7g7W1fce9nalVAb2GN4 WvOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VvOWNT1b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d14si15017298pfl.163.2022.02.08.22.05.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 22:05:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VvOWNT1b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E312FC0043FC; Tue, 8 Feb 2022 21:53:22 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383351AbiBGQoM (ORCPT + 99 others); Mon, 7 Feb 2022 11:44:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390297AbiBGQdg (ORCPT ); Mon, 7 Feb 2022 11:33:36 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51D09C0401D2; Mon, 7 Feb 2022 08:33:35 -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 dfw.source.kernel.org (Postfix) with ESMTPS id DED5F60AEB; Mon, 7 Feb 2022 16:33:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED6B5C004E1; Mon, 7 Feb 2022 16:33:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644251614; bh=YStYf4ucIzT6Pp4vPG9FLBRd38te+ElsNSNwIkQkQIY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=VvOWNT1bEakGUB3rk8C84JoC5A8CHa9ZlUCn5yK0NR4HokD8oNDnUl3ZB+ft+4WzC YRzT9FD6utLDS2lwcRcuI19u71/rOJrnPOBfpwuUW7WHK7Uw788CLKi2DD4Vj0kGoW o+XxOQ2wwe5o2YD7Tf+SnCIMrSFUiGXg3ENLdZmWNWa+oeCOXuoj8ZkoKJUwojGnwy low6gKFnu8uh/uhcq3nxXGxQr3X9QvEKX4L/Yqof7HIX6te3POVJJEq65CxLuSB9kj qe0hofIBOqUBvyhxPb+GIN1OB5KvgFO+ugLfJV0BYWHOuAH9aDYtk7FoKT+J1ERbxK bPav69BslH5dg== Date: Mon, 7 Feb 2022 10:33:32 -0600 From: Bjorn Helgaas To: "Kenneth R. Crudup" Cc: Vidya Sagar , bhelgaas@google.com, lorenzo.pieralisi@arm.com, hkallweit1@gmail.com, wangxiongfeng2@huawei.com, mika.westerberg@linux.intel.com, kai.heng.feng@canonical.com, chris.packham@alliedtelesis.co.nz, yangyicong@hisilicon.com, treding@nvidia.com, jonathanh@nvidia.com, abhsahu@nvidia.com, sagupta@nvidia.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kthota@nvidia.com, mmaddireddy@nvidia.com, sagar.tv@gmail.com Subject: Re: [PATCH V1] PCI/ASPM: Save/restore L1SS Capability for suspend/resume Message-ID: <20220207163332.GA397884@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12fe557f-7336-1970-d8f0-5a93529cf8c1@panix.com> X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,SPF_HELO_PASS,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 05, 2022 at 09:30:07AM -0800, Kenneth R. Crudup wrote: > > > If you'd like, I could try re-applying the previous problem > > > commit or your attempted fix on top of Linus' master if you'd > > > like to see if something was fixed somewhere else in the PCIe > > > subsystem, but if you think it's not worth- while I'm satisfied > > > with the current fix (or probably more-exactly for my particular > > > machine, lack of regression). > > On Sat, 5 Feb 2022, Vidya Sagar wrote: > > > That would be a good starting point to understand it better. In fact if the > > previous problematic patch works fine on master, then, we are sure that > > something in the sub-system would have fixed the issue. > > So this is my report of the regression I'd found with Bjorn's original commit: > ---- > Date: Fri, 25 Dec 2020 16:38:56 > From: Kenneth R. Crudup > To: vidyas@nvidia.com > Cc: bhelgaas@google.com > Subject: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume > failures > > I've been running Linus' master branch on my laptop (Dell XPS 13 2-in-1). With > this commit in place, after resuming from hibernate my machine is essentially > useless, with a torrent of disk I/O errors on my NVMe device (at least, and > possibly other devices affected) until a reboot. > > I do use tlp to set the PCIe ASPM to "performance" on AC and "powersupersave" > on battery. > > Let me know if you need more information. > ---- > > I just reapplied it on top of Linus' master and not only did it go > in cleanly(!), NOW I'm not getting any issues after a > suspend/resume. So on 12/25/2020 (just before v5.11-rc1), you saw I/O errors after resume from hibernate, and you apparently went to the trouble to bisect it to 4257f7e008ea ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume"). We reverted 4257f7e008ea, and the revert appeared in v5.11-rc7. I assume you re-applied 4257f7e008ea ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") on top of something between v5.17-rc2 and v5.17-rc3, and you don't see those I/O errors. It's possible something was fixed elsewhere between v5.11-rc1 and v5.17-rc2, but I'm not really convinced by that theory. I think it's more likely that something changed in BIOS settings or other configuration, which means other people may trip over it even if you don't see it. Do you remember any BIOS updates, BIOS setup tweaks, hardware changes, kernel parameter changes, etc? If the problem really was fixed by some change elsewhere, it *should* still happen on v5.11-rc1. I think we should verify that and try to figure out what the other change was. People who want to backport the L1SS save/restore will need to know that anyway. Bjorn