From nobody Tue Nov 26 06:37:31 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+56024+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+56024+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=nvidia.com ARC-Seal: i=1; a=rsa-sha256; t=1584635841; cv=none; d=zohomail.com; s=zohoarc; b=Az0mCj4lwOKSuWVGzOOTPXY7TXhsabqqQp02s2K9KTauGO5teeAt82uLMldsXEIuA1QJQm6Y+bBL4p6D3cPF6BhjHx3o/zt+kMhC24REF+rXSIah0rU+GGWwTB7ysxY3YyVviBWchRm6rUHR99tP+dUGUdyQ0NkyCyGjEeLXa9s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584635841; h=Content-Type:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=zPT9mnYHC5FOIS7Dloi06uoEmDLn88Uu7c9ZHBLVTuU=; b=Mjvhd6Yj0JMYNKkqLaey+Y9pYfmGUdBUHRNJbH0RhxFNHbYbaDvn+zaImfy81k1DYYjW28+J7j5g3CKK2SJg3j1E6VLlheq/o0Vg2S2bmzRIStv1gQKSE3WL0YpphNjwiuZYBJksdFFokPktehBLNKwC4lCKxQZHww0P3XMf9jQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+56024+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 1584635841333356.72441198470744; Thu, 19 Mar 2020 09:37:21 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id MVG9YY1788612x7Yyl4RTFP7; Thu, 19 Mar 2020 09:37:20 -0700 X-Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by mx.groups.io with SMTP id smtpd.web10.2431.1584635840093468092 for ; Thu, 19 Mar 2020 09:37:20 -0700 X-Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 19 Mar 2020 09:36:29 -0700 X-Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 19 Mar 2020 09:37:19 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 19 Mar 2020 09:37:19 -0700 X-Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 19 Mar 2020 16:37:19 +0000 X-Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 19 Mar 2020 16:37:19 +0000 X-Received: from ashishsingha-lnx.nvidia.com (Not Verified[10.28.48.147]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Thu, 19 Mar 2020 09:37:19 -0700 From: "Ashish Singhal" To: , , CC: Ashish Singhal Subject: [edk2-devel] [PATCH] ArmPkg/ArmLib: Fix cache-invalidate initial page tables Date: Thu, 19 Mar 2020 10:37:05 -0600 Message-ID: <388539fc2f778e417d632f24e20e54c82e0d80a4.1584635658.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: y4a3HwPxERkXNkJ57koD1Ko2x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1584635840; bh=2qJgrq9HuxfT6vdHcV/EZ/JwJ0YBWXElTQaP7ouIzHc=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=wapBmhwM591VBs/jlK3dAF6dl3Ka/74iLaEmLLcPLpPnl/GW4R8oyNwD65GGTTJA+io c/aUoyBU+9lP0OBubHUBLpt1Wp4jlKORIXeyU7jBqvlVcN6iMzN3rby3zTfz/xJNeI5qh 2lqeYOOEbW/bdZWeYiFjH2OFGYa8BGAgXAc= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Because of a bug, current EL gets passed to DC IVAC instruction instead of the VA entry that needs to be invalidated. Signed-off-by: Ashish Singhal Reviewed-by: Leif Lindholm --- ArmPkg/Library/ArmLib/AArch64/ArmLibSupport.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmPkg/Library/ArmLib/AArch64/ArmLibSupport.S b/ArmPkg/Library= /ArmLib/AArch64/ArmLibSupport.S index f744cd6..ba0ec56 100644 --- a/ArmPkg/Library/ArmLib/AArch64/ArmLibSupport.S +++ b/ArmPkg/Library/ArmLib/AArch64/ArmLibSupport.S @@ -122,7 +122,7 @@ ASM_FUNC(ArmSetMAIR) ASM_FUNC(ArmUpdateTranslationTableEntry) dsb nshst lsr x1, x1, #12 - EL1_OR_EL2_OR_EL3(x0) + EL1_OR_EL2_OR_EL3(x2) 1: tlbi vaae1, x1 // TLB Invalidate VA , EL1 mrs x2, sctlr_el1 b 4f --=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 (#56024): https://edk2.groups.io/g/devel/message/56024 Mute This Topic: https://groups.io/mt/72062196/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-