From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Jones Subject: 3.19rc6 lockdep warning from drm_fb Date: Thu, 29 Jan 2015 09:26:15 -0500 Message-ID: <20150129142615.GA16535@codemonkey.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org To: Linux Kernel Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org The irony here of the hung task detector triggering a locking disaster. The laptop hung completely after spewing this partial trace. [11881.000016] ====================================================== [11881.000016] [ INFO: possible circular locking dependency detected ] [11881.000016] 3.19.0-rc6+ #2 Not tainted [11881.000016] ------------------------------------------------------- [11881.000016] khungtaskd/20 is trying to acquire lock: [11881.000016] ((fb_notifier_list).rwsem){.+.+.+}, at: [] __blocking_notifier_call_chain+0x39/0x70 [11881.000016] [11881.000016] but task is already holding lock: [11881.000016] (crtc_ww_class_mutex){+.+.+.}, at: [] drm_modeset_lock+0x98/0x110 [11881.000016] [11881.000016] which lock already depends on the new lock. [11881.000016] [11881.000016] [11881.000016] the existing dependency chain (in reverse order) is: [11881.000016] -> #2 (crtc_ww_class_mutex){+.+.+.}: [11881.000016] [] lock_acquire+0xc0/0x270 [11881.000016] [] mutex_lock_nested+0x78/0x3d0 [11881.000016] [] drm_modeset_lock+0xb7/0x110 [11881.000016] [] drm_mode_getconnector+0x19a/0x4b0 [11881.000016] [] drm_ioctl+0x1df/0x690 [11881.000016] [] radeon_drm_ioctl+0x4c/0x80 [11881.000016] [] do_vfs_ioctl+0x308/0x560 [11881.000016] [] SyS_ioctl+0x81/0xa0 [11881.000016] [] system_call_fastpath+0x12/0x17 [11881.000016] -> #1 (&dev->mode_config.mutex){+.+.+.}: [11881.000016] [] lock_acquire+0xc0/0x270 [11881.000016] [] mutex_lock_nested+0x78/0x3d0 [11881.000016] [] __drm_modeset_lock_all+0x90/0x120 [11881.000016] [] drm_modeset_lock_all+0x10/0x40 [11881.000016] [] drm_fb_helper_restore_fbdev_mode_unlocked+0x21/0x80 [11881.000016] [] drm_fb_helper_set_par+0x22/0x50 [11881.000016] [] radeon_fb_helper_set_par+0x1a/0x80 [11881.000016] [] fbcon_init+0x588/0x610 [11881.000016] [] visual_init+0xbc/0x120 [11881.000016] [] do_bind_con_driver+0x17e/0x3b0 [11881.000016] [] do_take_over_console+0xb4/0x1e0 [11881.000016] [] do_fbcon_takeover+0x63/0xd0 [11881.000016] [] fbcon_event_notify+0x6dd/0x7e0 [11881.000016] [] notifier_call_chain+0x62/0x100 [11881.000016] [] __blocking_notifier_call_chain+0x51/0x70 [11881.000016] [] blocking_notifier_call_chain+0x16/0x20