From nobody Mon Feb 9 12:26:19 2026 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+69763+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+69763+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1609894127; cv=none; d=zohomail.com; s=zohoarc; b=dHD4w2lowxOoLW3kJyGeBWMxFP/S3Ymk1x5HZL1FJFc4d9k2g3bCSTIfQl6mz/HCOkXOPYCwr+EjywiXuC8ssQFfszlVu2db9j/nNCDIgUxKyhiX5R8wymqS/FaKkKJOG0J3k5yM+BTxODf18fbq55B9yTU0HrBkUv6kEBnzHZA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609894127; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=zMKin7TP+NRIJz5V1OD/C34RHtWudrV4qQU2QsFRn+M=; b=deq5XIGZQNHQUdubONbOzTBagrQuLKN8m4OkuUCsJIbL4FOyj3WbOTiiaAHfMR5mLAOaLnPXtpWsRQTU3md0piMGfflJE14Nwe8mlxpUoxV5KX3jT290OrLo0RXTCS2e7NZzwLhTCI3sq/7zUhg7Q8C5c75vywCBSIW4XOOc45Y= 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+69763+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 1609894127406764.018614038969; Tue, 5 Jan 2021 16:48:47 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id v6ZIYY1788612xJEqZktH4oe; Tue, 05 Jan 2021 16:48:47 -0800 X-Received: from mga02.intel.com (mga02.intel.com []) by mx.groups.io with SMTP id smtpd.web10.1381.1609894122017708573 for ; Tue, 05 Jan 2021 16:48:46 -0800 IronPort-SDR: LDHYFqxiVE8zNoYpLkM9K8IC8IeTBuMDtSp8XW5qWe2YGdoo1o5Te0ce4Im8bEnqTXzI1n5ZEt fjlL0gVI7tHA== X-IronPort-AV: E=McAfee;i="6000,8403,9855"; a="164277233" X-IronPort-AV: E=Sophos;i="5.78,478,1599548400"; d="scan'208";a="164277233" X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2021 16:48:44 -0800 IronPort-SDR: LFamg8jnIyUEjcwB+Hvsb2RDFYGH8nx2vunlaXsKlbh2Zm5Iv97Vgywyn5rLdq8/lPEat7MXfi 54+jGJDajcsg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,478,1599548400"; d="scan'208";a="361373803" X-Received: from shwdesssddpdwei.ccr.corp.intel.com ([10.239.157.46]) by orsmga002.jf.intel.com with ESMTP; 05 Jan 2021 16:48:43 -0800 From: "Sheng Wei" To: devel@edk2.groups.io Cc: Ray Ni , Rangasai V Chaganty , Jiewen Yao , Jenny Huang , Feng Roger Subject: [edk2-devel] [PATCH v2 2/2] IntelSiliconPkg/VTd: Add PCD flag for select pre-boot DMA protection Driver Date: Wed, 6 Jan 2021 08:48:23 +0800 Message-Id: <20210106004823.10572-3-w.sheng@intel.com> In-Reply-To: <20210106004823.10572-1-w.sheng@intel.com> References: <20210106004823.10572-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: uomub9Djayu9guDGmJjAtL4Mx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1609894127; bh=kr+kytX4l8EyZ3rDChpH0eIfJwN+ECxmJpJv6iBrMvc=; h=Cc:Date:From:Reply-To:Subject:To; b=oQ57Rsuu/FUQOCeAx4PCnEp7mpMJbIXHXerj2nu4u6Rl7ItKpRYoavg1OUZqQT7V9UL lLW+lleD/IUk8LtyqYPbs2Vt8gl4uszaVho+CkaWxvoKLFNHY/zlki32JhZEdrF25LMmz HvLH3mpP2+KkFmQyGH5FfEQnNIHbaAVvnJg= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" gIntelSiliconPkgTokenSpaceGuid.PcdVtdDmarPeiEnable is added for select pre-boot DMA protection driver in PEI phase. IntelVTdPmrPei driver is used to do the pre-boot DMA protection by PMR. IntelVTdDmarPei driver is used to do the pre-boot DMA protection by DMAR. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3095 Signed-off-by: Sheng Wei Cc: Ray Ni Cc: Rangasai V Chaganty Cc: Jiewen Yao Cc: Jenny Huang Cc: Feng Roger --- Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dec | 5 +++++ Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dsc | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dec b/Silicon/In= tel/IntelSiliconPkg/IntelSiliconPkg.dec index 4a2cbca5..e6696042 100644 --- a/Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dec +++ b/Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dec @@ -121,3 +121,8 @@ # @Prompt The VTd PEI DMA buffer size for S3. gIntelSiliconPkgTokenSpaceGuid.PcdVTdPeiDmaBufferSizeS3|0x00200000|UINT3= 2|0x00000004 =20 + ## Declares the VTd PEI driver to protect DMA.

+ # TRUE: Use DMAR to protect DMA at PEI phase + # FALSE: Use PMR to protect DMA at PEI phase + gIntelSiliconPkgTokenSpaceGuid.PcdVtdDmarPeiEnable|FALSE|BOOLEAN|0x00000= 006 + diff --git a/Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dsc b/Silicon/In= tel/IntelSiliconPkg/IntelSiliconPkg.dsc index 029b9156..6feb5a99 100644 --- a/Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dsc +++ b/Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dsc @@ -80,7 +80,11 @@ IntelSiliconPkg/Feature/PcieSecurity/IntelPciDeviceSecurityDxe/IntelPciD= eviceSecurityDxe.inf IntelSiliconPkg/Feature/PcieSecurity/SamplePlatformDevicePolicyDxe/Sampl= ePlatformDevicePolicyDxe.inf IntelSiliconPkg/Feature/VTd/IntelVTdDxe/IntelVTdDxe.inf +!if gIntelSiliconPkgTokenSpaceGuid.PcdVtdDmarPeiEnable =3D=3D TRUE + IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.inf +!else IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/IntelVTdPmrPei.inf +!endif IntelSiliconPkg/Feature/VTd/PlatformVTdSampleDxe/PlatformVTdSampleDxe.inf IntelSiliconPkg/Feature/VTd/PlatformVTdInfoSamplePei/PlatformVTdInfoSamp= lePei.inf IntelSiliconPkg/Feature/Capsule/MicrocodeUpdateDxe/MicrocodeUpdateDxe.inf --=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 (#69763): https://edk2.groups.io/g/devel/message/69763 Mute This Topic: https://groups.io/mt/79465327/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-