Is it possible to map PCIe large BAR size (memory BAR >128MB) upon Windows7 x64 system?

76 views
Skip to first unread message

jean-hugu...@ces-swap.com

unread,
Feb 4, 2016, 8:54:39 AM2/4/16
to
Hello,

I'm writing a Windows 7 device driver for a "communication PCIe device".
This PCIe device has a BAR containing a large memory space (bigger then 128MB).

The device driver uses the Windows kernel call MmMapLockedPagesSpecifyCache() to map the PCIe device BAR memory address into the user-application (virtual) memory space.

Up to a BAR size of 128MB the MmMapLockedPagesSpecifyCache() function works.
For bigger memory space the MmMapLockedPagesSpecifyCache() function throw a exception, avoiding using large size BAR.

So, Is it possible to map PCIe BAR size bigger than 128MB upon Windows7 x64 system? And if yes how to ?

Cordially.

jean-hugu...@ces-swap.com

unread,
Feb 10, 2016, 2:31:18 AM2/10/16
to
I found what was going on. I recompiled everything on x64 mode then the mapping of 1GB BAR into the user virtual memory space works.
Reply all
Reply to author
Forward
0 new messages