From nobody Sat Nov 29 18:11:52 2025 X-Original-To: freebsd-current@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 4dJdXx0TSjz6HdjG; Sat, 29 Nov 2025 18:12:01 +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 4dJdXw3SdQz46jY; Sat, 29 Nov 2025 18:12:00 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (124-18-6-240.area1c.commufa.jp [124.18.6.240]) (authenticated bits=0) by www121.sakura.ne.jp (8.18.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 5ATIBq9H071709; Sun, 30 Nov 2025 03:11:53 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp; s=s2405; t=1764439913; bh=y8GfxKzNDrr0xD8ECcPCCOpO5mFbn1J8wbz++48iBD0=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=heTIOSbc99+RCHB/CWmhlvmX7mTfbZEsykfVJvvVoLrvmMPCtkATzgpxmNhbyLOMo gzsYGEogdFWRjnkxQM8xl9XAtxYXat/X4Rqkl/b53yRSkkXf/RySkSZoEm5YZqpKG3 41NvGPUQyNIpsyoeQbYAQV6BuiQcsZq2fSr83ems= Date: Sun, 30 Nov 2025 03:11:52 +0900 From: Tomoaki AOKI To: Adrian Chadd Cc: Tomek CEDRO , FreeBSD User , freebsd-x11@freebsd.org, freebsd-current@freebsd.org Subject: Re: CURRENT: working alternative nVidia GPU driver for x11/nvidia-kmod? Message-Id: <20251130031152.26d137aabc454996c6787954@dec.sakura.ne.jp> In-Reply-To: References: <20251129131506.41ceec97@hermann> <20251129142412.1746f00c@hermann> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd15.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- 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-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dJdXw3SdQz46jY On Sat, 29 Nov 2025 09:27:20 -0800 Adrian Chadd wrote: > hi! > > On Sat, 29 Nov 2025 at 08:48, Tomek CEDRO wrote: > > > > On Sat, Nov 29, 2025 at 2:25 PM FreeBSD User wrote: > > > I've set hw.nvidia.registry.EnableGpuFirmware=1 in /etc/sysctl.conf.local, the > > > first one not. > > > > Please try setting this `hw.nvidia.registry.EnableGpuFirmware=1` > > exactly in /boot/loader.conf and reboot. This needs to be set on boot > > and before module is loaded not after :-) > > > > `hw.nvidiadrm.modeset=1` seems to be leftover from an old releases my > > bad sorry :-P > > When did that change? I have hw.nvidiadrm.modeset=1 in my > /boot/loader.conf from when > I set this up earlier in this year. > > > > -adrian Maybe the issue below is affecting indirectly. At commit 9562994a7aacee2baae6ddee1a7b558b48ae39ef, tunable debug.link_elf_obj_leak_locals was flipped to 0 (true), causing nvidia.ko with default options of x11/nvidia-kmod* to fail loading, causing nvidia-modeset.ko to fail, then, nvidia-drm.ko to fail, too. Even without LINUX option enabled (non-default), nvidia-modeset.ko still fail as of the lack of (formerly available) local symbols in nvidia.ko. And nvidia-drm.ko wants local symbols in nvidia-modeset.ko. Patch at Bug 291232 (the same patch is available via review D53987) would fix the issue. Note that commit 9562994a7aacee2baae6ddee1a7b558b48ae39ef is temporarily reverted at commit fad4c92b78a123f87195173ac118655fa8e325cd. And I predict commit e00a781c216cb12603a0a71c9ca293dde3e06250 would allow linux*.ko to be loaded, thus, LINUX option would hopefully become safe to enble again. (I've put links to the PR and review in another post.) I have only one computer for FreeBSD, having 2 SSDs for stable/15 and main respectively, so to test on main, I need to reboot into main environment (which is outdated and need upgrading first to obtain commit e00a781c216cb12603a0a71c9ca293dde3e06250). So untested on main branch, nor on recent models of GPUs. Regards. -- Tomoaki AOKI