Driver getting Page Fault 0Eh Fault=0000, only when 2 PCI cards present in system

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Curtis Rubel (crubel_at_compro.net)
Date: 05/11/04


Date: 11 May 2004 16:49:45 -0700

Hello everyone,

I have a Win2k/XP device driver that appears to have found a problem
in the OS's Paging support. With only one of our PCI cards installed
the driver loads and runs ok. Driver verifier shows no errors, loading,
unloading or running the test suite that exercises the user API and
driver using all available calls. Even ran this driver with /PAE with
no problems.

However, when I install the 2nd PCI card the system gets a Page Fault
0EH Fault=0000 when attempting jump to my start device routine. The
add device routine finishes successfully.

The PCI card is a memory card, that has 64MB of memory, a 256K register
area in Memory Space and also uses 1 PCI interrupt. The memory resources
are all mapped into the driver via:

pDevExt->local_sram_ptr = MmMapIoSpace (pPartialDescriptor->u.Memory.Start,
                                        pPartialDescriptor->u.Memory.Length,
                                        MmNonCached);

calls. I also setup a 1MB CommonBuffer for DMA transfers to/from the
card.

The first PCI devices finishes loading/init. everything OK. The second PCI
card starts to initialize, the Add Device routine runs ok, the PNP manager
then issues the IRP_MN_START_DEVICE, which I decode and then call my
start device handler. When the system jumps to my Start device hander
I get Page Fault 0Eh Fault=0000 apparantly sometime before it actually
reaches my Start Device function as I have a breakpoint set right at
the beginning of it and it never makes it there.

Does WinXP support mapping multiple PCI devices with large onboard
memory into your driver?

Is there something I am missing that needs to be configure in the
system to run large memory PCI devices?

I have tried setting SystemPages to 0xffffffff as some posts are suggesting
but that has no affect on this problem.

Either PCI card runs fine standalone.

Any suggestions would be appreciated.

Curtis Rubel
crubel@compro.net



Relevant Pages