[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <ac8af0be0705092259p65f057bcoe5e1b9abb963d5e3@mail.gmail.com>
Date: Thu, 10 May 2007 13:59:35 +0800
From: "Zhao Forrest" <forrest.zhao@...il.com>
To: discuss@...-64.org
Cc: linux-kernel@...r.kernel.org
Subject: A question about GART aperture unmap
Hi,
The following is extracted from function gart_iommu_init()
......
/*
* Unmap the IOMMU part of the GART. The alias of the page is
* always mapped with cache enabled and there is no full cache
* coherency across the GART remapping. The unmapping avoids
* automatic prefetches from the CPU allocating cache lines in
* there. All CPU accesses are done via the direct mapping to
* the backing memory. The GART address is only used by PCI
* devices.
*/
clear_kernel_mapping((unsigned long)__va(iommu_bus_base), iommu_size);
......
On my AMD-based system, the GART aperture is reserved as:
Mapping aperture over 65536 KB of RAM @ 4000000
After commenting out clear_kernel_mapping() line, the system would
have sync flood and reset from time to time. However when with this
clear_kernel_mapping() line, no system reset happened.
As we know that CPU prefetch never cross the page boundary, in this
case the page boundary is 4M. Aperture starting address is 4000000,
which is aligned with 4M. So I think CPU prefetch can not touch this
range reserved by GART aperture.
My question is: in which cases would CPU prefetch touch the address
range reserved by GART aperture?
Thanks,
Forrest
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists