From: Lukas Wunner <lukas@wunner.de>
To: Bernd Schumacher <bernd@bschu.de>
Cc: 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
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: Sun, 29 Mar 2026 18:22:27 +0200 [thread overview]
Message-ID: <aclRwznwq6KpA2qA@wunner.de> (raw)
In-Reply-To: <5f9386146f426e2847550681cb7188471205607f.camel@bschu.de>
On Sun, Mar 29, 2026 at 03:52:15PM +0200, Bernd Schumacher wrote:
> [ 20.660351] vfio-pci 0000:07:00.0: vgaarb: pci_notify
> [ 20.660357] vfio-pci 0000:07:00.0: runtime IRQ mapping not provided by arch
> [ 20.660547] vfio-pci 0000:07:00.0: restore config 0x14: 0x00000000 -> 0xffffffff
> [ 20.660615] vfio-pci 0000:07:00.0: save config 0x00: 0x0003dd01
> [ 20.660620] vfio-pci 0000:07:00.0: save config 0x04: 0x00100000
> [ 20.660626] vfio-pci 0000:07:00.0: save config 0x08: 0x04800000
> [ 20.660631] vfio-pci 0000:07:00.0: save config 0x0c: 0x00000010
> [ 20.660636] vfio-pci 0000:07:00.0: save config 0x10: 0xfc500004
> [ 20.660642] vfio-pci 0000:07:00.0: save config 0x14: 0xffffffff
> [ 20.660647] vfio-pci 0000:07:00.0: save config 0x18: 0x00000000
> [ 20.660652] vfio-pci 0000:07:00.0: save config 0x1c: 0x00000000
> [ 20.660657] vfio-pci 0000:07:00.0: save config 0x20: 0x00000000
> [ 20.660662] vfio-pci 0000:07:00.0: save config 0x24: 0x00000000
> [ 20.660667] vfio-pci 0000:07:00.0: save config 0x28: 0x00000000
> [ 20.660670] vfio-pci 0000:07:00.0: vgaarb: pci_notify
> [ 20.660672] vfio-pci 0000:07:00.0: save config 0x2c: 0x0020dd01
> [ 20.660677] vfio-pci 0000:07:00.0: save config 0x30: 0x00000000
> [ 20.660682] vfio-pci 0000:07:00.0: save config 0x34: 0x00000050
> [ 20.660687] vfio-pci 0000:07:00.0: save config 0x38: 0x00000000
> [ 20.660689] vfio-pci 0000:12:00.0: vgaarb: pci_notify
> [ 20.660692] vfio-pci 0000:07:00.0: save config 0x3c: 0x000001ff
The above is from the non-working kernel version 6.12.73. The BAR at
offset 0x14 in config space is restored and saved with a value of
"all ones" here (0xffffffff).
The working kernel version 6.12.63 is using "all zeroes" instead
(0x00000000).
I'm guessing that the initial pci_save_state() that the offending
commit inserted into device enumeration already saves the incorrect
0xffffffff value and that is subsequently restored by vfio-pci after
resetting the device through a D0 -> D3hot -> D0 transition.
On the working kernel, the pci_restore_state() performed by vfio-pci
probably becomes a no-op because no pci_save_state() was performed
beforehand.
Question is where the incorrect BAR value is coming from. This could
actually be a resource allocation issue that happens to manifest itself
as a passthrough failure. It's not visible in the dmesg output because
it is truncated.
Could you repeat this and add log_buf_len=16M to the kernel command line
so that the dmesg output isn't truncated?
Thanks!
Lukas
next prev parent reply other threads:[~2026-03-29 16:22 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 [this message]
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
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=aclRwznwq6KpA2qA@wunner.de \
--to=lukas@wunner.de \
--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=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