]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/NonDiscoverablePciDeviceDxe: Allow partial FreeBuffer
authorJeff Brasen via groups.io <jbrasen=nvidia.com@groups.io>
Mon, 14 Feb 2022 18:45:31 +0000 (18:45 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 1 Oct 2022 10:44:30 +0000 (10:44 +0000)
commit6a2b20ff97e4256970644a07f74a4c5655bf5072
tree5782f75df27aaf93ef4bebae9feea48bd9a95767
parent7aa06237b856fd6f8187cc1715a3fe08ab4e98ed
MdeModulePkg/NonDiscoverablePciDeviceDxe: Allow partial FreeBuffer

Add support for partial free of non cached buffers.
If a request for less than the full size is requested new allocations
for the remaining head and tail of the buffer are added to the list.
Added verification that Buffer is EFI_PAGE_SIZE aligned.
The XHCI driver does this if the page size for the controller is >4KB.

Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceIo.c