Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Don't carp about BAR allocation failures in quiet boot

These are easy to trigger (more or less harmlessly) with multiple video
cards, since the ROM BAR will typically not be given any space by the
BIOS bridge setup. No reason to punish quiet boot for this.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>

authored by

Ingo Molnar and committed by
Jesse Barnes
104bafcf a367f74c

+4 -4
+2 -2
arch/x86/pci/i386.c
··· 129 129 pr = pci_find_parent_resource(dev, r); 130 130 if (!r->start || !pr || 131 131 request_resource(pr, r) < 0) { 132 - dev_err(&dev->dev, "BAR %d: can't allocate resource\n", idx); 132 + dev_info(&dev->dev, "BAR %d: can't allocate resource\n", idx); 133 133 /* 134 134 * Something is wrong with the region. 135 135 * Invalidate the resource to prevent ··· 170 170 r->flags, disabled, pass); 171 171 pr = pci_find_parent_resource(dev, r); 172 172 if (!pr || request_resource(pr, r) < 0) { 173 - dev_err(&dev->dev, "BAR %d: can't allocate resource\n", idx); 173 + dev_info(&dev->dev, "BAR %d: can't allocate resource\n", idx); 174 174 /* We'll assign a new address later */ 175 175 r->end -= r->start; 176 176 r->start = 0;
+2 -2
drivers/pci/setup-res.c
··· 134 134 135 135 align = resource_alignment(res); 136 136 if (!align) { 137 - dev_err(&dev->dev, "BAR %d: can't allocate resource (bogus " 137 + dev_info(&dev->dev, "BAR %d: can't allocate resource (bogus " 138 138 "alignment) %pR flags %#lx\n", 139 139 resno, res, res->flags); 140 140 return -EINVAL; ··· 157 157 } 158 158 159 159 if (ret) { 160 - dev_err(&dev->dev, "BAR %d: can't allocate %s resource %pR\n", 160 + dev_info(&dev->dev, "BAR %d: can't allocate %s resource %pR\n", 161 161 resno, res->flags & IORESOURCE_IO ? "I/O" : "mem", res); 162 162 } else { 163 163 res->flags &= ~IORESOURCE_STARTALIGN;