MmAllocateContiguousMemory: Allocating cacheable buffer

Hello,

My PCI card device driver allocates a contiguous physical RAM block using: MmAllocateContiguousMemory

The FPGA in the card initiates DMA to this RAM.

Is it possible to make this block cacheable ?

Thanks,
Z.V

MmAllocateContiguousMemory gives you cacheable memory.

But normally you should use IoGetDmaAdapter and AllocateCommonBuffer function of the DMA adapter instead.