Re: Getting same physical address for 2 different user addresses.
- From: Tim Roberts <timr@xxxxxxxxx>
- Date: Thu, 19 Jun 2008 21:20:32 -0700
saravan <ulskumar@xxxxxxxxx> wrote:
Here we are developing one WDF PCI Expresss Diagnostics Driver.
As per customer requirement we have to allocate buffer in the
appllication for scatter-gather DMA transfer and we have to find out
the physical address of the same buffer in WDF Driver.
We are finding out the physical address using the following method,
IoAllocateMdl => MmProbeAndLockPages => MmMapLockedPagesSpecifyCache
=> MmGetPhysicalAddress
Currently we are allocating two different buffers ie., one for Read
DMA and other for Write DMA.
Here our issue is we are getting the same physical address for two
different user mode buffers.
Can you anyone please explain the reason for this?
My guess, based on this extremely sketchy description, is that you are
passing the address to the kernel using a METHOD_BUFFERED ioctl, so what
you are actually getting is the physical address of the I/O manager's COPY
buffer.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.
- Follow-Ups:
- References:
- Prev by Date: Re: Getting same physical address for 2 different user addresses.
- Next by Date: Re: Getting same physical address for 2 different user addresses.
- Previous by thread: Re: Getting same physical address for 2 different user addresses.
- Next by thread: Re: Getting same physical address for 2 different user addresses.
- Index(es):
Relevant Pages
|