NVIDIA Still Working On PRIME/DMA-BUF Contribution

Posted by Michael Larabel on January 15, 2013

Aaron Plattner at NVIDIA is still working on the open-source "PRIME Helpers" patches for the Linux kernel. This is work towards ultimately better handling PRIME/DMA-BUF for NVIDIA Optimus Technology on Linux.

In early December I wrote about the original PRIME Helper patches courtesy of Plattner at NVIDIA. As written in that earlier article:
NVIDIA still isn't permitted to properly use DMA-BUF for buffer sharing between their binary driver and the open-source graphics drivers for being able to properly support the NVIDIA Optimus technology. GPL-only kernel symbols are blocking NVIDIA from tapping DMA-BUF and there's a few kernel developers who don't want these symbols to be used by NVIDIA's blob.

As the latest on this front concerning proper multi-GPU support under Linux and the drivers being able to cooperate with each other, NVIDIA's Aaron Plattner has put out a set of four patches for PRIME helpers. The patches courtesy of the veteran Linux developer at NVIDIA provide helper functions to abstract core parts of the GEM PRIME import and export functions for video memory management.
Basically these patches allow for replacing GEM PRIME import/export functions -- the functions are common and shared amongst the Nouveau and Radeon DRM drivers -- with a driver's own custom functionality. For now this just leads to eliminating duplicated code between Radeon/Nouveau, but could theoretically allow for NVIDIA's binary driver to implement its own import/export hooks that don't directly rely upon the GPL-only DMA-BUF.

These PRIME Helper patches are currently dependent upon new DMA-BUF code landing for the Linux 3.9 kernel. This latest revision to the patches address some technical comments and concerns that Aaron received from the open-source graphics driver developers. The v3 helper patches can be found on the dri-devel list.

Discuss this article in our forums, IRC channel, or email the author. You can also follow our content via RSS and on social networks like Facebook, Identi.ca, and Twitter (@Phoronix and @MichaelLarabel). Subscribe to Phoronix Premium to view our content without advertisements, view entire articles on a single page, and experience other benefits.
Latest Hardware Reviews
  1. Sumo Lounge Emperor
  2. Gallium3D Continues Improving OpenGL For Older Radeon GPUs
  3. 15-Way Open vs. Closed Source NVIDIA/AMD Linux GPU Comparison
  4. Nouveau vs. NVIDIA Linux Comparison Shows Shortcomings
Latest Software Articles
  1. Intel Linux OpenGL Driver Leading Over Apple OS X
  2. The Cost Of Ubuntu Disk Encryption
  3. Btrfs vs. EXT4 vs. XFS vs. F2FS On Linux 3.10
  4. AMD Radeon R600 GPU LLVM 3.3 Back-End Testing
Latest Linux News
  1. Hot Relocation HDD To SSD Support For Btrfs
  2. Phoronix Test Suite 4.6.0 "Utsira" Released
  3. New Intel X.Org Driver Supports All Of Haswell
  4. SQLite Now Faster With Memory Mapped I/O
  5. Microsoft Releases Skype For Linux 4.2, Has Bug-Fixes
  6. Qt For Tizen Launches, Based On Qt 5.1
  7. KTAP Released For Linux Kernel Dynamic Tracing
  8. Linux 3.10-rc2 Kernel Takes In A Few Extra Pulls
  9. QEMU 1.5 Supports VGA Passthrough, Better USB 3.0
  10. Handbrake 0.9.9 Supports OpenCL Offloading
  11. Freedreno Gallium3D Now Banging The Adreno A3XX
Latest Forum Talk
  1. Intel Linux OpenGL Driver Leading Over Apple OS X
  2. Jolla Announces Their First Phone
  3. DragonFly 3.4 vs FreeBSD 9.1 on phoronix test...
  4. The Cost Of Ubuntu Disk Encryption
  5. Kubuntu, KDE Has Little Hope For Ubuntu's Mir
  6. Will Unreal Engine 4 Games Come To Linux?
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite