Skip to content

PCI: Double removing fix and allocate 64bit mmio pref

Yinghai Lu linux-pci lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 7 repliesIn review
  2. v210 patches 44 repliesSuperseded
  3. v16 patches 7 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12PCI: Use device_release_driver in pci_stop_root_busdrivers/pci/remove.c+2 -20 replies
2/12PCI: Move back pci_proc_attach_devices callingdrivers/pci/bus.c drivers/pci/probe.c+1 -20 replies
3/12PCI: Move resources and bus_list releasing to pci_release_devdrivers/pci/probe.c drivers/pci/remove.c+19 -210 replies
4/12PCI: Destroy pci dev only oncedrivers/pci/probe.c drivers/pci/remove.c include/linux/pci.h+8 -33 replies
5/12PCI: pcibus address to resource converting take bus instead of devdrivers/pci/host-bridge.c include/linux/pci.h+26 -130 replies
6/12PCI: Only enable realloc auto when root bus has 64bit mmiodrivers/pci/setup-bus.c+27 -50 replies
7/12PCI: Don't use 4G bus address directly in resource allocationdrivers/pci/bus.c+34 -70 replies
8/12PCI: Try to allocate mem64 above 4G at firstdrivers/pci/bus.c+19 -20 replies
9/12PCI: Kill PCIBIOS_MAX_MEM_32arch/x86/include/asm/pci.h include/linux/pci.h+0 -50 replies
10/12PCI: Try best to allocate pref mmio 64bit above 4gdrivers/pci/setup-bus.c drivers/pci/setup-res.c+101 -460 replies
11/12PCI: Sort pci root bus resources listdrivers/pci/bus.c+13 -22 replies
12/12intel-gtt: Read 64bit for gmar_bus_addrdrivers/char/agp/intel-gtt.c+10 -40 replies

Reviews trailers per patch

2 of 12 patches have a Reviewed-by or Acked-by.

PatchRafael J. WysockiGuo ChaoDaniel Vetter
1/12A-b
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12T-b
11/12
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/12] PCI: Double removing fix and allocate 64bit mmio pref

First 4 are for Gu Zheng <[email protected]> to help double pci device removing via sysfs.
For patch 4, rafael like to have use lock instead of atomic.

Patch 6 are for not enabling realloc auto when 64bit mmio is not there for root bus.

Others are about mmio 64 allocation that could help Guo Chao <[email protected]> on powerpc mmio allocation. It will try to assign 64 bit resource above 4g at first.

Patch 1-4 and Patch 5-12 could be appliey seperatedly.

Could be found:
git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-pci-3.14

And it is based on current pci/for-linus.

-v2: update after patch that move device_del down to pci_destroy_dev.
add "Try best to allocate pref mmio 64bit above 4G"

-v3: refresh and send out after pci_clip_resource() changes,
as Bjorn is not happy with attachments.

Yinghai Lu (12):
PCI: Use device_release_driver in pci_stop_root_bus
PCI: Move back pci_proc_attach_devices calling
PCI: Move resources and bus_list releasing to pci_release_dev
PCI: Destroy pci dev only once
PCI: pcibus address to resource converting take bus instead of dev
PCI: Only enable realloc auto when root bus has 64bit mmio
PCI: Don't use 4G bus address directly in resource allocation
PCI: Try to allocate mem64 above 4G at first
PCI: Kill PCIBIOS_MAX_MEM_32
PCI: Try best to allocate pref mmio 64bit above 4g
PCI: Sort pci root bus resources list
intel-gtt: Read 64bit for gmar_bus_addr

 arch/x86/include/asm/pci.h   |   1 -
 drivers/char/agp/intel-gtt.c |  14 ++--
 drivers/pci/bus.c            |  74 ++++++++++++++++---
 drivers/pci/host-bridge.c    |  34 +++++----
 drivers/pci/probe.c          |  23 +++++-
 drivers/pci/remove.c         |  31 ++------
 drivers/pci/setup-bus.c      | 165 ++++++++++++++++++++++++++++++-------------
 drivers/pci/setup-res.c      |  14 +++-
 include/linux/pci.h          |  10 +--
 9 files changed, 257 insertions(+), 109 deletions(-)
Signature · 1 line
1.8.1.4