From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stanislav Meduna Subject: BUG: spinlock trylock failure on UP, i.MX28 3.12.15-rt25 Date: Mon, 14 Apr 2014 21:24:54 +0200 Message-ID: <534C3606.7010206@meduna.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: "linux-rt-users@vger.kernel.org" Return-path: Received: from www.meduna.org ([92.240.244.38]:33803 "EHLO meduna.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753788AbaDNTyg (ORCPT ); Mon, 14 Apr 2014 15:54:36 -0400 Received: from dial-95-105-163-217-orange.orange.sk ([95.105.163.217] helo=[127.0.0.1]) by meduna.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WZmUz-0006qA-5b for linux-rt-users@vger.kernel.org; Mon, 14 Apr 2014 21:24:59 +0200 Sender: linux-rt-users-owner@vger.kernel.org List-ID: Hi, hunting another problem with AUART acting weirdly I got BUG: spinlock trylock failure on UP on CPU#0, ksoftirqd/0/3 lock: boot_tvec_bases+0x0/0x10a0, .magic: dead4ead, .owner: ksoftirqd/0/3, .owner_cpu: 0 CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 3.12.15-rt25-00371-gfec62f5-dirty #26 [] (unwind_backtrace+0x0/0xf4) from [] (show_stack+0x10/0x14) [] (show_stack+0x10/0x14) from [] (do_raw_spin_trylock+0x4c/0x58) [] (do_raw_spin_trylock+0x4c/0x58) from [] (_raw_spin_trylock+0x20/0x98) [] (_raw_spin_trylock+0x20/0x98) from [] (rt_spin_trylock+0x14/0xd0) [] (rt_spin_trylock+0x14/0xd0) from [] (run_local_timers+0x24/0x78) [] (run_local_timers+0x24/0x78) from [] (update_process_times+0x34/0x68) [] (update_process_times+0x34/0x68) from [] (tick_sched_timer+0x58/0x22c) [] (tick_sched_timer+0x58/0x22c) from [] (__run_hrtimer+0x7c/0x2a8) [] (__run_hrtimer+0x7c/0x2a8) from [] (hrtimer_interrupt+0x104/0x30c) [] (hrtimer_interrupt+0x104/0x30c) from [] (mxs_timer_interrupt+0x20/0x2c) [] (mxs_timer_interrupt+0x20/0x2c) from [] (handle_irq_event_percpu+0x80/0x2f8) [] (handle_irq_event_percpu+0x80/0x2f8) from [] (handle_irq_event+0x3c/0x5c) [] (handle_irq_event+0x3c/0x5c) from [] (handle_level_irq+0x8c/0x118) [] (handle_level_irq+0x8c/0x118) from [] (generic_handle_irq+0x28/0x30) [] (generic_handle_irq+0x28/0x30) from [] (handle_IRQ+0x30/0x84) [] (handle_IRQ+0x30/0x84) from [] (__irq_svc+0x44/0x88) [] (__irq_svc+0x44/0x88) from [] (__try_to_take_rt_mutex+0x4/0x144) [] (__try_to_take_rt_mutex+0x4/0x144) from [<00000000>] ( (null)) Linux nxt 3.12.15-rt25-00371-gfec62f5-dirty #26 PREEMPT RT Mon Apr 14 20:40:56 CEST 2014 armv5tejl GNU/Linux This is on a Freescale i.MX28, 3.12.15-rt25 with patches that do not touch anything related. On a side note: is it possible that the newer ARM kernels have some requirements regarding the compiler (I am using gcc 4.4.5)? I don't understand what I am seeing in the AUART problem and it can be well something regarding the optimization. However, I had no problems running 3.4 built using the same compiler. Thanks -- Stano