From nobody Thu Apr 25 16:46:05 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+48668+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+48668+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=nvidia.com ARC-Seal: i=1; a=rsa-sha256; t=1570640525; cv=none; d=zoho.com; s=zohoarc; b=UwZTWTdGYeIKQGmJDTalyaMnizgd1gg2uhb6Kx8YbipW3y2ZzmBY9ugZJd7W14GDFBxsJxuOqGCIYdz7L+8rRbDNErHoeglBOKFTAwVJIPRYvaZLZDAHndjTINSFx/HEzsgWHS6Cnr0fg/eTjG0pxSpgVUJ5fCtnLM1IqGmf3tY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570640525; h=Content-Type:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=bKyYc9rxqQ5S7H5gESCuvUqs7AqnKMSy/XIXiTN6UNE=; b=JgOaExR48ZPRXvUFvgrrU436VzLydGcl3bi5fnHb6IuAlZzC0NghxNj/19Uv7yLLNitbe+Pjz8KfSJrGrC5QoyTg6R30w3gDKyYxvYrf4IyBF4sNgpvcuDGDjJsB9yWtmOwp+pfDbus3H5hZWTUlko4SDDJV/5mQCVFAKwl4Dgo= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+48668+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1570640525196484.23206451637236; Wed, 9 Oct 2019 10:02:05 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id aaaaYY1788612xaaaaaaaaaa; Wed, 09 Oct 2019 10:02:03 -0700 X-Received: from hqemgate14.nvidia.com (hqemgate14.nvidia.com [216.228.121.143]) by mx.groups.io with SMTP id smtpd.web12.7021.1570640523240876128 for ; Wed, 09 Oct 2019 10:02:03 -0700 X-Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 09 Oct 2019 10:02:06 -0700 X-Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Wed, 09 Oct 2019 10:02:02 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Wed, 09 Oct 2019 10:02:02 -0700 X-Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 9 Oct 2019 17:02:02 +0000 X-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; Wed, 9 Oct 2019 17:02:02 +0000 X-Received: from ashishsingha-lnx.nvidia.com (Not Verified[10.28.48.147]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Wed, 09 Oct 2019 10:02:01 -0700 From: "Ashish Singhal" To: , , CC: Ashish Singhal Subject: [edk2-devel] [PATCH] MdeModulePkg/XhciDxe: Fix Aligned Page Allocation Date: Wed, 9 Oct 2019 11:01:57 -0600 Message-ID: <9ce268553db91fbe7fb13e2205d0e1611e1d0212.1570640221.git.ashishsingha@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ashishsingha@nvidia.com X-Gm-Message-State: aaaaaaaaaaaaaaaaaaaaaaaax1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1570640523; bh=vJKYSriMPUJyK+3vBQeH7X27oboG73Vb6P2Vw+BxtkQ=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=rYttynI6cDKP5XyYrsFV1N5Tl2v7WyHcAT7t5fsgOxDBiBfZfmxZ52zlgWHmw9zQ7gq NfMFFArc2XynZVFMVrSd4bWvU9S0w5ySrxEPEXmMHSAivDu45wNGyXAtsp42OdFfdY22p o+aybpCdKxcDMUWgK5WfA54vssN2i3dvkWc= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- 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 ); --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#48668): https://edk2.groups.io/g/devel/message/48668 Mute This Topic: https://groups.io/mt/34465466/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-