From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from hqemgate14.nvidia.com (hqemgate14.nvidia.com [216.228.121.143]) by mx.groups.io with SMTP id smtpd.web11.4073.1570820143447237129 for ; Fri, 11 Oct 2019 11:55:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nvidia.com header.s=n1 header.b=WiNgoseo; spf=pass (domain: nvidia.com, ip: 216.228.121.143, mailfrom: ashishsingha@nvidia.com) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 11 Oct 2019 11:55:47 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 11 Oct 2019 11:55:43 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 11 Oct 2019 11:55:43 -0700 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 11 Oct 2019 18:55:42 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 11 Oct 2019 18:55:42 +0000 Received: from ashishsingha-lnx.nvidia.com (Not Verified[10.28.48.147]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Fri, 11 Oct 2019 11:55:42 -0700 From: "Ashish Singhal" To: , , CC: Ashish Singhal Subject: [PATCH v3] Fix Aligned Page Allocation For XHCI Date: Fri, 11 Oct 2019 12:55:37 -0600 Message-ID: X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public Return-Path: ashishsingha@nvidia.com MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1570820147; bh=7iI7PZ10w0xzTmNMXokxY8cSQIGFx2Aegg0OpJUhw+k=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:Content-Type; b=WiNgoseoYGbnjft9w10x3n488D8g2EbOv7hUOmnNWkmXuK2OEqxYRV6kPUdTiE91e +Vq/L60fgu/u3KzpYZ3HE68yXxfdMvT6VifL181gDUyJdOdZSGUALBpGjKU2OOe0L9 5GcF7L7yozzwOJaYHo1Nq5gkT+t4rT3Lktr9P/+V5kIGNArPZrlbfkeL8BTo78KHQh /hSTAmMG+7E438B9LhXwEj2HHeYPzFbVD29iDXOOq5YgNcs1ExxRrcNvXhpylc06Wi vSfPUfiIngCL6UuFXEGKvZcfya4WFMy7E3VcK4c56+FZgQymr9b08ZkZFmWYSAVgKN RtrMR5Wd0vNcQ== Content-Type: text/plain This patch set is an attempt to fix the error where we allocate incorrectly aligned memory for XHCI PDI 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 made to fix PEI is taken from the way it has been fixed in DXE. This avoids the need for adding any new function and takes care of allocating and freeing extra memory in the parent function. Ashish Singhal (1): MdeModulePkg/XhciDxe: Fix Aligned Page Allocation MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c | 2 +- MdeModulePkg/Bus/Pci/XhciPei/UsbHcMem.c | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) -- 2.7.4