Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp907810rdb; Tue, 30 Jan 2024 02:08:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzeeA57vaoHD/kQrkdTEpDaRVDPAI0gtLZfj003UF0LUYUikMXb7lwucHCBRBMPPzhTN1k X-Received: by 2002:a67:bc1a:0:b0:46a:fdbb:6330 with SMTP id t26-20020a67bc1a000000b0046afdbb6330mr3992908vsn.28.1706609311443; Tue, 30 Jan 2024 02:08:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706609311; cv=pass; d=google.com; s=arc-20160816; b=rmzb3UrLZ08dN6LMcsBoMaeSlNEd4BSXcKtbxS3iY4CBDa0k4xdFO7ROjrq8BgDVEZ Bj8JMOuEifKPJ66gVXudh+ATVxjByCRcpVWibvABZqbkYJyIEdI/VMEE5FuriGxRU4Yh SgZ2PLm3VrOvgE4gjFI9xNuvregKrnm0loCo/Ru5FRntMaOEsAnUWjfEnzyO3+H9yO34 xQS6fMHZAkoM1x1OJfOk/Ut5jt+D3NKa2akSM39j0tG1miYdLACuaU2Dt+3nRyv96tAd e9pyZGNaJPPFGaJLnGT9I/pwuaxWL2+zlAZyakvGEpBqRUv7+kd3GrJ9GyrvQZ0j6rAd Nxrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kbcVBtZJtXOlj9WgOgNw6kA+zDOqwk0wr6GyYOA2ytk=; fh=Bf0UpK1TG4IEJEEu1QJEkVDYIk8VZdBoz6ZgBLKYZf8=; b=aYU4HppkRBKv5v3jxTijwlAMbrHwJHypTpJzbmYo7B7uoZ59Ilxxu5lHmfm3I8/0J8 NRoL1QBR5IRWaxultxoiKup6rPLOMRRHgT6abispT1jVq2HrpPhMl6dPRC4IvCUDvc6E xFb+gG69WH5fWAtyDt3jQqVItRELahgRWlC5xOYFkhc6oHdBtvug7QyK6EEyO18sCkwY 90flH4FXKflHn1lBgzwvp1wUDJOcOhKbODHLxLm2tYCyBSBl6EIHewtqDJ+AAl7t/Zr/ Lp5CUwqOrUlHYUcVh8zTXX7+oVdyqwSJkEpmqgY1vYJFf4XgZxIDQEbuz5cDr7VuieJK d4+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oXjU7ZJV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44357-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44357-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bs34-20020a05620a472200b007840d940916si954878qkb.384.2024.01.30.02.08.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 02:08:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44357-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oXjU7ZJV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44357-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44357-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 358CF1C2725A for ; Tue, 30 Jan 2024 10:08:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0432465BBB; Tue, 30 Jan 2024 10:07:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oXjU7ZJV" 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 16BCC60869; Tue, 30 Jan 2024 10:07:50 +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=1706609271; cv=none; b=ScLQTSvX3hDJJ7l8sX/W8IhZ0YjnVw5Vg+TsmU/3yOREB+z0IMzfyt7oTu01Oe8l5CDj6Gku0HfP8VqRErbgnb3DouiNt5dWNPD72CAj+t0HeZIkLyX2bQ0rtF0NdZVXVlZx7MmqMvAHkg7L8G/e4qSyC8ca4Oq+9v8vj67N7/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706609271; c=relaxed/simple; bh=8CKJrkkGZM/Di0WcrrdDLyXgOONeUOLpOJVPXsgvDfc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gHuYMJoh8CaV/ZfSDlaiVZ23rAc3ek/kxbQBaShDvmqjCg6lbEIGQV7h4P9dci5dZsLECvfJ2PCeTUiIGaNgvS4wrHBg6PycCgXuNH6QkMi5PfWHfnvFS27hR9Bn1UKTMSzd1n8zfT+x7j8+ljFmE/c79hNpKvIvPV7oQYFldGE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oXjU7ZJV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92A63C43394; Tue, 30 Jan 2024 10:07:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706609270; bh=8CKJrkkGZM/Di0WcrrdDLyXgOONeUOLpOJVPXsgvDfc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oXjU7ZJVNQetTKK+iu7bcpvfWtFQHKDYE888Y16U4NH5V/n7E9rrIu1Ei+fhqxJ1C aTJ/Hl/ukgxMj9wx17vqA7bZiJvKh131t5jj5sRt/z5PFd41VoUVWGO6YColmMbyMh GBPJ3XabbpiUYPRbKUPm5eh/XYRMpDk6JSGHWcZRpOYSA9pXVf8Yp1a7JPCoJKK9tc j011Q3TokZY8sC5v0t+K0Y3vc204C5daTI/DJ+S0FMqtS2yhNr6f2/ba4Rk9gBruif jxzuBfQ2wkaSrugKhbz0XIhldCgUmbqRTF6UzbTO0rjUaHZahAB6kg3FsMd5qnrp+T rSSlSOaf6POow== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rUl1u-000000002uC-18CJ; Tue, 30 Jan 2024 11:07:46 +0100 Date: Tue, 30 Jan 2024 11:07:46 +0100 From: Johan Hovold To: Bjorn Helgaas Cc: Michael Schaller , Kai-Heng Feng , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev, "Maciej W . Rozycki" , Ajay Agarwal , Kuppuswamy Sathyanarayanan , Greg Kroah-Hartman , Heiner Kallweit , Johan Hovold , Bjorn Helgaas , stable@vger.kernel.org, regressions@leemhuis.info Subject: Re: PCI/ASPM locking regression in 6.7-final (was: Re: [PATCH] Revert "PCI/ASPM: Remove pcie_aspm_pm_state_change()") Message-ID: References: <20240123223648.GA331671@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=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Jan 24, 2024 at 09:16:38AM +0100, Johan Hovold wrote: > On Tue, Jan 23, 2024 at 04:36:48PM -0600, Bjorn Helgaas wrote: > > I don't quite follow. By simply reverting, do you mean to revert > > f93e71aea6c6 ("Revert "PCI/ASPM: Remove > > pcie_aspm_pm_state_change()"")? IIUC that would break Michael's > > machine again. > > Right, at least until that issue is fully understood and alternative > fixes have been considered. > > If that's not an option, we need to rework core to pass a flag through > more than one layer to indicate whether pcie_aspm_pm_state_change() > should take the bus semaphore or not. I'd rather not do that if it can > be avoided. As a revert appears unlikely to happen, let's fix the regression by adding a new helper pci_set_power_state_locked() that can be called with the bus lock held: https://lore.kernel.org/lkml/20240130100243.11011-1-johan+linaro@kernel.org/ Johan