From nobody Thu May 25 09:47:06 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 4QRjsG4dfxz4THFq for ; Thu, 25 May 2023 09:47:46 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) (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 4QRjsC5Rq4z3m4Y for ; Thu, 25 May 2023 09:47:43 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=V7pXxzbS; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::112d as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-562108900acso4771297b3.2 for ; Thu, 25 May 2023 02:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685008063; x=1687600063; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YIV29emyHwKPgNGTsz4qiqTBcdzMx03LdAETjZossZI=; b=V7pXxzbSepXbNGR+yx3KuRy8dLu66NDjcex/4yGBK+Sx3tF7TksmQomOC30lZm+KDM TU5Fs1KAlcCB6NlaXK3qWIqTVL5X4FCvUoFfH/lQG9JUvVKH1uGfce5mhcTZxAImB709 +d/Gqv/aeSXAQm0s+g/aW6SDwrFS6bMAkcZ8Uh1X6jUQpx8q1tCz3Co8tuQhFZFjdLU1 kyqVPODTvNmrL4Sk8k99udxQw42usrbnXuYua7d3qLkH6LgLKDGFTx+KgyjT7YOHmr34 XOf8LIbGZW5psZCl4Wi6aoi3pp2nZ8OGwGm16jsW5wxcBBqrN/6j2tW/2OCoHFUMhfGC rwvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685008063; x=1687600063; 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=YIV29emyHwKPgNGTsz4qiqTBcdzMx03LdAETjZossZI=; b=PgHgJ/cV8dWVtBNMa1bhX7igr9OeJSK8qO4NRUJZtK6CGW78uJPAbIM5Cm0+9i4rlL mMKPbfMCNnEEKY+RWUrRUpu+C9mBCk/Y3B5+5WCiiSpthhTcJYK7Y4TGXRMYOYpnH2bK 6nt7HCa44/eNxSteyKJ09uFi7DStdqloyBFpbQz7BGT7gxeof5CrYksCeWotIK+naLqA 7PxnHn967oMydU4bgO8Gr6RT4RH47Sj6dKCbvMveiiv33gRWchh2j+hkM1ZGqt1SpYO/ 1kWZsGI8IldzSPvxwe6y4Uk+x9WXJK54JAdQjxcG15WdmUKDO7gEDOL1f6fl9PN3GtDC TCmw== X-Gm-Message-State: AC+VfDyrmUAwJPcrLrgKSc/q/Skr17rsZqB3+hPSvWrNqeNSX7yxA3Hp aK06AGiI4R5grtK5rz2DVWfyU8891VqUviZr13tdknWE6Ng= X-Google-Smtp-Source: ACHHUZ4nPC45ZWZ1zUTGk/LlbaLlkIq7nqXAeSf/PZFnZ8aW5WtT31qiTb9hAZ9zIvWwYVjwdV21m/yrVsTXGjh6aW4= X-Received: by 2002:a0d:ccd3:0:b0:562:7f3:beee with SMTP id o202-20020a0dccd3000000b0056207f3beeemr23364247ywd.45.1685008062834; Thu, 25 May 2023 02:47:42 -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: From: Mario Marietto Date: Thu, 25 May 2023 11:47:06 +0200 Message-ID: Subject: Re: How to blacklist the nouveau driver on FreeBSD.... To: Theron Cc: freebsd-hackers Content-Type: multipart/alternative; boundary="000000000000076d0e05fc81832d" X-Spamd-Result: default: False [-3.81 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.81)[-0.815]; 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::112d: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: 4QRjsC5Rq4z3m4Y X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --000000000000076d0e05fc81832d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. 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 and it will work great. On Thu, May 25, 2023 at 11:10=E2=80=AFAM Mario Marietto wrote: > 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 = wrote: > >> 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_n= ouveau_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. > --=20 Mario. --000000000000076d0e05fc81832d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Can you figure out a method to do what I want to do ? If w= e are able to "connect" the nVidia driver to the CG / graphic too= l instead of the nouveau one,a lot of cool features will be unfrozen. For e= xample we could try to run Unreal Engine 5 within the linuxulator,Davinci R= esolve,Maya 3d,a lot of cool stuff will use the nvidia driver and it will w= ork great.

On Thu, May 25, 2023 at 11:10=E2=80=AFAM Mario Marietto <= ;marietto2008@g= mail.com> wrote:
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@ma= rietto:/mnt/zroot2/zroot2 # chroot /compat/ubuntulunar /bin/bash

root@marietto:/# sm= player=C2=A0
=
QStandar= dPaths: error creating runtime directory '/var/run/user/1001' (No s= uch 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 <theron.tarigo@gmail.com= > wrote:
On 5= /24/23 04:43, Mario 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.


--
Mario.
--000000000000076d0e05fc81832d--