From nobody Thu May 25 09:10:23 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QRj2x3dJCz4TF0Y for ; Thu, 25 May 2023 09:11:05 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QRj2v3PjHz3Pkw for ; Thu, 25 May 2023 09:11:03 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=Rg3jjYqR; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::1132 as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-561a33b6d63so4496277b3.1 for ; Thu, 25 May 2023 02:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685005859; x=1687597859; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zybTs2kjbtP0wcSGRJqlVIemHiTQNpjfeb2bnjkMyNo=; b=Rg3jjYqRB271XEHSBfnY4GF46jgEBSbuk5TmJE/tXTWbBXEqG7Ste+1SIhkIwEvyXe vluKKDmuDEtxG3xjE4YDr8SbKBpDkq32QBp0RyOxpKugUysKRjN+DA2t9FE/3vlfRXIS QomfduH78irW+K8e0ets8Zy3USKxd5/VAUF3XN5yRduGy+crgqyUg3kka5zj/dAf7E/7 uqF+j70OgiNBjRMxV8zjXQ2Ejni7BoFFzako7atf+2wBfrpKYD/52/LJz5uL2cW3eHOy xk6d7qr0CEGgsDaxtVi3Oq8avIES5OTnCBhBei+fsZcoC8bTTp5kz2QUP2XGelbxIuim 2uXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685005859; x=1687597859; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zybTs2kjbtP0wcSGRJqlVIemHiTQNpjfeb2bnjkMyNo=; b=cQSEpkHMnxBZnfLaLqS7x1Z+ScFC1JXamEe0vZybxuDAWyhuZGjRG55Ed4ediNM4J4 4gMgdYy6fgOedRbN5Z5kJXRsquuUQGXyQ9elAWR5+CKYm9wX3yNJIb9i8bqwVPh6V2IM ohOqQTjBOhOAtzSKuW1zu4zH1U5fEsG7Odopbf0DT4aNlbkgJBJjXKA2LuEZ0sSA5kS8 yWGR1UrjNfp+v/yo+21C6VY9Wxx6jzioK8Wzz+grHxL1pghidIZP8IeIj3KVUCF/HMFe V8I3yn6y4JEFZ5kHousRUaqntoTezWAgo3xw0B61XFwXxzb0acdnTYfkeAqCBuH6Swdc +Jog== X-Gm-Message-State: AC+VfDxIYONVXPgRdmVarIPvWNrPUsnXdaxhTQGLH8OmfEfFAY204uxS V6SHphaRM/RKxSTsdI7Waa5HA22JP00/KRmyqH6K1NZ1oX7ZWQ== X-Google-Smtp-Source: ACHHUZ56nVEoAZzuGCEryB7w3b5bwwkpxFvWV4V4iRRnaznpeFYfAXQBoYu4sw+OB9foXfBOYtumneYJVuIOtW+Kzj0= X-Received: by 2002:a81:60c1:0:b0:565:798b:949e with SMTP id u184-20020a8160c1000000b00565798b949emr3984177ywb.20.1685005859557; Thu, 25 May 2023 02:10:59 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: <46f1653a-89ba-6df3-6e3a-bd4a6c692be1@gmail.com> In-Reply-To: <46f1653a-89ba-6df3-6e3a-bd4a6c692be1@gmail.com> From: Mario Marietto Date: Thu, 25 May 2023 11:10:23 +0200 Message-ID: Subject: Re: How to blacklist the nouveau driver on FreeBSD.... To: Theron Cc: freebsd-hackers Content-Type: multipart/alternative; boundary="000000000000b4157f05fc80fffc" X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1132:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4QRj2v3PjHz3Pkw X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --000000000000b4157f05fc80fffc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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* On Thu, May 25, 2023 at 2:56=E2=80=AFAM Theron wr= ote: > On 5/24/23 04:43, Mario Marietto wrote: > > 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. Thanks. > > > FreeBSD does not contain the nouveau kernel module so there is nothing > to blacklist. > > > 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_no= uveau_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 you are 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 - have you found any other CUDA > program to work in linux compat? > > Theron > --=20 Mario. --000000000000b4157f05fc80fffc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Smplayer behaves the same as blender. I think this is= a general behavior. Check below what happens when I run it within the linu= xulator :

root@marietto:/= mnt/zroot2/zroot2 # chroot /compat/ubuntulunar /bin/bash
<= span style=3D"font-family:arial,sans-serif">
root@marietto:/# smplayer= =C2=A0

QStandardPaths= : error creating runtime directory '/var/run/user/1001' (No such fi= le 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




On Thu, May 25, 2023 at 2:56=E2=80=AFAM Theron <theron.tarigo@gmail.com> wrote:
On 5/24/23 04:43, Mari= o Marietto wrote:
> since the nouveau driver can't be blacklisted within the Linuxulat= or
> 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. Thanks. >
FreeBSD does not contain the nouveau kernel module so there is nothing
to blacklist.

> 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 ? plea= se 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_no= uveau_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 you are 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 - have you found any other CUDA
program to work in linux compat?

Theron


--
Mario.
--000000000000b4157f05fc80fffc--