Skip to contentSkip to conversation

PCI: endpoint: Improve reference in pci_epc_bar_size_to_rebar_cap() comment

PATCH In review Niklas Cassel 2 participants 2 messages Feb 19, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: endpoint: Improve reference in pci_epc_bar_size_to_rebar_cap() comment

Improve the reference pci_epc_bar_size_to_rebar_cap() comment to include a specific PCIe spec version, and a specific section in that PCIe spec.

---
Feel free to squash with original commit.

 drivers/pci/endpoint/pci-epc-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/endpoint/pci-epc-core.c +1 -1
index 5d6aef956b13..88cb426d3aec 100644
@@ -649,7 +649,7 @@ EXPORT_SYMBOL_GPL(pci_epc_set_bar);
 int pci_epc_bar_size_to_rebar_cap(size_t size, u32 *cap)
 {
 	/*
-	 * According to PCIe base spec, min size for a resizable BAR is 1 MB,
+	 * As per PCIe r6.0, sec 7.8.6.2, min size for a resizable BAR is 1 MB,
 	 * thus disallow a requested BAR size smaller than 1 MB.
 	 * Disallow a requested BAR size larger than 128 TB.
 	 */
Signature · 1 line
2.48.1
#1 lore raw
Quoted 7 lines · Niklas Cassel

Improve the reference pci_epc_bar_size_to_rebar_cap() comment to include a specific PCIe spec version, and a specific section in that PCIe spec.

---
Feel free to squash with original commit.

Done, thanks!

- Mani

Quoted 20 lines
 drivers/pci/endpoint/pci-epc-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/endpoint/pci-epc-core.c +1 -1
index 5d6aef956b13..88cb426d3aec 100644
@@ -649,7 +649,7 @@ EXPORT_SYMBOL_GPL(pci_epc_set_bar);
 int pci_epc_bar_size_to_rebar_cap(size_t size, u32 *cap)
 {
 	/*
-	 * According to PCIe base spec, min size for a resizable BAR is 1 MB,
+	 * As per PCIe r6.0, sec 7.8.6.2, min size for a resizable BAR is 1 MB,
 	 * thus disallow a requested BAR size smaller than 1 MB.
 	 * Disallow a requested BAR size larger than 128 TB.
 	 */
Signature · 1 line
2.48.1
Signature · 1 line
மணிவண்ணன் சதாசிவம்