public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: gregkh@linuxfoundation.org
Cc: johan+linaro@kernel.org, bhelgaas@google.com, stable@vger.kernel.org
Subject: Re: FAILED: patch "[PATCH] PCI/ASPM: Fix deadlock when enabling ASPM" failed to apply to 6.6-stable tree
Date: Tue, 13 Feb 2024 15:17:09 +0100	[thread overview]
Message-ID: <Zct55VEPNGX2ThvT@hovoldconsulting.com> (raw)
In-Reply-To: <2024021328-stylus-ooze-f752@gregkh>

On Tue, Feb 13, 2024 at 02:25:29PM +0100, Greg Kroah-Hartman wrote:
> 
> The patch below does not apply to the 6.6-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.
> 
> To reproduce the conflict and resubmit, you may use the following commands:
> 
> git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
> git checkout FETCH_HEAD
> git cherry-pick -x 1e560864159d002b453da42bd2c13a1805515a20
> # <resolve conflicts, build, test, etc.>
> git commit -s
> git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2024021328-stylus-ooze-f752@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^..
> 
> Possible dependencies:
> 
> 1e560864159d ("PCI/ASPM: Fix deadlock when enabling ASPM")
> ac865f00af29 ("Merge tag 'pci-v6.7-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci")

It's probably not worth trying to backport this one further back than
6.7 which had the commit that introduced the issue.

If the offending commit itself is being backported then that may
possibly affect some Intel devices, but this fix would not be needed for
Qualcomm platforms before 6.7 at least.

> ------------------ original commit in Linus's tree ------------------
> 
> From 1e560864159d002b453da42bd2c13a1805515a20 Mon Sep 17 00:00:00 2001
> From: Johan Hovold <johan+linaro@kernel.org>
> Date: Tue, 30 Jan 2024 11:02:43 +0100
> Subject: [PATCH] PCI/ASPM: Fix deadlock when enabling ASPM
> 
> A last minute revert in 6.7-final introduced a potential deadlock when
> enabling ASPM during probe of Qualcomm PCIe controllers as reported by
> lockdep:

> The deadlock can easily be reproduced on machines like the Lenovo ThinkPad
> X13s by adding a delay to increase the race window during asynchronous
> probe where another thread can take a write lock.
> 
> Add a new pci_set_power_state_locked() and associated helper functions that
> can be called with the PCI bus semaphore held to avoid taking the read lock
> twice.
> 
> Link: https://lore.kernel.org/r/ZZu0qx2cmn7IwTyQ@hovoldconsulting.com
> Link: https://lore.kernel.org/r/20240130100243.11011-1-johan+linaro@kernel.org
> Fixes: f93e71aea6c6 ("Revert "PCI/ASPM: Remove pcie_aspm_pm_state_change()"")
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> Cc: <stable@vger.kernel.org>	# 6.7

Johan

  reply	other threads:[~2024-02-13 14:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-13 13:25 FAILED: patch "[PATCH] PCI/ASPM: Fix deadlock when enabling ASPM" failed to apply to 6.6-stable tree gregkh
2024-02-13 14:17 ` Johan Hovold [this message]
2024-02-13 14:23   ` Greg KH
2024-04-23 20:36 ` [PATCH 6.6.y] PCI/ASPM: Fix deadlock when enabling ASPM Bjorn Helgaas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zct55VEPNGX2ThvT@hovoldconsulting.com \
    --to=johan@kernel.org \
    --cc=bhelgaas@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=johan+linaro@kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox