mmconfig-shared.c 15 KB

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