Just to get myself clear...
Logical address often defines as the bus relative address, and that is the way a DMA device sees, and in that case it make sense to be on the physical page boundary !!!
-prokash
----- Original Message -----
From: Graham, Simon
To: Windows System Software Devs Interest List
Sent: Tuesday, October 14, 2003 12:09 PM
Subject: [ntdev] Re: Scatter gather doubts
Um... I dont think so -- both the start address and length can be any byte offset in the page (so in the SG list entry, the logical address field can be any byte offset and the length can be any value.
/simgr
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Tuesday, October 14, 2003 2:57 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Re: Scatter gather doubts
The boundaries between chunks of the scatter-gather list are always aligned on physical page size, which is better then 4byte.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: Susaant K
To: Windows System Software Devs Interest List
Sent: Tuesday, October 14, 2003 8:56 AM
Subject: [ntdev] Scatter gather doubts
Hi all,
I guess this question has already been asked quite a number of times...but I couldn't find a clear answer. So here I go again...
Our NIC hardware DMA supports 32bit addressing. It has support for scatter-gather. But the restriction is that except for the last fragment in scatter-gather list, the remaining fragments need to be multiple of 4 number of bytes. (ie 4, 8, 12...bytes). I know when we initialize the scatter-gather dma (NdisMInitializeScatterGatherDma) it will ensure that that the alignment is 32 bit...but will it also ensure our requirement (of size being multiple of 4 bytes)?
If not, is the only option that is available is to copy the entire packet into shared buffer and pass the this buffer to DMA as one single buffer (Ignoring Scatter-Gather altogether)?
Thanks in advance.
Regards,
Susaant
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@garlic.com
To unsubscribe send a blank email to xxxxx@lists.osr.com