Skip to content

PCI: Convert maintaining FW-assigned BIOS BAR values to a list of temporary entries

Myron Stowe linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: Fix starting basis for resource requestsdrivers/pci/setup-res.c+8 -50 replies
2/3PCI: Maintain a list of FW-assigned BIOS BAR valuesdrivers/pci/setup-res.c include/linux/pci.h+74 -02 replies
3/3x86/PCI: Convert maintaining FW-assigned BIOS BAR values to use a listarch/x86/pci/i386.c drivers/pci/setup-res.c include/linux/pci.h+10 -70 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] PCI: Convert maintaining FW-assigned BIOS BAR values to a list of temporary entries

In commit 58c84eda075 functionality was introduced that tries to reinstate the original, FW-assigned, BAR addresses of a PCI device when normal resource assignment attempts fail. To keep track of the BIOS BAR addresses, struct pci_dev was augmented with an array to hold the BAR addresses of the PCI device: 'resource_size_t fw_addr[DEVICE_COUNT_RESOURCE]'.

The reinstatement of BAR addresses is an uncommon event leaving the 'fw_addr' array unused normally. As the use of struct pci_dev is so prevalent, this seems wasteful.

This patch series introduces a stand alone data structure and corresponding set of interfacing routines, converting the underlying aspects of the existing maintanence scheme to a list of temporary BIOS BAR value entries instead.

---

Myron Stowe (3):
x86/PCI: Convert maintaining FW-assigned BIOS BAR values to use a list
PCI: Maintain a list of FW-assigned BIOS BAR values
PCI: Fix starting basis for resource requests

 arch/x86/pci/i386.c     |    2 -
 drivers/pci/setup-res.c |  100 ++++++++++++++++++++++++++++++++++++++++++-----
 include/linux/pci.h     |    2 -
 3 files changed, 92 insertions(+), 12 deletions(-)