Skip to content

seabios: pci: multi pci bus support

Isaku Yamahata qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 1 replyIn review
  2. v18 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- simplified foreachpci_in_bus()
- add overlap check during pci bar assignemnt.
- use c99 initialization.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8seabios: pci: introduce foreachpci_in_bus() helper macro.src/pci.h+10 -00 replies
2/8seabios: pciinit: factor out pci bar region allocation logic.src/pciinit.c+47 -370 replies
3/8seabios: pciinit: make pci memory space assignment 64bit aware.src/pciinit.c+17 -20 replies
4/8seabios: pciinit: make pci bar assigner preferchable memory aware.src/config.h src/pciinit.c+59 -70 replies
5/8seabios: pciinit: factor out bar offset calculation.src/pciinit.c+10 -100 replies
6/8seabios: pciinit: make bar offset calculation pci bridge aware.src/pciinit.c+5 -10 replies
7/8seabios: pciinit: pci bridge bus initialization.src/pciinit.c+70 -00 replies
8/8seabios: pciinit: initialize pci bridge filtering registers.src/pciinit.c+103 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/8] seabios: pci: multi pci bus support

Changes v1 -> v2:
- simplified foreachpci_in_bus()
- add overlap check during pci bar assignemnt.
- use c99 initialization.

Patch description:

This patch set allows seabios to initialize multi pci bus and 64bit BAR.

Currently seabios is able to initialize only pci root bus. However multi pci bus support is wanted because
- more pci bus is wanted in qemu for many slots
- pci express support is commin in qemu which requires multi pci bus.
those patches on Qemu part are under way, though.

Isaku Yamahata (8):
seabios: pci: introduce foreachpci_in_bus() helper macro.
seabios: pciinit: factor out pci bar region allocation logic.
seabios: pciinit: make pci memory space assignment 64bit aware.
seabios: pciinit: make pci bar assigner preferchable memory aware.
seabios: pciinit: factor out bar offset calculation.
seabios: pciinit: make bar offset calculation pci bridge aware.
seabios: pciinit: pci bridge bus initialization.
seabios: pciinit: initialize pci bridge filtering registers.

 src/config.h  |   17 +++
 src/pci.h     |   10 ++
 src/pciinit.c |  324 +++++++++++++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 306 insertions(+), 45 deletions(-)