amshafer / nvidia-driver

Fork of the Nvidia FreeBSD driver to port the nvidia-drm.ko module from Linux
44 stars 5 forks source link

PRIME broken in 535 #20

Closed amshafer closed 1 year ago

amshafer commented 1 year ago

This was reported by two users (thanks!) on discord and reproduced by myself.

Caused by a recent update merged to 535 which adds checks to drm_gem_prime_handle_to_fd and drm_gem_prime_fd_to_handle. In the latest upstream linux these are no longer exported, and are now the default. The existing conftsts for these do not work as they check Makefile.symver, which is a Linux build artifact that our drm-kmod does not have.

amshafer commented 1 year ago

Fix for a panic that also gets exposed by fixing the conftest: https://reviews.freebsd.org/D41574