From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33664198E9B; Fri, 23 May 2025 08:07:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747987662; cv=none; b=XPvNm88eSPsUYykimDHepzevD6vCj75z+EikxvDS7/qjsNhqmthFx+XQtYpCO7HfvnE5CE9oPDBcwVvEup1gA231cR8fvIDRaRZvY64RB2xPv9XSDdSLVC/lmGxJoLu+mBZ3OgJTN3DaWd9IYglvccZ90VlF2fMzwvDqvOuQpu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747987662; c=relaxed/simple; bh=DE5o0vGXg+hqOOQk4Hm/wWFCUDFnHrEGGTVjRHA9UW4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=X5GUKRC5/qSxj7bVxqJbe8fBveN8Yp+gZDgZyZJhk25MiyzVk7Gp3M7YQuwItHXG0loZr7gKByk4iBjEmVFF4xhZcaYusbyCoXsomIDSw7pn27HX6xpRihUVrb8y0JmHtODjxwOFbpUYGM/+fWZD2CE0vPo1A10216bGnMm9CLc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=ks9Uwfuo; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="ks9Uwfuo" Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 719BA1F96B; Fri, 23 May 2025 10:07:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1747987657; bh=KRX2tV0I4E69oy6vP6qOq5WU7oIum9yZL7yNHkbYpOQ=; h=From:To:Subject; b=ks9UwfuodmbKMAQu9i8FmCAfx9+lFecn0FmZRnlsyHQWPsnk+nlh2unax5n53Dd4A ls8tygk8ro76FNTQ+Sz9vCKAiP+YWhRjSFDP9Dvq2vd5iiw2fbmsY3TZwj3D79wOqp etWGlPr07FXY2Pn2/kLc8YlwCnYfGebWsZyfAw6zUSVoWCMY+nT+RdiehVKvrxjnU/ e7G/6xaWUvGOn35xJkVc2a48TUcxG1/k4j+IgrBFGQYw+tbJr6Akr61FtCWdvjoW4f Axie7cYZkJ9/7LAHYOlI2SYpztYAqzOPq6uYvOdrDpLXzOsyJpWYkqbdvprWwFhFZm mKCb5wb0I13Nw== Date: Fri, 23 May 2025 10:07:32 +0200 From: Francesco Dolcini To: Paul Menzel Cc: Francesco Dolcini , Vignesh Raghavendra , Amitkumar Karwar , Neeraj Kale , Nishanth Menon , Tero Kristo , Santosh Shilimkar , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-serial@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby Subject: Re: Kernel WARNING (RCU) with btnxpuart on TI AM62 platform Message-ID: <20250523080732.GA19643@francesco-nb> References: <20250408083512.GA26035@francesco-nb> <24b28bda-e294-4680-bed5-c44efcb6c455@ti.com> <20250410062006.GA7506@francesco-nb> <4286c852-c5c5-468b-a8f5-fc226e71d5e9@molgen.mpg.de> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4286c852-c5c5-468b-a8f5-fc226e71d5e9@molgen.mpg.de> On Mon, May 12, 2025 at 04:47:28PM +0200, Paul Menzel wrote: > Am 10.04.25 um 08:20 schrieb Francesco Dolcini: > > On Tue, Apr 08, 2025 at 09:15:26PM +0530, Vignesh Raghavendra wrote: > > > On 08/04/25 14:05, Francesco Dolcini wrote: > > > > I do have the following kernel warning with 6.15-rc1, on a TI AM62 > > > > platform (arm64), single CPU core, using btnxpuart driver, any idea? > > > > PREEMPT_RT is enabled, if it matters. > > > > > > > > Either the issue is not systematic, or multi cores SoCs are not affected > > > > (no error on the exact same image on a dual nor on quad core TI AM62). ... > Not that this gets forgotten. Vignesh, is your theory still valid with > PREEMPT_RT not set? > > Francesco, were you able to test older Linux kernels in the meantime? Yes. The same happens with 6.12.30 kernel. Not systematic. [ 19.908418] Voluntary context switch within RCU read-side critical section! [ 19.908453] WARNING: CPU: 0 PID: 371 at /kernel/rcu/tree_plugin.h:331 rcu_note_context_switch+0x3d0/0x428 [ 19.908510] Modules linked in: sd_mod uas onboard_usb_dev optee_rng rng_core btnxpuart dwc3 evdev spidev aes_ce_blk aes_ce_cipher ghash_ce gf128mul sha2_ce sha256_arm64 sha1_ce snd_soc_simple_card snd_soc_simple_card_utils display_connector optee gpio_keys spi_cadence_quadspi usb_conn_gpio tee roles k3_j72xx_bandgap mwifiex_sdio mwifiex cfg80211 rtc_ti_k3 dwc3_am62 bluetooth ecdh_generic ecc sa2ul rfkill sha512_generic authenc tidss snd_soc_davinci_mcasp crypto_null libaes snd_soc_ti_udma drm_display_helper snd_soc_ti_edma sha1_generic snd_soc_ti_sdma omap_hwspinlock ti_ads1015 lontium_lt8912b ina2xx industrialio_triggered_buffer kfifo_buf tps65219_pwrbutton tc358768 lm75 m_can_platform snd_soc_wm8904 pwm_tiehrpwm m_can can_dev spi_omap2_mcspi fuse ipv6 autofs4 [ 19.908761] CPU: 0 UID: 0 PID: 371 Comm: kworker/u5:2 Not tainted 6.12.30-7.3.0-devel #1 [ 19.908773] Hardware name: Toradex Verdin AM62 WB on Dahlia Board (DT) [ 19.908780] Workqueue: hci0 hci_power_off [bluetooth] [ 19.908917] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 19.908930] pc : rcu_note_context_switch+0x3d0/0x428 [ 19.908946] lr : rcu_note_context_switch+0x3d0/0x428 [ 19.908957] sp : ffff8000825dba60 [ 19.908961] x29: ffff8000825dba60 x28: 0000000000000000 x27: 0000000000000000 [ 19.908977] x26: ffff0000011e11c0 x25: ffff00000a5a9080 x24: 0000000000000000 [ 19.908988] x23: 0000000000000000 x22: ffff00000a5a9080 x21: ffff00001daa92c0 [ 19.908999] x20: ffff8000810220c0 x19: ffff00001daaa0c0 x18: fffffffffffe7a38 [ 19.909010] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000048 [ 19.909023] x14: fffffffffffe7a80 x13: 216e6f6974636573 x12: 206c616369746972 [ 19.909034] x11: 6320656469732d64 x10: 6165722055435220 x9 : 206e696874697720 [ 19.909045] x8 : 6863746977732074 x7 : ffff80008122c840 x6 : ffff8000825db820 [ 19.909056] x5 : ffff00001da9f888 x4 : 0000000000000000 x3 : 0000000000000027 [ 19.909071] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff00000a5a9080 [ 19.909084] Call trace: [ 19.909089] rcu_note_context_switch+0x3d0/0x428 [ 19.909107] __schedule+0x98/0x774 [ 19.909124] schedule+0x34/0x104 [ 19.909133] rpm_resume+0x17c/0x6b0 [ 19.909144] __pm_runtime_resume+0x48/0x88 [ 19.909158] serial8250_stop_rx+0x28/0x84 [ 19.909173] uart_tty_port_shutdown+0x3c/0x178 [ 19.909184] tty_port_shutdown+0x84/0xdc [ 19.909201] tty_port_close+0x3c/0xac [ 19.909211] uart_close+0x34/0x98 [ 19.909219] ttyport_close+0x50/0x94 [ 19.909230] serdev_device_close+0x40/0x50 [ 19.909243] btnxpuart_close+0x1c/0x9c [btnxpuart] [ 19.909258] hci_dev_close_sync+0x314/0x7d8 [bluetooth] [ 19.909325] hci_dev_do_close+0x2c/0x70 [bluetooth] [ 19.909388] hci_power_off+0x20/0x64 [bluetooth] [ 19.909454] process_one_work+0x148/0x28c [ 19.909477] worker_thread+0x2d4/0x3d8 [ 19.909488] kthread+0x110/0x114 [ 19.909499] ret_from_fork+0x10/0x20 [ 19.909518] ---[ end trace 0000000000000000 ]--- Francesco