From: Philippe Gerum <rpm@xenomai.org>
To: Jeroen Van den Keybus <jeroen.vandenkeybus@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] I-pipe fasteoi interrupt handling issue
Date: Wed, 24 Oct 2007 15:25:56 +0200 [thread overview]
Message-ID: <471F47E4.7060908@domain.hid> (raw)
In-Reply-To: <fd6a47a90710240611l76b68672g1af78f8cb5784753@domain.hid>
Jeroen Van den Keybus wrote:
> On my Linux 2.6.23 with latest I-pipe patch (1.10-10), interrupts are
> dispatched twice if they are of the fasteoi type.
>
> I have the impression that the I-pipe does the eoi() acknowledgement (in
> kernel/irq/chip.c: __ipipe_ack_fasteoi_irq) without first masking off
> the IRQ. As the interrupt line hasn't been cleared at this time, the
> interrupt is immediately reissued.
Does this help?
--- arch/i386/kernel/io_apic.c~ 2007-10-22 16:43:21.000000000 +0200
+++ arch/i386/kernel/io_apic.c 2007-10-24 15:24:16.000000000 +0200
@@ -1985,6 +1985,17 @@
* operation to prevent an edge-triggered interrupt escaping meanwhile.
* The idea is from Manfred Spraul. --macro
*/
+
+#ifdef CONFIG_IPIPE
+/*
+ * Prevent low priority IRQs grabbed by high priority domains from
+ * being delayed, waiting for a high priority interrupt handler
+ * running in a low priority domain to complete.
+ */
+ spin_lock(&ioapic_lock);
+ __mask_IO_APIC_irq(irq);
+ spin_unlock(&ioapic_lock);
+#endif
i = irq_vector[irq];
v = apic_read(APIC_TMR + ((i & ~0x1f) >> 1));
@@ -1998,17 +2009,6 @@
__unmask_and_level_IO_APIC_irq(irq);
spin_unlock(&ioapic_lock);
}
-
-#ifdef CONFIG_IPIPE
-/*
- * Prevent low priority IRQs grabbed by high priority domains from
- * being delayed, waiting for a high priority interrupt handler
- * running in a low priority domain to complete.
- */
- spin_lock(&ioapic_lock);
- __mask_IO_APIC_irq(irq);
- spin_unlock(&ioapic_lock);
-#endif
}
--
Philippe.
next prev parent reply other threads:[~2007-10-24 13:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-24 13:11 [Xenomai-core] I-pipe fasteoi interrupt handling issue Jeroen Van den Keybus
2007-10-24 13:25 ` Philippe Gerum [this message]
2007-10-24 13:30 ` Philippe Gerum
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=471F47E4.7060908@domain.hid \
--to=rpm@xenomai.org \
--cc=jeroen.vandenkeybus@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.