Interrupt not received

On 09-Nov-2011 13:36, Per Ferdinand Bach wrote:

Hi,

You are absolutely right.

The HW uses MSI which I figured out in linux with the command “lspci
-vvv”. …

Glad you’ve sorted it out.

You have to specifically add MSI support to the registry of the Device’s
Hardware Key. Only then will the WDF framework actually use MSI.
See: http://msdn.microsoft.com/en-us/library/ff544246(v=VS.85).aspx

Even with that registry data present, Windows still
can assign a line interrupt instead of MSI. Of course the driver can
detect this and fail, but it (and the device!) can support both modes.
You have to, anyway, if the device should work under WinXP.

I find it a bit odd that I cannot find anything about this in the book
“Developing Drivers with the WDF” from MS that is 880 pages long…

This registry trick does not belong specifically to WDF. It is defined
by the underlying WDM.
(And don’t let me start on quality of Linux documentation :slight_smile:

Regards,
– pa