From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62B64C433EF for ; Wed, 2 Feb 2022 17:46:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=keWyTwAA1Qxp5SElOmYtdFw+27Ph73xHEOIdDvOvTL4=; b=QDX 04QjAFJnXIWbzgl+svedMp8WVzhYyd+i4TOdv3yzECLMKpbJIX99t5pe8JtPeHZqdfobK3NaGD/Tq xPTWvFEnBbbCyfcUYvdlkdjIpIUx7gfPjHAWYYj7i3DS3dGZmIylKhtAKkPidrxjvDHt5X2FFlXZr mLqrtVNl9qD6Yd2DNiK5bVWiDrji9QsHI1Bx44k2nysP0BxxTdmTJFoBz6Yiev1lg1glyA5WjRYVg xNWQeDropJCVKm85Uyg9xoyLtNTr7tin6t2w3Mx1RjzAKojPr69JjLP1xrwRxD7/f6yFvaDTB1C9L 4dXUOO9le3p4BmzFZylHZqSi65I6m3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFJgW-00GQAi-MR; Wed, 02 Feb 2022 17:44:48 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFJgS-00GQ9r-On for linux-arm-kernel@lists.infradead.org; Wed, 02 Feb 2022 17:44:46 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFJgM-00086x-Ej; Wed, 02 Feb 2022 18:44:38 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nFJgI-00E6aQ-Da; Wed, 02 Feb 2022 18:44:33 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nFJgG-004QnY-Uh; Wed, 02 Feb 2022 18:44:32 +0100 Date: Wed, 2 Feb 2022 18:44:30 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Linus Walleij Cc: Maxime Coquelin , Alexandre Torgue , linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de Subject: lockdep splat on stm32, v5.8 .. v5.17-rc1 Message-ID: <20220202174430.pf37tt6lua2op3gc@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_094444_839059_DF22FDED X-CRM114-Status: GOOD ( 12.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============2580998323047756104==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============2580998323047756104== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wmcymrao4pefg3bd" Content-Disposition: inline --wmcymrao4pefg3bd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, on an stm32mp1 machine (dk2) I hit the following lockdep splat: [ 1.819383] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D [ 1.823384] [ BUG: Invalid wait context ] [ 1.827393] 5.17.0-rc1 #10 Not tainted [ 1.831138] ----------------------------- [ 1.835144] swapper/0/1 is trying to lock: [ 1.839239] c22e9410 (syscon:110:(&syscon_config)->lock){....}-{3:3}, at= : regmap_lock_spinlock+0x14/0x1c [ 1.848733] other info that might help us debug this: [ 1.853785] context-{5:5} [ 1.856399] 4 locks held by swapper/0/1: [ 1.860318] #0: c22e78d8 (&dev->mutex){....}-{4:4}, at: __driver_attach= +0xec/0x1dc [ 1.867984] #1: c25de4e8 (&dev->mutex){....}-{4:4}, at: __device_attach= +0x34/0x1d8 [ 1.875650] #2: c25e993c (&desc->request_mutex){+.+.}-{4:4}, at: __setu= p_irq+0xac/0x8a8 [ 1.883751] #3: c25e987c (&irq_desc_lock_class){-...}-{2:2}, at: __setu= p_irq+0xd4/0x8a8 [ 1.891850] stack backtrace: [ 1.894727] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.17.0-rc1 #10 [ 1.901084] Hardware name: STM32 (Device Tree Support) [ 1.906232] unwind_backtrace from show_stack+0x18/0x1c [ 1.911452] show_stack from dump_stack_lvl+0x58/0x70 [ 1.916506] dump_stack_lvl from __lock_acquire+0x9d0/0x31b8 [ 1.922167] __lock_acquire from lock_acquire+0x14c/0x430 [ 1.927569] lock_acquire from _raw_spin_lock_irqsave+0x4c/0x68 [ 1.933493] _raw_spin_lock_irqsave from regmap_lock_spinlock+0x14/0x1c [ 1.940115] regmap_lock_spinlock from regmap_field_update_bits_base+0x4= 0/0x84 [ 1.947346] regmap_field_update_bits_base from stm32_gpio_domain_activa= te+0x6c/0xa8 [ 1.955099] stm32_gpio_domain_activate from __irq_domain_activate_irq+0= x5c/0x84 [ 1.962504] __irq_domain_activate_irq from irq_domain_activate_irq+0x34= /0x48 [ 1.969647] irq_domain_activate_irq from __setup_irq+0x2d0/0x8a8 [ 1.975746] __setup_irq from request_threaded_irq+0xec/0x164 [ 1.981495] request_threaded_irq from regmap_add_irq_chip_fwnode+0x78c/= 0xa80 [ 1.988639] regmap_add_irq_chip_fwnode from devm_regmap_add_irq_chip_fw= node+0x88/0xe0 [ 1.996567] devm_regmap_add_irq_chip_fwnode from devm_regmap_add_irq_ch= ip+0x58/0x60 [ 2.004320] devm_regmap_add_irq_chip from stpmic1_probe+0xf0/0x164 [ 2.010591] stpmic1_probe from i2c_device_probe+0x318/0x348 [ 2.016254] i2c_device_probe from really_probe+0x1ac/0x470 [ 2.021829] really_probe from __driver_probe_device+0xa8/0x210 [ 2.027751] __driver_probe_device from driver_probe_device+0x3c/0xcc [ 2.034197] driver_probe_device from __device_attach_driver+0xac/0x124 [ 2.040818] __device_attach_driver from bus_for_each_drv+0x84/0xc8 [ 2.047092] bus_for_each_drv from __device_attach+0xd0/0x1d8 [ 2.052841] __device_attach from bus_probe_device+0x90/0x98 [ 2.058503] bus_probe_device from device_add+0x3c0/0x924 [ 2.063905] device_add from i2c_new_client_device+0x198/0x2cc [ 2.069741] i2c_new_client_device from of_i2c_register_device+0x7c/0xc0 [ 2.076449] of_i2c_register_device from of_i2c_register_devices+0x8c/0x= 100 [ 2.083418] of_i2c_register_devices from i2c_register_adapter+0x234/0x7= 2c [ 2.090299] i2c_register_adapter from stm32f7_i2c_probe+0xa24/0xef0 [ 2.096659] stm32f7_i2c_probe from platform_probe+0x64/0xc4 [ 2.102321] platform_probe from really_probe+0x1ac/0x470 [ 2.107721] really_probe from __driver_probe_device+0xa8/0x210 [ 2.113644] __driver_probe_device from driver_probe_device+0x3c/0xcc [ 2.120090] driver_probe_device from __driver_attach+0xf8/0x1dc [ 2.126100] __driver_attach from bus_for_each_dev+0x78/0xb8 [ 2.131763] bus_for_each_dev from bus_add_driver+0x178/0x214 [ 2.137512] bus_add_driver from driver_register+0x90/0x120 [ 2.143087] driver_register from do_one_initcall+0x6c/0x394 [ 2.148751] do_one_initcall from kernel_init_freeable+0x2b4/0x318 [ 2.154936] kernel_init_freeable from kernel_init+0x1c/0x138 [ 2.160686] kernel_init from ret_from_fork+0x14/0x2c [ 2.165737] Exception stack(0xc20e3fb0 to 0xc20e3ff8) [ 2.170795] 3fa0: 00000000 00000000 = 00000000 00000000 [ 2.178985] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 = 00000000 00000000 [ 2.187173] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 I tried to bisect that and found a similar splat on v5.16, v5.12 and v5.8, so I dropped the bisect plan. On another ARM machine (i.MX6) a coworker found a similar problem involving GPIOs, so I wonder if there is something broken in general? I wonder however this didn't pop up earlier?! I didn't try to understand that yet, just want to let you know; at least for now. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --wmcymrao4pefg3bd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmH6wvoACgkQwfwUeK3K 7AngJwf/ewaYIP2jcc7n931a+ElSw/7yEtfF+401M0aS0bPzncUzMtDkQ8frAAbu 27j/I0LTcxPrmBsxqBvtuevuBxR3zdid7YlFZF2ZG9kiqrQmKh3AGkwOangRIkcR pdajdCwEsZawSNYx0MCYll+E4lvV3vwmaQme9lhvCMVypi1JLaT5U3pK0GpvP69p bAmn0qGNm4R4CAKId72L8uxEoaxS+4BOqzrN7l18avieaaS4SchnoKjqGxxt8FEV LlS7wZz+D+MDYSwppyo4UkcvIMokF97CfZPhSNmWMNMmxx/RA9ie/isX+NNFJ4yG Mrqa6bh7k5CWWlka3VpJsrt1NG7clA== =0sig -----END PGP SIGNATURE----- --wmcymrao4pefg3bd-- --===============2580998323047756104== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============2580998323047756104==--