Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754558AbdGNPMu convert rfc822-to-8bit (ORCPT ); Fri, 14 Jul 2017 11:12:50 -0400 Received: from mout.gmx.net ([212.227.17.22]:58704 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754480AbdGNPMs (ORCPT ); Fri, 14 Jul 2017 11:12:48 -0400 Message-ID: <1500045117.5763.18.camel@gmx.de> Subject: Re: [regression drm/noveau] suspend to ram -> BOOM: exception RIP: drm_calc_vbltimestamp_from_scanoutpos+335 From: Mike Galbraith To: Tobias Klausmann , Ilia Mirkin , Peter Zijlstra Cc: LKML , "dri-devel@lists.freedesktop.org" , "nouveau@lists.freedesktop.org" , David Airlie , Ben Skeggs Date: Fri, 14 Jul 2017 17:11:57 +0200 In-Reply-To: <6341f91f-1c56-2188-f55b-2f47d23262fc@mni.thm.de> References: <1499794333.5315.8.camel@gmx.de> <1499796510.5315.27.camel@gmx.de> <1499853345.23742.8.camel@gmx.de> <1499858703.23742.25.camel@gmx.de> <1500039368.5763.12.camel@gmx.de> <1500039693.5763.15.camel@gmx.de> <6341f91f-1c56-2188-f55b-2f47d23262fc@mni.thm.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K0:hhdh04Goz6fyJfTC0hcmRfqvoHuj5H3y+aI/DIWnkSOdjZtuk4n 6pEMTOvhwkT+F5HSBNYZ1as0K21vt/HEp9p2th6G7Uw290wPkVk0rAuJvjTZ+UN9kgXCLAw tv0KRsEHIcVwfIumPJ0jXmlVFHe6n3FN1OKQuMmreIT1P5ykewCvJziiBXuF/rbfWsi/gMB M9HeMFJ2llXO/OKnU6Mqg== X-UI-Out-Filterresults: notjunk:1;V01:K0:DmOnEEO3UuU=:g+GMJozmNf/+rwSMG2ZfH0 LCsHGbsOyxTgNpRrfQBkZy+qhYRsrHK4+tynAO8by8ULMnObFsjdi9cNJ743ehU9V7eMSt0ie HhXC8iasiI+3+X71n3qlzBZV7q/f2py2MSErzTFBl7L61TX0d3nOgvWpCiVWxW05XM18f5aDL ForUR356vIckDJTzC1wMf0rMY3r80aJzlEIhfh6A3eVAFodthHZaeoZcMU5FktbBbBJDOMHXL bN1YRPiYQEQJw7wJWJGD7QwYZGHRnaJqr6HGwrcRgxekcAFS6/3rczCfvX4dOYv04gpPz5Lcp R/+aNTh0Cj6O6FLIYbSjLmKwFlwJgDkWEUTJ0B4l8qAnkZ9LdcRWjZT57C6BBhPolgxXhGJZ/ X7uZM53XF7Z6or1vEq00F9x33qWTJw4x60IItJVHpnSZ37rpvCLaCimtKxPZwzPN6Yn/lceRr v1Vy5/dxFtHexTedeih0h6TWXE0d/DNlG/OrRP8MLhOYPBhA29CuGGmRlsQoTGfKVK/x2rvSU 3Y3bCQzX1PW2xMv13xQoC9q6jHWRaUB4Uci0hDPzvHK1F+3wF3iVnYxWfydI/N9y8CaByJ3aR KDudwjOhl7AyX39AeL2DJcyHtFbs64DISrRio/sAgw7ShcWkUc/1WcRMOkDWj8pcvlYWAB2cJ H8wulRldtf6NsFLs7spx+jS1nfLcdshpAnOsD2WgnEy+a1+qqUmCcWKD3bNhnUK32O4ntDq7C hJx6pPJCWnTsY1TsRflS1PCDBCykytBbKzlj/f582u1KjTprhBexjKPsoG8NvRuYGM18aqt4T 9IDF69JfcMHy1wyYj+GIIELEzr/HJoyPp+lTBpR+tzG4OmgRm0= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1336 Lines: 36 On Fri, 2017-07-14 at 17:05 +0200, Tobias Klausmann wrote: > On 7/14/17 3:41 PM, Mike Galbraith wrote: > > On Fri, 2017-07-14 at 15:36 +0200, Mike Galbraith wrote: > >>  All DRM did was to slip a > >> WARN_ON_ONCE() that nouveau triggers into a kernel module where such > >> things no longer warn, they blow the box out of the water. > > BTW, turn that irksome WARN_ON_ONCE() in drivers/gpu/drm/drm_vblank.c > > into a WARN_ONCE(), and all is peachy, you get the warning, box lives. > > > > --- > > drivers/gpu/drm/drm_vblank.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > --- a/drivers/gpu/drm/drm_vblank.c > > +++ b/drivers/gpu/drm/drm_vblank.c > > @@ -605,7 +605,8 @@ bool drm_calc_vbltimestamp_from_scanoutp > > */ > > if (mode->crtc_clock == 0) { > > DRM_DEBUG("crtc %u: Noop due to uninitialized mode.\n", pipe); > > - WARN_ON_ONCE(drm_drv_uses_atomic_modeset(dev)); > > + WARN_ONCE(drm_drv_uses_atomic_modeset(dev), "%s: report me.\n", > > + dev->driver->name); > > > > return false; > > } > > > Hey, > > confirmed this helps saving the box, but we still have to find the root > cause! Backtrace with the above fix applied (and the one which came in > with the latest drm-fixes merge)! Yeah, I'll be reporting some extra whining from my 8600 GT backup box. -Mike