Re: data corruption with nvidia chipsets and IDE/SATA drives // memory hole mapping related bug?!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Hancock
Date: Monday, January 15, 2007 - 5:23 pm

Christoph Anton Mitterer wrote:

The GART built into the Athlon 64/Opteron CPUs is normally used for 
remapping graphics memory so that an AGP graphics card can see 
physically non-contiguous memory as one contiguous region. However, 
Linux can also use it as an IOMMU which allows devices which normally 
can't access memory above 4GB to see a mapping of that memory that 
resides below 4GB. In pre-2.6.20 kernels both the SATA and PATA 
controllers on the nForce 4 chipsets can only access memory below 4GB so 
transfers to memory above this mark have to go through the IOMMU. In 
2.6.20 this limitation is lifted on the nForce4 SATA controllers.


The PATA controller will still be using 32-bit DMA and so may also use 
the IOMMU, so this problem would not be avoided.


No, it shouldn't cause any performance loss. In previous kernels the 
nForce4 SATA controller was controlled using an interface quite similar 
to a PATA controller. In 2.6.20 kernels they use a more efficient 
interface that NVidia calls ADMA, which in addition to supporting NCQ 
also supports DMA without any 4GB limitations, so it can access all 
memory directly without requiring IOMMU assistance.

Note that if this corruption problem is, as has been suggested, related 
to memory hole remapping and the IOMMU, then this change only prevents 
the SATA controller transfers from experiencing this problem. Transfers 
on the PATA controller as well as any other devices with 32-bit DMA 
limitations might still have problems. As such this really just avoids 
the problem, not fixes it.

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Christoph Anton Mitterer, (Mon Jan 15, 3:56 pm)
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Christoph Anton Mitterer, (Mon Jan 15, 4:05 pm)
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Robert Hancock, (Mon Jan 15, 5:23 pm)
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Christoph Anton Mitterer, (Tue Jan 16, 6:54 am)
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Christoph Anton Mitterer, (Tue Jan 16, 12:52 pm)
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Arkadiusz Miskiewicz, (Tue Jan 16, 1:16 pm)
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Christoph Anton Mitterer, (Tue Jan 16, 1:21 pm)
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Christoph Anton Mitterer, (Tue Jan 16, 6:12 pm)
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Christoph Anton Mitterer, (Tue Jan 16, 6:17 pm)
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Christoph Anton Mitterer, (Thu Jan 18, 7:34 am)
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Christoph Anton Mitterer, (Thu Jan 18, 7:43 am)
Re: data corruption with nvidia chipsets and IDE/SATA driv ..., Christoph Anton Mitterer, (Thu Mar 22, 5:32 am)