[U-Boot] [PATCH 031/126] pci: Add more debug detail when resources are exhausted
Simon Glass
sjg at chromium.org
Wed Sep 25 14:56:15 UTC 2019
If PCI auto-config runs out of memory, show a few more details to help
diagnose the problem.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
drivers/pci/pci_auto_common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/pci/pci_auto_common.c b/drivers/pci/pci_auto_common.c
index 84908e6154c..bb56a3d3fea 100644
--- a/drivers/pci/pci_auto_common.c
+++ b/drivers/pci/pci_auto_common.c
@@ -45,7 +45,8 @@ int pciauto_region_allocate(struct pci_region *res, pci_size_t size,
addr = ((res->bus_lower - 1) | (size - 1)) + 1;
if (addr - res->bus_start + size > res->size) {
- debug("No room in resource");
+ debug("No room in resource, avail start=%x / size=%x, need=%x\n",
+ res->bus_lower, res->size, size);
goto error;
}
--
2.23.0.444.g18eeb5a265-goog
More information about the U-Boot
mailing list