From nobody Sat Feb 24 14:54:01 2024 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 4Thqds05CHz59wJq for ; Sat, 24 Feb 2024 14:54:09 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Thqdr1259z4Jmm; Sat, 24 Feb 2024 14:54:07 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (123-1-21-232.area1b.commufa.jp [123.1.21.232]) (authenticated bits=0) by www121.sakura.ne.jp (8.17.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 41OEs1Qk024850; Sat, 24 Feb 2024 23:54:01 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Sat, 24 Feb 2024 23:54:01 +0900 From: Tomoaki AOKI To: Mario Marietto Cc: freebsd-hackers , Ronald Klop , Jake Freeland Subject: Re: drm-kmod-20220907_2 not supported for this configuration / NVIDIA : Failed to initialize the NVIDIA kernel module Message-Id: <20240224235401.e3edba4da91b37b546da6b23@dec.sakura.ne.jp> In-Reply-To: References: Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Queue-Id: 4Thqdr1259z4Jmm On Sat, 24 Feb 2024 13:36:31 +0100 Mario Marietto wrote: > Hello to everyone. > > I need to conduct some tests on top of the FreeBSD 13.1. > So,I've installed it on one of my disks. I've installed xfce4 and KDE,Xorg > and from the ports (after having upgraded them),I've installed the > nvidia-driver version. 535.146.02 ; I didn't have any problem. > > The problem arises when I tried to install the package drm-kmod from ports. > > Unfortunately I'm not able to compile it. This is what happened : > > root@marietto:/usr/ports/graphics/drm-kmod # make > ====> drm-kmod-20220907_2 not supported for this configuration. > > ok. At this point I tried to install it from the packages : > > root@marietto:/usr/ports/graphics/drm-kmod # make clean > ====> cleaning for drm-kmod-20220907_2 > > so : > > root@marietto:/usr/ports/graphics/drm-kmod # pkg install drm-kmod > > New packages to be INSTALLED : > drm-kmod: 20220907_2 > OK > > now,I have performed additional configuration to : > > nano /home/marietto/.xinitrc : > > exec ck-launch-session dbus-launch --exit-with-session startxfce4 > > nano /etc/rc.conf : > > kdm5_enable="YES" > dbus_enable="YES" > hald_enable="YES" > kld_list="nvidia nvidia-modeset" > rpcbind_enable="YES" > dtcms_enable="YES" > inetd_enable="YES" > > nano /boot/loader.conf > > vmm_load="YES" > nmdm_load="YES" > tmpfs_load="YES" > cryptodev_load="YES" > zfs_load="YES" > kern.racct.enable="1" > kern.vty=vt > kern.cam.scsi_delay="10000" > > nano /etc/X11/xorg.conf > > Section "Device" > Identifier "Card0" > Driver "nvidia" > BusID "PCI:1:0:0" > EndSection > > > root@marietto:/home/marietto # lspci > > 01:00.0 NVIDIA GP106 > 01:00.1 NVIDIA GP106 High Definition Audio Controller > 02:00.0 NVIDIA TU102 > 02:00.1 NVIDIA TU102 High Definition Audio Controller > 02:00.2 NVIDIA TU102 USB Controller > 02:00.3 NVIDIA TU102 Serial BUS Controller > > Now,I want to startx to start xfce4 : > > marietto@marietto: $ startx > > Fatal server error : no screens found (EE) > Check the log file at "/var/log/Xorg.0.log" > > nano /var/log/Xorg.0.log : > > NVIDIA dlloader X driver 535.146.02 > NVIDIA Unified Driver for all Supported NVIDIA gpus > NVIDIA : Failed to initialize the NVIDIA kernel module > > How to fix it ? > > -- > Mario. (Dropped mailing lists I'm not subscribing from CC) I myself haven't used graphics/drm-*-kmod, but looking into graphics/drm-kmod/Makefile, minimum supportted version is 13.2. If you really need to use DRM, you should update base at least to 13.2 first. And if running nvidia GPUs on 13.2, you would need graphics/nvidia-drm-510-kmod, too. Moreover, 13.1 is already EOL'ed [1]. Using 13.1 is STRONGLY DISCOURAGED. [1] https://www.freebsd.org/security/#sup -- Tomoaki AOKI