2 * Copyright 2001-2003 SuSE Labs.
3 * Distributed under the GNU public license, v2.
5 * This is a GART driver for the AMD Opteron/Athlon64 on-CPU northbridge.
6 * It also includes support for the AMD 8151 AGP bridge,
7 * although it doesn't actually do much, as all the real
8 * work is done in the northbridge(s).
11 #include <linux/config.h>
12 #include <linux/module.h>
13 #include <linux/pci.h>
14 #include <linux/init.h>
15 #include <linux/agp_backend.h>
16 #include <linux/mmzone.h>
17 #include <asm/page.h> /* PAGE_SIZE */
23 #define GPTE_COHERENT 2
25 /* Aperture control register bits. */
27 #define DISGARTCPU (1<<4)
28 #define DISGARTIO (1<<5)
30 /* GART cache control register bits. */
31 #define INVGART (1<<0)
32 #define GARTPTEERR (1<<1)
34 /* K8 On-cpu GART registers */
35 #define AMD64_GARTAPERTURECTL 0x90
36 #define AMD64_GARTAPERTUREBASE 0x94
37 #define AMD64_GARTTABLEBASE 0x98
38 #define AMD64_GARTCACHECTL 0x9c
39 #define AMD64_GARTEN (1<<0)
41 /* NVIDIA K8 registers */
42 #define NVIDIA_X86_64_0_APBASE 0x10
43 #define NVIDIA_X86_64_1_APBASE1 0x50
44 #define NVIDIA_X86_64_1_APLIMIT1 0x54
45 #define NVIDIA_X86_64_1_APSIZE 0xa8
46 #define NVIDIA_X86_64_1_APBASE2 0xd8
47 #define NVIDIA_X86_64_1_APLIMIT2 0xdc
49 /* ULi K8 registers */
50 #define ULI_X86_64_BASE_ADDR 0x10
51 #define ULI_X86_64_HTT_FEA_REG 0x50
52 #define ULI_X86_64_ENU_SCR_REG 0x54
54 static struct resource *aperture_resource;
55 static int __initdata agp_try_unsupported = 1;
57 static void amd64_tlbflush(struct agp_memory *temp)
62 static int amd64_insert_memory(struct agp_memory *mem, off_t pg_start, int type)
64 int i, j, num_entries;
68 num_entries = agp_num_entries();
70 if (type != 0 || mem->type != 0)
73 /* Make sure we can fit the range in the gatt table. */
74 /* FIXME: could wrap */
75 if (((unsigned long)pg_start + mem->page_count) > num_entries)
80 /* gatt table should be empty. */
81 while (j < (pg_start + mem->page_count)) {
82 if (!PGE_EMPTY(agp_bridge, readl(agp_bridge->gatt_table+j)))
87 if (mem->is_flushed == FALSE) {
89 mem->is_flushed = TRUE;
92 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) {
93 tmp = agp_bridge->driver->mask_memory(agp_bridge,
94 mem->memory[i], mem->type);
96 BUG_ON(tmp & 0xffffff0000000ffcULL);
97 pte = (tmp & 0x000000ff00000000ULL) >> 28;
98 pte |=(tmp & 0x00000000fffff000ULL);
99 pte |= GPTE_VALID | GPTE_COHERENT;
101 writel(pte, agp_bridge->gatt_table+j);
102 readl(agp_bridge->gatt_table+j); /* PCI Posting. */
109 * This hack alters the order element according
110 * to the size of a long. It sucks. I totally disown this, even
111 * though it does appear to work for the most part.
113 static struct aper_size_info_32 amd64_aperture_sizes[7] =
115 {32, 8192, 3+(sizeof(long)/8), 0 },
116 {64, 16384, 4+(sizeof(long)/8), 1<<1 },
117 {128, 32768, 5+(sizeof(long)/8), 1<<2 },
118 {256, 65536, 6+(sizeof(long)/8), 1<<1 | 1<<2 },
119 {512, 131072, 7+(sizeof(long)/8), 1<<3 },
120 {1024, 262144, 8+(sizeof(long)/8), 1<<1 | 1<<3},
121 {2048, 524288, 9+(sizeof(long)/8), 1<<2 | 1<<3}
126 * Get the current Aperture size from the x86-64.
127 * Note, that there may be multiple x86-64's, but we just return
128 * the value from the first one we find. The set_size functions
129 * keep the rest coherent anyway. Or at least should do.
131 static int amd64_fetch_size(void)
136 struct aper_size_info_32 *values;
138 dev = k8_northbridges[0];
142 pci_read_config_dword(dev, AMD64_GARTAPERTURECTL, &temp);
144 values = A_SIZE_32(amd64_aperture_sizes);
146 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) {
147 if (temp == values[i].size_value) {
148 agp_bridge->previous_size =
149 agp_bridge->current_size = (void *) (values + i);
151 agp_bridge->aperture_size_idx = i;
152 return values[i].size;
159 * In a multiprocessor x86-64 system, this function gets
160 * called once for each CPU.
162 static u64 amd64_configure (struct pci_dev *hammer, u64 gatt_table)
168 /* Address to map to */
169 pci_read_config_dword (hammer, AMD64_GARTAPERTUREBASE, &tmp);
170 aperturebase = tmp << 25;
171 aper_base = (aperturebase & PCI_BASE_ADDRESS_MEM_MASK);
173 /* address of the mappings table */
174 addr = (u64) gatt_table;
178 pci_write_config_dword (hammer, AMD64_GARTTABLEBASE, tmp);
180 /* Enable GART translation for this hammer. */
181 pci_read_config_dword(hammer, AMD64_GARTAPERTURECTL, &tmp);
183 tmp &= ~(DISGARTCPU | DISGARTIO);
184 pci_write_config_dword(hammer, AMD64_GARTAPERTURECTL, tmp);
190 static struct aper_size_info_32 amd_8151_sizes[7] =
192 {2048, 524288, 9, 0x00000000 }, /* 0 0 0 0 0 0 */
193 {1024, 262144, 8, 0x00000400 }, /* 1 0 0 0 0 0 */
194 {512, 131072, 7, 0x00000600 }, /* 1 1 0 0 0 0 */
195 {256, 65536, 6, 0x00000700 }, /* 1 1 1 0 0 0 */
196 {128, 32768, 5, 0x00000720 }, /* 1 1 1 1 0 0 */
197 {64, 16384, 4, 0x00000730 }, /* 1 1 1 1 1 0 */
198 {32, 8192, 3, 0x00000738 } /* 1 1 1 1 1 1 */
201 static int amd_8151_configure(void)
203 unsigned long gatt_bus = virt_to_gart(agp_bridge->gatt_table_real);
206 /* Configure AGP regs in each x86-64 host bridge. */
207 for (i = 0; i < num_k8_northbridges; i++) {
208 agp_bridge->gart_bus_addr =
209 amd64_configure(k8_northbridges[i], gatt_bus);
216 static void amd64_cleanup(void)
220 for (i = 0; i < num_k8_northbridges; i++) {
221 struct pci_dev *dev = k8_northbridges[i];
222 /* disable gart translation */
223 pci_read_config_dword (dev, AMD64_GARTAPERTURECTL, &tmp);
224 tmp &= ~AMD64_GARTEN;
225 pci_write_config_dword (dev, AMD64_GARTAPERTURECTL, tmp);
230 static struct agp_bridge_driver amd_8151_driver = {
231 .owner = THIS_MODULE,
232 .aperture_sizes = amd_8151_sizes,
233 .size_type = U32_APER_SIZE,
234 .num_aperture_sizes = 7,
235 .configure = amd_8151_configure,
236 .fetch_size = amd64_fetch_size,
237 .cleanup = amd64_cleanup,
238 .tlb_flush = amd64_tlbflush,
239 .mask_memory = agp_generic_mask_memory,
241 .agp_enable = agp_generic_enable,
242 .cache_flush = global_cache_flush,
243 .create_gatt_table = agp_generic_create_gatt_table,
244 .free_gatt_table = agp_generic_free_gatt_table,
245 .insert_memory = amd64_insert_memory,
246 .remove_memory = agp_generic_remove_memory,
247 .alloc_by_type = agp_generic_alloc_by_type,
248 .free_by_type = agp_generic_free_by_type,
249 .agp_alloc_page = agp_generic_alloc_page,
250 .agp_destroy_page = agp_generic_destroy_page,
253 /* Some basic sanity checks for the aperture. */
254 static int __devinit aperture_valid(u64 aper, u32 size)
258 printk(KERN_ERR PFX "No aperture\n");
261 if (size < 32*1024*1024) {
262 printk(KERN_ERR PFX "Aperture too small (%d MB)\n", size>>20);
265 if (aper + size > 0xffffffff) {
266 printk(KERN_ERR PFX "Aperture out of bounds\n");
269 pfn = aper >> PAGE_SHIFT;
270 for (c = 0; c < size/PAGE_SIZE; c++) {
271 if (!pfn_valid(pfn + c))
273 if (!PageReserved(pfn_to_page(pfn + c))) {
274 printk(KERN_ERR PFX "Aperture pointing to RAM\n");
279 /* Request the Aperture. This catches cases when someone else
280 already put a mapping in there - happens with some very broken BIOS
282 Maybe better to use pci_assign_resource/pci_enable_device instead
283 trusting the bridges? */
284 if (!aperture_resource &&
285 !(aperture_resource = request_mem_region(aper, size, "aperture"))) {
286 printk(KERN_ERR PFX "Aperture conflicts with PCI mapping.\n");
293 * W*s centric BIOS sometimes only set up the aperture in the AGP
294 * bridge, not the northbridge. On AMD64 this is handled early
295 * in aperture.c, but when IOMMU is not enabled or we run
296 * on a 32bit kernel this needs to be redone.
297 * Unfortunately it is impossible to fix the aperture here because it's too late
298 * to allocate that much memory. But at least error out cleanly instead of
301 static __devinit int fix_northbridge(struct pci_dev *nb, struct pci_dev *agp,
304 u32 aper_low, aper_hi;
307 u32 nb_order, nb_base;
310 pci_read_config_dword(nb, 0x90, &nb_order);
311 nb_order = (nb_order >> 1) & 7;
312 pci_read_config_dword(nb, 0x94, &nb_base);
313 nb_aper = nb_base << 25;
314 if (aperture_valid(nb_aper, (32*1024*1024)<<nb_order)) {
318 /* Northbridge seems to contain crap. Try the AGP bridge. */
320 pci_read_config_word(agp, cap+0x14, &apsize);
321 if (apsize == 0xffff)
325 /* Some BIOS use weird encodings not in the AGPv3 table. */
328 order = 7 - hweight16(apsize);
330 pci_read_config_dword(agp, 0x10, &aper_low);
331 pci_read_config_dword(agp, 0x14, &aper_hi);
332 aper = (aper_low & ~((1<<22)-1)) | ((u64)aper_hi << 32);
333 printk(KERN_INFO PFX "Aperture from AGP @ %Lx size %u MB\n", aper, 32 << order);
334 if (order < 0 || !aperture_valid(aper, (32*1024*1024)<<order))
337 pci_write_config_dword(nb, 0x90, order << 1);
338 pci_write_config_dword(nb, 0x94, aper >> 25);
343 static __devinit int cache_nbs (struct pci_dev *pdev, u32 cap_ptr)
347 if (cache_k8_northbridges() < 0)
351 for (i = 0; i < num_k8_northbridges; i++) {
352 struct pci_dev *dev = k8_northbridges[i];
353 if (fix_northbridge(dev, pdev, cap_ptr) < 0) {
354 printk(KERN_ERR PFX "No usable aperture found.\n");
356 /* should port this to i386 */
357 printk(KERN_ERR PFX "Consider rebooting with iommu=memaper=2 to get a good aperture.\n");
365 /* Handle AMD 8151 quirks */
366 static void __devinit amd8151_init(struct pci_dev *pdev, struct agp_bridge_data *bridge)
371 pci_read_config_byte(pdev, PCI_REVISION_ID, &rev_id);
373 case 0x01: revstring="A0"; break;
374 case 0x02: revstring="A1"; break;
375 case 0x11: revstring="B0"; break;
376 case 0x12: revstring="B1"; break;
377 case 0x13: revstring="B2"; break;
378 case 0x14: revstring="B3"; break;
379 default: revstring="??"; break;
382 printk (KERN_INFO PFX "Detected AMD 8151 AGP Bridge rev %s\n", revstring);
385 * Work around errata.
386 * Chips before B2 stepping incorrectly reporting v3.5
389 printk (KERN_INFO PFX "Correcting AGP revision (reports 3.5, is really 3.0)\n");
390 bridge->major_version = 3;
391 bridge->minor_version = 0;
396 static const struct aper_size_info_32 uli_sizes[7] =
406 static int __devinit uli_agp_init(struct pci_dev *pdev)
408 u32 httfea,baseaddr,enuscr;
409 struct pci_dev *dev1;
411 unsigned size = amd64_fetch_size();
412 printk(KERN_INFO "Setting up ULi AGP.\n");
413 dev1 = pci_find_slot ((unsigned int)pdev->bus->number,PCI_DEVFN(0,0));
415 printk(KERN_INFO PFX "Detected a ULi chipset, "
416 "but could not fine the secondary device.\n");
420 for (i = 0; i < ARRAY_SIZE(uli_sizes); i++)
421 if (uli_sizes[i].size == size)
424 if (i == ARRAY_SIZE(uli_sizes)) {
425 printk(KERN_INFO PFX "No ULi size found for %d\n", size);
429 /* shadow x86-64 registers into ULi registers */
430 pci_read_config_dword (k8_northbridges[0], AMD64_GARTAPERTUREBASE, &httfea);
432 /* if x86-64 aperture base is beyond 4G, exit here */
433 if ((httfea & 0x7fff) >> (32 - 25))
436 httfea = (httfea& 0x7fff) << 25;
438 pci_read_config_dword(pdev, ULI_X86_64_BASE_ADDR, &baseaddr);
439 baseaddr&= ~PCI_BASE_ADDRESS_MEM_MASK;
441 pci_write_config_dword(pdev, ULI_X86_64_BASE_ADDR, baseaddr);
443 enuscr= httfea+ (size * 1024 * 1024) - 1;
444 pci_write_config_dword(dev1, ULI_X86_64_HTT_FEA_REG, httfea);
445 pci_write_config_dword(dev1, ULI_X86_64_ENU_SCR_REG, enuscr);
450 static const struct aper_size_info_32 nforce3_sizes[5] =
452 {512, 131072, 7, 0x00000000 },
453 {256, 65536, 6, 0x00000008 },
454 {128, 32768, 5, 0x0000000C },
455 {64, 16384, 4, 0x0000000E },
456 {32, 8192, 3, 0x0000000F }
459 /* Handle shadow device of the Nvidia NForce3 */
460 /* CHECK-ME original 2.4 version set up some IORRs. Check if that is needed. */
461 static int __devinit nforce3_agp_init(struct pci_dev *pdev)
463 u32 tmp, apbase, apbar, aplimit;
464 struct pci_dev *dev1;
466 unsigned size = amd64_fetch_size();
468 printk(KERN_INFO PFX "Setting up Nforce3 AGP.\n");
470 dev1 = pci_find_slot((unsigned int)pdev->bus->number, PCI_DEVFN(11, 0));
472 printk(KERN_INFO PFX "agpgart: Detected an NVIDIA "
473 "nForce3 chipset, but could not find "
474 "the secondary device.\n");
478 for (i = 0; i < ARRAY_SIZE(nforce3_sizes); i++)
479 if (nforce3_sizes[i].size == size)
482 if (i == ARRAY_SIZE(nforce3_sizes)) {
483 printk(KERN_INFO PFX "No NForce3 size found for %d\n", size);
487 pci_read_config_dword(dev1, NVIDIA_X86_64_1_APSIZE, &tmp);
489 tmp |= nforce3_sizes[i].size_value;
490 pci_write_config_dword(dev1, NVIDIA_X86_64_1_APSIZE, tmp);
492 /* shadow x86-64 registers into NVIDIA registers */
493 pci_read_config_dword (k8_northbridges[0], AMD64_GARTAPERTUREBASE, &apbase);
495 /* if x86-64 aperture base is beyond 4G, exit here */
496 if ( (apbase & 0x7fff) >> (32 - 25) ) {
497 printk(KERN_INFO PFX "aperture base > 4G\n");
501 apbase = (apbase & 0x7fff) << 25;
503 pci_read_config_dword(pdev, NVIDIA_X86_64_0_APBASE, &apbar);
504 apbar &= ~PCI_BASE_ADDRESS_MEM_MASK;
506 pci_write_config_dword(pdev, NVIDIA_X86_64_0_APBASE, apbar);
508 aplimit = apbase + (size * 1024 * 1024) - 1;
509 pci_write_config_dword(dev1, NVIDIA_X86_64_1_APBASE1, apbase);
510 pci_write_config_dword(dev1, NVIDIA_X86_64_1_APLIMIT1, aplimit);
511 pci_write_config_dword(dev1, NVIDIA_X86_64_1_APBASE2, apbase);
512 pci_write_config_dword(dev1, NVIDIA_X86_64_1_APLIMIT2, aplimit);
517 static int __devinit agp_amd64_probe(struct pci_dev *pdev,
518 const struct pci_device_id *ent)
520 struct agp_bridge_data *bridge;
523 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
527 /* Could check for AGPv3 here */
529 bridge = agp_alloc_bridge();
533 if (pdev->vendor == PCI_VENDOR_ID_AMD &&
534 pdev->device == PCI_DEVICE_ID_AMD_8151_0) {
535 amd8151_init(pdev, bridge);
537 printk(KERN_INFO PFX "Detected AGP bridge %x\n", pdev->devfn);
540 bridge->driver = &amd_8151_driver;
542 bridge->capndx = cap_ptr;
544 /* Fill in the mode register */
545 pci_read_config_dword(pdev, bridge->capndx+PCI_AGP_STATUS, &bridge->mode);
547 if (cache_nbs(pdev, cap_ptr) == -1) {
548 agp_put_bridge(bridge);
552 if (pdev->vendor == PCI_VENDOR_ID_NVIDIA) {
553 int ret = nforce3_agp_init(pdev);
555 agp_put_bridge(bridge);
560 if (pdev->vendor == PCI_VENDOR_ID_AL) {
561 int ret = uli_agp_init(pdev);
563 agp_put_bridge(bridge);
568 pci_set_drvdata(pdev, bridge);
569 return agp_add_bridge(bridge);
572 static void __devexit agp_amd64_remove(struct pci_dev *pdev)
574 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
576 release_mem_region(virt_to_gart(bridge->gatt_table_real),
577 amd64_aperture_sizes[bridge->aperture_size_idx].size);
578 agp_remove_bridge(bridge);
579 agp_put_bridge(bridge);
584 static int agp_amd64_suspend(struct pci_dev *pdev, pm_message_t state)
586 pci_save_state(pdev);
587 pci_set_power_state(pdev, pci_choose_state(pdev, state));
592 static int agp_amd64_resume(struct pci_dev *pdev)
594 pci_set_power_state(pdev, PCI_D0);
595 pci_restore_state(pdev);
597 if (pdev->vendor == PCI_VENDOR_ID_NVIDIA)
598 nforce3_agp_init(pdev);
600 return amd_8151_configure();
603 #endif /* CONFIG_PM */
605 static struct pci_device_id agp_amd64_pci_table[] = {
607 .class = (PCI_CLASS_BRIDGE_HOST << 8),
609 .vendor = PCI_VENDOR_ID_AMD,
610 .device = PCI_DEVICE_ID_AMD_8151_0,
611 .subvendor = PCI_ANY_ID,
612 .subdevice = PCI_ANY_ID,
616 .class = (PCI_CLASS_BRIDGE_HOST << 8),
618 .vendor = PCI_VENDOR_ID_AL,
619 .device = PCI_DEVICE_ID_AL_M1689,
620 .subvendor = PCI_ANY_ID,
621 .subdevice = PCI_ANY_ID,
625 .class = (PCI_CLASS_BRIDGE_HOST << 8),
627 .vendor = PCI_VENDOR_ID_VIA,
628 .device = PCI_DEVICE_ID_VIA_K8T800PRO_0,
629 .subvendor = PCI_ANY_ID,
630 .subdevice = PCI_ANY_ID,
634 .class = (PCI_CLASS_BRIDGE_HOST << 8),
636 .vendor = PCI_VENDOR_ID_VIA,
637 .device = PCI_DEVICE_ID_VIA_8385_0,
638 .subvendor = PCI_ANY_ID,
639 .subdevice = PCI_ANY_ID,
641 /* VIA K8M800 / K8N800 */
643 .class = (PCI_CLASS_BRIDGE_HOST << 8),
645 .vendor = PCI_VENDOR_ID_VIA,
646 .device = PCI_DEVICE_ID_VIA_8380_0,
647 .subvendor = PCI_ANY_ID,
648 .subdevice = PCI_ANY_ID,
652 .class = (PCI_CLASS_BRIDGE_HOST << 8),
654 .vendor = PCI_VENDOR_ID_VIA,
655 .device = PCI_DEVICE_ID_VIA_3238_0,
656 .subvendor = PCI_ANY_ID,
657 .subdevice = PCI_ANY_ID,
659 /* VIA K8T800/K8M800/K8N800 */
661 .class = (PCI_CLASS_BRIDGE_HOST << 8),
663 .vendor = PCI_VENDOR_ID_VIA,
664 .device = PCI_DEVICE_ID_VIA_838X_1,
665 .subvendor = PCI_ANY_ID,
666 .subdevice = PCI_ANY_ID,
670 .class = (PCI_CLASS_BRIDGE_HOST << 8),
672 .vendor = PCI_VENDOR_ID_NVIDIA,
673 .device = PCI_DEVICE_ID_NVIDIA_NFORCE3,
674 .subvendor = PCI_ANY_ID,
675 .subdevice = PCI_ANY_ID,
678 .class = (PCI_CLASS_BRIDGE_HOST << 8),
680 .vendor = PCI_VENDOR_ID_NVIDIA,
681 .device = PCI_DEVICE_ID_NVIDIA_NFORCE3S,
682 .subvendor = PCI_ANY_ID,
683 .subdevice = PCI_ANY_ID,
687 .class = (PCI_CLASS_BRIDGE_HOST << 8),
689 .vendor = PCI_VENDOR_ID_SI,
690 .device = PCI_DEVICE_ID_SI_755,
691 .subvendor = PCI_ANY_ID,
692 .subdevice = PCI_ANY_ID,
696 .class = (PCI_CLASS_BRIDGE_HOST << 8),
698 .vendor = PCI_VENDOR_ID_SI,
699 .device = PCI_DEVICE_ID_SI_760,
700 .subvendor = PCI_ANY_ID,
701 .subdevice = PCI_ANY_ID,
705 .class = (PCI_CLASS_BRIDGE_HOST << 8),
707 .vendor = PCI_VENDOR_ID_AL,
709 .subvendor = PCI_ANY_ID,
710 .subdevice = PCI_ANY_ID,
716 MODULE_DEVICE_TABLE(pci, agp_amd64_pci_table);
718 static struct pci_driver agp_amd64_pci_driver = {
719 .name = "agpgart-amd64",
720 .id_table = agp_amd64_pci_table,
721 .probe = agp_amd64_probe,
722 .remove = agp_amd64_remove,
724 .suspend = agp_amd64_suspend,
725 .resume = agp_amd64_resume,
730 /* Not static due to IOMMU code calling it early. */
731 int __init agp_amd64_init(void)
737 if (pci_register_driver(&agp_amd64_pci_driver) > 0) {
739 if (!agp_try_unsupported && !agp_try_unsupported_boot) {
740 printk(KERN_INFO PFX "No supported AGP bridge found.\n");
742 printk(KERN_INFO PFX "You can try agp_try_unsupported=1\n");
744 printk(KERN_INFO PFX "You can boot with agp=try_unsupported\n");
749 /* First check that we have at least one AMD64 NB */
750 if (!pci_dev_present(k8_nb_ids))
753 /* Look for any AGP bridge */
756 for_each_pci_dev(dev) {
757 if (!pci_find_capability(dev, PCI_CAP_ID_AGP))
759 /* Only one bridge supported right now */
760 if (agp_amd64_probe(dev, NULL) == 0) {
769 static void __exit agp_amd64_cleanup(void)
771 if (aperture_resource)
772 release_resource(aperture_resource);
773 pci_unregister_driver(&agp_amd64_pci_driver);
776 /* On AMD64 the PCI driver needs to initialize this driver early
777 for the IOMMU, so it has to be called via a backdoor. */
779 module_init(agp_amd64_init);
780 module_exit(agp_amd64_cleanup);
783 MODULE_AUTHOR("Dave Jones <davej@codemonkey.org.uk>, Andi Kleen");
784 module_param(agp_try_unsupported, bool, 0);
785 MODULE_LICENSE("GPL");