public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Fix Aligned Page Allocation For XHCI
@ 2019-10-15 17:20 Ashish Singhal
  2019-10-15 17:20 ` [PATCH v4 1/2] MdeModulePkg/XhciDxe: Fix Aligned Page Allocation Ashish Singhal
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ashish Singhal @ 2019-10-15 17:20 UTC (permalink / raw)
  To: devel, hao.a.wu, ray.ni, jbrasen; +Cc: Ashish Singhal

This patch set is an attempt to fix the error where we allocate incorrectly
aligned memory for XHCI PEI and DXE. The change for DXE phase has been verified
already but change for PEI needs to be verified by Hao as I do not have a
setup to be able to verify that.

The change in DXE just updates a parameter passed in to allocate aligned memory.
The change in PEI adds a new function to allocate aligned memory. There was no
need to add separate function to free aligned pages as unaligned pages have been
already freed during allocation function and the aligned one can be freed using
the existing function.

Ashish Singhal (2):
  MdeModulePkg/XhciDxe: Fix Aligned Page Allocation
  MdeModulePkg/XhciPei: Fix Aligned Page Allocation

 MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c |   2 +-
 MdeModulePkg/Bus/Pci/XhciPei/DmaMem.c   | 128 ++++++++++++++++++++++++++++++++
 MdeModulePkg/Bus/Pci/XhciPei/UsbHcMem.c |  25 +------
 MdeModulePkg/Bus/Pci/XhciPei/XhcPeim.h  |  28 +++++++
 4 files changed, 161 insertions(+), 22 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-10-21  1:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-15 17:20 [PATCH v4 0/2] Fix Aligned Page Allocation For XHCI Ashish Singhal
2019-10-15 17:20 ` [PATCH v4 1/2] MdeModulePkg/XhciDxe: Fix Aligned Page Allocation Ashish Singhal
2019-10-16  2:11   ` [edk2-devel] " Wu, Hao A
2019-10-15 17:20 ` [PATCH v4 2/2] MdeModulePkg/XhciPei: " Ashish Singhal
2019-10-16  2:13   ` Wu, Hao A
2019-10-17  2:43     ` Wu, Hao A
2019-10-21  1:02 ` [edk2-devel] [PATCH v4 0/2] Fix Aligned Page Allocation For XHCI Wu, Hao A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox