mmconfig-shared.c 15 KB

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