Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753932AbaKRKm3 (ORCPT ); Tue, 18 Nov 2014 05:42:29 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:12104 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752715AbaKRKm1 (ORCPT ); Tue, 18 Nov 2014 05:42:27 -0500 X-AuditID: cbfec7f4-b7f6c6d00000120b-ab-546b22909f1e Message-id: <546B228E.6030500@samsung.com> Date: Tue, 18 Nov 2014 11:42:22 +0100 From: Andrzej Hajda User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-version: 1.0 Newsgroups: gmane.comp.video.dri.devel,gmane.linux.kernel.samsung-soc,gmane.linux.ports.arm.kernel,gmane.linux.kernel To: Krzysztof Kozlowski , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park Cc: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [BUG] blocked task after exynos_drm_init References: <1415264811.27478.4.camel@AMDC1943> In-reply-to: <1415264811.27478.4.camel@AMDC1943> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLLMWRmVeSWpSXmKPExsVy+t/xK7oTlLJDDB7vNbO48vU9m8Wk+xNY LF7cu8hi8fqFocXZpjfsFpseX2O1uLxrDpvFjPP7mCxmTH7J5sDpcb/7OJPH5iX1Hn1bVjF6 fN4kF8ASxWWTkpqTWZZapG+XwJVxeNp1xoLzkhW7N29jb2BsFuti5OSQEDCRuNr4kw3CFpO4 cG89kM3FISSwlFFiz+1zLBDOJ0aJa4s7wKp4BbQk7vxZwQJiswioSsza948ZxGYT0JT4u/km WI2oQITElTVzGCHqBSV+TL4HVs8nUC7R8e4Y2AYRgauMEmvurGcFcZgFehglFk2/xQRSJSxg KnFh0UqwbiEBfYneDW1gUzkFDCSuHVkG1MAB1KAuMWVKLkiYWUBeYvOat8wTGAVnIdk3C6Fq FpKqBYzMqxhFU0uTC4qT0nMN9YoTc4tL89L1kvNzNzFCouDLDsbFx6wOMQpwMCrx8DZszAoR Yk0sK67MPcQowcGsJMJ7rhsoxJuSWFmVWpQfX1Sak1p8iJGJg1OqgTFStGqWrL2D39//AcsS P0+5FOU3JXURz8v+M7M3rPfOZkw3VH0gNGey75/H8vU6Lru6T7dKpTV1Ptvx7L7blYeb37J+ dvhauuZPc1ncsrfvNrzeXXrlh2ql5XFNief/HTmY2tr3Sa98+Ub5MtPllJdBMcsDreR0FNX2 mNksdDu64Lj1bP9dfFOVWIozEg21mIuKEwGWBPqFYAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/06/2014 10:06 AM, Krzysztof Kozlowski wrote: > Hi, > > On last next (next-20141104, next-20141105) booting locks after > initializing Exynos DRM (Trats2 board): > > [ 2.028283] [drm] Initialized drm 1.1.0 20060810 > [ 240.505795] INFO: task swapper/0:1 blocked for more than 120 seconds. > [ 240.510825] Not tainted 3.18.0-rc3-next-20141105 #794 > [ 240.516418] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > [ 240.524173] swapper/0 D c052534c 0 1 0 0x00000000 > [ 240.530527] [] (__schedule) from [] (schedule_preempt_disabled+0x14/0x20) > [ 240.539030] [] (schedule_preempt_disabled) from [] (mutex_lock_nested+0x1c4/0x464) > [ 240.548320] [] (mutex_lock_nested) from [] (__driver_attach+0x48/0x98) > [ 240.556562] [] (__driver_attach) from [] (bus_for_each_dev+0x54/0x88) > [ 240.564717] [] (bus_for_each_dev) from [] (bus_add_driver+0xe4/0x200) > [ 240.572876] [] (bus_add_driver) from [] (driver_register+0x78/0xf4) > [ 240.580864] [] (driver_register) from [] (exynos_drm_platform_probe+0x34/0x234) > [ 240.589890] [] (exynos_drm_platform_probe) from [] (platform_drv_probe+0x48/0xa4) > [ 240.599090] [] (platform_drv_probe) from [] (driver_probe_device+0x13c/0x37c) > [ 240.607940] [] (driver_probe_device) from [] (__driver_attach+0x94/0x98) > [ 240.616360] [] (__driver_attach) from [] (bus_for_each_dev+0x54/0x88) > [ 240.624517] [] (bus_for_each_dev) from [] (bus_add_driver+0xe4/0x200) > [ 240.632679] [] (bus_add_driver) from [] (driver_register+0x78/0xf4) > [ 240.640667] [] (driver_register) from [] (exynos_drm_init+0x70/0xa0) > [ 240.648739] [] (exynos_drm_init) from [] (do_one_initcall+0xac/0x1f0) > [ 240.656914] [] (do_one_initcall) from [] (kernel_init_freeable+0x10c/0x1d8) > [ 240.665591] [] (kernel_init_freeable) from [] (kernel_init+0x8/0xec) > [ 240.673661] [] (kernel_init) from [] (ret_from_fork+0x14/0x2c) > [ 240.681196] 3 locks held by swapper/0/1: > [ 240.685091] #0: (&dev->mutex){......}, at: [] __driver_attach+0x48/0x98 > [ 240.692732] #1: (&dev->mutex){......}, at: [] __driver_attach+0x58/0x98 > [ 240.700367] #2: (&dev->mutex){......}, at: [] __driver_attach+0x48/0x98 This is caused by patch moving platform devices to /sys/devices/platform[1]. Since this patch registering platform drivers/devices in probe of platform device causes deadlocks. I guess now all driver registration should be moved to exynos_drm_init and it seems better location for it IMHO. Regards Andrzej [1]: http://www.spinics.net/lists/devicetree/msg56101.html > > Full dmesg and config attached. > > Best regards, > Krzysztof > > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/