public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] MdeModulePkg/XhciDxe: Fix Aligned Page Allocation
@ 2019-10-09 17:01 Ashish Singhal
  2019-10-10  1:32 ` Wu, Hao A
  0 siblings, 1 reply; 12+ messages in thread
From: Ashish Singhal @ 2019-10-09 17:01 UTC (permalink / raw)
  To: devel, hao.a.wu, ray.ni; +Cc: Ashish Singhal

While allocating pages aligned at an alignment higher than
4K, allocate memory taking into consideration the padding
required for that alignment. The calls to free pages takes
care of this already.

Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
---
 MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c b/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c
index fd79988..aa69c47 100644
--- a/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c
+++ b/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c
@@ -656,7 +656,7 @@ UsbHcAllocateAlignedPages (
                       PciIo,
                       AllocateAnyPages,
                       EfiBootServicesData,
-                      Pages,
+                      RealPages,
                       &Memory,
                       0
                       );
-- 
2.7.4


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

end of thread, other threads:[~2019-10-15 17:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-09 17:01 [PATCH] MdeModulePkg/XhciDxe: Fix Aligned Page Allocation Ashish Singhal
2019-10-10  1:32 ` Wu, Hao A
2019-10-10  1:58   ` Ashish Singhal
2019-10-10  2:09     ` Wu, Hao A
2019-10-10 17:51       ` Ashish Singhal
2019-10-11  2:59         ` [edk2-devel] " Wu, Hao A
2019-10-11  3:30           ` Ashish Singhal
2019-10-11  5:53             ` Wu, Hao A
2019-10-11 18:07               ` Ashish Singhal
2019-10-14 18:17                 ` Ashish Singhal
2019-10-15  1:21                   ` Wu, Hao A
2019-10-15 17:19                     ` Ashish Singhal

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