From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from hqemgate15.nvidia.com (hqemgate15.nvidia.com [216.228.121.64]) by mx.groups.io with SMTP id smtpd.web12.3603.1570817229578151966 for ; Fri, 11 Oct 2019 11:07:09 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nvidia.com header.s=n1 header.b=mN7QlC2R; spf=pass (domain: nvidia.com, ip: 216.228.121.64, mailfrom: ashishsingha@nvidia.com) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 11 Oct 2019 11:07:19 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 11 Oct 2019 11:07:09 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 11 Oct 2019 11:07:09 -0700 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 11 Oct 2019 18:07:08 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 11 Oct 2019 18:07:08 +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:07:08 -0700 From: "Ashish Singhal" To: , , CC: Ashish Singhal Subject: [PATCH v2] Fix Aligned Page Allocation For XHCI Date: Fri, 11 Oct 2019 12:07:02 -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=1570817239; bh=F1n0HbovbuCKJmzfZj/GLKNwdlhwJ1Ckldw6x58pfKk=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:Content-Type; b=mN7QlC2R5P9E3KxHqFzVOBIo9pdxHu8PCp33wtPQWNnvbxmstBzwGEREjWigPYWqL OnFvYpjzHk9p6mTHj8akoM6iGoyYJfjWHRb95x1O/UDkEqsEya4cr9hUnElN7t5gP+ uP6RzgeK+a/BWCC/6MCI9m4hhvUsFt54pDwYlOLpLtC80ceIViMQL9y0M3P4vPPFyr q1BxZQg2BmXSaLIKZ00DomYnnnOF/N7WMZTK5QFsip5/3OUgaIIfYU32JvVu+BQmM6 VnbxmMmH75DJh9nbKWQrH3b6mfw+aWB0vOGYmHh/HrrOdo6aVm99RpTySw1nWWjFZT 8gFabV0klj2UQ== 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 | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) -- 2.7.4