From nobody Fri May 3 23:49:33 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+69296+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+69296+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1608521802; cv=none; d=zohomail.com; s=zohoarc; b=ZHLMQmMYbOUFHBaFHHOz1SQigfyv77wqEFs1IFNMMf0ffTJYMWAyWYkIfNc7sWJsvABPcL2d0hb5DtYIfkwXaFwAVzJuRgX8iLtLPfslBFtz3A5qq4Zzcgf1DyhYUjErVS+43vlSgSmGoN98eIEr4Lxlrwfl0Rec6IlQGI1in3o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608521802; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To; bh=QMGI3CgaHd5eDixVgOBGS3Yx0eRlJdqqB+2ZW6SUcjw=; b=LMWOqjYcABnD81eaYSGmr9gMz1LMfcygGPc6WXnQ3qs+U2BzW+AxsagFcco+n5hJCqnYgje+fhJ8N7XJCzfoBzkStP2eljw0+Fixx6ST7C7NI/XWOm2iqr2EAMLQBbQLSBb0MRXlZmcKKLESb2SbbqIWHPKrpquswSyvfnedEwU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+69296+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1608521802395620.682903291117; Sun, 20 Dec 2020 19:36:42 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 4G4VYY1788612xh9vGI7f1Xp; Sun, 20 Dec 2020 19:36:42 -0800 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.34926.1608521801045282408 for ; Sun, 20 Dec 2020 19:36:41 -0800 IronPort-SDR: ZbhL0lqpsFOHQ8YoxK0Tq9oIzIOzRlzmVZroUIqy/ZSgNK+3kjbEstdH6Vqd6ZuZ3FidgYYWa9 a4lgLWoCZX8Q== X-IronPort-AV: E=McAfee;i="6000,8403,9841"; a="260402823" X-IronPort-AV: E=Sophos;i="5.78,436,1599548400"; d="scan'208";a="260402823" X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2020 19:36:40 -0800 IronPort-SDR: an2R3JV++En/Jg5+oV+GjrIL0YsUqn0GxnoC9Soa5W7jqn02eTMEFRcWET+ZqvSlqjITC/eW3j A2yvaPkvcRdw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,436,1599548400"; d="scan'208";a="390764117" X-Received: from shwdesssddpdwei.ccr.corp.intel.com ([10.239.157.46]) by fmsmga002.fm.intel.com with ESMTP; 20 Dec 2020 19:36:36 -0800 From: "Sheng Wei" To: devel@edk2.groups.io Cc: Ray Ni , Rangasai V Chaganty Subject: [edk2-devel] [PATCH] IntelSiliconPkg/VTd: Fix build fail for add iommu 5 level paging support Date: Mon, 21 Dec 2020 11:35:57 +0800 Message-Id: <20201221033557.22868-1-w.sheng@intel.com> 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,w.sheng@intel.com X-Gm-Message-State: VDmS1m4bxMBgcIvO7RnDHg2ix1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1608521802; bh=1BkyP96ZHFr3NkBst7CtKLI8m3n9PmlU9ERBjB2rN1Q=; h=Cc:Date:From:Reply-To:Subject:To; b=CjHy0SgRPh8IDj8Ma1lRAnt46MRHrz5HjLo8GQLJYGBBDDajsCFuq1g4MG0oWlUShPa uxULVNyhePoNn8wGIIOMLtESXV4/af1wtdXGH7pNuqPVj6hfvtn5gUT/uwlHLyJeqJsTD IioY8WbUuERIZR35BwdTE2ngNaodnaiFQuA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Build fail is found in patch "IntelSiliconPkg/VTd: Add iommu 5 level paging support". Fix build fail in file TranslationTable.c and TranslationTableEx.c. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3067 Signed-off-by: Sheng Wei Cc: Ray Ni Cc: Rangasai V Chaganty Reviewed-by: Ray Ni --- .../Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/TranslationTable.c | 3= +-- .../Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/TranslationTableEx.c | 3= +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/Translat= ionTable.c b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/Translat= ionTable.c index ede6e0c5..58ff8550 100644 --- a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/TranslationTabl= e.c +++ b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/TranslationTabl= e.c @@ -133,8 +133,7 @@ CreateContextEntry ( mVtdUnitInformation[VtdIndex].Is5LevelPaging =3D TRUE; if ((mAcpiDmarTable->HostAddressWidth <=3D 48) && ((mVtdUnitInformation[VtdIndex].CapReg.Bits.SAGAW & BIT2) !=3D 0= )) { - mVtdUnitInformation[VtdIndex].Is5LevelPaging =3D FALSE; - } + mVtdUnitInformation[VtdIndex].Is5LevelPaging =3D FALSE; } } else if ((mVtdUnitInformation[VtdIndex].CapReg.Bits.SAGAW & BIT2) = =3D=3D 0) { DEBUG((DEBUG_ERROR, "!!!! Page-table type is not supported on VTD %d= !!!!\n", VtdIndex)); diff --git a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/Translat= ionTableEx.c b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/Transl= ationTableEx.c index a4d66bc7..b8fa62fb 100644 --- a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/TranslationTabl= eEx.c +++ b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/TranslationTabl= eEx.c @@ -83,8 +83,7 @@ CreateExtContextEntry ( mVtdUnitInformation[VtdIndex].Is5LevelPaging =3D TRUE; if ((mAcpiDmarTable->HostAddressWidth <=3D 48) && ((mVtdUnitInformation[VtdIndex].CapReg.Bits.SAGAW & BIT2) !=3D 0= )) { - mVtdUnitInformation[VtdIndex].Is5LevelPaging =3D FALSE; - } + mVtdUnitInformation[VtdIndex].Is5LevelPaging =3D FALSE; } } else if ((mVtdUnitInformation[VtdIndex].CapReg.Bits.SAGAW & BIT2) = =3D=3D 0) { DEBUG((DEBUG_ERROR, "!!!! Page-table type is not supported on VTD %d= !!!!\n", VtdIndex)); --=20 2.16.2.windows.1 -=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 (#69296): https://edk2.groups.io/g/devel/message/69296 Mute This Topic: https://groups.io/mt/79119254/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-