pci.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. /*
  2. * Copyright (C) 2004 Benjamin Herrenschmuidt (benh@kernel.crashing.org),
  3. * IBM Corp.
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License
  7. * as published by the Free Software Foundation; either version
  8. * 2 of the License, or (at your option) any later version.
  9. */
  10. #undef DEBUG
  11. #include <linux/kernel.h>
  12. #include <linux/pci.h>
  13. #include <linux/delay.h>
  14. #include <linux/string.h>
  15. #include <linux/init.h>
  16. #include <linux/bootmem.h>
  17. #include <linux/irq.h>
  18. #include <asm/sections.h>
  19. #include <asm/io.h>
  20. #include <asm/prom.h>
  21. #include <asm/pci-bridge.h>
  22. #include <asm/machdep.h>
  23. #include <asm/iommu.h>
  24. #include <asm/ppc-pci.h>
  25. #include "maple.h"
  26. #ifdef DEBUG
  27. #define DBG(x...) printk(x)
  28. #else
  29. #define DBG(x...)
  30. #endif
  31. static struct pci_controller *u3_agp, *u3_ht, *u4_pcie;
  32. static int __init fixup_one_level_bus_range(struct device_node *node, int higher)
  33. {
  34. for (; node != 0;node = node->sibling) {
  35. const int *bus_range;
  36. const unsigned int *class_code;
  37. int len;
  38. /* For PCI<->PCI bridges or CardBus bridges, we go down */
  39. class_code = of_get_property(node, "class-code", NULL);
  40. if (!class_code || ((*class_code >> 8) != PCI_CLASS_BRIDGE_PCI &&
  41. (*class_code >> 8) != PCI_CLASS_BRIDGE_CARDBUS))
  42. continue;
  43. bus_range = of_get_property(node, "bus-range", &len);
  44. if (bus_range != NULL && len > 2 * sizeof(int)) {
  45. if (bus_range[1] > higher)
  46. higher = bus_range[1];
  47. }
  48. higher = fixup_one_level_bus_range(node->child, higher);
  49. }
  50. return higher;
  51. }
  52. /* This routine fixes the "bus-range" property of all bridges in the
  53. * system since they tend to have their "last" member wrong on macs
  54. *
  55. * Note that the bus numbers manipulated here are OF bus numbers, they
  56. * are not Linux bus numbers.
  57. */
  58. static void __init fixup_bus_range(struct device_node *bridge)
  59. {
  60. int *bus_range;
  61. struct property *prop;
  62. int len;
  63. /* Lookup the "bus-range" property for the hose */
  64. prop = of_find_property(bridge, "bus-range", &len);
  65. if (prop == NULL || prop->value == NULL || len < 2 * sizeof(int)) {
  66. printk(KERN_WARNING "Can't get bus-range for %s\n",
  67. bridge->full_name);
  68. return;
  69. }
  70. bus_range = prop->value;
  71. bus_range[1] = fixup_one_level_bus_range(bridge->child, bus_range[1]);
  72. }
  73. static unsigned long u3_agp_cfa0(u8 devfn, u8 off)
  74. {
  75. return (1 << (unsigned long)PCI_SLOT(devfn)) |
  76. ((unsigned long)PCI_FUNC(devfn) << 8) |
  77. ((unsigned long)off & 0xFCUL);
  78. }
  79. static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off)
  80. {
  81. return ((unsigned long)bus << 16) |
  82. ((unsigned long)devfn << 8) |
  83. ((unsigned long)off & 0xFCUL) |
  84. 1UL;
  85. }
  86. static volatile void __iomem *u3_agp_cfg_access(struct pci_controller* hose,
  87. u8 bus, u8 dev_fn, u8 offset)
  88. {
  89. unsigned int caddr;
  90. if (bus == hose->first_busno) {
  91. if (dev_fn < (11 << 3))
  92. return NULL;
  93. caddr = u3_agp_cfa0(dev_fn, offset);
  94. } else
  95. caddr = u3_agp_cfa1(bus, dev_fn, offset);
  96. /* Uninorth will return garbage if we don't read back the value ! */
  97. do {
  98. out_le32(hose->cfg_addr, caddr);
  99. } while (in_le32(hose->cfg_addr) != caddr);
  100. offset &= 0x07;
  101. return hose->cfg_data + offset;
  102. }
  103. static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn,
  104. int offset, int len, u32 *val)
  105. {
  106. struct pci_controller *hose;
  107. volatile void __iomem *addr;
  108. hose = pci_bus_to_host(bus);
  109. if (hose == NULL)
  110. return PCIBIOS_DEVICE_NOT_FOUND;
  111. addr = u3_agp_cfg_access(hose, bus->number, devfn, offset);
  112. if (!addr)
  113. return PCIBIOS_DEVICE_NOT_FOUND;
  114. /*
  115. * Note: the caller has already checked that offset is
  116. * suitably aligned and that len is 1, 2 or 4.
  117. */
  118. switch (len) {
  119. case 1:
  120. *val = in_8(addr);
  121. break;
  122. case 2:
  123. *val = in_le16(addr);
  124. break;
  125. default:
  126. *val = in_le32(addr);
  127. break;
  128. }
  129. return PCIBIOS_SUCCESSFUL;
  130. }
  131. static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn,
  132. int offset, int len, u32 val)
  133. {
  134. struct pci_controller *hose;
  135. volatile void __iomem *addr;
  136. hose = pci_bus_to_host(bus);
  137. if (hose == NULL)
  138. return PCIBIOS_DEVICE_NOT_FOUND;
  139. addr = u3_agp_cfg_access(hose, bus->number, devfn, offset);
  140. if (!addr)
  141. return PCIBIOS_DEVICE_NOT_FOUND;
  142. /*
  143. * Note: the caller has already checked that offset is
  144. * suitably aligned and that len is 1, 2 or 4.
  145. */
  146. switch (len) {
  147. case 1:
  148. out_8(addr, val);
  149. break;
  150. case 2:
  151. out_le16(addr, val);
  152. break;
  153. default:
  154. out_le32(addr, val);
  155. break;
  156. }
  157. return PCIBIOS_SUCCESSFUL;
  158. }
  159. static struct pci_ops u3_agp_pci_ops =
  160. {
  161. .read = u3_agp_read_config,
  162. .write = u3_agp_write_config,
  163. };
  164. static unsigned long u3_ht_cfa0(u8 devfn, u8 off)
  165. {
  166. return (devfn << 8) | off;
  167. }
  168. static unsigned long u3_ht_cfa1(u8 bus, u8 devfn, u8 off)
  169. {
  170. return u3_ht_cfa0(devfn, off) + (bus << 16) + 0x01000000UL;
  171. }
  172. static volatile void __iomem *u3_ht_cfg_access(struct pci_controller* hose,
  173. u8 bus, u8 devfn, u8 offset)
  174. {
  175. if (bus == hose->first_busno) {
  176. if (PCI_SLOT(devfn) == 0)
  177. return NULL;
  178. return hose->cfg_data + u3_ht_cfa0(devfn, offset);
  179. } else
  180. return hose->cfg_data + u3_ht_cfa1(bus, devfn, offset);
  181. }
  182. static int u3_ht_root_read_config(struct pci_controller *hose, u8 offset,
  183. int len, u32 *val)
  184. {
  185. volatile void __iomem *addr;
  186. addr = hose->cfg_addr;
  187. addr += ((offset & ~3) << 2) + (4 - len - (offset & 3));
  188. switch (len) {
  189. case 1:
  190. *val = in_8(addr);
  191. break;
  192. case 2:
  193. *val = in_be16(addr);
  194. break;
  195. default:
  196. *val = in_be32(addr);
  197. break;
  198. }
  199. return PCIBIOS_SUCCESSFUL;
  200. }
  201. static int u3_ht_root_write_config(struct pci_controller *hose, u8 offset,
  202. int len, u32 val)
  203. {
  204. volatile void __iomem *addr;
  205. addr = hose->cfg_addr + ((offset & ~3) << 2) + (4 - len - (offset & 3));
  206. if (offset >= PCI_BASE_ADDRESS_0 && offset < PCI_CAPABILITY_LIST)
  207. return PCIBIOS_SUCCESSFUL;
  208. switch (len) {
  209. case 1:
  210. out_8(addr, val);
  211. break;
  212. case 2:
  213. out_be16(addr, val);
  214. break;
  215. default:
  216. out_be32(addr, val);
  217. break;
  218. }
  219. return PCIBIOS_SUCCESSFUL;
  220. }
  221. static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn,
  222. int offset, int len, u32 *val)
  223. {
  224. struct pci_controller *hose;
  225. volatile void __iomem *addr;
  226. hose = pci_bus_to_host(bus);
  227. if (hose == NULL)
  228. return PCIBIOS_DEVICE_NOT_FOUND;
  229. if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0))
  230. return u3_ht_root_read_config(hose, offset, len, val);
  231. if (offset > 0xff)
  232. return PCIBIOS_BAD_REGISTER_NUMBER;
  233. addr = u3_ht_cfg_access(hose, bus->number, devfn, offset);
  234. if (!addr)
  235. return PCIBIOS_DEVICE_NOT_FOUND;
  236. /*
  237. * Note: the caller has already checked that offset is
  238. * suitably aligned and that len is 1, 2 or 4.
  239. */
  240. switch (len) {
  241. case 1:
  242. *val = in_8(addr);
  243. break;
  244. case 2:
  245. *val = in_le16(addr);
  246. break;
  247. default:
  248. *val = in_le32(addr);
  249. break;
  250. }
  251. return PCIBIOS_SUCCESSFUL;
  252. }
  253. static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn,
  254. int offset, int len, u32 val)
  255. {
  256. struct pci_controller *hose;
  257. volatile void __iomem *addr;
  258. hose = pci_bus_to_host(bus);
  259. if (hose == NULL)
  260. return PCIBIOS_DEVICE_NOT_FOUND;
  261. if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0))
  262. return u3_ht_root_write_config(hose, offset, len, val);
  263. if (offset > 0xff)
  264. return PCIBIOS_BAD_REGISTER_NUMBER;
  265. addr = u3_ht_cfg_access(hose, bus->number, devfn, offset);
  266. if (!addr)
  267. return PCIBIOS_DEVICE_NOT_FOUND;
  268. /*
  269. * Note: the caller has already checked that offset is
  270. * suitably aligned and that len is 1, 2 or 4.
  271. */
  272. switch (len) {
  273. case 1:
  274. out_8(addr, val);
  275. break;
  276. case 2:
  277. out_le16(addr, val);
  278. break;
  279. default:
  280. out_le32(addr, val);
  281. break;
  282. }
  283. return PCIBIOS_SUCCESSFUL;
  284. }
  285. static struct pci_ops u3_ht_pci_ops =
  286. {
  287. .read = u3_ht_read_config,
  288. .write = u3_ht_write_config,
  289. };
  290. static unsigned int u4_pcie_cfa0(unsigned int devfn, unsigned int off)
  291. {
  292. return (1 << PCI_SLOT(devfn)) |
  293. (PCI_FUNC(devfn) << 8) |
  294. ((off >> 8) << 28) |
  295. (off & 0xfcu);
  296. }
  297. static unsigned int u4_pcie_cfa1(unsigned int bus, unsigned int devfn,
  298. unsigned int off)
  299. {
  300. return (bus << 16) |
  301. (devfn << 8) |
  302. ((off >> 8) << 28) |
  303. (off & 0xfcu) | 1u;
  304. }
  305. static volatile void __iomem *u4_pcie_cfg_access(struct pci_controller* hose,
  306. u8 bus, u8 dev_fn, int offset)
  307. {
  308. unsigned int caddr;
  309. if (bus == hose->first_busno)
  310. caddr = u4_pcie_cfa0(dev_fn, offset);
  311. else
  312. caddr = u4_pcie_cfa1(bus, dev_fn, offset);
  313. /* Uninorth will return garbage if we don't read back the value ! */
  314. do {
  315. out_le32(hose->cfg_addr, caddr);
  316. } while (in_le32(hose->cfg_addr) != caddr);
  317. offset &= 0x03;
  318. return hose->cfg_data + offset;
  319. }
  320. static int u4_pcie_read_config(struct pci_bus *bus, unsigned int devfn,
  321. int offset, int len, u32 *val)
  322. {
  323. struct pci_controller *hose;
  324. volatile void __iomem *addr;
  325. hose = pci_bus_to_host(bus);
  326. if (hose == NULL)
  327. return PCIBIOS_DEVICE_NOT_FOUND;
  328. if (offset >= 0x1000)
  329. return PCIBIOS_BAD_REGISTER_NUMBER;
  330. addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset);
  331. if (!addr)
  332. return PCIBIOS_DEVICE_NOT_FOUND;
  333. /*
  334. * Note: the caller has already checked that offset is
  335. * suitably aligned and that len is 1, 2 or 4.
  336. */
  337. switch (len) {
  338. case 1:
  339. *val = in_8(addr);
  340. break;
  341. case 2:
  342. *val = in_le16(addr);
  343. break;
  344. default:
  345. *val = in_le32(addr);
  346. break;
  347. }
  348. return PCIBIOS_SUCCESSFUL;
  349. }
  350. static int u4_pcie_write_config(struct pci_bus *bus, unsigned int devfn,
  351. int offset, int len, u32 val)
  352. {
  353. struct pci_controller *hose;
  354. volatile void __iomem *addr;
  355. hose = pci_bus_to_host(bus);
  356. if (hose == NULL)
  357. return PCIBIOS_DEVICE_NOT_FOUND;
  358. if (offset >= 0x1000)
  359. return PCIBIOS_BAD_REGISTER_NUMBER;
  360. addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset);
  361. if (!addr)
  362. return PCIBIOS_DEVICE_NOT_FOUND;
  363. /*
  364. * Note: the caller has already checked that offset is
  365. * suitably aligned and that len is 1, 2 or 4.
  366. */
  367. switch (len) {
  368. case 1:
  369. out_8(addr, val);
  370. break;
  371. case 2:
  372. out_le16(addr, val);
  373. break;
  374. default:
  375. out_le32(addr, val);
  376. break;
  377. }
  378. return PCIBIOS_SUCCESSFUL;
  379. }
  380. static struct pci_ops u4_pcie_pci_ops =
  381. {
  382. .read = u4_pcie_read_config,
  383. .write = u4_pcie_write_config,
  384. };
  385. static void __init setup_u3_agp(struct pci_controller* hose)
  386. {
  387. /* On G5, we move AGP up to high bus number so we don't need
  388. * to reassign bus numbers for HT. If we ever have P2P bridges
  389. * on AGP, we'll have to move pci_assign_all_buses to the
  390. * pci_controller structure so we enable it for AGP and not for
  391. * HT childs.
  392. * We hard code the address because of the different size of
  393. * the reg address cell, we shall fix that by killing struct
  394. * reg_property and using some accessor functions instead
  395. */
  396. hose->first_busno = 0xf0;
  397. hose->last_busno = 0xff;
  398. hose->ops = &u3_agp_pci_ops;
  399. hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000);
  400. hose->cfg_data = ioremap(0xf0000000 + 0xc00000, 0x1000);
  401. u3_agp = hose;
  402. }
  403. static void __init setup_u4_pcie(struct pci_controller* hose)
  404. {
  405. /* We currently only implement the "non-atomic" config space, to
  406. * be optimised later.
  407. */
  408. hose->ops = &u4_pcie_pci_ops;
  409. hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000);
  410. hose->cfg_data = ioremap(0xf0000000 + 0xc00000, 0x1000);
  411. u4_pcie = hose;
  412. }
  413. static void __init setup_u3_ht(struct pci_controller* hose)
  414. {
  415. hose->ops = &u3_ht_pci_ops;
  416. /* We hard code the address because of the different size of
  417. * the reg address cell, we shall fix that by killing struct
  418. * reg_property and using some accessor functions instead
  419. */
  420. hose->cfg_data = ioremap(0xf2000000, 0x02000000);
  421. hose->cfg_addr = ioremap(0xf8070000, 0x1000);
  422. hose->first_busno = 0;
  423. hose->last_busno = 0xef;
  424. u3_ht = hose;
  425. }
  426. static int __init maple_add_bridge(struct device_node *dev)
  427. {
  428. int len;
  429. struct pci_controller *hose;
  430. char* disp_name;
  431. const int *bus_range;
  432. int primary = 1;
  433. DBG("Adding PCI host bridge %s\n", dev->full_name);
  434. bus_range = of_get_property(dev, "bus-range", &len);
  435. if (bus_range == NULL || len < 2 * sizeof(int)) {
  436. printk(KERN_WARNING "Can't get bus-range for %s, assume bus 0\n",
  437. dev->full_name);
  438. }
  439. hose = pcibios_alloc_controller(dev);
  440. if (hose == NULL)
  441. return -ENOMEM;
  442. hose->first_busno = bus_range ? bus_range[0] : 0;
  443. hose->last_busno = bus_range ? bus_range[1] : 0xff;
  444. disp_name = NULL;
  445. if (of_device_is_compatible(dev, "u3-agp")) {
  446. setup_u3_agp(hose);
  447. disp_name = "U3-AGP";
  448. primary = 0;
  449. } else if (of_device_is_compatible(dev, "u3-ht")) {
  450. setup_u3_ht(hose);
  451. disp_name = "U3-HT";
  452. primary = 1;
  453. } else if (of_device_is_compatible(dev, "u4-pcie")) {
  454. setup_u4_pcie(hose);
  455. disp_name = "U4-PCIE";
  456. primary = 0;
  457. }
  458. printk(KERN_INFO "Found %s PCI host bridge. Firmware bus number: %d->%d\n",
  459. disp_name, hose->first_busno, hose->last_busno);
  460. /* Interpret the "ranges" property */
  461. /* This also maps the I/O region and sets isa_io/mem_base */
  462. pci_process_bridge_OF_ranges(hose, dev, primary);
  463. /* Fixup "bus-range" OF property */
  464. fixup_bus_range(dev);
  465. /* Check for legacy IOs */
  466. isa_bridge_find_early(hose);
  467. return 0;
  468. }
  469. void __devinit maple_pci_irq_fixup(struct pci_dev *dev)
  470. {
  471. DBG(" -> maple_pci_irq_fixup\n");
  472. /* Fixup IRQ for PCIe host */
  473. if (u4_pcie != NULL && dev->bus->number == 0 &&
  474. pci_bus_to_host(dev->bus) == u4_pcie) {
  475. printk(KERN_DEBUG "Fixup U4 PCIe IRQ\n");
  476. dev->irq = irq_create_mapping(NULL, 1);
  477. if (dev->irq != NO_IRQ)
  478. irq_set_irq_type(dev->irq, IRQ_TYPE_LEVEL_LOW);
  479. }
  480. /* Hide AMD8111 IDE interrupt when in legacy mode so
  481. * the driver calls pci_get_legacy_ide_irq()
  482. */
  483. if (dev->vendor == PCI_VENDOR_ID_AMD &&
  484. dev->device == PCI_DEVICE_ID_AMD_8111_IDE &&
  485. (dev->class & 5) != 5) {
  486. dev->irq = NO_IRQ;
  487. }
  488. DBG(" <- maple_pci_irq_fixup\n");
  489. }
  490. void __init maple_pci_init(void)
  491. {
  492. struct device_node *np, *root;
  493. struct device_node *ht = NULL;
  494. /* Probe root PCI hosts, that is on U3 the AGP host and the
  495. * HyperTransport host. That one is actually "kept" around
  496. * and actually added last as it's resource management relies
  497. * on the AGP resources to have been setup first
  498. */
  499. root = of_find_node_by_path("/");
  500. if (root == NULL) {
  501. printk(KERN_CRIT "maple_find_bridges: can't find root of device tree\n");
  502. return;
  503. }
  504. for (np = NULL; (np = of_get_next_child(root, np)) != NULL;) {
  505. if (!np->type)
  506. continue;
  507. if (strcmp(np->type, "pci") && strcmp(np->type, "ht"))
  508. continue;
  509. if ((of_device_is_compatible(np, "u4-pcie") ||
  510. of_device_is_compatible(np, "u3-agp")) &&
  511. maple_add_bridge(np) == 0)
  512. of_node_get(np);
  513. if (of_device_is_compatible(np, "u3-ht")) {
  514. of_node_get(np);
  515. ht = np;
  516. }
  517. }
  518. of_node_put(root);
  519. /* Now setup the HyperTransport host if we found any
  520. */
  521. if (ht && maple_add_bridge(ht) != 0)
  522. of_node_put(ht);
  523. /* Setup the linkage between OF nodes and PHBs */
  524. pci_devs_phb_init();
  525. /* Fixup the PCI<->OF mapping for U3 AGP due to bus renumbering. We
  526. * assume there is no P2P bridge on the AGP bus, which should be a
  527. * safe assumptions hopefully.
  528. */
  529. if (u3_agp) {
  530. struct device_node *np = u3_agp->dn;
  531. PCI_DN(np)->busno = 0xf0;
  532. for (np = np->child; np; np = np->sibling)
  533. PCI_DN(np)->busno = 0xf0;
  534. }
  535. /* Tell pci.c to not change any resource allocations. */
  536. pci_add_flags(PCI_PROBE_ONLY);
  537. }
  538. int maple_pci_get_legacy_ide_irq(struct pci_dev *pdev, int channel)
  539. {
  540. struct device_node *np;
  541. unsigned int defirq = channel ? 15 : 14;
  542. unsigned int irq;
  543. if (pdev->vendor != PCI_VENDOR_ID_AMD ||
  544. pdev->device != PCI_DEVICE_ID_AMD_8111_IDE)
  545. return defirq;
  546. np = pci_device_to_OF_node(pdev);
  547. if (np == NULL) {
  548. printk("Failed to locate OF node for IDE %s\n",
  549. pci_name(pdev));
  550. return defirq;
  551. }
  552. irq = irq_of_parse_and_map(np, channel & 0x1);
  553. if (irq == NO_IRQ) {
  554. printk("Failed to map onboard IDE interrupt for channel %d\n",
  555. channel);
  556. return defirq;
  557. }
  558. return irq;
  559. }
  560. static void __devinit quirk_ipr_msi(struct pci_dev *dev)
  561. {
  562. /* Something prevents MSIs from the IPR from working on Bimini,
  563. * and the driver has no smarts to recover. So disable MSI
  564. * on it for now. */
  565. if (machine_is(maple)) {
  566. dev->no_msi = 1;
  567. dev_info(&dev->dev, "Quirk disabled MSI\n");
  568. }
  569. }
  570. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_OBSIDIAN,
  571. quirk_ipr_msi);