|
|
Log in / Subscribe / Register

Device-to-device memory-transfer offload with P2PDMA

Device-to-device memory-transfer offload with P2PDMA

Posted Oct 5, 2018 1:48 UTC (Fri) by sbates (subscriber, #106518)
Parent article: Device-to-device memory-transfer offload with P2PDMA

Hey Marta

One thing the article did not comment on is the ARCH specific nature of P2PDMA. While the framework is ARCH agnostic we do rely on devm_memremap_pages() which relies on ZONE_DEVICE which *is* ARCH specific (and in turn relies on MEMORY_HOTPLUG). Right now this includes x86_64 but not (for example) aarch64. Interestingly for some, we are looking at adding ARCH_HAS_ZONE_DEVICE for riscv because we see that ARCH as an interesting candidate for P2PDMA.

Of course patches that add support for ZONE_DEVICE to other ARCH would be very cool.

Cheers

Stephen


to post comments

Device-to-device memory-transfer offload with P2PDMA

Posted Oct 6, 2018 15:23 UTC (Sat) by mrybczyn (subscriber, #81776) [Link]

Hello Stephen,
You're right, there is the dependency on ZONE_DEVICE that I didn't mention as I think it's not going to matter for most potential users. The addition of support for other architectures and future integration with other subsystems (enabling usage with GPUs...) may be a subject for a follow-up.

Cheers
Marta


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds