x86: fix broken flushing in GART nofullflush path
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 2 Dec 2008 19:16:03 +0000 (20:16 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 2 Dec 2008 19:25:52 +0000 (20:25 +0100)
commitdcb7731a185efbf3d800618d874af99895df5afb
tree8730ff765213c91ba65da2520fa0e82178509f0e
parent50cec5c51c18301ff60262fdbe920f4a907c9d81
x86: fix broken flushing in GART nofullflush path

Impact: remove stale IOTLB entries

In the non-default nofullflush case the GART is only flushed when
next_bit wraps around. But it can happen that an unmap operation unmaps
memory which is behind the current next_bit location. If these addresses
are reused it may result in stale GART IO/TLB entries. Fix this by
setting the GART next_bit always behind an unmapped location.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/pci-gart_64.c