From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58AD6C77B7A for ; Thu, 25 May 2023 20:24:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7A73110E758; Thu, 25 May 2023 20:23:57 +0000 (UTC) Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by gabe.freedesktop.org (Postfix) with ESMTPS id C581B886A4; Thu, 25 May 2023 20:23:54 +0000 (UTC) Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-bacfcc7d1b2so136489276.2; Thu, 25 May 2023 13:23:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685046233; x=1687638233; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=HviupHnR7WlIt0Rt/kfjmoXdYBgnsdUIrSRqZRmkzYw=; b=lNFm/w/1b46/vCzqygOMNyN8KxAD1Hq5Yu06ACSJXS2BdYGwUuP1CwA5j7sveLbIC+ 6GiwCNlFi2EyaLrk6nFFa3i5DRQgA+hEZzpTLBqwi6bKgsehNOnpO29AMnHgbeLJWQb8 7BZXX0ehDq8rzTU7AJSRqNbFvQME1RcnPg+M3MtznaGfQEpiPBMEx9DBOZ21ZMpUTJ/M RMEe6kCwVO7eYqApftzIeSK9rtoktLNqJxMLAUKG5HVB5NL7O1Tihfta/c8qgraopf19 X/vpEkLYG4jpYskSaPsHFHZy9s6QwtTl20OzmkvRyT9r3/yHeFLL0Xf4ZnVUBaMKV+G0 XACQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685046233; x=1687638233; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=HviupHnR7WlIt0Rt/kfjmoXdYBgnsdUIrSRqZRmkzYw=; b=fDO1hn+EtKF65ligDEXfoLPWhBdMf/P5YG6oYglzXw36Ne9f3OdIpeubeNrAHynbzz baJ6ehnuYpS/PsssuNwi1udfJqKa/i8PJg49GrQb/XHvOqlGKuvrO9lqc1Q4P6I85JEZ bB5cv8pSbFocNTM3PT0OGtjgM8ttC5b1lASE3kL5YSMUBn56RXp85hcIIr45jWk4Kln2 YqAQuXzmujsjh54nHQxKbZ5mDTO8wOMKP9Z25bYVyG4PNuW9Ch+slDnWL5EHC8+1o0uv 1J3UmqCiszMf4Jb9ZIjbMEQMdjiiIJC0ACd0E0/L8NZq2vKDsxcVxZI+dujgSrXDR0Z2 nROg== X-Gm-Message-State: AC+VfDzUoBmF18xfoZmV60kfyvQFfgUYggPse1MzdLzrrhFe51raIZM3 e4VWPk1VsuHW2dNbw2KdkrqdZNnzljXgjSYpIbz6Ifm45Jn1sw== X-Google-Smtp-Source: ACHHUZ6LtDSyP4LmayO+3/MeczcrtcnLu6NqOBuL3r0I3dP+pvxLbNatro8BhKZCH5MhErC1x/gZZFJi1TXtD2POT4s= X-Received: by 2002:a81:8303:0:b0:561:b584:180f with SMTP id t3-20020a818303000000b00561b584180fmr779198ywf.30.1685046232802; Thu, 25 May 2023 13:23:52 -0700 (PDT) MIME-Version: 1.0 From: Mario Marietto Date: Thu, 25 May 2023 22:23:16 +0200 Message-ID: To: nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org Content-Type: multipart/alternative; boundary="00000000000022ec1e05fc8a66bd" Subject: [Nouveau] libGL error: glx: failed to create dri2 screen libGL / error: failed to load driver: nouveau X-BeenThere: nouveau@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Nouveau development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces@lists.freedesktop.org Sender: "Nouveau" --00000000000022ec1e05fc8a66bd Content-Type: text/plain; charset="UTF-8" Hello. I wrote this tutorial some time ago because I wanted that Blender was able to recognize CUDA and the Nvidia driver directly within the linuxulator : https://www.reddit.com/r/freebsd/comments/1118eae/how_to_install_the_nvidia_driver_5257801_cuda_12/ I was inspired by this tutorial : https://gist.github.com/Mostly-BSD/4d3cacc0ee2f045ed8505005fd664c6e someone found my tutorial and created this github : https://github.com/spfcraze/Nvidia-Drivers-linux He says that he created a Python script for updating Nvidia drivers on CentOS 7 and Ubuntu. That's nice,but it can't work. Why ? please give a look to an old post created by me some time ago and you will see : https://www.reddit.com/r/freebsd/comments/11431bi/how_to_blacklist_the_nouveau_driver_within_the/ since the nouveau driver can't be blacklisted within the Linuxulator because it's impossible to run "sudo update-initramfs -u" inside of it. For this reason,I would ask if in your opinion the nouveau driver can be blacklisted directly in FreeBSD or in some other way. FreeBSD does not contain the nouveau kernel module so there is nothing to blacklist. > https://www.reddit.com/r/freebsd/comments/11431bi/how_to_blacklist_the_nouveau_driver_within_the/ These libGL errors are from Mesa libGL, which is trying to use the userspace part of nouveau (which is part of the Mesa project), presumably based on Nvidia GPU's PCI ID being known to Mesa, despite there being no nouveau kernel interface available. Since I'm trying to use Nvidia's binary driver (the only one which works on FreeBSD), Blender should have never loaded Mesa's libGL in the first place - there is most likely a configuration problem here with libglvnd, the component responsible for choosing the correct libGL implementation. When Blender fails to detect CUDA this has nothing to do with libGL and absolutely nothing to do with nouveau. Smplayer behaves the same as blender. I think this is a general behavior. Check below what happens when I run it within the linuxulator : root@marietto:/mnt/zroot2/zroot2 # chroot /compat/ubuntulunar /bin/bash root@marietto:/# smplayer QStandardPaths: error creating runtime directory '/var/run/user/1001' (No such file or directory) This is SMPlayer v. 22.7.0 (revision 10091) running on Linux libGL error: glx: failed to create dri2 screen *libGL error: failed to load driver: nouveau* Can you figure out a method to do what I want to do ? If we are able to "connect" the nVidia driver to the CG / graphic tool instead of the nouveau one,a lot of cool features will be unfrozen on FreeBSD. For example we could try to run Unreal Engine 5 within the linuxulator,Davinci Resolve,Maya 3D,a lot of cool stuff will use the nVidia driver + CUDA and it will work great. That's because unfortunately Nouveau does not support CUDA. Thanks. -- Mario. --00000000000022ec1e05fc8a66bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.

I wrote this tut= orial some=20 time ago because I wanted that Blender was able to recognize CUDA and=20 the Nvidia driver directly within the linuxulator :


I was inspired by this tutorial : <= a href=3D"https://gist.github.com/Mostly-BSD/4d3cacc0ee2f045ed8505005fd664c= 6e" target=3D"_blank">https://gist.github.com/Mostly-BSD/4d3cacc0ee2f045ed8= 505005fd664c6e

someone found my tutorial and c= reated this github :


He says that he created a Python script for updating Nvidia drivers=20 on CentOS 7 and Ubuntu. That's nice,but it can't work. Why ? please= give a look to an old post created by me some time ago and you will see :


since the nouveau driver can= 't be blacklisted within the Linuxulator because it's impossible to= run "sudo=20 update-initramfs -u" inside of it. For this reason,I would ask if in y= our opinion the nouveau driver can be blacklisted directly in FreeBSD or in some other way.
<= div>
= FreeBSD does not contain the nouveau kernel module so there is nothing to b= lacklist.

> https://www.reddit.com/r/freebsd/comments/11431bi/how_to_blacklist_the_no= uveau_driver_within_the/

These libGL errors are from Mesa libGL, which is trying to use the userspac= e part of nouveau (which is part of the Mesa project),
presumably based on Nvidia GPU's PCI ID being known to Mesa, despite th= ere being no nouveau kernel interface available.

Since I'm trying to use Nvidia's binary driver (the only one which = works on FreeBSD), Blender should have never loaded Mesa's libGL in the=
first place - there is most likely a configuration problem here with=20 libglvnd, the component responsible for choosing the correct libGL
implementation.

When Blender fails to detect CUDA this has nothing to do with libGL and abs= olutely nothing to do with nouveau.

Smplayer behaves t= he same as blender. I think this is a general=20 behavior. Check below what happens when I run it within the linuxulator :

root@marietto:/mnt/zroot2/zr= oot2 # chroot /compat/ubuntulunar /bin/bash

root@marietto:/# smplayer=C2=A0

<= div>QStandardPaths: error= creating runtime directory '/var/run/user/1001' (No such file or d= irectory)
This is SMPlayer v. 22.7.0 (revision 10091) running on Linux
libGL error: glx: failed to create dri2 screen
libGL error: failed to load driver: nouveau


Can you figure o= ut a method to do what I want to do ? If we are able to=20 "connect" the nVidia driver to the CG / graphic tool instead of t= he=20 nouveau one,a lot of cool features will be unfrozen on FreeBSD. For example= we=20 could try to run Unreal Engine 5 within the linuxulator,Davinci=20 Resolve,Maya 3D,a lot of cool stuff will use the nVidia driver + CUDA and i= t=20 will work great. That's because unfortunately Nouveau does not support = CUDA.

=
Thanks.

= --
Mario.
--00000000000022ec1e05fc8a66bd--