From: Lukas Wunner <lukas@wunner.de>
To: Bernd Schumacher <bernd@bschu.de>
Cc: "Uwe Kleine-König" <ukleinek@debian.org>,
1131025@bugs.debian.org,
"Salvatore Bonaccorso" <carnil@debian.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Mario Limonciello" <mario.limonciello@amd.com>,
regressions@lists.linux.dev, stable@vger.kernel.org,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
"Alex Williamson" <alex@shazbot.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Subject: Re: Bug#1131025: [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: Fri, 3 Apr 2026 16:58:49 +0200 [thread overview]
Message-ID: <ac_VqcBbKRDkHp69@wunner.de> (raw)
In-Reply-To: <7173609c404c5444e634dd3ab26f55f2788d82e4.camel@bschu.de>
[cc += Alex, Ilpo]
On Thu, Apr 02, 2026 at 07:53:09AM +0200, Bernd Schumacher wrote:
> dmesg with patch is now attached
Thank you Bernd!
If you cherry-pick these two upstream commits onto v6.12.73,
does the issue go away?
4d4c10f763d7 ("PCI: Explicitly put devices into D0 when initializing")
907a7a2e5bf4 ("PCI/PM: Set up runtime PM even for devices without PCI PM")
The second one is a fix for the first one.
I suspect that the first one is the reason why you are seeing
the issue on v6.12.73 but not on current mainline. The commit
went into v6.16 but was not backported to LTS kernels.
@Alex:
The commit sets pci_dev->current_state to PCI_D0 on device enumeration,
whereas previously it was PCI_UNKNOWN. This changes code paths in
a number of places. In particular:
vfio_pci_core_register_device()
vfio_pci_set_power_state()
... calls pci_restore_state() without a prior pci_save_state() if
current_state is PCI_UNKNOWN. The function doesn't do that for PCI_D0.
Also, there is a code comment in vfio_pci_core_register_device()
claiming that "pci-core sets the device power state to an unknown value
at bootup" which is no longer true since commit 4d4c10f763d7.
I recently had to deal with a regression in ASPM code which was
likewise caused by the subtle change of current_state from PCI_UNKNOWN
to PCI_D0, so my non-artificial neural network was trained to recognize
this pattern and seeing the current_state checks in vfio code thus
immediately looked suspicious to me:
https://bugzilla.kernel.org/show_bug.cgi?id=220705
Thanks,
Lukas
next prev parent reply other threads:[~2026-04-03 14:58 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
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 [this message]
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=ac_VqcBbKRDkHp69@wunner.de \
--to=lukas@wunner.de \
--cc=1131025@bugs.debian.org \
--cc=alex@shazbot.org \
--cc=bernd@bschu.de \
--cc=bhelgaas@google.com \
--cc=carnil@debian.org \
--cc=ilpo.jarvinen@linux.intel.com \
--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 \
--cc=ukleinek@debian.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