Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174813
b: refs/heads/master
c: 2f2a8b9
h: refs/heads/master
i:
  174811: 5ced704
v: v3
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Nov 24, 2009
1 parent dc49c3d commit 39c5d79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 56ddf4d3cf04e80254d3d721c6bea2f8ec44c41a
refs/heads/master: 2f2a8b9c90279e75f87aaf322a948bdced27e89f
12 changes: 5 additions & 7 deletions trunk/arch/x86/pci/mmconfig-shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,10 @@ static int __init is_acpi_reserved(u64 start, u64 end, unsigned not_used)
typedef int (*check_reserved_t)(u64 start, u64 end, unsigned type);

static int __init is_mmconf_reserved(check_reserved_t is_reserved,
u64 addr, u64 size, int i,
typeof(pci_mmcfg_config[0]) *cfg, int with_e820)
int i, typeof(pci_mmcfg_config[0]) *cfg, int with_e820)
{
u64 addr = cfg->res.start;
u64 size = resource_size(&cfg->res);
u64 old_size = size;
int valid = 0, num_buses;

Expand Down Expand Up @@ -486,19 +487,16 @@ static void __init pci_mmcfg_reject_broken(int early)

for (i = 0; i < pci_mmcfg_config_num; i++) {
int valid = 0;
u64 addr, size;

cfg = &pci_mmcfg_config[i];
addr = cfg->res.start;
size = resource_size(&cfg->res);
printk(KERN_NOTICE "PCI: MCFG configuration %d: base %lx "
"segment %hu buses %u - %u\n",
i, (unsigned long)cfg->address, cfg->segment,
(unsigned int)cfg->start_bus,
(unsigned int)cfg->end_bus);

if (!early && !acpi_disabled)
valid = is_mmconf_reserved(is_acpi_reserved, addr, size, i, cfg, 0);
valid = is_mmconf_reserved(is_acpi_reserved, i, cfg, 0);

if (valid)
continue;
Expand All @@ -511,7 +509,7 @@ static void __init pci_mmcfg_reject_broken(int early)
/* Don't try to do this check unless configuration
type 1 is available. how about type 2 ?*/
if (raw_pci_ops)
valid = is_mmconf_reserved(e820_all_mapped, addr, size, i, cfg, 1);
valid = is_mmconf_reserved(e820_all_mapped, i, cfg, 1);

if (!valid)
goto reject;
Expand Down

0 comments on commit 39c5d79

Please sign in to comment.