quirks.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. /*
  2. * This file contains work-arounds for x86 and x86_64 platform bugs.
  3. */
  4. #include <linux/pci.h>
  5. #include <linux/irq.h>
  6. #include <asm/hpet.h>
  7. #if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_SMP) && defined(CONFIG_PCI)
  8. static void __devinit quirk_intel_irqbalance(struct pci_dev *dev)
  9. {
  10. u8 config;
  11. u16 word;
  12. /* BIOS may enable hardware IRQ balancing for
  13. * E7520/E7320/E7525(revision ID 0x9 and below)
  14. * based platforms.
  15. * Disable SW irqbalance/affinity on those platforms.
  16. */
  17. if (dev->revision > 0x9)
  18. return;
  19. /* enable access to config space*/
  20. pci_read_config_byte(dev, 0xf4, &config);
  21. pci_write_config_byte(dev, 0xf4, config|0x2);
  22. /*
  23. * read xTPR register. We may not have a pci_dev for device 8
  24. * because it might be hidden until the above write.
  25. */
  26. pci_bus_read_config_word(dev->bus, PCI_DEVFN(8, 0), 0x4c, &word);
  27. if (!(word & (1 << 13))) {
  28. dev_info(&dev->dev, "Intel E7520/7320/7525 detected; "
  29. "disabling irq balancing and affinity\n");
  30. noirqdebug_setup("");
  31. #ifdef CONFIG_PROC_FS
  32. no_irq_affinity = 1;
  33. #endif
  34. }
  35. /* put back the original value for config space*/
  36. if (!(config & 0x2))
  37. pci_write_config_byte(dev, 0xf4, config);
  38. }
  39. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_E7320_MCH,
  40. quirk_intel_irqbalance);
  41. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_E7525_MCH,
  42. quirk_intel_irqbalance);
  43. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_E7520_MCH,
  44. quirk_intel_irqbalance);
  45. #endif
  46. #if defined(CONFIG_HPET_TIMER)
  47. unsigned long force_hpet_address;
  48. static enum {
  49. NONE_FORCE_HPET_RESUME,
  50. OLD_ICH_FORCE_HPET_RESUME,
  51. ICH_FORCE_HPET_RESUME,
  52. VT8237_FORCE_HPET_RESUME,
  53. NVIDIA_FORCE_HPET_RESUME,
  54. ATI_FORCE_HPET_RESUME,
  55. } force_hpet_resume_type;
  56. static void __iomem *rcba_base;
  57. static void ich_force_hpet_resume(void)
  58. {
  59. u32 val;
  60. if (!force_hpet_address)
  61. return;
  62. BUG_ON(rcba_base == NULL);
  63. /* read the Function Disable register, dword mode only */
  64. val = readl(rcba_base + 0x3404);
  65. if (!(val & 0x80)) {
  66. /* HPET disabled in HPTC. Trying to enable */
  67. writel(val | 0x80, rcba_base + 0x3404);
  68. }
  69. val = readl(rcba_base + 0x3404);
  70. if (!(val & 0x80))
  71. BUG();
  72. else
  73. printk(KERN_DEBUG "Force enabled HPET at resume\n");
  74. return;
  75. }
  76. static void ich_force_enable_hpet(struct pci_dev *dev)
  77. {
  78. u32 val;
  79. u32 uninitialized_var(rcba);
  80. int err = 0;
  81. if (hpet_address || force_hpet_address)
  82. return;
  83. pci_read_config_dword(dev, 0xF0, &rcba);
  84. rcba &= 0xFFFFC000;
  85. if (rcba == 0) {
  86. dev_printk(KERN_DEBUG, &dev->dev, "RCBA disabled; "
  87. "cannot force enable HPET\n");
  88. return;
  89. }
  90. /* use bits 31:14, 16 kB aligned */
  91. rcba_base = ioremap_nocache(rcba, 0x4000);
  92. if (rcba_base == NULL) {
  93. dev_printk(KERN_DEBUG, &dev->dev, "ioremap failed; "
  94. "cannot force enable HPET\n");
  95. return;
  96. }
  97. /* read the Function Disable register, dword mode only */
  98. val = readl(rcba_base + 0x3404);
  99. if (val & 0x80) {
  100. /* HPET is enabled in HPTC. Just not reported by BIOS */
  101. val = val & 0x3;
  102. force_hpet_address = 0xFED00000 | (val << 12);
  103. dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at "
  104. "0x%lx\n", force_hpet_address);
  105. iounmap(rcba_base);
  106. return;
  107. }
  108. /* HPET disabled in HPTC. Trying to enable */
  109. writel(val | 0x80, rcba_base + 0x3404);
  110. val = readl(rcba_base + 0x3404);
  111. if (!(val & 0x80)) {
  112. err = 1;
  113. } else {
  114. val = val & 0x3;
  115. force_hpet_address = 0xFED00000 | (val << 12);
  116. }
  117. if (err) {
  118. force_hpet_address = 0;
  119. iounmap(rcba_base);
  120. dev_printk(KERN_DEBUG, &dev->dev,
  121. "Failed to force enable HPET\n");
  122. } else {
  123. force_hpet_resume_type = ICH_FORCE_HPET_RESUME;
  124. dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at "
  125. "0x%lx\n", force_hpet_address);
  126. }
  127. }
  128. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB2_0,
  129. ich_force_enable_hpet);
  130. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_0,
  131. ich_force_enable_hpet);
  132. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_1,
  133. ich_force_enable_hpet);
  134. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_0,
  135. ich_force_enable_hpet);
  136. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_1,
  137. ich_force_enable_hpet);
  138. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_31,
  139. ich_force_enable_hpet);
  140. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_1,
  141. ich_force_enable_hpet);
  142. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_4,
  143. ich_force_enable_hpet);
  144. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_7,
  145. ich_force_enable_hpet);
  146. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x3a16, /* ICH10 */
  147. ich_force_enable_hpet);
  148. static struct pci_dev *cached_dev;
  149. static void hpet_print_force_info(void)
  150. {
  151. printk(KERN_INFO "HPET not enabled in BIOS. "
  152. "You might try hpet=force boot option\n");
  153. }
  154. static void old_ich_force_hpet_resume(void)
  155. {
  156. u32 val;
  157. u32 uninitialized_var(gen_cntl);
  158. if (!force_hpet_address || !cached_dev)
  159. return;
  160. pci_read_config_dword(cached_dev, 0xD0, &gen_cntl);
  161. gen_cntl &= (~(0x7 << 15));
  162. gen_cntl |= (0x4 << 15);
  163. pci_write_config_dword(cached_dev, 0xD0, gen_cntl);
  164. pci_read_config_dword(cached_dev, 0xD0, &gen_cntl);
  165. val = gen_cntl >> 15;
  166. val &= 0x7;
  167. if (val == 0x4)
  168. printk(KERN_DEBUG "Force enabled HPET at resume\n");
  169. else
  170. BUG();
  171. }
  172. static void old_ich_force_enable_hpet(struct pci_dev *dev)
  173. {
  174. u32 val;
  175. u32 uninitialized_var(gen_cntl);
  176. if (hpet_address || force_hpet_address)
  177. return;
  178. pci_read_config_dword(dev, 0xD0, &gen_cntl);
  179. /*
  180. * Bit 17 is HPET enable bit.
  181. * Bit 16:15 control the HPET base address.
  182. */
  183. val = gen_cntl >> 15;
  184. val &= 0x7;
  185. if (val & 0x4) {
  186. val &= 0x3;
  187. force_hpet_address = 0xFED00000 | (val << 12);
  188. dev_printk(KERN_DEBUG, &dev->dev, "HPET at 0x%lx\n",
  189. force_hpet_address);
  190. return;
  191. }
  192. /*
  193. * HPET is disabled. Trying enabling at FED00000 and check
  194. * whether it sticks
  195. */
  196. gen_cntl &= (~(0x7 << 15));
  197. gen_cntl |= (0x4 << 15);
  198. pci_write_config_dword(dev, 0xD0, gen_cntl);
  199. pci_read_config_dword(dev, 0xD0, &gen_cntl);
  200. val = gen_cntl >> 15;
  201. val &= 0x7;
  202. if (val & 0x4) {
  203. /* HPET is enabled in HPTC. Just not reported by BIOS */
  204. val &= 0x3;
  205. force_hpet_address = 0xFED00000 | (val << 12);
  206. dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at "
  207. "0x%lx\n", force_hpet_address);
  208. cached_dev = dev;
  209. force_hpet_resume_type = OLD_ICH_FORCE_HPET_RESUME;
  210. return;
  211. }
  212. dev_printk(KERN_DEBUG, &dev->dev, "Failed to force enable HPET\n");
  213. }
  214. /*
  215. * Undocumented chipset features. Make sure that the user enforced
  216. * this.
  217. */
  218. static void old_ich_force_enable_hpet_user(struct pci_dev *dev)
  219. {
  220. if (hpet_force_user)
  221. old_ich_force_enable_hpet(dev);
  222. }
  223. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_1,
  224. old_ich_force_enable_hpet_user);
  225. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_0,
  226. old_ich_force_enable_hpet_user);
  227. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_12,
  228. old_ich_force_enable_hpet_user);
  229. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_0,
  230. old_ich_force_enable_hpet_user);
  231. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_12,
  232. old_ich_force_enable_hpet_user);
  233. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801EB_0,
  234. old_ich_force_enable_hpet);
  235. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801EB_12,
  236. old_ich_force_enable_hpet);
  237. static void vt8237_force_hpet_resume(void)
  238. {
  239. u32 val;
  240. if (!force_hpet_address || !cached_dev)
  241. return;
  242. val = 0xfed00000 | 0x80;
  243. pci_write_config_dword(cached_dev, 0x68, val);
  244. pci_read_config_dword(cached_dev, 0x68, &val);
  245. if (val & 0x80)
  246. printk(KERN_DEBUG "Force enabled HPET at resume\n");
  247. else
  248. BUG();
  249. }
  250. static void vt8237_force_enable_hpet(struct pci_dev *dev)
  251. {
  252. u32 uninitialized_var(val);
  253. if (hpet_address || force_hpet_address)
  254. return;
  255. if (!hpet_force_user) {
  256. hpet_print_force_info();
  257. return;
  258. }
  259. pci_read_config_dword(dev, 0x68, &val);
  260. /*
  261. * Bit 7 is HPET enable bit.
  262. * Bit 31:10 is HPET base address (contrary to what datasheet claims)
  263. */
  264. if (val & 0x80) {
  265. force_hpet_address = (val & ~0x3ff);
  266. dev_printk(KERN_DEBUG, &dev->dev, "HPET at 0x%lx\n",
  267. force_hpet_address);
  268. return;
  269. }
  270. /*
  271. * HPET is disabled. Trying enabling at FED00000 and check
  272. * whether it sticks
  273. */
  274. val = 0xfed00000 | 0x80;
  275. pci_write_config_dword(dev, 0x68, val);
  276. pci_read_config_dword(dev, 0x68, &val);
  277. if (val & 0x80) {
  278. force_hpet_address = (val & ~0x3ff);
  279. dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at "
  280. "0x%lx\n", force_hpet_address);
  281. cached_dev = dev;
  282. force_hpet_resume_type = VT8237_FORCE_HPET_RESUME;
  283. return;
  284. }
  285. dev_printk(KERN_DEBUG, &dev->dev, "Failed to force enable HPET\n");
  286. }
  287. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235,
  288. vt8237_force_enable_hpet);
  289. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237,
  290. vt8237_force_enable_hpet);
  291. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_CX700,
  292. vt8237_force_enable_hpet);
  293. static void ati_force_hpet_resume(void)
  294. {
  295. pci_write_config_dword(cached_dev, 0x14, 0xfed00000);
  296. printk(KERN_DEBUG "Force enabled HPET at resume\n");
  297. }
  298. static u32 ati_ixp4x0_rev(struct pci_dev *dev)
  299. {
  300. u32 d;
  301. u8 b;
  302. pci_read_config_byte(dev, 0xac, &b);
  303. b &= ~(1<<5);
  304. pci_write_config_byte(dev, 0xac, b);
  305. pci_read_config_dword(dev, 0x70, &d);
  306. d |= 1<<8;
  307. pci_write_config_dword(dev, 0x70, d);
  308. pci_read_config_dword(dev, 0x8, &d);
  309. d &= 0xff;
  310. dev_printk(KERN_DEBUG, &dev->dev, "SB4X0 revision 0x%x\n", d);
  311. return d;
  312. }
  313. static void ati_force_enable_hpet(struct pci_dev *dev)
  314. {
  315. u32 d, val;
  316. u8 b;
  317. if (hpet_address || force_hpet_address)
  318. return;
  319. if (!hpet_force_user) {
  320. hpet_print_force_info();
  321. return;
  322. }
  323. d = ati_ixp4x0_rev(dev);
  324. if (d < 0x82)
  325. return;
  326. /* base address */
  327. pci_write_config_dword(dev, 0x14, 0xfed00000);
  328. pci_read_config_dword(dev, 0x14, &val);
  329. /* enable interrupt */
  330. outb(0x72, 0xcd6); b = inb(0xcd7);
  331. b |= 0x1;
  332. outb(0x72, 0xcd6); outb(b, 0xcd7);
  333. outb(0x72, 0xcd6); b = inb(0xcd7);
  334. if (!(b & 0x1))
  335. return;
  336. pci_read_config_dword(dev, 0x64, &d);
  337. d |= (1<<10);
  338. pci_write_config_dword(dev, 0x64, d);
  339. pci_read_config_dword(dev, 0x64, &d);
  340. if (!(d & (1<<10)))
  341. return;
  342. force_hpet_address = val;
  343. force_hpet_resume_type = ATI_FORCE_HPET_RESUME;
  344. dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at 0x%lx\n",
  345. force_hpet_address);
  346. cached_dev = dev;
  347. }
  348. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_IXP400_SMBUS,
  349. ati_force_enable_hpet);
  350. /*
  351. * Undocumented chipset feature taken from LinuxBIOS.
  352. */
  353. static void nvidia_force_hpet_resume(void)
  354. {
  355. pci_write_config_dword(cached_dev, 0x44, 0xfed00001);
  356. printk(KERN_DEBUG "Force enabled HPET at resume\n");
  357. }
  358. static void nvidia_force_enable_hpet(struct pci_dev *dev)
  359. {
  360. u32 uninitialized_var(val);
  361. if (hpet_address || force_hpet_address)
  362. return;
  363. if (!hpet_force_user) {
  364. hpet_print_force_info();
  365. return;
  366. }
  367. pci_write_config_dword(dev, 0x44, 0xfed00001);
  368. pci_read_config_dword(dev, 0x44, &val);
  369. force_hpet_address = val & 0xfffffffe;
  370. force_hpet_resume_type = NVIDIA_FORCE_HPET_RESUME;
  371. dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at 0x%lx\n",
  372. force_hpet_address);
  373. cached_dev = dev;
  374. return;
  375. }
  376. /* ISA Bridges */
  377. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, 0x0050,
  378. nvidia_force_enable_hpet);
  379. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, 0x0051,
  380. nvidia_force_enable_hpet);
  381. /* LPC bridges */
  382. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, 0x0260,
  383. nvidia_force_enable_hpet);
  384. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, 0x0360,
  385. nvidia_force_enable_hpet);
  386. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, 0x0361,
  387. nvidia_force_enable_hpet);
  388. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, 0x0362,
  389. nvidia_force_enable_hpet);
  390. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, 0x0363,
  391. nvidia_force_enable_hpet);
  392. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, 0x0364,
  393. nvidia_force_enable_hpet);
  394. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, 0x0365,
  395. nvidia_force_enable_hpet);
  396. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, 0x0366,
  397. nvidia_force_enable_hpet);
  398. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, 0x0367,
  399. nvidia_force_enable_hpet);
  400. void force_hpet_resume(void)
  401. {
  402. switch (force_hpet_resume_type) {
  403. case ICH_FORCE_HPET_RESUME:
  404. ich_force_hpet_resume();
  405. return;
  406. case OLD_ICH_FORCE_HPET_RESUME:
  407. old_ich_force_hpet_resume();
  408. return;
  409. case VT8237_FORCE_HPET_RESUME:
  410. vt8237_force_hpet_resume();
  411. return;
  412. case NVIDIA_FORCE_HPET_RESUME:
  413. nvidia_force_hpet_resume();
  414. return;
  415. case ATI_FORCE_HPET_RESUME:
  416. ati_force_hpet_resume();
  417. return;
  418. default:
  419. break;
  420. }
  421. }
  422. /*
  423. * HPET MSI on some boards (ATI SB700/SB800) has side effect on
  424. * floppy DMA. Disable HPET MSI on such platforms.
  425. * See erratum #27 (Misinterpreted MSI Requests May Result in
  426. * Corrupted LPC DMA Data) in AMD Publication #46837,
  427. * "SB700 Family Product Errata", Rev. 1.0, March 2010.
  428. */
  429. static void force_disable_hpet_msi(struct pci_dev *unused)
  430. {
  431. hpet_msi_disable = 1;
  432. }
  433. DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SBX00_SMBUS,
  434. force_disable_hpet_msi);
  435. #endif
  436. #if defined(CONFIG_PCI) && defined(CONFIG_NUMA)
  437. /* Set correct numa_node information for AMD NB functions */
  438. static void __init quirk_amd_nb_node(struct pci_dev *dev)
  439. {
  440. struct pci_dev *nb_ht;
  441. unsigned int devfn;
  442. u32 node;
  443. u32 val;
  444. devfn = PCI_DEVFN(PCI_SLOT(dev->devfn), 0);
  445. nb_ht = pci_get_slot(dev->bus, devfn);
  446. if (!nb_ht)
  447. return;
  448. pci_read_config_dword(nb_ht, 0x60, &val);
  449. node = pcibus_to_node(dev->bus) | (val & 7);
  450. /*
  451. * Some hardware may return an invalid node ID,
  452. * so check it first:
  453. */
  454. if (node_online(node))
  455. set_dev_node(&dev->dev, node);
  456. pci_dev_put(nb_ht);
  457. }
  458. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB,
  459. quirk_amd_nb_node);
  460. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB_ADDRMAP,
  461. quirk_amd_nb_node);
  462. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB_MEMCTL,
  463. quirk_amd_nb_node);
  464. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB_MISC,
  465. quirk_amd_nb_node);
  466. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_10H_NB_HT,
  467. quirk_amd_nb_node);
  468. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_10H_NB_MAP,
  469. quirk_amd_nb_node);
  470. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_10H_NB_DRAM,
  471. quirk_amd_nb_node);
  472. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_10H_NB_MISC,
  473. quirk_amd_nb_node);
  474. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_10H_NB_LINK,
  475. quirk_amd_nb_node);
  476. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_15H_NB_F0,
  477. quirk_amd_nb_node);
  478. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_15H_NB_F1,
  479. quirk_amd_nb_node);
  480. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_15H_NB_F2,
  481. quirk_amd_nb_node);
  482. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_15H_NB_F3,
  483. quirk_amd_nb_node);
  484. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_15H_NB_F4,
  485. quirk_amd_nb_node);
  486. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_15H_NB_F5,
  487. quirk_amd_nb_node);
  488. #endif