PCI: fix pci dev add and remove sequence
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 34 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | PCI: move back pci_proc_attach_devices callingdrivers/ drivers/ | +1 | 0 replies | |
| 2/7 | PCI: move resources and bus_list releasing to pci_release_devdrivers/ drivers/ | +20 | 3 replies | |
| 3/7 | PCI: Detach driver in pci_stop_devicedrivers/ include/ | +10 | 0 replies | |
| 4/7 | PCI: Fix racing for pci device removing via sysfsdrivers/ | +2 | 1 reply | |
| 5/7 | PCI, ACPI: Don't glue ACPI dev with pci VFsdrivers/ drivers/ | +7 | 0 replies | |
| 6/7 | PCI: Make sure VF's driver get attached after PF'sdrivers/ drivers/ drivers/ +11 more | +115 | 30 replies | |
| 7/7 | PCI: use pf as dma_dev for vf that does not have func0 siblingdrivers/ | +8 | 0 replies |
Reviews trailers per patch
None of the 7 patches has a Reviewed-by or Acked-by.
| Patch | Gu Zheng |
|---|---|
| 1/7 | |
| 2/7 | |
| 3/7 | |
| 4/7 | T-b |
| 5/7 | |
| 6/7 | |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/7] PCI: fix pci dev add and remove sequence
The patchset is started while we try to address double remove pci devices via sysfs that is found by Gu.
main point is from Bjorn that add reference for bus, and he also pointed out that release should be done in pci_release_device.
After reviewing the add and remove path, found more problem that need to be addressed, like
1. proc attach/detach is not balanced
2. stop_and_remove device is not multiple calling safe.
Also found sriov VFs add path has problem, it call pci_bus_add_device to early, and it will make VF's driver get probed before PF's driver probing is done. That will also have nested lock problem.
Please consider those patches to be 3.10 materials.
Thanks
Yinghai
PCI: move back pci_proc_attach_devices calling
PCI: move resources and bus_list releasing to pci_release_dev
PCI: Detach driver in pci_stop_device
PCI: Fix racing for pci device removing via sysfs PCI, ACPI: Don't glue ACPI dev with pci VFs
PCI: Make sure VF's driver get attached after PF's
PCI: use pf as dma_dev for vf that does not have func0 sibling