kernel-ark/drivers/char/agp
David Mosberger 66bb8bf8b2 [PATCH] Replace check_bridge_mode() with (bridge->mode & AGSTAT_MODE_3_0).
[AGPGART] Replace check_bridge_mode() with (bridge->mode & AGSTAT_MODE_3_0).

As mentioned earlier, the current check_bridge_mode() code assumes
that AGP bridges are PCI devices.  This isn't always true.  Definitely
not for HP zx1 chipset and the same seems to be the case for SGI's AGP
bridge.

The patch below fixes the problem by picking up the AGP_MODE_3_0 bit
from bridge->mode.  I feel like I may be missing something, since I
can't see any reason why check_bridge_mode() wasn't doing that in the
first place.  According to the AGP 3.0 specs, the AGP_MODE_3_0 bit is
determined during the hardware reset and cannot be changed, so it
seems to me it should be safe to pick it up from bridge->mode.

With the patch applied, I can definitely use AGP acceleration both
with AGP 2.0 and AGP 3.0 (one with an Nvidia card, the other with an
ATI FireGL card).

Unless someone spots a problem, please apply this patch so 3d
acceleration can work on zx1 boxes again.

This makes AGP work again on machines with an AGP bridge that isn't a
PCI device.

Signed-off-by: David Mosberger-Tang <davidm@hpl.hp.com>
Signed-off-by: Dave Jones <davej@redhat.com>
2005-06-07 12:35:44 -07:00
..
agp.h [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
ali-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
alpha-agp.c
amd64-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
amd-k7-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
ati-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
backend.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
efficeon-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
frontend.c
generic.c [PATCH] Replace check_bridge_mode() with (bridge->mode & AGSTAT_MODE_3_0). 2005-06-07 12:35:44 -07:00
hp-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
i460-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
intel-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
isoch.c
Kconfig
Makefile
nvidia-agp.c
sgi-agp.c
sis-agp.c
sworks-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
uninorth-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
via-agp.c