Message-ID: Date: Wed, 15 Feb 2006 23:58:35 +0100 From: Jeroen Van den Keybus Subject: Re: [Xenomai-core] Handling PCI MSI interrupts In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22852_23054282.1140044315452" References: <43F2521E.7040200@domain.hid> <43F38A5E.9030402@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_22852_23054282.1140044315452 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > I=B4m also investigating why MSI also doesn=B4t work under RTDM. It=B4s m= erely a > coincidence that the above bug (MSI interrupts from Linux devices getting > blocked) emerged and produced exactly the same behaviour (system hanging)= . It turns out not to be coincidential. rtdm_irq_request() (through passing iack=3DNULL to virtualize_irq()) uses the default Linux driver as an acknowledgement routine for that interrupt. So fixing regular Linux interrupts also fixed RTDM operation. I'll have to sleep over the best solution in msi.c . For now, I have implemented an __ack_APIC_irq() in an routine ack_msi_irq_wo_maskbit(). How do I make a patch for that ? As for the bitmasked varieties, I need to be careful here. First I'll have = a look at the details of MSI with maskbits. Some of this stuff has actually been devised to allow deferral of IRQ acknowledgement. I wouldn't want to break that feature. Anyway, with this simple fix, I'm finally able to use my Dell GX270 without IRQ sharing for the first time :-) . Jeroen. ------=_Part_22852_23054282.1140044315452 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I=B4m also i= nvestigating why MSI also doesn=B4t work under RTDM. It=B4s merely a coincidence that the above bug (MSI interrupts from Linux devices getting blocked) emerged and produced exactly the same behaviour (system hanging).

It turns out not to be coincidential. rtdm_irq_request() (through passing iack=3DNULL to virtualize_irq()) uses the default Linux driver as an acknowledgement routine for that interrupt. So fixing regular Linux interrupts also fixed RTDM operation.

I'll have to sleep over the best solution in msi.c . For now, I have implemented an __ack_APIC_irq() in an routine ack_msi_irq_wo_maskbit(). How do I make a patch for that ?

As for the bitmasked varieties, I need to be careful here. First I'll have a look at the details of MSI with maskbits. Some of this stuff has actually been devised to allow deferral of IRQ acknowledgement. I wouldn't want to break that feature.

Anyway, with this simple fix, I'm finally able to use my Dell GX270 w= ithout IRQ sharing for the first time :-) .


Jeroen.
------=_Part_22852_23054282.1140044315452--