public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* A question about GART aperture unmap
@ 2007-05-10  5:59 Zhao Forrest
  2007-05-10  9:49 ` [discuss] " Andi Kleen
  0 siblings, 1 reply; 6+ messages in thread
From: Zhao Forrest @ 2007-05-10  5:59 UTC (permalink / raw)
  To: discuss; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-10 11:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10  5:59 A question about GART aperture unmap Zhao Forrest
2007-05-10  9:49 ` [discuss] " Andi Kleen
2007-05-10 10:00   ` Zhao Forrest
2007-05-10 10:09   ` Zhao Forrest
2007-05-10 10:14   ` Zhao Forrest
2007-05-10 11:06     ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox