]> git.sur5r.net Git - u-boot/commitdiff
pci: Indicate prefetchable memory allocate when debugging
authorSimon Glass <sjg@chromium.org>
Mon, 27 Jul 2015 21:47:18 +0000 (15:47 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Aug 2015 14:42:41 +0000 (08:42 -0600)
At present the PCI output displays 'Mem' when it allocates memory for a PCI
device, whether it is prefetchable or not. There is a distinction since the
memory comes from separate pools. Use 'Prf' instead of 'Mem' when allocating
prefetchable memory.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci_auto.c

index 51d2ac0052dd527f16752675f659c41a9a46d25c..41d5447f122b129b65adc1b25484657663e601d4 100644 (file)
@@ -148,8 +148,9 @@ void pciauto_setup_device(struct pci_controller *hose,
                                bar_res = mem;
 #endif
 
-                       debug("PCI Autoconfig: BAR %d, Mem, size=0x%llx, ",
-                             bar_nr, (unsigned long long)bar_size);
+                       debug("PCI Autoconfig: BAR %d, %s, size=0x%llx, ",
+                             bar_nr, bar_res == prefetch ? "Prf" : "Mem",
+                             (unsigned long long)bar_size);
                }
 
 #ifndef CONFIG_PCI_ENUM_ONLY