From: Alex Williamson <alex@shazbot.org>
To: Lukas Wunner <lukas@wunner.de>
Cc: Bernd Schumacher <bernd@bschu.de>,
Salvatore Bonaccorso <carnil@debian.org>,
Bjorn Helgaas <bhelgaas@google.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Mario Limonciello <mario.limonciello@amd.com>,
1131025@bugs.debian.org, regressions@lists.linux.dev,
stable@vger.kernel.org, linux-pci@vger.kernel.org,
linux-kernel@vger.kernel.org, alex@shazbot.org
Subject: Re: [6.12.y regression] Regression with 58130e7ce6cb ("PCI/ERR: Ensure error recoverability at all times"): echo vfio-pci >driver_override does not work for DVB Adapter
Date: Tue, 31 Mar 2026 17:01:49 -0600 [thread overview]
Message-ID: <20260331170149.3ee222aa@shazbot.org> (raw)
In-Reply-To: <acvHjo8PKdyHshSE@wunner.de>
On Tue, 31 Mar 2026 15:09:34 +0200
Lukas Wunner <lukas@wunner.de> wrote:
> On Mon, Mar 30, 2026 at 08:14:53AM +0200, Bernd Schumacher wrote:
> > [ 0.318903] pci 0000:07:00.0: [dd01:0003] type 00 class 0x048000 PCIe Endpoint
> > [ 0.318939] pci 0000:07:00.0: BAR 0 [mem 0xfffffffffc500000-0xfffffffffc50ffff 64bit]
>
> BIOS initially sets the BAR address to an incorrect value (the top 32 bits
> should be all zeroes instead of all ones)...
>
> > [ 0.339685] pci 0000:07:00.0: BAR 0 [mem 0xfffffffffc500000-0xfffffffffc50ffff 64bit]: can't claim; no compatible bridge window
> [...]
> > [ 0.311065] pci 0000:02:03.0: [1022:57a3] type 01 class 0x060400 PCIe Switch Downstream Port
> > [ 0.311107] pci 0000:02:03.0: PCI bridge to [bus 07]
> > [ 0.311118] pci 0000:02:03.0: bridge window [mem 0xfc500000-0xfc5fffff]
>
> ... this doesn't fit into the window of the bridge above the DVB card,
> which has the top 32 bits set to all zeroes...
>
> > [ 0.357346] pci 0000:07:00.0: BAR 0 [mem 0xfc500000-0xfc50ffff 64bit]: assigned
>
> ... the kernel fixes the incorrect BAR, but it seems there's an ordering
> issue such that pci_save_state() is called beforehand. It's weird that
> this doen't occur with newer kernels and it would be good to understand why.
> I'm not seeing the ordering issue despite staring at the code for a while.
Do we know this isn't occurring on newer kernels? If we have a bogus
BAR address that later gets fixed, this seems like a fairly unique
setup. AIUI, we're saving the state via the call chain invoked by
subsys_initcall(pcibios_init), but I think we're doing the resource
fixes in fs_initcall(pcibios_assign_resources). That suggests that the
saved state would have the bogus BAR values.
If we toss PM runtime into that mix, pci_pm_default_resume_early() will
call pci_restore_state() however pci_save_state() in that file is
mostly wrapped around pci_dev->state_saved guards. This suggests we
likely won't save the reallocated state, but we will restore the
pre-reallocated state.
Maybe this can be quickly validated by loading vfio-pci with the
disable_idle_d3=1 option to avoid the PM transition. Thanks,
Alex
next prev parent reply other threads:[~2026-03-31 23:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <177373189751.7987.7156982489427825197.reportbug@obelix-trixie.bs.de>
2026-03-28 13:37 ` [6.12.y regression] Regression with 58130e7ce6cb ("PCI/ERR: Ensure error recoverability at all times"): echo vfio-pci >driver_override does not work for DVB Adapter Salvatore Bonaccorso
2026-03-28 14:11 ` Lukas Wunner
2026-03-28 16:16 ` Bernd Schumacher
2026-03-28 19:14 ` Lukas Wunner
2026-03-29 13:52 ` Bernd Schumacher
2026-03-29 16:22 ` Lukas Wunner
2026-03-30 6:14 ` Bernd Schumacher
2026-03-30 13:56 ` Ilpo Järvinen
2026-03-31 13:09 ` Lukas Wunner
2026-03-31 13:13 ` Lukas Wunner
2026-03-31 23:01 ` Alex Williamson [this message]
2026-04-01 4:11 ` Lukas Wunner
2026-04-01 13:10 ` Bug#1131025: " Uwe Kleine-König
2026-04-01 16:16 ` Bernd Schumacher
2026-04-01 20:18 ` Lukas Wunner
2026-04-02 5:53 ` Bernd Schumacher
2026-04-03 14:58 ` Lukas Wunner
2026-04-04 9:54 ` Bernd Schumacher
2026-03-28 14:40 ` Thorsten Leemhuis
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=20260331170149.3ee222aa@shazbot.org \
--to=alex@shazbot.org \
--cc=1131025@bugs.debian.org \
--cc=bernd@bschu.de \
--cc=bhelgaas@google.com \
--cc=carnil@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=mario.limonciello@amd.com \
--cc=rafael@kernel.org \
--cc=regressions@lists.linux.dev \
--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