From owner-freebsd-current@freebsd.org Sat Jun 3 14:09:21 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9E0CBF220C for ; Sat, 3 Jun 2017 14:09:21 +0000 (UTC) (envelope-from jeffreybouquet@yahoo.com) Received: from sonic306-48.consmr.mail.ne1.yahoo.com (sonic306-48.consmr.mail.ne1.yahoo.com [66.163.189.110]) by mx1.freebsd.org (Postfix) with ESMTP id B6AD370A35 for ; Sat, 3 Jun 2017 14:09:21 +0000 (UTC) (envelope-from jeffreybouquet@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1496498960; bh=bAW3ZKiez9vNzejl+D11y0dCUuKtgyJWFUXRHtwAG/8=; h=Date:From:Reply-To:To:Cc:Subject:References:From:Subject; b=cZsQ8ls90BEt0/TBi0KfXhpWJ2WbXXb14i2dA8nvuWZweiGHeXhLyKOxZU+Do/PaT9M+UVUpn9nfRfY4YtZoJUZwbuRBIUsaml86xXnZWR2KO4mfJwUSQ6uCAKCpK0fvN5e0NJCO3Kvsh+Q2GDfuIbLNF771+qQuAhDZJuVKN3rSslvz6uFSE2nEUIeeJdNpR8Yg4aWYgP6kEa2oDYCyT8FVNs1ercz+/srNpB9kLgiJp2U+0gT0OA9gdIiuSPVZBIHXytfP2J302nULf+2C78X1dmKpgdtiViOYSG+lmMKMVXZtlMhvR1zGywPp/0pSn8zqfj9/qj6dxLrskN7JbQ== X-YMail-OSG: KFIlrGgVM1nPRm8zg1ZFBUT1ntO77yZRZByU0IXL_o2snCJ_Rx4ZRADVQpKaBh. Z3OcKow8vyRdcqxgB0cl.FRnZWE83q2mPvSXL7Ht9NYXEDLuKbjoF1JOFm6iw8OUB9W6hz4JdGZ3 I1JEYRgOZfHtj1I7LzNzwGn5hVLg9B.7.McP3qSJRGkaWyNGJVYgeL1cBZaQMmiryX8DCgmDm30L FctMciwSBqAc5Qc_7TQbdkasxsZ4PWVP3n7B9WZ5oJmsHhU62HQsdz2IhRyppTxvoTkhc5iyOTeu 4CezZh0GSbcx3ia_ZKQ8auB2vBI6R3n_YUcekTOKAwiRGYyVpYahPGj4wSrm4Ve8gHaAZ3yWN1Yv WLKDcLg_nmS1odKGDZxpuwOepipMTwstbPgt1Ic5MU5JMzjK1x2TLYdXn3iz6t89e4NwSIh6c7f0 Bki3LCF4dxqf75cY1e7csdDuVd2aSrXJ1PkHYZVMS9VnerACcoGjfe.Wo.ZQ.otFEtisASEC2Vk8 rJhXYoEJHOt8hoCIcR92KmOV7LyJ4Z58pUbX5 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Sat, 3 Jun 2017 14:09:20 +0000 Date: Sat, 3 Jun 2017 13:55:12 +0000 (UTC) From: Jeffrey Bouquet Reply-To: Jeffrey Bouquet To: , Tomoaki AOKI Cc: Jeffrey Bouquet , blubee blubeeme Message-ID: <1100140349.1166835.1496498112171@mail.yahoo.com> Subject: Re: nvidia drivers mutex lock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <1100140349.1166835.1496498112171.ref@mail.yahoo.com> X-Mailer: WebService/1.1.9778 YahooMailBasic Mozilla/5.0 (X11; FreeBSD i386; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 Lightning/5.1 X-Mailman-Approved-At: Sat, 03 Jun 2017 14:26:44 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jun 2017 14:09:22 -0000 SOME LINES BOTTOM POSTED, SEE... -------------------------------------------- On Fri, 6/2/17, Tomoaki AOKI wrote: Subject: Re: nvidia drivers mutex lock To: freebsd-current@freebsd.org Cc: "Jeffrey Bouquet" , "blubee blubeeme" Date: Friday, June 2, 2017, 11:25 PM =20 Hi. Version 381.22 (5 days newer than 375.66) of the driver states... [1] =20 Fixed hangs and crashes that could occur when an OpenGL context is created while the system is out of available memory. =20 Can this be related with your hang? =20 IMHO, possibly allocating new resource (using os.lock_mtx guard) without checking the lock first while previous request is waiting for another can cause the duplicated lock situation. And high memory pressure would easily cause the situation. =20 [1] http://www.nvidia.com/Download/driverResults.aspx/118527/en-us =20 Hope it helps. =20 =20 On Thu, 1 Jun 2017 22:35:46 +0000 (UTC) Jeffrey Bouquet wrote: =20 > I see the same message, upon load, ... > -------------------------------------------- > On Thu, 6/1/17, blubee blubeeme wrote: >=20 >=C2=A0 Subject: nvidia drivers mutex lock >=C2=A0 To: freebsd-ports@freebsd.org, freebsd-current@freebsd.org >=C2=A0 Date: Thursday, June 1, 2017, 11:35 AM >=C2=A0=20 >=C2=A0 I'm running nvidia-drivers 375.66 with a GTX >=C2=A0 1070 on FreeBSD-Current >=C2=A0=20 >=C2=A0 This problem just started happening >=C2=A0 recently but, every so often my laptop >=C2=A0 screen will just blank out and then I >=C2=A0 have to power cycle to get the >=C2=A0 machine up and running again. >=C2=A0=20 >=C2=A0 It seems to be a problem with nvidia >=C2=A0 drivers acquiring duplicate lock. Any >=C2=A0 info on this? >=C2=A0=20 >=C2=A0 Jun=E3=80=93 2 02:29:41 blubee kernel: >=C2=A0 acquiring duplicate lock of same type: >=C2=A0 "os.lock_mtx" >=C2=A0 Jun=E3=80=93 2 02:29:41 blubee kernel: 1st >=C2=A0 os.lock_mtx @ nvidia_os.c:841 >=C2=A0 Jun=E3=80=93 2 02:29:41 blubee kernel: 2nd >=C2=A0 os.lock_mtx @ nvidia_os.c:841 >=C2=A0 Jun=E3=80=93 2 02:29:41 blubee kernel: >=C2=A0 stack backtrace: >=C2=A0 Jun=E3=80=93 2 02:29:41 blubee kernel: #0 >=C2=A0 0xffffffff80ab7770 at >=C2=A0 witness_debugger+0x70 >=C2=A0 Jun=E3=80=93 2 02:29:41 blubee kernel: #1 >=C2=A0 0xffffffff80ab7663 at >=C2=A0 witness_checkorder+0xe23 >=C2=A0 Jun=E3=80=93 2 02:29:41 blubee kernel: #2 >=C2=A0 0xffffffff80a35b93 at >=C2=A0 __mtx_lock_flags+0x93 >=C2=A0 Jun=E3=80=93 2 02:29:41 blubee kernel: #3 >=C2=A0 0xffffffff82f4397b at >=C2=A0 os_acquire_spinlock+0x1b >=C2=A0 Jun=E3=80=93 2 02:29:41 blubee kernel: #4 >=C2=A0 0xffffffff82c48b15 at _nv012002rm+0x185 >=C2=A0 Jun=E3=80=93 2 02:29:41 blubee kernel: >=C2=A0 ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: >=C2=A0 Argument #4 type mismatch - Found >=C2=A0 [Buffer], ACPI requires [Package] >=C2=A0 (20170303/nsarguments-205) >=C2=A0 Jun=E3=80=93 2 02:29:42 blubee kernel: >=C2=A0 nvidia-modeset: Allocated GPU:0 >=C2=A0 (GPU-54a7b304-c99d-efee-0117-0ce119063cd6) @ >=C2=A0 PCI:0000:01:00.0 >=C2=A0 =20 >=C2=A0 Best, >=C2=A0 Owen >=C2=A0 _______________________________________________ >=C2=A0 freebsd-ports@freebsd.org >=C2=A0 mailing list >=C2=A0 https://lists.freebsd.org/mailman/listinfo/freebsd-ports >=C2=A0 To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >=C2=A0=20 >=20 >=20 > ... then Xorg will run happily twelve hours or so.=C2=A0 The lockups here happen usually > when too large or too many of number of tabs/ large web pages with complex CSS etc > are opened at a time.=C2=A0=20 >=C2=A0 =C2=A0 So no help, just a 'me too'.=C2=A0=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >=20 >=20 =20 =20 --=20 Tomoaki AOKI=C2=A0 =C2=A0 =20 ........................ might be a workaround Xorg/nvidia ran all night with this: nvidia-settings >> X server display configuration >> Advanced >> Force = Full Composition Pipeline ... for the laptop freezing. Could not hurt to try. " merge with Xorg.con= f " from nvidia-settings... ...................... 18 hours uptime so far, even past the 3 am periodic scripts. Have not rebooted out of the Xorg though so ma= y require edit-out of xorg.conf if that is the case, in other words differing from real-time appl= y and xorg initially start applies. =20 ........ =20