[Bug 277627] Passthru NVIDIA GeForce GTX 1080 Ti not work

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 11 Mar 2024 13:51:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277627

mario felicioni <marietto2008@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marietto2008@gmail.com

--- Comment #1 from mario felicioni <marietto2008@gmail.com> ---
Usually it works after a reboot. If not you can try to reinstall the nvidia
driver from the ports :

# pkg remove nvidia-driver
# pkg remove nvidia-drm-kmod

# /usr/ports/x11/nvidia-driver # portsnap fetch extract
# /usr/ports/x11/nvidia-driver # portsnap fetch update

# /usr/ports/x11/nvidia-driver # make
# /usr/ports/x11/nvidia-driver # make install

# /usr/ports/graphics/nvidia-drm-kmod # make

....
awk -f /usr/src/sys/conf/kmod_syms.awk nvidia-drm.ko.full  export_syms | xargs
-J% objcopy % nvidia-drm.ko.full
--- nvidia-drm.ko.debug ---
objcopy --only-keep-debug nvidia-drm.ko.full nvidia-drm.ko.debug
--- nvidia-drm.ko ---
objcopy --strip-debug --add-gnu-debuglink=nvidia-drm.ko.debug 
nvidia-drm.ko.full nvidia-drm.ko
===>  Staging for nvidia-drm-515-kmod-550.54.14
===>   nvidia-drm-515-kmod-550.54.14 depends on file: /boot/modules/drm.ko -
found
===>   nvidia-drm-515-kmod-550.54.14 depends on file: /boot/modules/nvidia.ko -
found
===>   Generating temporary packing list
install -T release -o root -g wheel -m 555   nvidia-drm.ko
/usr/ports/graphics/nvidia-drm-515-kmod/work/stage/boot/modules/
/bin/mkdir -p
/usr/ports/graphics/nvidia-drm-515-kmod/work/stage/usr/local/share/X11/xorg.conf.d/
install  -m 0644
/usr/ports/graphics/nvidia-drm-515-kmod/work/20-nvidia-drm-outputclass.conf
/usr/ports/graphics/nvidia-drm-515-kmod/work/stage/usr/local/share/X11/xorg.conf.d/
====> Compressing man pages (compress-man)
===>  Installing for nvidia-drm-515-kmod-550.54.14
===>  Checking if nvidia-drm-515-kmod is already installed
===>   Registering installation for nvidia-drm-515-kmod-550.54.14 as automatic
Installing nvidia-drm-515-kmod-550.54.14...
Modesetting must be enabled to use nvidia-drm.ko for graphics. This can be done
by setting the modeset sysctl, the equivalent of the modeset kernel parameter
on Linux.

hw.nvidiadrm.modeset=1

This must be set before loading nvidia-drm.ko, most easily done by placing the
above in /boot/loader.conf.

===>   nvidia-drm-kmod-550.54.14 depends on file: /boot/modules/nvidia-drm.ko -
found
===>   Returning to build of nvidia-drm-kmod-550.54.14
===>   Generating temporary packing list
====> Compressing man pages (compress-man)

# /usr/ports/graphics/nvidia-drm-kmod # make install

===>  Installing for nvidia-drm-kmod-550.54.14
===>  Checking if nvidia-drm-kmod is already installed
===>   Registering installation for nvidia-drm-kmod-550.54.14

Installing nvidia-drm-kmod-550.54.14...

Modesetting must be enabled to use nvidia-drm.ko for graphics. 
This can be done by setting the modeset sysctl,the equivalent of the modeset
kernel parameter on Linux.

hw.nvidiadrm.modeset=1

This must be set before loading nvdidia-drm.ko, most easily done by placing the
above in /boot/loader.conf.

# nano /boot/loader.conf :
hw.nvidiadrm.modeset=1

# /usr/ports/x11/nvidia-settings # make
# /usr/ports/x11/nvidia-settings # make install

# nano /etc/rc.conf

kld_list="nvidia nvidia-modeset nvidia-drm"

-- 
You are receiving this mail because:
You are the assignee for the bug.