From: "Stefan Lippers-Hollmann" Subject: Re: nouveau/ NV11: 3.12 freezes if X.org is started headless Date: Wed, 27 Nov 2013 00:18:09 +0000 Message-ID: <201311270018.14980.s.L-H@gmx.de> References: <201311262303.26996.s.L-H@gmx.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Ilia Mirkin Cc: David Airlie , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" List-Id: dri-devel@lists.freedesktop.org Hi On Tuesday 26 November 2013, Ilia Mirkin wrote: > On Tue, Nov 26, 2013 at 6:03 PM, Stefan Lippers-Hollmann wrote: > > v3.11 is fine, with and without monitor attached. > > v3.12 is fine as long as X.org isn't started (but may fail to reboo= t > > cleanly). If a monitor is connected I don't observe any probl= ems, > > it freezes without a monitor connected. > > v3.13-rc1-95-gb975dc3 appears not to freeze without a monitor anymo= re > > (I didn't confirm that it's fine with a monitor attached), bu= t I > > end up with the following Oops (this is before X.org is start= ed). [=E2=80=A6] > > BUG: unable to handle kernel NULL pointer dereference at (null) > > IP: [] _nouveau_clock_init+0x2a/0xaf [nouveau] [=E2=80=A6] > The oops in 3.13-rc1 should be fixed by applying the equivalent of > http://cgit.freedesktop.org/~darktama/nouveau/commit/?id=3D0397aaaa00= 9092427dc60aea8b3c21c00526d8ba As you expected, the Oops is gone after applying the afforementioned=20 patch, 3.13~ now behaves as 3.12 (it freezes, if X.org is started=20 without a monitor attached). > . Also note that libdrm had a bug when compiled with gcc-4.8 for > pre-nv50 cards, not sure if the fixes have made it to Debian/unstable= , > but you need libdrm-2.4.48+ (or compile it with gcc-4.7/clang). The libdrm2 version is 2.4.49-2, which -although it has been compiled=20 with gcc 4.8.2-5[1]- should be unaffected by this issue. According to=20 the ChangeLog the version is at 7ddc98f92f92560e2b52287ae8cf816ca4a057d= e and no significant patches[2] have been applied. > Lastly, another thing to try if you're getting random hangs is bootin= g > with nouveau.agpmode=3D0 (and if that helps, seeing if =3D1 or =3D2 s= till > work ok). If that helps, it can be added to the quirks list. Unfortunately this doesn't appear to have an effect, with 3.13~ and the previous patch applied: # cat /sys/module/nouveau/parameters/agpmode=20 0 # init 5 [ 73.708490] nouveau W[ PTIMER][0000:01:00.0] unknown input clock fr= eq system frozen. Regards Stefan Lippers-Hollmann [1] https://buildd.debian.org/status/fetch.php?pkg=3Dlibdrm&arch=3Di386= &ver=3D2.4.49-2&stamp=3D1385480211 [2] http://anonscm.debian.org/gitweb/?p=3Dpkg-xorg/lib/libdrm.git;a=3Db= lob;f=3Ddebian/patches/01_default_perms.diff;h=3Dcdba93e19edf40b2b0b56d= 951a6416c68a0af6f0;hb=3DHEAD http://anonscm.debian.org/gitweb/?p=3Dpkg-xorg/lib/libdrm.git;a=3Dblob= ;f=3Ddebian/patches/02_kbsd_modeset.diff;h=3D260260925fc692c71d955d6490= dabf87905abb51;hb=3DHEAD