From nobody Wed Jun 8 03:15:36 2022 X-Original-To: freebsd-x11@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 C91D0835734 for ; Wed, 8 Jun 2022 03:16:18 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) (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 4LHsnY1hTqz3NHx for ; Wed, 8 Jun 2022 03:16:17 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: by mail-pg1-x532.google.com with SMTP id 129so17715347pgc.2 for ; Tue, 07 Jun 2022 20:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:from:subject:to :references:content-language:in-reply-to:content-transfer-encoding; bh=4JPpTbOiY+Nb7DLWVj0y8u0Yi9JKXIzgl6mU04abUXE=; b=C72utK1wBEK1gwwwjNb4Lv0ppuVlXpWsvI0mi06fkQtm2RoUplEQJHC9KKW8P+Iffe xIvpL6RTOqNztwP2hb654lgV096j2rrGwgx1Sj5QeCuHmNuZkFXS+iOolYNNsX5UV/Aq TkxTRV2kPOAympFYlPzXd2FACWebJUr7qEkSr1PZaKYYGwIRS80q5d5VGU/2D8Qmj9sI iPuVmgNt5do2XTJ9zKWhcfyXWR2rhnDk8H3qIst+9oQKSNzmoevpOS7zs8FbiqGvuNYj lUE/AMPXLmYZqSLQDxAxuZ4nSpdOFQgAwmeOJUfm6oKtlNOrwPq9E9ISHFZDm/SgrwJC tKZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :from:subject:to:references:content-language:in-reply-to :content-transfer-encoding; bh=4JPpTbOiY+Nb7DLWVj0y8u0Yi9JKXIzgl6mU04abUXE=; b=sRWuiws8QdLXt29PwvHkwRMuf9zrDWoQdacf8C6Dbo1gINHEYMAcQDARnsg/IfMZV5 8qsqw7gO8B+/bnj9VV1VKMcj5vizQ1zAvT1+V38yZ68w0hwwITmaEGLa9FBBaUM+w/kW Ylz4bZDI8ccPkeviYfT08LyZ3KPasZ7KnEynPl2OaO3s57g57tROrQ9ig9e7BVRktrWf qRE5W7sRGCkoPbbjwnhuqRkeGywu7aI+6C3+GkoxQSGwXjg/wXjhK3JACmTDu73COWWQ pLcESPaYNKfvRSyvNH/cn2oTnqTQtXQRnlF1GNArYWasThdi2A8qB1xWb7jZe1u+lWU4 V7bw== X-Gm-Message-State: AOAM530Q5a1HbyndD7qy3v2NYbu5WyI9sQsdwn3C4SGv6BWmMwAerD3w IcfRDVikwhuFmARbApymZcbT602kVEc= X-Google-Smtp-Source: ABdhPJwOsKy8/6qWXvRW9vKRZOlvLzSX4DZJA8887xKA1zett/zb25EXJuGb3+epqeZsENfRxe497Q== X-Received: by 2002:a05:6a00:18a9:b0:51b:f63b:6f7c with SMTP id x41-20020a056a0018a900b0051bf63b6f7cmr20040841pfh.49.1654658175708; Tue, 07 Jun 2022 20:16:15 -0700 (PDT) Received: from [192.168.1.30] (c-98-37-18-218.hsd1.ca.comcast.net. [98.37.18.218]) by smtp.gmail.com with ESMTPSA id k5-20020a170902e90500b0015e8d4eb2d8sm13337675pld.290.2022.06.07.20.16.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jun 2022 20:16:15 -0700 (PDT) Message-ID: <4b01d2a9-61b9-bd6b-143b-a19870e6127e@gmail.com> Date: Tue, 7 Jun 2022 23:15:36 -0400 List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 From: Theron Subject: Re: Nvidia Optimus Crash When Starting Xorg To: x11-list freebsd References: <20220604231525.ybdydr4edglnnsb4@topanga.nomadlogic.org> <20220604234552.lomrfz4sngtkxxpu@colony.nomadlogic.org> <20220607144249.beknikii3x3j34ol@topanga> Content-Language: en-US In-Reply-To: <20220607144249.beknikii3x3j34ol@topanga> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4LHsnY1hTqz3NHx X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=C72utK1w; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of therontarigo@gmail.com designates 2607:f8b0:4864:20::532 as permitted sender) smtp.mailfrom=therontarigo@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.987]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(0.99)[0.987]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::532:from]; MLMMJ_DEST(0.00)[freebsd-x11]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 6/7/22 10:42, Pete Wright wrote: > On Tue, Jun 07, 2022 at 09:04:33AM +0300, Gleb Popov wrote: >> Hi Pete, I also have this problem. Did you manage to debug this further? > hey there, Theron and I had a chat privately Oops, I had meant to respond on the list: > 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 > > The same kernel and Xorg build work with the Nvidia port reverted to > 470.86_1. On 6/7/22 10:42, Pete Wright wrote: > and the workaround seems to be to > use the older Nvidia 470 driver. I think what happened is that support > to my > Optimus card was dropped in the 5xx series, as once I loaded this older > driver dmesg reported the card as detected and Xorg-headless no longer > crashes. In my case (GTX 960M / PCI ID: 139B) the chip is still officially supported in the 510.60.02 readme, yet I see the same crash (up to 0x0 vs. 0x5A5A... difference, but I believe that is merely different alloc debug configuration: the driver and/or stack tracer is reading junk either way). 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. https://us.download.nvidia.com/XFree86/FreeBSD-x86_64/510.60.02/README/supportedchips.html https://us.download.nvidia.com/XFree86/FreeBSD-x86_64/515.48.07/README/supportedchips.html > i can share pkg's if you'd like, i'm hoping today, time permitting to > submit a bug > report with diff to add a 470 flavor to nvidia-hybrid-graphics along > with a > nvidia-secondary-driver-470 pkg. 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.