x86, gart: add resume handling
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 9 Jun 2008 22:10:48 +0000 (00:10 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 12 Jun 2008 12:11:25 +0000 (14:11 +0200)
commit6703f6d10dcd3316e03641a5ecaa6c8a04374d98
treef8c1d9bbc5695979d2ad822a7bccb42f375dc904
parentbb6dfb32f90094fea647e1f27d994a8b6ddd2766
x86, gart: add resume handling

If GART IOMMU is used on an AMD64 system, the northbridge registers
related to it should be restored during resume so that memory is not
corrupted.  Make gart_resume() handle that as appropriate.

Ref. http://lkml.org/lkml/2008/5/25/96 and the following thread.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/aperture_64.c
arch/x86/kernel/pci-gart_64.c
include/asm-x86/gart.h