Message-ID: Date: Fri, 17 Feb 2006 16:57:33 +0100 From: Jeroen Van den Keybus Subject: Re: [Xenomai-core] Handling PCI MSI interrupts In-Reply-To: <43F5CAE8.9010905@domain.hid> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11020_25028006.1140191853722" References: <43F447AF.4020604@domain.hid> <000a01c63304$94ee5190$1e01a8c0@domain.hid> <43F5CAE8.9010905@domain.hid> List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum Cc: xenomai-core ------=_Part_11020_25028006.1140191853722 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > Could you post the patch you are successfully using to boot your box? TIA= , --- linux-2.6.15/drivers/pci/msi.c 2006-01-03 04:21:10.000000000 +0100 +++ linux-2.6.15-ipipe/drivers/pci/msi.c 2006-02-17 16:48: 21.000000000 +0100 @@ -185,10 +185,20 @@ spin_unlock_irqrestore(&msi_lock, flags); } +#if defined(CONFIG_IPIPE) +/* Attention: only MSI without maskbits is currently fixed for I-PIPE */ +static void ack_msi_irq_wo_maskbit(unsigned int vector) +{ + __ack_APIC_irq(); +} +#endif /* CONFIG_IPIPE */ + static void end_msi_irq_wo_maskbit(unsigned int vector) { move_native_irq(vector); +#if !defined(CONFIG_IPIPE) ack_APIC_irq(); +#endif /* !CONFIG_IPIPE */ } static void end_msi_irq_w_maskbit(unsigned int vector) @@ -244,7 +254,11 @@ .shutdown =3D shutdown_msi_irq, .enable =3D do_nothing, .disable =3D do_nothing, +#if defined(CONFIG_IPIPE) + .ack =3D ack_msi_irq_wo_maskbit, +#else /* CONFIG_IPIPE */ .ack =3D do_nothing, +#endif /* !CONFIG_IPIPE */ .end =3D end_msi_irq_wo_maskbit, .set_affinity =3D set_msi_irq_affinity }; Jeroen. ------=_Part_11020_25028006.1140191853722 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Could you po= st the patch you are successfully using to boot your box? TIA,
=


--- linux-2.6.15/drivers/pci/msi.c      2006-01-03= 04:21:10.000000000 +0100
+++ linux-2.6.15-ipipe/drivers/pci/msi.c      = ;  2006-02-17 16:48:21.000000000 +0100
@@ -185,10 +185,20 @@
        spin_unlock_irqrestore(&msi_= lock, flags);
 }

+#if defined(CONFIG_IPIPE)
+/* Attention: only MSI without maskbits is currently fixed for I-PIPE */ +static void ack_msi_irq_wo_maskbit(unsigned int vector)
+{
+       __ack_APIC_irq();
+}
+#endif /* CONFIG_IPIPE */
+
 static void end_msi_irq_wo_maskbit(unsigned int vector)
 {
        move_native_irq(vector);
+#if !defined(CONFIG_IPIPE)
        ack_APIC_irq();
+#endif /* !CONFIG_IPIPE */
 }

 static void end_msi_irq_w_maskbit(unsigned int vector)
@@ -244,7 +254,11 @@
        .shutdown    = ;   =3D shutdown_msi_irq,
        .enable    &= nbsp;    =3D do_nothing,
        .disable    =     =3D do_nothing,
+#if defined(CONFIG_IPIPE)
+       .ack            =3D ack_msi_irq_wo_maskbit,
+#else /* CONFIG_IPIPE */
        .ack    &nbs= p;       =3D do_nothing,
+#endif /* !CONFIG_IPIPE */
        .end            =3D end_msi_irq_wo_maskbit,
        .set_affinity   =3D se= t_msi_irq_affinity
 };


Jeroen.
------=_Part_11020_25028006.1140191853722--