mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.6.5-bk1 on x86-64 linkage error
@ 2004-04-13 21:32 Mikael Pettersson
  2004-04-13 21:33 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Pettersson @ 2004-04-13 21:32 UTC (permalink / raw)
  To: ak; +Cc: linux-kernel

Andi,

2.6.5-bk1 on x86-64 with CONFIG_GART_IOMMU=n fails to
link due to undefined references to iommu_aperture_allowed
and iommu_aperture_disabled. Fixed by the patch below.

/Mikael

--- linux-2.6.5-bk1/arch/x86_64/kernel/io_apic.c.~1~	2004-04-13 21:18:26.000000000 +0200
+++ linux-2.6.5-bk1/arch/x86_64/kernel/io_apic.c	2004-04-13 23:01:32.000000000 +0200
@@ -250,12 +250,14 @@
 				vendor &= 0xffff;
 				switch (vendor) { 
 				case PCI_VENDOR_ID_VIA:
+#ifdef CONFIG_GART_IOMMU
 					if (end_pfn >= (0xffffffff>>PAGE_SHIFT) &&
 					    !iommu_aperture_allowed) {
 						printk(KERN_INFO
     "Looks like a VIA chipset. Disabling IOMMU. Overwrite with \"iommu=allowed\"\n");
 						iommu_aperture_disabled = 1;
 					}
+#endif
 					/* FALL THROUGH */
 				case PCI_VENDOR_ID_NVIDIA:
 #ifndef CONFIG_SMP

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] 2.6.5-bk1 on x86-64 linkage error
  2004-04-13 21:32 [PATCH] 2.6.5-bk1 on x86-64 linkage error Mikael Pettersson
@ 2004-04-13 21:33 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2004-04-13 21:33 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: linux-kernel

On Tue, 13 Apr 2004 23:32:15 +0200 (MEST)
Mikael Pettersson <mikpe@csd.uu.se> wrote:

> Andi,
> 
> 2.6.5-bk1 on x86-64 with CONFIG_GART_IOMMU=n fails to
> link due to undefined references to iommu_aperture_allowed
> and iommu_aperture_disabled. Fixed by the patch below.

Thanks. I had already fixed that earlier in a slightly different way,
but the fix didn't make it in 2.6.5.

-Andi


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-13 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-13 21:32 [PATCH] 2.6.5-bk1 on x86-64 linkage error Mikael Pettersson
2004-04-13 21:33 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome