b0825488a6
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> |
||
---|---|---|
.. | ||
agp | ||
drm | ||
ftape | ||
ip2 | ||
ipmi | ||
mwave | ||
pcmcia | ||
rio | ||
tpm | ||
watchdog | ||
amiserial.c | ||
applicom.c | ||
applicom.h | ||
cd1865.h | ||
ChangeLog | ||
consolemap.c | ||
cp437.uni | ||
cyclades.c | ||
decserial.c | ||
defkeymap.c_shipped | ||
defkeymap.map | ||
digi.h | ||
digi1.h | ||
digiFep1.h | ||
digiPCI.h | ||
ds1286.c | ||
ds1302.c | ||
ds1620.c | ||
dsp56k.c | ||
dtlk.c | ||
ec3104_keyb.c | ||
efirtc.c | ||
epca.c | ||
epca.h | ||
epcaconfig.h | ||
esp.c | ||
generic_nvram.c | ||
generic_serial.c | ||
genrtc.c | ||
hangcheck-timer.c | ||
hpet.c | ||
hvc_console.c | ||
hvc_vio.c | ||
hvcs.c | ||
hvsi.c | ||
hw_random.c | ||
i8k.c | ||
ip2.c | ||
ip2main.c | ||
ip27-rtc.c | ||
isicom.c | ||
istallion.c | ||
ite_gpio.c | ||
Kconfig | ||
keyboard.c | ||
lcd.c | ||
lcd.h | ||
lp.c | ||
Makefile | ||
mbcs.c | ||
mbcs.h | ||
mem.c | ||
misc.c | ||
mmtimer.c | ||
moxa.c | ||
mxser.c | ||
mxser.h | ||
n_hdlc.c | ||
n_r3964.c | ||
n_tty.c | ||
nvram.c | ||
nwbutton.c | ||
nwbutton.h | ||
nwflash.c | ||
ppdev.c | ||
pty.c | ||
qtronix.c | ||
qtronixmap.c_shipped | ||
qtronixmap.map | ||
random.c | ||
raw.c | ||
riscom8.c | ||
riscom8.h | ||
riscom8_reg.h | ||
rocket.c | ||
rocket.h | ||
rocket_int.h | ||
rtc.c | ||
s3c2410-rtc.c | ||
scan_keyb.c | ||
scan_keyb.h | ||
scc.h | ||
scx200_gpio.c | ||
selection.c | ||
ser_a2232.c | ||
ser_a2232.h | ||
ser_a2232fw.ax | ||
ser_a2232fw.h | ||
serial167.c | ||
snsc.c | ||
snsc.h | ||
snsc_event.c | ||
sonypi.c | ||
specialix.c | ||
specialix_io8.h | ||
stallion.c | ||
sx.c | ||
sx.h | ||
sxboards.h | ||
sxwindow.h | ||
synclink.c | ||
synclinkmp.c | ||
sysrq.c | ||
tb0219.c | ||
tipar.c | ||
toshiba.c | ||
tty_io.c | ||
tty_ioctl.c | ||
vc_screen.c | ||
viocons.c | ||
viotape.c | ||
vme_scc.c | ||
vr41xx_giu.c | ||
vr41xx_rtc.c | ||
vt.c | ||
vt_ioctl.c |