From owner-freebsd-current@freebsd.org Sun Jun 4 10:12:07 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 D735EAFF490 for ; Sun, 4 Jun 2017 10:12:07 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-pg0-x230.google.com (mail-pg0-x230.google.com [IPv6:2607:f8b0:400e:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A42DA71238 for ; Sun, 4 Jun 2017 10:12:07 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-pg0-x230.google.com with SMTP id t185so11700804pgd.1 for ; Sun, 04 Jun 2017 03:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fpji8LdtUS3VAU7snnSyCY7CV6EsXSqXH7NTv+Yq8T8=; b=MFSq6pSrhG0B+QPdH5tQdi6g855LPg942TpUUpmmMHaIb4R7jHTsQOFxjcKojurGo4 /qEOItmVQpP63PzsbTdIT8hcMUA1/ed6TaeJlujbXepxXdG+dJXXOc6pg3lxLLeFRkUZ bksMWYkWwAP9dPp06aT+kvySmtY1L9uKAkEJ/ssyKIizyrfvGEDHGV8tcYnK/nhX77G+ SQqKzb2WSQOHGUtd795Bc8OiBTI7BuJbu8Nyr5X/fy4YIjnrBFPCfWRV7zVPsDBI7cEu 8zXKqGlO1c7F59Iu++KLgU7lW14kUvjNWzNu+q/DCWiGbXrZUzvwW9VhICv0J27lVGDo 9yOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fpji8LdtUS3VAU7snnSyCY7CV6EsXSqXH7NTv+Yq8T8=; b=hvf6cg6jOaM0UFFCYy95M6xzm40RHV+lNjGXDPnVSZUrp6tRpT0qyEpOQiw0TGO1wu Xv1oDjo05OlaIWAgCezgUAT/KxPq8dNC89wkiS2sxXQkZLrci4f5RKwANMJ49DGqT/FV ppxjHPTXEQH47DQCksPMv/IHse0VJLHp/pKDnAOAqpdGKauEAPmFtjoz8qgbY/4pPsYw V6HFZxlVFYgn+v5Qnp8Gohj+YiFRmlQ3L2Adtj18gXSVt8tJHcZSTmhi7obDZrfcd6+G uWwkcTzGQAXMlMpUkTpjhEHABhD9oFu+JAzEVo7SXmcnDjH872wOO4boCxEdJLJfc3+z zJ+A== X-Gm-Message-State: AODbwcBKvK6qvzQEYbLpmeSl0lhch3F5rtxeFPwnCNuS2DPWLqHsLizT qDEB7WVlOfn/Y5gyJ/M35/Snku4pYw== X-Received: by 10.99.126.67 with SMTP id o3mr15491682pgn.36.1496571127115; Sun, 04 Jun 2017 03:12:07 -0700 (PDT) MIME-Version: 1.0 References: <1100140349.1166835.1496498112171.ref@mail.yahoo.com> <1100140349.1166835.1496498112171@mail.yahoo.com> <20170604165320.f4c06ed7ad867f4ec0280f09@dec.sakura.ne.jp> <20170604175911.6926dc73386d211c4a39bbc0@dec.sakura.ne.jp> In-Reply-To: <20170604175911.6926dc73386d211c4a39bbc0@dec.sakura.ne.jp> From: blubee blubeeme Date: Sun, 04 Jun 2017 10:11:56 +0000 Message-ID: Subject: Re: nvidia drivers mutex lock To: Tomoaki AOKI Cc: freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Sun, 04 Jun 2017 10:12:08 -0000 Thanks a lot! I'll give it a shot in a bit. Best, Owen On Sun, Jun 4, 2017, 16:59 Tomoaki AOKI wrote: > Yes. FreeBSD patches in x11/nvidia-drivers/files are applied as usual. > > But beware! Sometimes upstream changes make any of FreeBSD patches not > applicable (incorporating any of these, incompatible modifies, ...). > > For 381.22, current patchset applies and builds fine for me. > > > On Sun, 04 Jun 2017 08:04:50 +0000 > blubee blubeeme wrote: > > > I'm running with svn and I build by make. > > If in use these steps, the BSD related patches will be applied, etc? > > > > Best, > > Owen > > > > On Sun, Jun 4, 2017, 15:53 Tomoaki AOKI > wrote: > > > > > Hi. > > > > > > Not in ports tree, but easily overridden by adding > > > > > > DISTVERSION=3D381.22 -DNO_CHECKSUM > > > > > > on make command line. Makefile of x11/nvidia-driver has a mechanism > > > to do so for someone requires newer version (newer GPU support, etc.)= . > > > > > > If you're using portupgrade, > > > > > > portupgrade -m 'DISTVERSION=3D381.22 -DNO_CHECKSUM' -f > x11/nvidia-driver > > > > > > would do the same. > > > > > > If you installed it via pkg, there's no way to try. :-( > > > (As it's pre-built.) > > > > > > > > > On Sun, 04 Jun 2017 07:04:01 +0000 > > > blubee blubeeme wrote: > > > > > > > Hi @tomoaki > > > > Is that version of nvidia drivers currently in the ports tree? I ju= st > > > > checked but it seems not to be. > > > > > > > > @jeffrey > > > > I just generated a new xorg based on the force composition setting.= I > > > > merged it with my previous xorg I'll reboot, see if it gives better > > > > performance. > > > > > > > > It seems like my system is locking up more frequently now. Sometime= s > > > right > > > > after a reboot the system, the screen locks and it's reboot and pra= y. > > > > > > > > Best, > > > > Owen > > > > > > > > On Sat, Jun 3, 2017, 21:59 Jeffrey Bouquet > > > > wrote: > > > > > > > > > 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" < > > > > > gurenchan@gmail.com> > > > > > Date: Friday, June 2, 2017, 11:25 PM > > > > > > > > > > Hi. > > > > > Version > > > > > 381.22 (5 days newer than 375.66) of the driver states... > > > > > [1] > > > > > > > > > > Fixed hangs and > > > > > crashes that could occur when an OpenGL context is > > > > > created while the system is out of available > > > > > memory. > > > > > > > > > > Can this be related > > > > > with your hang? > > > > > > > > > > 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. > > > > > > > > > > [1] > http://www.nvidia.com/Download/driverResults.aspx/118527/en-us > > > > > > > > > > Hope it helps. > > > > > > > > > > > > > > > On Thu, 1 Jun > > > > > 2017 22:35:46 +0000 (UTC) > > > > > Jeffrey Bouquet > > > > > > > > > > wrote: > > > > > > > > > > > I see the same > > > > > message, upon load, ... > > > > > > > > > > > -------------------------------------------- > > > > > > On Thu, 6/1/17, blubee blubeeme > > > > > wrote: > > > > > > > > > > > > Subject: > > > > > nvidia drivers mutex lock > > > > > > To: freebsd-ports@freebsd.org, > > > > > freebsd-current@freebsd.org > > > > > > Date: Thursday, June 1, 2017, 11:35 > > > > > AM > > > > > > > > > > > > I'm > > > > > running nvidia-drivers 375.66 with a GTX > > > > > > 1070 on FreeBSD-Current > > > > > > > > > > > > This problem > > > > > just started happening > > > > > > recently but, > > > > > every so often my laptop > > > > > > screen will > > > > > just blank out and then I > > > > > > have to > > > > > power cycle to get the > > > > > > machine up and > > > > > running again. > > > > > > > > > > > > It seems to be a problem with nvidia > > > > > > drivers acquiring duplicate lock. Any > > > > > > info on this? > > > > > > > > > > > > Jun=E3=80=93 2 02:29:41 blubee kernel: > > > > > > acquiring duplicate lock of same > > > > > type: > > > > > > "os.lock_mtx" > > > > > > Jun=E3=80=93 2 02:29:41 blubee kernel: 1st > > > > > > os.lock_mtx @ nvidia_os.c:841 > > > > > > Jun=E3=80=93 2 02:29:41 blubee kernel: 2nd > > > > > > os.lock_mtx @ nvidia_os.c:841 > > > > > > Jun=E3=80=93 2 02:29:41 blubee kernel: > > > > > > stack backtrace: > > > > > > > > > > > Jun=E3=80=93 2 02:29:41 blubee kernel: #0 > > > > > > > > > > > 0xffffffff80ab7770 at > > > > > > > > > > > witness_debugger+0x70 > > > > > > Jun=E3=80=93 2 > > > > > 02:29:41 blubee kernel: #1 > > > > > > > > > > > 0xffffffff80ab7663 at > > > > > > > > > > > witness_checkorder+0xe23 > > > > > > Jun=E3=80=93 2 > > > > > 02:29:41 blubee kernel: #2 > > > > > > > > > > > 0xffffffff80a35b93 at > > > > > > > > > > > __mtx_lock_flags+0x93 > > > > > > Jun=E3=80=93 2 > > > > > 02:29:41 blubee kernel: #3 > > > > > > > > > > > 0xffffffff82f4397b at > > > > > > > > > > > os_acquire_spinlock+0x1b > > > > > > Jun=E3=80=93 2 > > > > > 02:29:41 blubee kernel: #4 > > > > > > > > > > > 0xffffffff82c48b15 at _nv012002rm+0x185 > > > > > > Jun=E3=80=93 2 02:29:41 blubee kernel: > > > > > > ACPI Warning: > > > > > \_SB.PCI0.PEG0.PEGP._DSM: > > > > > > Argument #4 > > > > > type mismatch - Found > > > > > > [Buffer], ACPI > > > > > requires [Package] > > > > > > > > > > > (20170303/nsarguments-205) > > > > > > Jun=E3=80=93 2 > > > > > 02:29:42 blubee kernel: > > > > > > > > > > > nvidia-modeset: Allocated GPU:0 > > > > > > > > > > > (GPU-54a7b304-c99d-efee-0117-0ce119063cd6) @ > > > > > > PCI:0000:01:00.0 > > > > > > > > > > > > > > > > > Best, > > > > > > Owen > > > > > > > > > > > _______________________________________________ > > > > > > freebsd-ports@freebsd.org > > > > > > mailing list > > > > > > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > > > > > > To unsubscribe, send any mail to > > > > > "freebsd-ports-unsubscribe@freebsd.org" > > > > > > > > > > > > > > > > > > > > > > > > ... then Xorg will > > > > > run happily twelve hours or so. 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. > > > > > > So no help, just a 'me > > > > > too'. > > > > > > > > > > > _______________________________________________ > > > > > > 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 > > > > > " > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Tomoaki > > > > > AOKI > > > > > > > > > > > > > > > > > > > > ........................ > > > > > 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 wit= h > > > > > Xorg.conf " from nvidia-settings... > > > > > ...................... > > > > > 18 hours uptime so far, even past > > > > > the 3 am periodic scripts. Have not rebooted out of the Xorg > though > > > so > > > > > may require edit-out of > > > > > xorg.conf if that is the case, in other words differing from > real-time > > > > > apply and > > > > > xorg initially start applies. > > > > > ........ > > > > > > > > > > > > > > _______________________________________________ > > > > 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" > > > > > > > > > > > > > > > > > -- > > > Tomoaki AOKI > > > > > > -- > Tomoaki AOKI >