# open-gpu-kernel-modules **Repository Path**: zechal/open-gpu-kernel-modules ## Basic Information - **Project Name**: open-gpu-kernel-modules - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: 580.82.09-p2p - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-09 - **Last Updated**: 2025-10-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # NVIDIA driver 580.82.09 with P2P for 4090 and 5090 This allows using P2P on 4090 and 5090 GPUs with the 580.82.09 driver version. See https://github.com/tinygrad/open-gpu-kernel-modules (various branches) for more info. ## How it works This modifies the kernel driver to force enable BAR1 P2P mode on GPUs not intended to use it. Then, the transfers are done by directly writing to the other GPU physical addresses over DMA. IOMMU virtualization must be disabled to use the patch, or transfers will fail. Note that this is very dangerous if you run untrusted software or devices. Proper IOMMU support is possible but would require registering IOVA mappings. That would be a lot more work and seems unneeded given the intended use. ## How to use 1) Enable DMA passthrough mode for IOMMU: 1) Edit `/etc/default/grub` 2) Add `amd_iommu=on iommu=pt` to `GRUB_CMDLINE_LINUX_DEFAULT` 3) Run `sudo update-grub` 2) Install https://www.nvidia.com/en-us/drivers/details/254126/ 3) Run `./install.sh` in this repo 4) Reboot the server