All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: "M. Koehrer" <mathias_koehrer@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai and MSI enabled crashes kernel
Date: Wed, 02 May 2007 10:39:39 +0200	[thread overview]
Message-ID: <46384E4B.2050200@domain.hid> (raw)
In-Reply-To: <33288775.1178089500362.JavaMail.ngmail@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 2553 bytes --]

M. Koehrer wrote:
> Hi Philippe,
> 
> I have applied the patches as proposed.
> However, the kernel still freezes.

:(

> Here is the corresponding message.
> 

OK, here is another instrumentation, hoping that the bug will not move
again and that we can nail down what piece of memory contains nonsense.

The next step would then be to narrow down the corruption window (or to
find the reason for filling in nonsense during initialisation).

Jan


Index: linux-2.6.20/arch/i386/kernel/ipipe.c
===================================================================
--- linux-2.6.20.orig/arch/i386/kernel/ipipe.c
+++ linux-2.6.20/arch/i386/kernel/ipipe.c
@@ -782,6 +782,13 @@ int __ipipe_handle_irq(struct pt_regs re
 
 	head = __ipipe_pipeline.next;
 	next_domain = list_entry(head, struct ipipe_domain, p_link);
+	if (irq==219) {
+		ipipe_set_printk_sync(next_domain);
+		printk("%s:%d\n", __FUNCTION__, __LINE__);
+		printk("%s:%d %lx %p %p\n", __FUNCTION__, __LINE__,
+			ipipe_root.irqs[irq].control, ipipe_root.irqs[irq].acknowledge,
+			ipipe_root.irqs[irq].handler);
+	}
 	if (likely(test_bit(IPIPE_WIRED_FLAG, &next_domain->irqs[irq].control))) {
 		if (!m_ack && next_domain->irqs[irq].acknowledge != NULL)
 			next_domain->irqs[irq].acknowledge(irq);
@@ -865,6 +872,10 @@ finalize:
 	 * current domain in the pipeline.
 	 */
 
+	if (irq==219)
+		printk("%s:%d %lx %p %p\n", __FUNCTION__, __LINE__,
+			ipipe_root.irqs[irq].control, ipipe_root.irqs[irq].acknowledge,
+			ipipe_root.irqs[irq].handler);
 	__ipipe_walk_pipeline(head, cpuid);
 
 	ipipe_load_cpuid();
Index: linux-2.6.20/kernel/ipipe/core.c
===================================================================
--- linux-2.6.20.orig/kernel/ipipe/core.c
+++ linux-2.6.20/kernel/ipipe/core.c
@@ -791,6 +791,11 @@ void fastcall __ipipe_sync_stage(unsigne
 			rank = __ipipe_ffnz(submask);
 			irq = (level << IPIPE_IRQ_ISHIFT) + rank;
 
+			if (irq==219)
+				printk("%s:%d %lx %p %p\n", __FUNCTION__, __LINE__,
+					ipipe_root.irqs[irq].control,
+					ipipe_root.irqs[irq].acknowledge,
+					ipipe_root.irqs[irq].handler);
 			if (test_bit(IPIPE_LOCK_FLAG, &ipd->irqs[irq].control)) {
 				__clear_bit(rank, &cpudata->irq_pending_lo[level]);
 				continue;
@@ -807,6 +812,8 @@ void fastcall __ipipe_sync_stage(unsigne
 			if (ipd == ipipe_root_domain)
 				trace_hardirqs_off();
 
+			if (irq==219)
+				printk("%s:%d\n", __FUNCTION__, __LINE__);
 			__ipipe_run_isr(ipd, irq, cpuid);
 #ifdef CONFIG_SMP
 			{



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2007-05-02  8:39 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-26 12:04 [Xenomai-help] Xenomai and MSI enabled crashes kernel M. Koehrer
2007-04-27 11:48 ` Jan Kiszka
2007-04-27 13:14   ` Philippe Gerum
2007-04-27 13:22     ` Jan Kiszka
2007-04-27 13:31       ` M. Koehrer
2007-04-27 13:47         ` Jan Kiszka
2007-04-27 14:08           ` M. Koehrer
2007-04-27 14:19             ` Philippe Gerum
2007-04-27 14:28               ` M. Koehrer
2007-04-27 14:40                 ` Philippe Gerum
2007-04-27 14:56                 ` Philippe Gerum
2007-04-27 15:05                   ` Philippe Gerum
2007-04-27 15:10                     ` M. Koehrer
2007-04-27 15:36                       ` Philippe Gerum
2007-04-27 15:41                         ` M. Koehrer
2007-04-30  9:05                           ` Jan Kiszka
2007-04-30 10:11                             ` M. Koehrer
2007-04-30 11:27                               ` Jan Kiszka
2007-04-30 12:51                                 ` M. Koehrer
2007-04-30 15:10                                   ` Jan Kiszka
2007-04-27 20:39                       ` Philippe Gerum
2007-04-30 15:39                         ` Philippe Gerum
2007-05-02  7:05                           ` M. Koehrer
2007-05-02  8:39                             ` Jan Kiszka [this message]
2007-05-02  9:14                               ` M. Koehrer
2007-05-02  9:39                                 ` Jan Kiszka
2007-05-02 12:42                                 ` Philippe Gerum
2007-05-02 13:44                                   ` M. Koehrer
2007-05-02 13:49                                     ` Jan Kiszka
2007-04-27 14:31             ` Jan Kiszka
2007-04-27 14:52               ` M. Koehrer
2007-04-28 12:54 ` Bernhard Walle
  -- strict thread matches above, loose matches on Subject: below --
2007-05-02 12:57 M. Koehrer
2007-05-02 13:23 ` Jan Kiszka
2007-05-02 14:47 ` Philippe Gerum
2007-05-03  7:06   ` M. Koehrer
2007-05-03  8:29     ` Philippe Gerum
2007-05-04  7:45 M. Koehrer
2007-05-04  7:59 ` Jan Kiszka
2007-05-04  8:20   ` M. Koehrer
2007-05-04 12:20     ` Philippe Gerum
2007-05-04 12:46       ` M. Koehrer
2007-05-04 13:03         ` Philippe Gerum
2007-05-05 17:21       ` Philippe Gerum
2007-05-08 11:53         ` M. Koehrer
2007-05-08 12:28           ` Philippe Gerum
2007-05-08 12:38             ` M. Koehrer
2007-05-08 13:28               ` Philippe Gerum
2007-05-08 13:37               ` Philippe Gerum
2007-05-08 14:35                 ` M. Koehrer
2007-05-09  8:00                   ` Philippe Gerum
2007-05-07  7:11 M. Koehrer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46384E4B.2050200@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=mathias_koehrer@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.