mmconfig-shared.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658
  1. /*
  2. * mmconfig-shared.c - Low-level direct PCI config space access via
  3. * MMCONFIG - common code between i386 and x86-64.
  4. *
  5. * This code does:
  6. * - known chipset handling
  7. * - ACPI decoding and validation
  8. *
  9. * Per-architecture code takes care of the mappings and accesses
  10. * themselves.
  11. */
  12. #include <linux/pci.h>
  13. #include <linux/init.h>
  14. #include <linux/acpi.h>
  15. #include <linux/sfi_acpi.h>
  16. #include <linux/bitmap.h>
  17. #include <linux/dmi.h>
  18. #include <linux/slab.h>
  19. #include <asm/e820.h>
  20. #include <asm/pci_x86.h>
  21. #include <asm/acpi.h>
  22. #define PREFIX "PCI: "
  23. /* Indicate if the mmcfg resources have been placed into the resource table. */
  24. static int __initdata pci_mmcfg_resources_inserted;
  25. LIST_HEAD(pci_mmcfg_list);
  26. static __init void pci_mmconfig_remove(struct pci_mmcfg_region *cfg)
  27. {
  28. if (cfg->res.parent)
  29. release_resource(&cfg->res);
  30. list_del(&cfg->list);
  31. kfree(cfg);
  32. }
  33. static __init void free_all_mmcfg(void)
  34. {
  35. struct pci_mmcfg_region *cfg, *tmp;
  36. pci_mmcfg_arch_free();
  37. list_for_each_entry_safe(cfg, tmp, &pci_mmcfg_list, list)
  38. pci_mmconfig_remove(cfg);
  39. }
  40. static __init void list_add_sorted(struct pci_mmcfg_region *new)
  41. {
  42. struct pci_mmcfg_region *cfg;
  43. /* keep list sorted by segment and starting bus number */
  44. list_for_each_entry(cfg, &pci_mmcfg_list, list) {
  45. if (cfg->segment > new->segment ||
  46. (cfg->segment == new->segment &&
  47. cfg->start_bus >= new->start_bus)) {
  48. list_add_tail(&new->list, &cfg->list);
  49. return;
  50. }
  51. }
  52. list_add_tail(&new->list, &pci_mmcfg_list);
  53. }
  54. static __init struct pci_mmcfg_region *pci_mmconfig_add(int segment, int start,
  55. int end, u64 addr)
  56. {
  57. struct pci_mmcfg_region *new;
  58. int num_buses;
  59. struct resource *res;
  60. if (addr == 0)
  61. return NULL;
  62. new = kzalloc(sizeof(*new), GFP_KERNEL);
  63. if (!new)
  64. return NULL;
  65. new->address = addr;
  66. new->segment = segment;
  67. new->start_bus = start;
  68. new->end_bus = end;
  69. list_add_sorted(new);
  70. num_buses = end - start + 1;
  71. res = &new->res;
  72. res->start = addr + PCI_MMCFG_BUS_OFFSET(start);
  73. res->end = addr + PCI_MMCFG_BUS_OFFSET(num_buses) - 1;
  74. res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
  75. snprintf(new->name, PCI_MMCFG_RESOURCE_NAME_LEN,
  76. "PCI MMCONFIG %04x [bus %02x-%02x]", segment, start, end);
  77. res->name = new->name;
  78. printk(KERN_INFO PREFIX "MMCONFIG for domain %04x [bus %02x-%02x] at "
  79. "%pR (base %#lx)\n", segment, start, end, &new->res,
  80. (unsigned long) addr);
  81. return new;
  82. }
  83. struct pci_mmcfg_region *pci_mmconfig_lookup(int segment, int bus)
  84. {
  85. struct pci_mmcfg_region *cfg;
  86. list_for_each_entry(cfg, &pci_mmcfg_list, list)
  87. if (cfg->segment == segment &&
  88. cfg->start_bus <= bus && bus <= cfg->end_bus)
  89. return cfg;
  90. return NULL;
  91. }
  92. static const char __init *pci_mmcfg_e7520(void)
  93. {
  94. u32 win;
  95. raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0xce, 2, &win);
  96. win = win & 0xf000;
  97. if (win == 0x0000 || win == 0xf000)
  98. return NULL;
  99. if (pci_mmconfig_add(0, 0, 255, win << 16) == NULL)
  100. return NULL;
  101. return "Intel Corporation E7520 Memory Controller Hub";
  102. }
  103. static const char __init *pci_mmcfg_intel_945(void)
  104. {
  105. u32 pciexbar, mask = 0, len = 0;
  106. raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0x48, 4, &pciexbar);
  107. /* Enable bit */
  108. if (!(pciexbar & 1))
  109. return NULL;
  110. /* Size bits */
  111. switch ((pciexbar >> 1) & 3) {
  112. case 0:
  113. mask = 0xf0000000U;
  114. len = 0x10000000U;
  115. break;
  116. case 1:
  117. mask = 0xf8000000U;
  118. len = 0x08000000U;
  119. break;
  120. case 2:
  121. mask = 0xfc000000U;
  122. len = 0x04000000U;
  123. break;
  124. default:
  125. return NULL;
  126. }
  127. /* Errata #2, things break when not aligned on a 256Mb boundary */
  128. /* Can only happen in 64M/128M mode */
  129. if ((pciexbar & mask) & 0x0fffffffU)
  130. return NULL;
  131. /* Don't hit the APIC registers and their friends */
  132. if ((pciexbar & mask) >= 0xf0000000U)
  133. return NULL;
  134. if (pci_mmconfig_add(0, 0, (len >> 20) - 1, pciexbar & mask) == NULL)
  135. return NULL;
  136. return "Intel Corporation 945G/GZ/P/PL Express Memory Controller Hub";
  137. }
  138. static const char __init *pci_mmcfg_amd_fam10h(void)
  139. {
  140. u32 low, high, address;
  141. u64 base, msr;
  142. int i;
  143. unsigned segnbits = 0, busnbits, end_bus;
  144. if (!(pci_probe & PCI_CHECK_ENABLE_AMD_MMCONF))
  145. return NULL;
  146. address = MSR_FAM10H_MMIO_CONF_BASE;
  147. if (rdmsr_safe(address, &low, &high))
  148. return NULL;
  149. msr = high;
  150. msr <<= 32;
  151. msr |= low;
  152. /* mmconfig is not enable */
  153. if (!(msr & FAM10H_MMIO_CONF_ENABLE))
  154. return NULL;
  155. base = msr & (FAM10H_MMIO_CONF_BASE_MASK<<FAM10H_MMIO_CONF_BASE_SHIFT);
  156. busnbits = (msr >> FAM10H_MMIO_CONF_BUSRANGE_SHIFT) &
  157. FAM10H_MMIO_CONF_BUSRANGE_MASK;
  158. /*
  159. * only handle bus 0 ?
  160. * need to skip it
  161. */
  162. if (!busnbits)
  163. return NULL;
  164. if (busnbits > 8) {
  165. segnbits = busnbits - 8;
  166. busnbits = 8;
  167. }
  168. end_bus = (1 << busnbits) - 1;
  169. for (i = 0; i < (1 << segnbits); i++)
  170. if (pci_mmconfig_add(i, 0, end_bus,
  171. base + (1<<28) * i) == NULL) {
  172. free_all_mmcfg();
  173. return NULL;
  174. }
  175. return "AMD Family 10h NB";
  176. }
  177. static bool __initdata mcp55_checked;
  178. static const char __init *pci_mmcfg_nvidia_mcp55(void)
  179. {
  180. int bus;
  181. int mcp55_mmconf_found = 0;
  182. static const u32 extcfg_regnum = 0x90;
  183. static const u32 extcfg_regsize = 4;
  184. static const u32 extcfg_enable_mask = 1<<31;
  185. static const u32 extcfg_start_mask = 0xff<<16;
  186. static const int extcfg_start_shift = 16;
  187. static const u32 extcfg_size_mask = 0x3<<28;
  188. static const int extcfg_size_shift = 28;
  189. static const int extcfg_sizebus[] = {0x100, 0x80, 0x40, 0x20};
  190. static const u32 extcfg_base_mask[] = {0x7ff8, 0x7ffc, 0x7ffe, 0x7fff};
  191. static const int extcfg_base_lshift = 25;
  192. /*
  193. * do check if amd fam10h already took over
  194. */
  195. if (!acpi_disabled || !list_empty(&pci_mmcfg_list) || mcp55_checked)
  196. return NULL;
  197. mcp55_checked = true;
  198. for (bus = 0; bus < 256; bus++) {
  199. u64 base;
  200. u32 l, extcfg;
  201. u16 vendor, device;
  202. int start, size_index, end;
  203. raw_pci_ops->read(0, bus, PCI_DEVFN(0, 0), 0, 4, &l);
  204. vendor = l & 0xffff;
  205. device = (l >> 16) & 0xffff;
  206. if (PCI_VENDOR_ID_NVIDIA != vendor || 0x0369 != device)
  207. continue;
  208. raw_pci_ops->read(0, bus, PCI_DEVFN(0, 0), extcfg_regnum,
  209. extcfg_regsize, &extcfg);
  210. if (!(extcfg & extcfg_enable_mask))
  211. continue;
  212. size_index = (extcfg & extcfg_size_mask) >> extcfg_size_shift;
  213. base = extcfg & extcfg_base_mask[size_index];
  214. /* base could > 4G */
  215. base <<= extcfg_base_lshift;
  216. start = (extcfg & extcfg_start_mask) >> extcfg_start_shift;
  217. end = start + extcfg_sizebus[size_index] - 1;
  218. if (pci_mmconfig_add(0, start, end, base) == NULL)
  219. continue;
  220. mcp55_mmconf_found++;
  221. }
  222. if (!mcp55_mmconf_found)
  223. return NULL;
  224. return "nVidia MCP55";
  225. }
  226. struct pci_mmcfg_hostbridge_probe {
  227. u32 bus;
  228. u32 devfn;
  229. u32 vendor;
  230. u32 device;
  231. const char *(*probe)(void);
  232. };
  233. static struct pci_mmcfg_hostbridge_probe pci_mmcfg_probes[] __initdata = {
  234. { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,
  235. PCI_DEVICE_ID_INTEL_E7520_MCH, pci_mmcfg_e7520 },
  236. { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,
  237. PCI_DEVICE_ID_INTEL_82945G_HB, pci_mmcfg_intel_945 },
  238. { 0, PCI_DEVFN(0x18, 0), PCI_VENDOR_ID_AMD,
  239. 0x1200, pci_mmcfg_amd_fam10h },
  240. { 0xff, PCI_DEVFN(0, 0), PCI_VENDOR_ID_AMD,
  241. 0x1200, pci_mmcfg_amd_fam10h },
  242. { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_NVIDIA,
  243. 0x0369, pci_mmcfg_nvidia_mcp55 },
  244. };
  245. static void __init pci_mmcfg_check_end_bus_number(void)
  246. {
  247. struct pci_mmcfg_region *cfg, *cfgx;
  248. /* Fixup overlaps */
  249. list_for_each_entry(cfg, &pci_mmcfg_list, list) {
  250. if (cfg->end_bus < cfg->start_bus)
  251. cfg->end_bus = 255;
  252. /* Don't access the list head ! */
  253. if (cfg->list.next == &pci_mmcfg_list)
  254. break;
  255. cfgx = list_entry(cfg->list.next, typeof(*cfg), list);
  256. if (cfg->end_bus >= cfgx->start_bus)
  257. cfg->end_bus = cfgx->start_bus - 1;
  258. }
  259. }
  260. static int __init pci_mmcfg_check_hostbridge(void)
  261. {
  262. u32 l;
  263. u32 bus, devfn;
  264. u16 vendor, device;
  265. int i;
  266. const char *name;
  267. if (!raw_pci_ops)
  268. return 0;
  269. free_all_mmcfg();
  270. for (i = 0; i < ARRAY_SIZE(pci_mmcfg_probes); i++) {
  271. bus = pci_mmcfg_probes[i].bus;
  272. devfn = pci_mmcfg_probes[i].devfn;
  273. raw_pci_ops->read(0, bus, devfn, 0, 4, &l);
  274. vendor = l & 0xffff;
  275. device = (l >> 16) & 0xffff;
  276. name = NULL;
  277. if (pci_mmcfg_probes[i].vendor == vendor &&
  278. pci_mmcfg_probes[i].device == device)
  279. name = pci_mmcfg_probes[i].probe();
  280. if (name)
  281. printk(KERN_INFO PREFIX "%s with MMCONFIG support\n",
  282. name);
  283. }
  284. /* some end_bus_number is crazy, fix it */
  285. pci_mmcfg_check_end_bus_number();
  286. return !list_empty(&pci_mmcfg_list);
  287. }
  288. static void __init pci_mmcfg_insert_resources(void)
  289. {
  290. struct pci_mmcfg_region *cfg;
  291. list_for_each_entry(cfg, &pci_mmcfg_list, list)
  292. insert_resource(&iomem_resource, &cfg->res);
  293. /* Mark that the resources have been inserted. */
  294. pci_mmcfg_resources_inserted = 1;
  295. }
  296. static acpi_status __init check_mcfg_resource(struct acpi_resource *res,
  297. void *data)
  298. {
  299. struct resource *mcfg_res = data;
  300. struct acpi_resource_address64 address;
  301. acpi_status status;
  302. if (res->type == ACPI_RESOURCE_TYPE_FIXED_MEMORY32) {
  303. struct acpi_resource_fixed_memory32 *fixmem32 =
  304. &res->data.fixed_memory32;
  305. if (!fixmem32)
  306. return AE_OK;
  307. if ((mcfg_res->start >= fixmem32->address) &&
  308. (mcfg_res->end < (fixmem32->address +
  309. fixmem32->address_length))) {
  310. mcfg_res->flags = 1;
  311. return AE_CTRL_TERMINATE;
  312. }
  313. }
  314. if ((res->type != ACPI_RESOURCE_TYPE_ADDRESS32) &&
  315. (res->type != ACPI_RESOURCE_TYPE_ADDRESS64))
  316. return AE_OK;
  317. status = acpi_resource_to_address64(res, &address);
  318. if (ACPI_FAILURE(status) ||
  319. (address.address_length <= 0) ||
  320. (address.resource_type != ACPI_MEMORY_RANGE))
  321. return AE_OK;
  322. if ((mcfg_res->start >= address.minimum) &&
  323. (mcfg_res->end < (address.minimum + address.address_length))) {
  324. mcfg_res->flags = 1;
  325. return AE_CTRL_TERMINATE;
  326. }
  327. return AE_OK;
  328. }
  329. static acpi_status __init find_mboard_resource(acpi_handle handle, u32 lvl,
  330. void *context, void **rv)
  331. {
  332. struct resource *mcfg_res = context;
  333. acpi_walk_resources(handle, METHOD_NAME__CRS,
  334. check_mcfg_resource, context);
  335. if (mcfg_res->flags)
  336. return AE_CTRL_TERMINATE;
  337. return AE_OK;
  338. }
  339. static int __init is_acpi_reserved(u64 start, u64 end, unsigned not_used)
  340. {
  341. struct resource mcfg_res;
  342. mcfg_res.start = start;
  343. mcfg_res.end = end - 1;
  344. mcfg_res.flags = 0;
  345. acpi_get_devices("PNP0C01", find_mboard_resource, &mcfg_res, NULL);
  346. if (!mcfg_res.flags)
  347. acpi_get_devices("PNP0C02", find_mboard_resource, &mcfg_res,
  348. NULL);
  349. return mcfg_res.flags;
  350. }
  351. typedef int (*check_reserved_t)(u64 start, u64 end, unsigned type);
  352. static int __init is_mmconf_reserved(check_reserved_t is_reserved,
  353. struct pci_mmcfg_region *cfg, int with_e820)
  354. {
  355. u64 addr = cfg->res.start;
  356. u64 size = resource_size(&cfg->res);
  357. u64 old_size = size;
  358. int valid = 0, num_buses;
  359. while (!is_reserved(addr, addr + size, E820_RESERVED)) {
  360. size >>= 1;
  361. if (size < (16UL<<20))
  362. break;
  363. }
  364. if (size >= (16UL<<20) || size == old_size) {
  365. printk(KERN_INFO PREFIX "MMCONFIG at %pR reserved in %s\n",
  366. &cfg->res,
  367. with_e820 ? "E820" : "ACPI motherboard resources");
  368. valid = 1;
  369. if (old_size != size) {
  370. /* update end_bus */
  371. cfg->end_bus = cfg->start_bus + ((size>>20) - 1);
  372. num_buses = cfg->end_bus - cfg->start_bus + 1;
  373. cfg->res.end = cfg->res.start +
  374. PCI_MMCFG_BUS_OFFSET(num_buses) - 1;
  375. snprintf(cfg->name, PCI_MMCFG_RESOURCE_NAME_LEN,
  376. "PCI MMCONFIG %04x [bus %02x-%02x]",
  377. cfg->segment, cfg->start_bus, cfg->end_bus);
  378. printk(KERN_INFO PREFIX
  379. "MMCONFIG for %04x [bus%02x-%02x] "
  380. "at %pR (base %#lx) (size reduced!)\n",
  381. cfg->segment, cfg->start_bus, cfg->end_bus,
  382. &cfg->res, (unsigned long) cfg->address);
  383. }
  384. }
  385. return valid;
  386. }
  387. static void __init pci_mmcfg_reject_broken(int early)
  388. {
  389. struct pci_mmcfg_region *cfg;
  390. list_for_each_entry(cfg, &pci_mmcfg_list, list) {
  391. int valid = 0;
  392. if (!early && !acpi_disabled) {
  393. valid = is_mmconf_reserved(is_acpi_reserved, cfg, 0);
  394. if (valid)
  395. continue;
  396. else
  397. printk(KERN_ERR FW_BUG PREFIX
  398. "MMCONFIG at %pR not reserved in "
  399. "ACPI motherboard resources\n",
  400. &cfg->res);
  401. }
  402. /* Don't try to do this check unless configuration
  403. type 1 is available. how about type 2 ?*/
  404. if (raw_pci_ops)
  405. valid = is_mmconf_reserved(e820_all_mapped, cfg, 1);
  406. if (!valid)
  407. goto reject;
  408. }
  409. return;
  410. reject:
  411. printk(KERN_INFO PREFIX "not using MMCONFIG\n");
  412. free_all_mmcfg();
  413. }
  414. static int __initdata known_bridge;
  415. static int __init acpi_mcfg_check_entry(struct acpi_table_mcfg *mcfg,
  416. struct acpi_mcfg_allocation *cfg)
  417. {
  418. int year;
  419. if (cfg->address < 0xFFFFFFFF)
  420. return 0;
  421. if (!strcmp(mcfg->header.oem_id, "SGI"))
  422. return 0;
  423. if (mcfg->header.revision >= 1) {
  424. if (dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL) &&
  425. year >= 2010)
  426. return 0;
  427. }
  428. printk(KERN_ERR PREFIX "MCFG region for %04x [bus %02x-%02x] at %#llx "
  429. "is above 4GB, ignored\n", cfg->pci_segment,
  430. cfg->start_bus_number, cfg->end_bus_number, cfg->address);
  431. return -EINVAL;
  432. }
  433. static int __init pci_parse_mcfg(struct acpi_table_header *header)
  434. {
  435. struct acpi_table_mcfg *mcfg;
  436. struct acpi_mcfg_allocation *cfg_table, *cfg;
  437. unsigned long i;
  438. int entries;
  439. if (!header)
  440. return -EINVAL;
  441. mcfg = (struct acpi_table_mcfg *)header;
  442. /* how many config structures do we have */
  443. free_all_mmcfg();
  444. entries = 0;
  445. i = header->length - sizeof(struct acpi_table_mcfg);
  446. while (i >= sizeof(struct acpi_mcfg_allocation)) {
  447. entries++;
  448. i -= sizeof(struct acpi_mcfg_allocation);
  449. };
  450. if (entries == 0) {
  451. printk(KERN_ERR PREFIX "MMCONFIG has no entries\n");
  452. return -ENODEV;
  453. }
  454. cfg_table = (struct acpi_mcfg_allocation *) &mcfg[1];
  455. for (i = 0; i < entries; i++) {
  456. cfg = &cfg_table[i];
  457. if (acpi_mcfg_check_entry(mcfg, cfg)) {
  458. free_all_mmcfg();
  459. return -ENODEV;
  460. }
  461. if (pci_mmconfig_add(cfg->pci_segment, cfg->start_bus_number,
  462. cfg->end_bus_number, cfg->address) == NULL) {
  463. printk(KERN_WARNING PREFIX
  464. "no memory for MCFG entries\n");
  465. free_all_mmcfg();
  466. return -ENOMEM;
  467. }
  468. }
  469. return 0;
  470. }
  471. static void __init __pci_mmcfg_init(int early)
  472. {
  473. /* MMCONFIG disabled */
  474. if ((pci_probe & PCI_PROBE_MMCONF) == 0)
  475. return;
  476. /* MMCONFIG already enabled */
  477. if (!early && !(pci_probe & PCI_PROBE_MASK & ~PCI_PROBE_MMCONF))
  478. return;
  479. /* for late to exit */
  480. if (known_bridge)
  481. return;
  482. if (early) {
  483. if (pci_mmcfg_check_hostbridge())
  484. known_bridge = 1;
  485. }
  486. if (!known_bridge)
  487. acpi_sfi_table_parse(ACPI_SIG_MCFG, pci_parse_mcfg);
  488. pci_mmcfg_reject_broken(early);
  489. if (list_empty(&pci_mmcfg_list))
  490. return;
  491. if (pci_mmcfg_arch_init())
  492. pci_probe = (pci_probe & ~PCI_PROBE_MASK) | PCI_PROBE_MMCONF;
  493. else {
  494. /*
  495. * Signal not to attempt to insert mmcfg resources because
  496. * the architecture mmcfg setup could not initialize.
  497. */
  498. pci_mmcfg_resources_inserted = 1;
  499. }
  500. }
  501. void __init pci_mmcfg_early_init(void)
  502. {
  503. __pci_mmcfg_init(1);
  504. }
  505. void __init pci_mmcfg_late_init(void)
  506. {
  507. __pci_mmcfg_init(0);
  508. }
  509. static int __init pci_mmcfg_late_insert_resources(void)
  510. {
  511. /*
  512. * If resources are already inserted or we are not using MMCONFIG,
  513. * don't insert the resources.
  514. */
  515. if ((pci_mmcfg_resources_inserted == 1) ||
  516. (pci_probe & PCI_PROBE_MMCONF) == 0 ||
  517. list_empty(&pci_mmcfg_list))
  518. return 1;
  519. /*
  520. * Attempt to insert the mmcfg resources but not with the busy flag
  521. * marked so it won't cause request errors when __request_region is
  522. * called.
  523. */
  524. pci_mmcfg_insert_resources();
  525. return 0;
  526. }
  527. /*
  528. * Perform MMCONFIG resource insertion after PCI initialization to allow for
  529. * misprogrammed MCFG tables that state larger sizes but actually conflict
  530. * with other system resources.
  531. */
  532. late_initcall(pci_mmcfg_late_insert_resources);