Commit 4bad2e73 authored by Simon Glass's avatar Simon Glass
Browse files

pci: Indicate prefetchable memory allocate when debugging

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: default avatarSimon Glass <>
Reviewed-by: default avatarBin Meng <>
parent 5f48d798
...@@ -148,8 +148,9 @@ void pciauto_setup_device(struct pci_controller *hose, ...@@ -148,8 +148,9 @@ void pciauto_setup_device(struct pci_controller *hose,
bar_res = mem; bar_res = mem;
#endif #endif
debug("PCI Autoconfig: BAR %d, Mem, size=0x%llx, ", debug("PCI Autoconfig: BAR %d, %s, size=0x%llx, ",
bar_nr, (unsigned long long)bar_size); bar_nr, bar_res == prefetch ? "Prf" : "Mem",
(unsigned long long)bar_size);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment