WDF PCIe Driver: PCIe WDFDMATRANSACTION task support PSCATTER_GATHER_LIST SgList Max 8Mbytes space to transfer data per time?

hl kuang 0 Reputation points
2023-08-17T12:01:03.96+00:00
    1. Use MmAllocateContiguousMemory to allocate 32 * 1024 * 1024 bytes(32MB) continuous physical space returns kernel virtual address.
    1. Use MDL map memory into user space.
    1. Use IOCTL to run DmaTransaction task.
    1. Error: Transmission task to arrange the transmission 32MB of data,but PSCATTER_GATHER_LIST SgList was allocated Max 8MB of transmission Elements space? So i need help.
  • WDF in Kernel state: This is a WDFDMATRANSACTION task. enter image description here
  • App in User state: to check PCIe DMA transaction. User's image
  • Debug view log: Just put out transfer size in bytes per time. User's image
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,075 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,823 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,684 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.