Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2565323pxp; Tue, 22 Mar 2022 00:50:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+8ofJV5EQglP6VRwQ+tWA/AIPcTKVyWyHJjbBfoRPY7XmUN3ekKJDBe9KbIQARWnOcBTt X-Received: by 2002:a17:90a:5913:b0:1c7:2b71:65d8 with SMTP id k19-20020a17090a591300b001c72b7165d8mr3444156pji.87.1647935418938; Tue, 22 Mar 2022 00:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647935418; cv=none; d=google.com; s=arc-20160816; b=iwp0JxcV9K+o/VhzpLEubzW94A1ksaLD7EWuo7GE3INrzc/u4K+13z3uUWqi3V1uAm AtabrPW9gUPJNMnrzG0a+bXyZgc7PznsWFRYrdvVuk+xgjTQ8Btl1H/T16OLM0MXC8AS L1ft6BOVAwQmWn/bHh57d44QTFTZlP6KA5cLXePWlVBQz7M5MS74DvYgBFddAqeNvVLr ns8zTbE87oWB7sTEm45epVNBx0CyaJj+FmEP4VVsXfGdiPH8VVegkYQhEsiZk+b96TRT 9uRuiluQWA39Qbb6rpEb/Brteyiil+fdhYtz/K1rE+Ba3b6gvsIfMdrjVPMbNlCd0Vwg rNgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=Mb+xIEW59K1ZB7JeQIqggKVm6yQ70+u2EGq5PySJ9L0=; b=HcuAUQOrVGKm02t73oUcnSoGINT17hRXEtDQlmYnq8rm7b/cAHoxi+HS/wONizjvru ZOlVzhawSzxSRVBqUdihtCqAMV26MOR/qnAtpjbvXFozyPgdX6C9zy0Ejw+jdQTqB6Ov y8BGsjqgGcgCwMsXOSTkmFhBGutPF5o4jAQHjo5de1m/Ecm/qmuF8rMJtdH0rR2KEM+I DNyjtb+zaohvjuydZ4bF/FBCBzuKHhfnf0lmWRnV0B/3nm2EO6DVHnPW1yepoFwV/KkE TDLZLb9W2UjouCNLF/fqvBhQbamb6RB2qjlv053iMlLYHGgeW56+N4UVkCxl8sMGjF0I hjog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zXlZqTgq; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id cl4-20020a056a0032c400b004fa3a8dfffbsi4643864pfb.178.2022.03.22.00.50.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Mar 2022 00:50:18 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zXlZqTgq; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 31A38496AA; Tue, 22 Mar 2022 00:44:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbiCVHpM (ORCPT + 99 others); Tue, 22 Mar 2022 03:45:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231325AbiCVHob (ORCPT ); Tue, 22 Mar 2022 03:44:31 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D5F66E7AD for ; Tue, 22 Mar 2022 00:37:24 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id z8so32154264ybh.7 for ; Tue, 22 Mar 2022 00:37:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=Mb+xIEW59K1ZB7JeQIqggKVm6yQ70+u2EGq5PySJ9L0=; b=zXlZqTgqZoDxNOA0MJjXq4WWfpvRgUImx6SnOY8s6b9gF4bb1S2E5uuxbw7/TJ2u3M pcDxMyhlO4n8gUfJfzZecrWiJQDoSlFXQzxiteXgVjAxGXT3tQNAPuGX4beq3lymspW/ VMlqR2s+arUpSskLZjspfndI8csXkNkkEr0NZ2mDFVJslYftWcMLGZbNrF6AUdfasNQY 8o419MNY++AHlgjr00dD+ildrgPnnxCS2VVHuDFaqp2EkSAMM+rA3A8zqOe1S+JkLnQR JxpwAKetqFDwDrddy+OTZCSiZIsoW0wlQIIgTQUPn6HS5iFpAW6OcuKZM+uYgn42EMEV B61Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Mb+xIEW59K1ZB7JeQIqggKVm6yQ70+u2EGq5PySJ9L0=; b=oeIyK6hh9s7/YK1Fr8n6IzGas6jqW9GC+SuiGtSiXNJ9ucQNVuaQ/QetqbFP8MDsi1 N0KnxZLHzBeTz0WGPTKKzJML4QHVjsjO0Db7cF5WEDPoh81v21OL8pzlAo31dwRHiVtr awaU5tngPJtGjBbPTikqiHFkSv/Mzxu6QDKgjioYnjY9I7jGbhzN5aF5RZUTV7RF8Hix hhC4756CwUGiJmLZjtOvNM+/aboS/7Lh8xtjgv/IZyAs54qY/7xckuMYoWyRL3oGDJ2q HoyexeBLxB89fo26ROAPkFpgfPCnJhMKEPY33NQNb9O+WFFhEluhh9BuTiJEywZLdtkL utOQ== X-Gm-Message-State: AOAM532bmDpLrQTtjYyWdcyT+RoLdHz1JbKEiomop1MNI2w4xzHbwsgM XSW2G09yu6C5uwbK0K2E7nBCyrRXUELiWaLdsZFD46G1cdemgh9N X-Received: by 2002:a25:a0c5:0:b0:633:63da:5ead with SMTP id i5-20020a25a0c5000000b0063363da5eadmr26371770ybm.412.1647934642439; Tue, 22 Mar 2022 00:37:22 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Tue, 22 Mar 2022 13:07:11 +0530 Message-ID: Subject: WARNING: possible recursive locking detected - lock(&irq_desc_lock_class); To: open list , rcu , linux-remoteproc@vger.kernel.org, linux-arm-msm , Netdev , lkft-triage@lists.linaro.org Cc: Bjorn Andersson , "Paul E. McKenney" , Andy Gross , Vinod Koul , Nicolas Dechesne , Mathieu Poirier , Linus Torvalds Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While booting linux mainline kernel v5.17.0 on arm64 dragonboard 845c the following kernel deadlock warning was noticed. This build config is generated by kselftest-merge configs. [ 11.472323] qcom_q6v5_pas remoteproc-adsp: supply cx not found, using dummy regulator [ 11.482690] qcom_q6v5_pas remoteproc-adsp: supply px not found, using dummy regulator [ 11.643728] qcom,slim-ngd-ctrl 171c0000.slim: Adding to iommu group 1 [ 11.647956] NET: Registered PF_QIPCRTR protocol family [ 11.655652] failed to send lookup registration: -19 [ 11.679730] remoteproc remoteproc0: remoteproc-adsp is available [ 11.688073] remoteproc remoteproc0: Direct firmware load for qcom/sdm845/adsp.mbn failed with error -2 [ 11.698131] remoteproc remoteproc0: powering up remoteproc-adsp [ 11.704730] remoteproc remoteproc0: Direct firmware load for qcom/sdm845/adsp.mbn failed with error -2 [ 11.714571] remoteproc remoteproc0: request_firmware failed: -2 [ 11.753156] cpu cpu0: EM: created perf domain [ 11.773034] [ 11.774570] ============================================ [ 11.779933] WARNING: possible recursive locking detected [ 11.785303] 5.17.0 #1 Not tainted [ 11.788662] -------------------------------------------- [ 11.794029] kworker/u16:2/80 is trying to acquire lock: [ 11.798293] qcom_q6v5_pas remoteproc-cdsp: supply cx not found, using dummy regulator [ 11.799312] ffff7e0cc11b28f8 (&irq_desc_lock_class){-.-.}-{2:2}, at: __irq_get_desc_lock+0x64/0xa4 [ 11.816285] [ 11.816285] but task is already holding lock: [ 11.822173] ffff7e0cc0fd38f8 (&irq_desc_lock_class){-.-.}-{2:2}, at: __irq_get_desc_lock+0x64/0xa4 [ 11.823425] qcom_q6v5_pas remoteproc-cdsp: supply px not found, using dummy regulator [ 11.831231] [ 11.831231] other info that might help us debug this: [ 11.831234] Possible unsafe locking scenario: [ 11.831234] [ 11.831236] CPU0 [ 11.831238] ---- [ 11.831240] lock(&irq_desc_lock_class); [ 11.831245] lock(&irq_desc_lock_class); [ 11.831251] [ 11.831251] *** DEADLOCK *** [ 11.831251] [ 11.831253] May be due to missing lock nesting notation [ 11.831253] [ 11.831255] 6 locks held by kworker/u16:2/80: [ 11.831259] #0: ffff7e0cc0018d38 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x1e8/0x6f4 [ 11.862787] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 11.864788] #1: ffff800008673dd0 (deferred_probe_work){+.+.}-{0:0}, at: process_one_work+0x1e8/0x6f4 [ 11.864808] #2: ffff7e0cc12bf188 (&dev->mutex [ 11.882336] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 11.892239] ){....}-{3:3}, at: __device_attach+0x44/0x1c0 [ 11.892255] #3: ffffb99e189d0870 (cpu_hotplug_lock){++++}-{0:0}, at: cpus_read_lock+0x1c/0x30 [ 11.892276] #4: [ 11.900398] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 11.909407] ffff7e0cc0f98918 (subsys mutex#8){+.+.}-{3:3}, at: subsys_interface_register+0x64/0x150 [ 11.909429] #5: ffff7e0cc0fd38f8 (&irq_desc_lock_class){-.-.}-{2:2}, at: __irq_get_desc_lock+0x64/0xa4 [ 11.913956] cfg80211: failed to load regulatory.db [ 11.920518] [ 11.920518] stack backtrace: [ 11.920523] CPU: 4 PID: 80 Comm: kworker/u16:2 Not tainted 5.17.0 #1 [ 11.920530] Hardware name: Thundercomm Dragonboard 845c (DT) [ 11.920535] Workqueue: events_unbound deferred_probe_work_func [ 11.957146] remoteproc remoteproc1: remoteproc-cdsp is available [ 11.963917] [ 11.963921] Call trace: [ 11.963924] dump_backtrace+0xf8/0x130 [ 11.963933] show_stack+0x24/0x80 [ 11.963937] dump_stack_lvl+0x8c/0xb8 [ 11.963948] dump_stack+0x18/0x34 [ 11.985142] remoteproc remoteproc1: Direct firmware load for qcom/sdm845/cdsp.mbn failed with error -2 [ 11.985323] __lock_acquire+0xbc8/0x20cc [ 11.991270] remoteproc remoteproc1: powering up remoteproc-cdsp [ 11.997292] lock_acquire.part.0+0xe0/0x230 [ 11.997301] lock_acquire+0x68/0x84 [ 11.997309] _raw_spin_lock_irqsave+0x88/0x150 [ 11.997317] __irq_get_desc_lock+0x64/0xa4 [ 11.997324] enable_irq+0x40/0xb0 [ 11.998891] remoteproc remoteproc1: Direct firmware load for qcom/sdm845/cdsp.mbn failed with error -2 [ 12.001316] lmh_enable_interrupt+0x38/0x44 [lmh] [ 12.001329] irq_enable+0x4c/0xa0 [ 12.001337] __irq_startup+0x80/0xb0 [ 12.005282] remoteproc remoteproc1: request_firmware failed: -2 [ 12.008487] irq_startup+0x84/0x174 [ 12.008495] __enable_irq+0x7c/0x90 [ 12.008501] enable_irq+0x54/0xb0 [ 12.008508] qcom_cpufreq_ready+0x2c/0x3c [ 12.096152] cpufreq_online+0x5a8/0xa60 [ 12.096160] cpufreq_add_dev+0xc8/0xe0 [ 12.096167] subsys_interface_register+0x138/0x150 [ 12.096176] cpufreq_register_driver+0x180/0x300 OK Started udev Coldplug all Devices.[ 12.113357] qcom_cpufreq_hw_driver_probe+0xe0/0x150 [ 12.123101] platform_probe+0x74/0xf0 [ 12.126994] really_probe+0x1c4/0x440 [ 12.130706] __driver_probe_device+0x11c/0x190 [ 12.135201] driver_probe_device+0x48/0x104 [ 12.139429] __device_attach_driver+0xa4/0x140 [ 12.143927] bus_for_each_drv+0x84/0xe0 [ 12.147810] __device_attach+0xe4/0x1c0 [ 12.151695] device_initial_probe+0x20/0x30 [ 12.155934] bus_probe_device+0xac/0xb4 [ 12.159817] deferred_probe_work_func+0xc8/0x120 [ 12.164486] process_one_work+0x280/0x6f4 [ 12.168540] worker_thread+0x80/0x450 [ 12.172256] kthread+0x10c/0x120 [ 12.172264] ret_from_fork+0x10/0x20 Reported-by: Linux Kernel Functional Testing metadata: git_ref: master git_repo: https://gitlab.com/Linaro/lkft/mirrors/torvalds/linux-mainline git_sha: f443e374ae131c168a065ea1748feac6b2e76613 git_describe: v5.17 kernel_version: 5.17.0 kernel-config: https://builds.tuxbuild.com/26fPPSbBmMfOqElIN3NGgvUWHeW/config -- Linaro LKFT https://lkft.linaro.org [1] https://lkft.validation.linaro.org/scheduler/job/4754457#L3342