From: Roland Ziegler <ea3393@fen-net.de>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Bjorn Helgaas" <bhelgaas@google.com>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Adam Stylinski <kungfujesus06@gmail.com>
Subject: Re: [PATCH 1/1] PCI/bwctrl: Disable BW controller on Intel P45 using a quirk
Date: Mon, 16 Mar 2026 15:43:36 +0100 [thread overview]
Message-ID: <e81045f3-4446-49e7-b9bb-44245766098a@fen-net.de> (raw)
In-Reply-To: <20260116131513.2359-1-ilpo.jarvinen@linux.intel.com>
On Fri, 16 Mar 2026 13:15:13 +0100, Ilpo Jarvinen wrote:
> The commit 665745f27487 ("PCI/bwctrl: Re-add BW notification portdrv as
> PCIe BW controller") was found to lead to a boot hang on a Intel P45
> system. Testing without setting Link Bandwidth Management Interrupt
> Enable (LBMIE) and Link Autonomous Bandwidth Interrupt Enable (LABIE)
> in bwctrl allowed system to come up.
>
> Add no_bw_notif into the struct pci_dev and quirk Intel P45 Root Port
> with it.
The commit 665745f27487 re-added BW notification support in bwctrl,
but on Intel P45 root ports it can cause a boot hang when both LBMIE
and LABIE are enabled.
This patch modifies bwctrl to allow the interrupts safely. For ports
marked no_bw_notif, each interrupt is enabled separately, preventing
the hang while keeping BW notifications functional.
Patch has been tested since kernel v6.13 on P45 hardware without issues.
---
Patch:
--- a/drivers/pci/pcie/bwctrl.c
+++ b/drivers/pci/pcie/bwctrl.c
@@ -190,8 +190,13 @@
if (ret == PCIBIOS_SUCCESSFUL && link_status & PCI_EXP_LNKSTA_LBMS)
set_bit(PCI_LINK_LBMS_SEEN, &port->priv_flags);
- pcie_capability_set_word(port, PCI_EXP_LNKCTL,
- PCI_EXP_LNKCTL_LBMIE | PCI_EXP_LNKCTL_LABIE);
+ if (port->no_bw_notif) {
+ pcie_capability_set_word(port, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_LBMIE);
+ pcie_capability_set_word(port, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_LABIE);
+ } else
+ pcie_capability_set_word(port, PCI_EXP_LNKCTL,
+ PCI_EXP_LNKCTL_LBMIE | PCI_EXP_LNKCTL_LABIE);
+
pcie_capability_write_word(port, PCI_EXP_LNKSTA,
PCI_EXP_LNKSTA_LBMS | PCI_EXP_LNKSTA_LABS);
@@ -250,9 +255,6 @@
struct pci_dev *port = srv->port;
int ret;
- if (port->no_bw_notif)
- return -ENODEV;
-
/* Can happen if we run out of bus numbers during enumeration. */
if (!port->subordinate)
return -ENODEV;
Fixes: 665745f27487 ("PCI/bwctrl: Re-add BW notification portdrv as PCIe BW controller")
Link: https://lore.kernel.org/lkml/20260116131513.2359-1-ilpo.jarvinen@linux.intel.com/
Signed-off-by: Roland <ea3393@fen-net.de>
prev parent reply other threads:[~2026-03-16 14:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-16 13:15 Ilpo Järvinen
2026-02-06 22:59 ` Bjorn Helgaas
2026-03-16 14:43 ` Roland Ziegler [this message]
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=e81045f3-4446-49e7-b9bb-44245766098a@fen-net.de \
--to=ea3393@fen-net.de \
--cc=bhelgaas@google.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=kungfujesus06@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@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
all inboxes | Powered by JetHome®