1
0
Fork 0
alistair23-linux/drivers/char/agp
Matthew Garrett b0825488a6 [PATCH] agp: restore APBASE after setting APSIZE
When leaving S3 state, the AGP bridge may not have all PCI configuration
registers set in the same way as they were at boot.  This should be fixed
by pci_restore_state - however, the APBASE register cannot be set to
conflict with the APSIZE register.  If APSIZE is larger than it was before
suspend, pci_restore_state will not restore APBASE correctly.  The attached
patch adds an extra item to the agp_bridge_data structure and uses it to
store the value of APBASE.  On resume, this is then written after APSIZE
has been set.  This patch only touches the path used for Intel chipsets
without integrated graphics, and may need to be extended to work with the
others.

Without this patch, I get the symptoms described in bug 4921 - APBASE ends
up overlapping various PCI devices, and as a result they fail to work after
resume.

Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
Acked-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-29 15:01:15 -07:00
..
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
agp.h [PATCH] agp: restore APBASE after setting APSIZE 2005-07-29 15:01:15 -07:00
ali-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
alpha-agp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
amd-k7-agp.c [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
amd64-agp.c [PATCH] sis 760 support. 2005-06-28 21:22:14 -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 [PATCH] make lots of things static 2005-05-01 08:59:29 -07:00
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: restore APBASE after setting APSIZE 2005-07-29 15:01:15 -07:00
isoch.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nvidia-agp.c [PATCH] make lots of things static 2005-05-01 08:59:29 -07:00
sgi-agp.c [PATCH] sgi-agp: fixes a problem with accessing GART memory in sgi_tioca_insert_memory and sgi_tioca_remove_memory 2005-06-07 12:35:43 -07:00
sis-agp.c [PATCH] make lots of things static 2005-05-01 08:59:29 -07:00
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 [PATCH] make lots of things static 2005-05-01 08:59:29 -07:00