CUDA and /(nv_(un|)register|os_(un|)lock)_user_pages/

Please, consider implementing nv_register_user_pages/nv_unregister_user_pages/os_lock_user_pages/os_unlock_user_pages in the FreeBSD driver. Those functions are apparently being called on CUDA initialization and that’s the bit that prevents CUDA from working on FreeBSD. Well, at least as far as non-UVM parts are concerned. Although FreeBSD is not going to be a major GPU computing platform in the foreseeable future, quite a few regular consumer apps depend on this capability now (OBS Studio through NVENC, Blender, Darktable and so on).

I actually tested CUDA with a patched driver (just copied the relevant Linux bits with linuxkpi help) and my nv-sglrun script, but I feel that this driver patch is too much of a hack to inflict on end users.


Please add this to the FreeBSD driver.

1 Like

Thank you for supporting Freebsd, and please consider adding this functionality to the driver…

1 Like

Please add the necessary bits to the FreeBSD driver, so that CUDA will work. Thanks in advance…

1 Like

This addition to the driver would be much appreciated. Please and thank you.

1 Like

I use blender and OBS Studio and this would be much appreciated.

Yes, Blender is the first that comes to mind but other programs like mpv would benefit from it:

From the mpv manual page: nvdec and nvdec-copy are the newest, and recommended method to do hardware decoding on Nvidia GPUs.

This functionality would be much appreciated. Thank you for your support of FreeBSD.

Well, it doesn’t seem like it’d be a major issue to implement just those calls and I’ll add my support as well :)

I am very thankful of NVIDIA to have implemented Vulkan in the FreeBSD (beta) driver and I really hope we don’t seem ungrateful or anything by asking for even more. Since it’s just these few calls to have the CUDA init working through a hack (and not needing CUDA actually supported and thus tested on FreeBSD) I’d say it’s reasonable to ask if this could become a future possibility.

Hello, I am interested in the nvidia driver and I want to see support for this in FreeBSD