From owner-freebsd-x11@freebsd.org Fri Apr 8 19:18:42 2016 Return-Path: Delivered-To: freebsd-x11@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 F160CB0826A for ; Fri, 8 Apr 2016 19:18:42 +0000 (UTC) (envelope-from bengta@sics.se) Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com [IPv6:2a00:1450:4010:c07::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 A7E5912F4 for ; Fri, 8 Apr 2016 19:18:42 +0000 (UTC) (envelope-from bengta@sics.se) Received: by mail-lf0-x230.google.com with SMTP id j11so88478696lfb.1 for ; Fri, 08 Apr 2016 12:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sics-se.20150623.gappssmtp.com; s=20150623; h=from:to:subject:user-agent:date:message-id:mime-version; bh=KnuOF0yUIQtQoDrVZ82cdwmX9LUKC9yu2/5rsIJOvsY=; b=MMHTfU/T79kzx+jVIg+Tgs1hmnYzH4ty44G6jgIs4ExAcx9iZHYgu5TAws6tn75AXX XQzYSfg0tYNqXMoIhKh9GYLFuEOOUTD+jEgnPeC49VcsEIbZKCVHrvHVlc454G5CMVbG 4FecoN1jYrXskoA0QPxseVHmFP5PVClhAxGtHuNnXz0RhBCy0VBe1C1aWzDCtxAmOSwg SWss4PxpSEh3d1oNyCmV3mzRv5ntsc2RNrqf4YJd2WoIwgXBzToM5K7FbexFwjnuREzT DhnD7PbGLXDQ+K7wVA/KJW56bDnpth8DP+nEz1xIYGQvMmPHQXqtQBMbw1DUcahwnurI petQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:user-agent:date:message-id :mime-version; bh=KnuOF0yUIQtQoDrVZ82cdwmX9LUKC9yu2/5rsIJOvsY=; b=fuPOP28CFtIe1JqxG7dDMbH83GIfiX97oAmsc8zY59g0JBUMQVmAqjjbjGkjQS9B1q w24qSvhTSQ98eY2GfFBSNnNGgKFJ7tcv9Cfof1nPq8BOn/t87FXMcQDA/c/o/lZbS0E9 ijkgp4qzdHj+B2trpedBz2PaqbjEAVTf8eKGWy/4GJ7F7FotqJbJ7cYkBU98VznXm+5/ Ls/IN1BbPkCaLuL08SIAfW1HY48/02oDpwrSPYf/gBeKr9wAQGUXtYFTDWUD+F8seEVQ uMbjJPsXMDYHbZPtQMipvVg4ZnJyB/aRHZUyCaXGXPcfZErjuY7lUvFdyMKbFR7eNhs6 JgGQ== X-Gm-Message-State: AD7BkJIfExJTLaMMCLoLYsEzsfsSJsbbYsagBmDL+Ob9IvefDwsXP71Kji0t+yHIVcnJRcmR X-Received: by 10.112.221.129 with SMTP id qe1mr4301157lbc.118.1460143120753; Fri, 08 Apr 2016 12:18:40 -0700 (PDT) Received: from P142s.sics.se (62-20-223-105-no193.tbcn.telia.com. [62.20.223.105]) by smtp.gmail.com with ESMTPSA id do4sm2270242lbc.35.2016.04.08.12.18.39 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 08 Apr 2016 12:18:40 -0700 (PDT) Received: from P142s.sics.se (localhost [127.0.0.1]) by P142s.sics.se (8.15.2/8.15.2) with ESMTP id u38JIG44002247; Fri, 8 Apr 2016 21:18:16 +0200 (CEST) (envelope-from bengta@P142s.sics.se) Received: (from bengta@localhost) by P142s.sics.se (8.15.2/8.15.2/Submit) id u38JIG4g002246; Fri, 8 Apr 2016 21:18:16 +0200 (CEST) (envelope-from bengta@P142s.sics.se) From: Bengt Ahlgren To: freebsd-x11@freebsd.org Subject: x11/nvidia-driver versions 358.16 and above - lockup when X server starts User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) Date: Fri, 08 Apr 2016 21:18:16 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2016 19:18:43 -0000 There seems to be a locking problem in the newer nvidia drivers (358.16 and above that have the new nvidia-modeset.ko module). These are not in the ports tree, but a port patch is being worked on to update it: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201340 With a WITNESS kernel, my system always locks up when the X server starts after printing this: Apr 8 19:44:11 ivy kernel: acquiring duplicate lock of same type: "os.lock_sx" Apr 8 19:44:11 ivy kernel: 1st os.lock_sx @ nvidia_os.c:593 Apr 8 19:44:11 ivy kernel: 2nd os.lock_sx @ nvidia_os.c:593 Apr 8 19:44:11 ivy kernel: KDB: stack backtrace: Apr 8 19:44:11 ivy kernel: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe06651c7410 Apr 8 19:44:11 ivy kernel: kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe06651c74c0 Apr 8 19:44:11 ivy kernel: witness_checkorder() at witness_checkorder+0xe24/frame 0xfffffe06651c7550 Apr 8 19:44:11 ivy kernel: _sx_xlock() at _sx_xlock+0x75/frame 0xfffffe06651c7590 Apr 8 19:44:11 ivy kernel: os_acquire_mutex() at os_acquire_mutex+0x32/frame 0xfffffe06651c75b0 Apr 8 19:44:11 ivy kernel: _nv014117rm() at _nv014117rm+0x18/frame 0xfffffe000a188e60 Apr 8 19:44:11 ivy kernel: dmapbase() at 0xfffff80011527800 The X server gets at least this far: [ 164.014] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32 [ 164.014] (==) NVIDIA(0): RGB weight 888 [ 164.014] (==) NVIDIA(0): Default visual is TrueColor [ 164.014] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0) [ 164.015] (**) NVIDIA(0): Enabling 2D acceleration Without WITNESS, it locks up perhaps 1/3 of the time, and works fine afterways if it didn't. I run FreeBSD 10.3-PRERELEASE amd64 r296673 on a desktop with a Z77 motherboard and a GeForce GTX 550 Ti. Is there anything that the FreeBSD community can do with this info? I have submitted a problem report to NVIDIA. Bengt