[SRU][N][PATCH 1/1] UBUNTU: SAUCE: Revert "PCI: endpoint: pci-epf-test: Limit PCIe BAR size for fixed BARs"
Noah Wager
noah.wager at canonical.com
Thu Apr 2 02:55:53 UTC 2026
BugLink: https://bugs.launchpad.net/bugs/2147065
This reverts commit 3289c66230645e476893f89c267d5037335f107f.
This commit was included via upstream stable updates, but not its
dependent commit
e01c9797c0eb ("PCI: endpoint: Clean up hardware description for BARs").
This results in a compile error when CONFIG_PCI_EPF_TEST is enabled.
The upstream stable commit does not address any issues that have been
observed in this kernel, so it should be reverted to fix the compile
issue.
Signed-off-by: Noah Wager <noah.wager at canonical.com>
diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c
index 1e2ab7f19a9b6..ddc0d0a00dd35 100644
--- a/drivers/pci/endpoint/functions/pci-epf-test.c
+++ b/drivers/pci/endpoint/functions/pci-epf-test.c
@@ -860,12 +860,7 @@ static int pci_epf_test_alloc_space(struct pci_epf *epf)
if (!!(epc_features->reserved_bar & (1 << bar)))
continue;
- if (epc_features->bar[bar].type == BAR_FIXED)
- test_reg_size = epc_features->bar[bar].fixed_size;
- else
- test_reg_size = bar_size[bar];
-
- base = pci_epf_alloc_space(epf, test_reg_size, bar,
+ base = pci_epf_alloc_space(epf, bar_size[bar], bar,
epc_features->align,
PRIMARY_INTERFACE);
if (!base)
--
2.43.0
More information about the kernel-team
mailing list