From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <475C120F.9020107@domain.hid> Date: Sun, 09 Dec 2007 17:04:31 +0100 From: Jan Kiszka MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: jan.kiszka@domain.hid Subject: Re: [Xenomai-core] BUG while modprobing nucleus - no SMI workaround List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Giammarco Zacheo Cc: xenomai@xenomai.org Giammarco Zacheo wrote: > Just installed kernel 2.6.23.9 with Xenomai 2.4-rc7 on my quad-core > machine, and I got this on the console: > > BUG: using smp_processor_id() in preemptible [00000001] code: modprobe/4776 > caller is flat_send_IPI_allbutself+0x17/0x32 > > Call Trace: > [] debug_smp_processor_id+0xde/0xec > [] flat_send_IPI_allbutself+0x17/0x32 > [] ipipe_critical_enter+0x84/0xaf > [] ipipe_register_domain+0x65/0x225 > [] rthal_init+0x164/0x1fd > [] rthal_domain_entry+0x0/0x3d > [] :xeno_nucleus:__xeno_sys_init+0x3e/0x1d4 > [] sys_init_module+0x1565/0x16c5 > [] system_call+0x92/0x97 Looks like a harmless false positive. Does this patch help? Index: linux-2.6.23.8-xeno_64/lib/smp_processor_id.c =================================================================== --- linux-2.6.23.8-xeno_64.orig/lib/smp_processor_id.c +++ linux-2.6.23.8-xeno_64/lib/smp_processor_id.c @@ -19,7 +19,7 @@ unsigned int debug_smp_processor_id(void if (likely(preempt_count)) goto out; - if (irqs_disabled()) + if (irqs_disabled() || irqs_disabled_hw()) goto out; /* Jan