The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
I have written a KMDF driver which needs at least three MSIx vectors and can handle up to Max of 32 MSIx vectors. If the driver gets anything less than three vectors, it cannot operate and returns error from "PrepareHardware" Callback. I have tested the driver under QEMU and it works great.
I tried the driver with actual hardware (FPGA) on another machine and for some reason the "PrepareHardware" always gets called with 1 interrupt resource and with only one MSIx message.
I looked at the registry to make sure that the INF file add registry directive is actually creating the MSIx registry entries. I could see that the registry entries are created under
Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\PCI\VEN_XXXX&DEV_XXXX&SUBSYS_XXXXXXXX&REV_00\4&36daf17&0&0010\Device Parameters\Interrupt Management\MessageSignaledInterruptProperties
and the entries created are
MessageNumberLimit REG_DWORD 0x20 (32) MSISupported REG_DWORD 0x01
The machine that I am testing the driver on is a intel XEON based machine with Windows 10 Enterprise (640-bit).
Any pointers to debug this problem further are highly appreciated.
|Upcoming OSR Seminars|
|OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!|
|Writing WDF Drivers||12 September 2022||Live, Online|
|Internals & Software Drivers||23 October 2022||Live, Online|
|Kernel Debugging||14 November 2022||Live, Online|
|Developing Minifilters||5 December 2022||Live, Online|