[MICROPATCH] Make x86_64 build work without GART_IOMMU

From: Jonathan Corbet (corbet_at_lwn.net)
Date: 04/30/04

  • Next message: Jesse Pollard: "Re: [PATCH] Blacklist binary-only modules lying about their license"
    To: linux-kernel@vger.kernel.org
    Date:	Fri, 30 Apr 2004 13:57:11 -0600
    
    

    If you try to build a 2.6.6-rc3 kernel with CONFIG_GART_IOMMU turned off,
    the link fails because bad_dma_address is undefined. This little hack just
    defines the variable in pci-nommu.c as well. It may not be an optimal fix,
    but it does make the kernel build.

    Why do I care? My Radeon 9200SE goes nuts if I build a GART-enabled
    kernel. Haven't figured out why...

    jon

    --- 2.6.6-rc3-slab/arch/x86_64/kernel/pci-nommu.c.orig 2004-02-06 00:51:20.000000000 -0700
    +++ 2.6.6-rc3-slab/arch/x86_64/kernel/pci-nommu.c 2004-04-30 13:40:35.000000000 -0600
    @@ -5,6 +5,7 @@
     #include <asm/proto.h>
     
     int iommu_merge = 0;
    +dma_addr_t bad_dma_address;
     
     /*
      * Dummy IO MMU functions
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Jesse Pollard: "Re: [PATCH] Blacklist binary-only modules lying about their license"

    Relevant Pages