Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #91871

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

Path csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Lukas Wunner <lukas@wunner.de>
Newsgroups linux.debian.bugs.dist, linux.kernel, linux.debian.kernel
Subject 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 Tue, 31 Mar 2026 15:30:01 +0200
Message-ID <MEHkl-bEKA-3@gated-at.bofh.it> (permalink)
References <MzwSC-89iU-3@gated-at.bofh.it> <MDC3n-aVYW-9@gated-at.bofh.it> <MDCPL-aWyd-5@gated-at.bofh.it> <MDHmp-aZLf-3@gated-at.bofh.it> <MDHmp-aZLf-1@gated-at.bofh.it> <ME1bs-bcRe-5@gated-at.bofh.it> <ME1bs-bcRe-3@gated-at.bofh.it> <MEljP-bqdd-3@gated-at.bofh.it> <MzwSC-89iU-3@gated-at.bofh.it> <MEljP-bqdd-3@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Tue Mar 31 13:21:08 2026
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -1.65
Reply-To Lukas Wunner <lukas@wunner.de>, 1131025@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc debian-kernel@lists.debian.org
X-Debian-Pr-Message followup 1131025
X-Debian-Pr-Package src:linux
X-Debian-Pr-Keywords upstream
X-Debian-Pr-Source linux
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Greylist delayed 551 seconds by postgrey-1.37 at buxtehude; Tue, 31 Mar 2026 13:19:02 UTC
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1961628
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 42
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-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
X-Original-Date Tue, 31 Mar 2026 15:09:34 +0200
X-Original-Message-ID <acvHjo8PKdyHshSE@wunner.de>
X-Original-References <177373189751.7987.7156982489427825197.reportbug@obelix-trixie.bs.de> <acfZrlP0Ua_5D3U4@eldamar.lan> <acfhf-odtr0yw_py@wunner.de> <74bcd84500e5efcca035624f325e400dd8a21f44.camel@bschu.de> <acgohjvBpVcR7HcK@wunner.de> <5f9386146f426e2847550681cb7188471205607f.camel@bschu.de> <aclRwznwq6KpA2qA@wunner.de> <ecf9b2dd96ff97cc035ba297266b8dd05eea88da.camel@bschu.de> <177373189751.7987.7156982489427825197.reportbug@obelix-trixie.bs.de> <ecf9b2dd96ff97cc035ba297266b8dd05eea88da.camel@bschu.de>
Xref csiph.com linux.debian.bugs.dist:1287992 linux.kernel:1743538 linux.debian.kernel:91871

Cross-posted to 3 groups.

Show key headers only | View raw


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.

Below is a small debug patch.  Could you apply that on top of v6.12.73
(or newer) and provide me with the resulting full dmesg output?

The patch emits a stacktrace when correcting the BAR value as well as
when saving and restoring config space of the DVB card.  This should
give a clue where the ordering issue originates from.

Please note that the log_buf_len=16M parameter needs to be put outside
the double quotes of the dyndbg parameter, i.e.:

GRUB_CMDLINE_LINUX='log_buf_len=16M dyndbg="file drivers/pci/* +p"'

The dmesg output provided most recently no longer contained the dyndbg
output, probably because log_buf_len was intermixed with the double quoted
string.

Thanks for your continued patience in helping root-cause this issue!

Lukas

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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 Salvatore Bonaccorso <carnil@debian.org> - 2026-03-28 14:40 +0100
  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 Lukas Wunner <lukas@wunner.de> - 2026-03-28 15:30 +0100
    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 Lukas Wunner <lukas@wunner.de> - 2026-03-28 20:20 +0100
      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 Lukas Wunner <lukas@wunner.de> - 2026-03-29 18:30 +0200
        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 Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> - 2026-03-30 16:00 +0200
        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 Lukas Wunner <lukas@wunner.de> - 2026-03-31 15:30 +0200
        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 Lukas Wunner <lukas@wunner.de> - 2026-03-31 15:30 +0200
          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 Lukas Wunner <lukas@wunner.de> - 2026-04-01 06:20 +0200
        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 Uwe Kleine-König <ukleinek@debian.org> - 2026-04-01 15:20 +0200
          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 Lukas Wunner <lukas@wunner.de> - 2026-04-01 22:30 +0200
            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 Lukas Wunner <lukas@wunner.de> - 2026-04-03 17:10 +0200
              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 Lukas Wunner <lukas@wunner.de> - 2026-04-13 05:50 +0200
                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 Lukas Wunner <lukas@wunner.de> - 2026-04-14 07:50 +0200
                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 Lukas Wunner <lukas@wunner.de> - 2026-04-15 18:10 +0200
  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 Thorsten Leemhuis <regressions@leemhuis.info> - 2026-03-28 15:50 +0100

csiph-web