• Dave Jones's avatar
    [AGPGART] allow multiple backends to be initialized. · aeac6f3a
    Dave Jones authored
    From: Michael Werner <werner@mrcoffee.engr.sgi.com>
    
    This patch adds support for initializing and addressing multiple AGP
    bridges using the agpgart driver.  In particular, it extends agp_acquire
    and agp_allocate_memory so that different bridges can be acquired and
    memory allocated within a specific AGP aperature.
    
    From: Brice Goglin <Brice.Goglin@ens-lyon.fr>
    
    It seems that memsetting the whole bridge structure to 0 (instead of juste
    the agp_in_use field) fixes Benoit's problem too.  No idea which field was
    responsible for this.  New patch attached.
    
    From: Mike Werner <werner@sgi.com>
    
    add bridge assignment missed in agp_allocate_memory
    
    From: Andi Kleen <ak@suse.de>
    
    Here's the correct fix. agp_bridge is defined in drivers/char/agp/agp.h.
    It's a bit ugly though.
    Signed-off-by: default avatarMike Werner <werner@sgi.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarDave Jones <davej@redhat.com>
    aeac6f3a
frontend.c 24.5 KB