PCI: endpoint: Skip upper halves of 64-bit BARs during search
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 3 repliesIn review
- v11 patch 3 repliesSuperseded
Changes in v2 from the cover letter
- Rebase onto the current PCI main-based patch stack.
- Add a Fixes tag referencing 27ce1d8ecb9b ("PCI: endpoint: Allow only_64bit on BAR_RESERVED") to patch 1. The code change is unchanged from v1.
- Add patch 2 to clarify only_64bit for BAR_RESERVED, following Niklas Cassel's review.
- Add a cover letter now that the series contains two patches.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | PCI: endpoint: Skip upper halves of 64-bit BARs during searchdrivers/ | +4 | 2 replies | |
| 2/2 | PCI: endpoint: Clarify only_64bit for reserved BARsinclude/ | +5 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Niklas Cassel | Frank Li |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] PCI: endpoint: Skip upper halves of 64-bit BARs during search
pci_epc_get_next_free_bar() can return the upper half of a reserved or disabled 64-bit BAR when the search passes that BAR. On Tegra, this can cause the EPF test driver to attempt to program BAR3 and BAR5 even though they are the upper halves of reserved BAR2 and BAR4.
Patch 1 checks the preceding descriptor for every candidate so that upper halves are skipped throughout the search. Patch 2 clarifies that only_64bit also describes the hardware width of a BAR_RESERVED and that the following BAR register cannot be used independently. The existing wording for BAR configuration by EPF drivers is retained.
Changes in v2:
- Rebase onto the current PCI main-based patch stack.
- Add a Fixes tag referencing 27ce1d8ecb9b ("PCI: endpoint: Allow only_64bit on BAR_RESERVED") to patch 1. The code change is unchanged from v1.
- Add patch 2 to clarify only_64bit for BAR_RESERVED, following Niklas Cassel's review.
- Add a cover letter now that the series contains two patches.
v1: https://lore.kernel.org/linux-pci/[email protected]/
Manikanta Maddireddy (2):
PCI: endpoint: Skip upper halves of 64-bit BARs during search
PCI: endpoint: Clarify only_64bit for reserved BARs
drivers/pci/endpoint/pci-epc-core.c | 8 ++++---- include/linux/pci-epc.h | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-)
base-commit: e04b12478ada488e59c54bf17dee4e0f5843e131
Signature · 1 line
2.34.1