From patchwork Sun Dec 13 02:36:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 7838421 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A7ED7BEEE1 for ; Sun, 13 Dec 2015 02:39:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 66ABA20395 for ; Sun, 13 Dec 2015 02:39:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 344AF20384 for ; Sun, 13 Dec 2015 02:39:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a7wXX-0008Hi-AG; Sun, 13 Dec 2015 02:37:35 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a7wXS-0008Fr-Ed for linux-arm-kernel@lists.infradead.org; Sun, 13 Dec 2015 02:37:31 +0000 Received: by mail-wm0-x234.google.com with SMTP id p66so19907537wmp.1 for ; Sat, 12 Dec 2015 18:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=bU3KhN0h+kVmzqBfByWKx5+Q7pgNGyKSMBfguFnwuQ8=; b=WXZi4Xz5rm++uDFSLXyiaHgIRRs8YGC/1IfslsRPisu7OMtnc/JFyI2PwXaaWdmL0b ZYKClGg0L+52ugaTmNLS3+FX1nMez34vAJTT83lmgnIbAxDRKL8lDtR0WjO7AXP5SlnK qRay9AHoyZNWz9F4oIpzEQA2aQZetuDwsd15ERzOmKtys5NqCO22WPna2chdTTqWq8C9 TTFx04K5yIItODYTnzFbcCZ26qAxewgGprhdPyRMeEc2VwWk3vVhBh9NnY4mANwofYod MU+Node4KdOqaVG/dscfeApywIuo3SMKFsN1MLGPmOodYfYruweT0giAYmbTKICiGpjH kYHg== X-Received: by 10.194.249.97 with SMTP id yt1mr30702602wjc.89.1449974227447; Sat, 12 Dec 2015 18:37:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.211.208 with HTTP; Sat, 12 Dec 2015 18:36:48 -0800 (PST) In-Reply-To: References: From: Anand Moon Date: Sun, 13 Dec 2015 08:06:48 +0530 Message-ID: Subject: Re: Odroid U3 mutex deadlock. To: Thomas Pietrowski X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151212_183730_811655_6DD31CD7 X-CRM114-Status: GOOD ( 20.48 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski , "linux-samsung-soc@vger.kernel.org" , Linux Kernel , Javier Martinez Canillas , Kukjin Kim , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Thomas, On 12 December 2015 at 16:58, Thomas Pietrowski wrote: > I'm also using 4.4.0-rc4 here on my U3+. And so far it is working well. I > just had a freeze yesterday, but I didn't had the UART connected, so > couldn't catch the reason. The curious thing was that the heartbeat LED was > still blinking, but USB keyboard and Ethernet/SSH (but LEDs still on) were > not working. > > Could you upload your .config? Maybe it could be useful for others :) > > Regards > > Am 12.12.2015 05:33 schrieb "Anand Moon" : >> >> Hi Krzysztof, >> >> I am just observing this deadlock om my Odroid U3. >> >> ------------------------------------------------------------------------------------------------------------------ >> >> [ 2.937531] ============================================= >> [ 2.938733] [ INFO: possible recursive locking detected ] >> [ 2.944117] 4.4.0-rc4-xu3s #32 Not tainted >> [ 2.948195] --------------------------------------------- >> [ 2.953577] swapper/0/1 is trying to acquire lock: >> [ 2.958351] (&genpd->lock){+.+...}, at: [] >> __genpd_poweron+0x64/0x108 >> [ 2.965727] >> [ 2.965727] but task is already holding lock: >> [ 2.971543] (&genpd->lock){+.+...}, at: [] >> genpd_dev_pm_attach+0x168/0x1b8 >> [ 2.979355] >> [ 2.979355] other info that might help us debug this: >> [ 2.985865] Possible unsafe locking scenario: >> [ 2.985865] >> [ 2.991768] CPU0 >> [ 2.994198] ---- >> [ 2.996628] lock(&genpd->lock); >> [ 2.999926] lock(&genpd->lock); >> [ 3.003225] >> [ 3.003225] *** DEADLOCK *** >> [ 3.003225] >> [ 3.009128] May be due to missing lock nesting notation >> [ 3.009128] >> [ 3.015900] 3 locks held by swapper/0/1: >> [ 3.019804] #0: (&dev->mutex){......}, at: [] >> __driver_attach+0x48/0x98 >> [ 3.027442] #1: (&dev->mutex){......}, at: [] >> __driver_attach+0x58/0x98 >> [ 3.035081] #2: (&genpd->lock){+.+...}, at: [] >> genpd_dev_pm_attach+0x168/0x1b8 >> [ 3.043326] >> [ 3.043326] stack backtrace: >> [ 3.047671] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.0-rc4-xu3s >> #32 >> [ 3.054351] Hardware name: SAMSUNG EXYNOS (Flattened Device Tree) >> [ 3.060444] [] (unwind_backtrace) from [] >> (show_stack+0x10/0x14) >> [ 3.068163] [] (show_stack) from [] >> (dump_stack+0x84/0xc4) >> [ 3.075367] [] (dump_stack) from [] >> (__lock_acquire+0x1f88/0x215c) >> [ 3.083262] [] (__lock_acquire) from [] >> (lock_acquire+0xa4/0xd0) >> [ 3.090990] [] (lock_acquire) from [] >> (mutex_lock_nested+0x70/0x4d4) >> [ 3.099061] [] (mutex_lock_nested) from [] >> (__genpd_poweron+0x64/0x108) >> [ 3.107393] [] (__genpd_poweron) from [] >> (genpd_dev_pm_attach+0x170/0x1b8) >> [ 3.115986] [] (genpd_dev_pm_attach) from [] >> (platform_drv_probe+0x2c/0xac) >> [ 3.124667] [] (platform_drv_probe) from [] >> (driver_probe_device+0x208/0x2fc) >> [ 3.133519] [] (driver_probe_device) from [] >> (__driver_attach+0x94/0x98) >> [ 3.141939] [] (__driver_attach) from [] >> (bus_for_each_dev+0x68/0x9c) >> [ 3.150097] [] (bus_for_each_dev) from [] >> (bus_add_driver+0x1a0/0x218) >> [ 3.158344] [] (bus_add_driver) from [] >> (driver_register+0x78/0xf8) >> [ 3.166330] [] (driver_register) from [] >> (exynos_drm_register_drivers+0x28/0x74) >> [ 3.175441] [] (exynos_drm_register_drivers) from >> [] (exynos_drm_init+0x6c/0xc4) >> [ 3.184556] [] (exynos_drm_init) from [] >> (do_one_initcall+0x90/0x1dc) >> [ 3.192718] [] (do_one_initcall) from [] >> (kernel_init_freeable+0x158/0x1f8) >> [ 3.201396] [] (kernel_init_freeable) from [] >> (kernel_init+0x8/0xe8) >> [ 3.209469] [] (kernel_init) from [] >> (ret_from_fork+0x14/0x24) >> [ 3.217932] exynos-hdmi 12d00000.hdmi: GPIO lookup for consumer hpd >> [ 3.223293] exynos-hdmi 12d00000.hdmi: using device tree for GPIO >> lookup >> [ 3.229980] of_get_named_gpiod_flags: can't parse 'hpd-gpios' >> property of node '/hdmi@12D00000[0]' >> [ 3.238945] of_get_named_gpiod_flags: parsed 'hpd-gpio' property of >> node '/hdmi@12D00000[0]' - status (0) >> [ 3.253430] exynos-drm exynos-drm: bound 12c10000.mixer (ops >> mixer_component_ops) >> [ 3.256216] exynos-drm exynos-drm: bound 12d00000.hdmi (ops >> hdmi_component_ops) >> [ 3.263245] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). >> [ 3.269812] [drm] No driver support for vblank timestamp query. >> [ 3.323251] exynos-drm exynos-drm: fb0: frame buffer device >> [ 3.341464] [drm] Initialized exynos 1.0.0 20110530 on minor 0 >> >> >> ----------------------------------------------------------------------------------------------------------------------- >> -Anand Moon I just using exynos_defconfig + kernel hacking flags. -Anand Moon >> -- >> To unsubscribe from this list: send the line "unsubscribe >> linux-samsung-soc" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index e0841a5..402a37f 100644 --- a/arch/arm/configs/exynos_defconfig +++ b/arch/arm/configs/exynos_defconfig @@ -1,3 +1,4 @@ +# CONFIG_LOCALVERSION_AUTO is not set CONFIG_SYSVIPC=y CONFIG_FHANDLE=y CONFIG_NO_HZ=y @@ -100,10 +101,8 @@ CONFIG_SENSORS_LM90=y CONFIG_SENSORS_NTC_THERMISTOR=y CONFIG_SENSORS_PWM_FAN=y CONFIG_SENSORS_INA2XX=y -CONFIG_THERMAL=y CONFIG_CPU_THERMAL=y CONFIG_THERMAL_EMULATION=y -CONFIG_EXYNOS_THERMAL=y CONFIG_WATCHDOG=y CONFIG_S3C2410_WATCHDOG=y CONFIG_MFD_CROS_EC=y @@ -132,8 +131,6 @@ CONFIG_MEDIA_CAMERA_SUPPORT=y CONFIG_MEDIA_USB_SUPPORT=y CONFIG_USB_VIDEO_CLASS=m CONFIG_DRM=y -CONFIG_DRM_NXP_PTN3460=y -CONFIG_DRM_PARADE_PS8622=y CONFIG_DRM_EXYNOS=y CONFIG_DRM_EXYNOS_FIMD=y CONFIG_DRM_EXYNOS_DSI=y @@ -141,6 +138,8 @@ CONFIG_DRM_EXYNOS_MIXER=y CONFIG_DRM_EXYNOS_HDMI=y CONFIG_DRM_PANEL_SIMPLE=y CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0=y +CONFIG_DRM_NXP_PTN3460=y +CONFIG_DRM_PARADE_PS8622=y CONFIG_EXYNOS_VIDEO=y CONFIG_EXYNOS_MIPI_DSI=y CONFIG_LCD_CLASS_DEVICE=y @@ -219,10 +218,36 @@ CONFIG_DEBUG_INFO=y CONFIG_DEBUG_FS=y CONFIG_MAGIC_SYSRQ=y CONFIG_DEBUG_KERNEL=y +CONFIG_DEBUG_PAGEALLOC=y +CONFIG_DEBUG_OBJECTS=y +CONFIG_DEBUG_OBJECTS_SELFTEST=y +CONFIG_DEBUG_OBJECTS_FREE=y +CONFIG_DEBUG_OBJECTS_TIMERS=y +CONFIG_DEBUG_OBJECTS_WORK=y +CONFIG_DEBUG_OBJECTS_RCU_HEAD=y +CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y +CONFIG_DEBUG_SHIRQ=y CONFIG_LOCKUP_DETECTOR=y +CONFIG_SCHEDSTATS=y +CONFIG_SCHED_STACK_END_CHECK=y +CONFIG_TIMER_STATS=y CONFIG_DEBUG_RT_MUTEXES=y -CONFIG_DEBUG_SPINLOCK=y -CONFIG_DEBUG_MUTEXES=y +CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y +CONFIG_PROVE_LOCKING=y +CONFIG_LOCK_STAT=y +CONFIG_DEBUG_LOCKDEP=y +CONFIG_DEBUG_ATOMIC_SLEEP=y +CONFIG_DEBUG_LOCKING_API_SELFTESTS=y +CONFIG_LOCK_TORTURE_TEST=m +CONFIG_DEBUG_PI_LIST=y +CONFIG_DEBUG_SG=y +CONFIG_DEBUG_NOTIFIERS=y +CONFIG_DEBUG_CREDENTIALS=y +CONFIG_PROVE_RCU_REPEATEDLY=y +CONFIG_SPARSE_RCU_POINTER=y +CONFIG_RCU_TORTURE_TEST=m +CONFIG_RCU_TORTURE_TEST_SLOW_PREINIT=y +CONFIG_RCU_TRACE=y CONFIG_DEBUG_USER=y CONFIG_CRYPTO_SHA256=y CONFIG_CRC_CCITT=y