Bug 208855
Summary: | Lockdep warning in PCI-e hotplug code | ||
---|---|---|---|
Product: | Drivers | Reporter: | Hans de Goede (jwrdegoede) |
Component: | PCI | Assignee: | drivers_pci (drivers_pci) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.8.0 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Hans de Goede
2020-08-09 18:00:35 UTC
On the linux-pci list Lukas Wunner wrote the following about this: False positive, the reset_lock is per-controller and multiple instances of the lock are held concurrently because pciehp controllers are nested with Thunderbolt. This was already reported by Theodore T'so: https://lore.kernel.org/linux-pci/20190402021933.GA2966@mit.edu/ So the issue is on my radar and I have some ideas how to fix it. Let me get back to you with a solution later. In the meantime, thank you for the report. This is fixed by this commit: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/commit/?id=42a46c70045915bcbdced3e694dc5825d124fb5c Which should get merged into 5.17-rc1 soon-ish, closing. Note the branch the commit from comment 2 references was just rebased so the commit hash will likely stop working eventually. So for future reference the commit fixing this has the following title/subject: "PCI: pciehp: Use down_read/write_nested(reset_lock) to fix lockdep errors" |