Re: Nvidia Optimus Crash When Starting Xorg

Theron <[email protected]>
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]>
On 6/7/22 23:15, Theron wrote:
>> I see roughly the same:
>>
>> nvidia-secondary-driver-510.60.02_1
>>
>> [   222.989] (EE) Backtrace:
>> [   222.990] (EE) 0: /usr/local/bin/Xorg (?+0x0) [0x41853a]
>> [   222.991] (EE) unw_get_proc_name failed: no unwind info found [-10]
>> [   222.991] (EE) 1: /lib/libthr.so.3 (?+0x0) [0x8273185be]
>> [   222.992] (EE) unw_get_proc_name failed: no unwind info found [-10]
>> [   222.992] (EE) 2: /lib/libthr.so.3 (?+0x0) [0x827317b6f]
>> [   222.992] (EE) 3: ? (?+0x0) [0x7ffffffff2d3]
>> [   222.993] (EE) 4: ? (?+0x0) [0x0]
>> [   222.994] (EE) 5: 
>> /usr/local/lib/xorg/modules/drivers/nvidia_drv.so (?+0x0) [0x83cca750f]
>> [   222.995] (EE) 6: ? (?+0x0) [0x0]
>> [   222.995] (EE) unw_step failed: unspecified (general) error [-1]
>> [   222.995] (EE)
>> [   222.995] (EE) Segmentation fault at address 0x0
>> [   222.995] (EE)
>> Fatal server error:
>> [   222.995] (EE) Caught signal 11 (Segmentation fault). Server aborting
>> [   222.995] (EE)
>> [   222.995] (EE)
>>
>> $ uname -a
>> FreeBSD theron-xps 14.0-CURRENT FreeBSD 14.0-CURRENT #44 main-809922b010
>
> Nvidia driver download website recommends 515.48.07 for my chip - I'll 
> try to update to that and test if the crash is fixed.

Version 515.48.07: Same crash, but slightly more forthcoming of 
information, note "nvidiaUnlock":

[219738.129] (EE) Backtrace:
[219738.134] (EE) 0: /usr/local/bin/Xorg (?+0x0) [0x41853a]
[219738.137] (EE) unw_get_proc_name failed: no unwind info found [-10]
[219738.137] (EE) 1: /lib/libthr.so.3 (?+0x0) [0x829f8a5be]
[219738.140] (EE) unw_get_proc_name failed: no unwind info found [-10]
[219738.140] (EE) 2: /lib/libthr.so.3 (?+0x0) [0x829f89b6f]
[219738.142] (EE) 3: ? (?+0x0) [0x7ffffffff2d3]
[219738.144] (EE) 4: ? (?+0x0) [0x0]
[219738.146] (EE) 5: /usr/local/lib/xorg/modules/drivers/nvidia_drv.so 
(nvidiaUnlock+0x4194f) [0x83caa854f]
[219738.148] (EE) 6: ? (?+0x0) [0x0]
[219738.148] (EE) unw_step failed: unspecified (general) error [-1]
[219738.148] (EE)
[219738.148] (EE) Segmentation fault at address 0x0
[219738.148] (EE)
Fatal server error:
[219738.148] (EE) Caught signal 11 (Segmentation fault). Server aborting


> If I recall correctly, everything's in place since there is already a 
> -390 flavor for the oldest Optimus systems, adding -470 should be 
> trivial.

$ cat nvidia-secondary-driver-470/Makefile

MASTERDIR=        ${.CURDIR}/../nvidia-driver-470
NVSDR_MASTERDIR=    ${.CURDIR}/../nvidia-secondary-driver

.include "${NVSDR_MASTERDIR}/Makefile"

nvidia-secondary-driver-470-470.103.01 - works.

I wonder whether the 5xx drivers work at all (even for non-Optimus 
configuration GPUs) on -CURRENT?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.