From owner-freebsd-bugs@freebsd.org Fri Jul 20 03:41:03 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4143C102E367 for ; Fri, 20 Jul 2018 03:41:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BA9168A80D for ; Fri, 20 Jul 2018 03:41:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7E222102E361; Fri, 20 Jul 2018 03:41:02 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F744102E35A for ; Fri, 20 Jul 2018 03:41:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CDAA08A80B for ; Fri, 20 Jul 2018 03:41:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 244E01F8C3 for ; Fri, 20 Jul 2018 03:41:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w6K3f1dM072432 for ; Fri, 20 Jul 2018 03:41:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w6K3f15J072431 for bugs@FreeBSD.org; Fri, 20 Jul 2018 03:41:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 229899] nvidia-driver-340 graphics hangs after upgrade from 11.1-p11 to 11.2 Date: Fri, 20 Jul 2018 03:41:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: donn@xmission.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2018 03:41:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229899 --- Comment #5 from Donn Seeley --- I have an aging but still quite usable Dell Latitude E6510 laptop that has = been running FreeBSD 11.1 quite happily for months. I upgraded to 11.2 earlier = this week, and had a nasty problem: Xorg gets stuck during start-up. The Xorg.0= .log file shows that it gets almost to the point of printing out the GPU model before it wedges. After the problem showed up, I updated nvidia-driver-340 to 340.107 using '= make reinstall' from ports just to be sure that I was fully up to date. It had = no effect on the problem. I normally boot to a console login rather than gdm, then run startx. When = I do this under 11.2, the screen clears, and a block cursor gets painted in the upper left corner while a mouse pointer is painted in the center of the scr= een, and then Xorg makes no further progress. Oddly, ps and top show Xorg with constant 100% CPU (on one CPU) with no CPU accumulation in the stats. Here= 's an example: # ps axo pid,time,systime,usertime,pcpu,command PID TIME SYSTIME USERTIME %CPU COMMAND 0 1:01.53 1:01.53 0:00.00 100.0 [kernel] [...] 11 10244:51.74 2369:09.03 0:00.00 600.0 [idle] [...] 3346 0:01.70 0:01.70 0:00.00 100.0 /usr/local/bin/X :0 -auth /home/donn [...] # At this point Xorg is unkillable, untraceable with ktrace -p (it just retur= ns immediately without generating any trace data) and un-gcoreable (it wedges)= .=20 Console switching does work (but it's very slow); I tried kern.vty=3Dsc, bu= t it didn't help. I ran 'sysctl debug.kdb.panic=3D1' to get a crash dump, but t= he backtrace for Xorg is uninteresting: (kgdb) info thread Id Target Id Frame=20 [...] 141 Thread 100145 (PID=3D3346: Xorg) 0xffffffff80b25ebd in sched_switc= h () 142 Thread 100211 (PID=3D3372: sysctl) 0xffffffff80b25ebd in sched_swi= tch () (kgdb) thread 141 [Switching to thread 141 (Thread 100145)] #0 0xffffffff80b25ebd in sched_switch () (kgdb) bt #0 0xffffffff80b25ebd in sched_switch () #1 0xffffffff8293bdc8 in ?? () #2 0x0000000000000000 in ?? () (kgdb)=20 Xorg appears to be running constantly, but it doesn't rack up any CPU time = -- maybe it's in a loop yielding the CPU? I tried the nv driver after removing xorg.conf, but it failed, as it has al= ways done in the past with this laptop. I tried minimal xorg.conf files; they didn't help. I tried running Xorg as root; it made no difference. Finally I just booted kernel.old, which brought up the 11.1-p11 kernel, and that DID work, running with the 11.2 userspace, including Xorg and its driv= ers. I've attached the Xorg.0.log from that boot, along with the /var/log/messa= ges contents. Was there some kernel API change in 11.2 that caused breakage for the Nvidia 340 driver? For what it's worth, here is the pciconf output for the GPU: vgapci0@pci0:1:0:0: class=3D0x030000 card=3D0x040b1028 chip=3D0x0a6c1= 0de rev=3D0xa2 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'GT218M [NVS 3100M]' class =3D display subclass =3D VGA My desktop machine is still running 11.1 and it has Nvidia graphics. I'm putting off upgrading it to 11.2 until I can get some resolution for my poor old laptop... --=20 You are receiving this mail because: You are the assignee for the bug.=