From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752246AbbBWXlK (ORCPT ); Mon, 23 Feb 2015 18:41:10 -0500 Received: from mail-wg0-f43.google.com ([74.125.82.43]:34187 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751712AbbBWXlJ (ORCPT ); Mon, 23 Feb 2015 18:41:09 -0500 Date: Tue, 24 Feb 2015 00:42:45 +0100 From: Daniel Vetter To: Chris Wilson , Andrey Skvortsov , Daniel Vetter , Jani Nikula , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Sitsofe Wheeler Subject: Re: [Intel-gfx] [Regression] WARNING: drivers/gpu/drm/i915/i915_gem.c:4525 i915_gem_free_object Message-ID: <20150223234245.GA24485@phenom.ffwll.local> Mail-Followup-To: Chris Wilson , Andrey Skvortsov , Daniel Vetter , Jani Nikula , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Sitsofe Wheeler References: <20150203191507.GA2374@crion86> <20150203202152.GD5784@nuc-i3427.alporthouse.com> <20150204182627.GA2272@crion86> <20150204184217.GG10991@nuc-i3427.alporthouse.com> <20150223201239.GC3871@crion86> <20150223212031.GI15204@nuc-i3427.alporthouse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150223212031.GI15204@nuc-i3427.alporthouse.com> X-Operating-System: Linux phenom 3.16-2-amd64 User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 23, 2015 at 09:20:31PM +0000, Chris Wilson wrote: > On Mon, Feb 23, 2015 at 11:12:39PM +0300, Andrey Skvortsov wrote: > > Hi, > > > > This warning is moved from linux-next to v4.0-rc1 now. After system boot is just a black screen. > > I ssh'ed into the machine and saved the log. I attached updated dmesg.log with drm.debug=6. Hopefully it helps. > > If you need any other debug information, traces, core dump or something else. Feel free to ask. > > The warning from free_object is annoying (and quite possibly dangerous), > but the actual hang during boot is: > > [ 243.876375] INFO: task Xorg:2422 blocked for more than 120 seconds. > [ 243.876382] Tainted: G W E 4.0.0-rc1-150223- #2 > [ 243.876388] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > [ 243.876393] Xorg D ffff88019fc12dc0 0 2422 2180 0x00400000 > [ 243.876404] ffff8800dabfe1a0 0000000000000002 ffff880194537fd8 ffff880194537ba0 > [ 243.876416] ffff8800dab9e22c ffff8800dabfe1a0 ffff8800dab9e230 00000000ffffffff > [ 243.876426] ffffffff813e2479 ffff8800dab9e228 ffffffff813e26a7 0000000000000000 > [ 243.876438] Call Trace: > [ 243.876449] [] ? schedule+0x6f/0x7c > [ 243.876459] [] ? schedule_preempt_disabled+0x15/0x21 > [ 243.876469] [] ? __ww_mutex_lock_slowpath+0xdf/0x1c2 > [ 243.876480] [] ? __ww_mutex_lock+0x1c/0x93 > [ 243.876541] [] ? modeset_lock+0x8f/0xf2 [drm] > [ 243.876632] [] ? intel_get_load_detect_pipe+0x80/0x427 [i915] > [ 243.876674] [] ? drm_ut_debug_printk+0x5e/0x63 [drm] > [ 243.876771] [] ? intel_tv_detect+0x115/0x43a [i915] > [ 243.876783] [] ? preempt_count_sub+0xbf/0xca > [ 243.876809] [] ? drm_helper_probe_single_connector_modes_merge_bits+0xc6/0x38d [drm_kms_helper] > [ 243.876860] [] ? drm_mode_getconnector+0xf4/0x2ac [drm] > [ 243.876900] [] ? drm_ioctl+0x338/0x3c5 [drm] > [ 243.876949] [] ? drm_mode_getcrtc+0xb3/0xb3 [drm] > [ 243.876961] [] ? fsnotify+0x314/0x35d > [ 243.876973] [] ? do_vfs_ioctl+0x379/0x431 > [ 243.876983] [] ? SyS_ioctl+0x56/0x7c > [ 243.876994] [] ? system_call_fastpath+0x12/0x17 > > i.e. it is a mutex deadlock inside tv detect. Daniel does that make sense? Botch locking rework for atomic. Fix is https://patchwork.kernel.org/patch/5861631/ and will land as soon as an affected user has provided a tested-by. Andrey, can you pls give this a spin? Thanks, Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch