Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754477AbdGNPFf (ORCPT ); Fri, 14 Jul 2017 11:05:35 -0400 Received: from mout2.fh-giessen.de ([212.201.18.46]:35981 "EHLO mout2.fh-giessen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754120AbdGNPFe (ORCPT ); Fri, 14 Jul 2017 11:05:34 -0400 Subject: Re: [regression drm/noveau] suspend to ram -> BOOM: exception RIP: drm_calc_vbltimestamp_from_scanoutpos+335 To: Mike Galbraith , Ilia Mirkin , Peter Zijlstra Cc: LKML , "dri-devel@lists.freedesktop.org" , "nouveau@lists.freedesktop.org" , David Airlie , Ben Skeggs 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> From: Tobias Klausmann Message-ID: <6341f91f-1c56-2188-f55b-2f47d23262fc@mni.thm.de> Date: Fri, 14 Jul 2017 17:05:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Thunderbird/56.0a1 MIME-Version: 1.0 In-Reply-To: <1500039693.5763.15.camel@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1195 Lines: 38 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)! [1] https://hastebin.com/uyoqifijed.http Thanks, Tobias