Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zero-copy PXI-X driver for G5 Mac, process access to 7 GB memory



Miller, Larry writes:
>
> 2. Is is possible to write a PCI-X driver that lets our PCI-X card transfer
> data to these blocks of memory directly without a copy. (i.e. a zero-copy
> driver).

No. You can only do transfers to/from up to 2GB at any one time.

All IOKIt "physical" addresses are 32-bit. The G5 uses an IOMMU
(called the DART) which translates real 64-bit physical addresses to
these 32-bit PCI addresses. So you are

a) Not able to get the real physical address via IOKit. The IOKit
routines will give you translated "dart" addresses.

b) If you had a real 64-bit address, the DART would not know what to
do with it. Ie. your transfer would fail.

So your application would at least need to call into the kernel to
prepare() (pin) and release() (unpin) smaller chunks of memory.

I'm in the same boat -- I'd love for a way to give a real 64-bit
address to my device, and a way to make the Dart just pass my transfer
through, and not attempt to translate it. Most other IOMMUs have this
feature.

Drew
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.

References: 
 >Zero-copy PXI-X driver for G5 Mac, process access to 7 GB memory (From: "Miller, Larry" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.