From nobody Mon Feb 9 16:32:51 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+91331+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+91331+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1657765673; cv=none; d=zohomail.com; s=zohoarc; b=J5nVPphuIHxxI5SfQ+YHWn0bsc9dsKymnuKgZJPlRvn8hs6rl63xEU5M53P7YEamXeFq4GGOcWMgLThjlrnA0cQgxdYzku+g3en1JIXrvRCWp0q7SlTOheChelU/naUsJsMNfoGDK+O0H24rqh85Xggp+EVv5rBvlksuzj/JrSE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1657765673; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=SIZp6lMN+YQRyo803D3KSR4rmgMr5I+LxesmF3xBsTE=; b=b2JE9ra2tyCAW3qvS37uG7v5f/KYGgJAldGtAyuQQTZMgHvRInUAfgYcUPqe6flFHeruOHrreSNROc1xkIok9FfAONAVBQyvrlt6ckvk8ttDqHlYJUyQSdKhCp1Kyx7DhyWZdrFX6kKmo9i4ZkvfKSeg6LhnmuHvtmvUG0dnlmc= 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+91331+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1657765673879911.7667987251712; Wed, 13 Jul 2022 19:27:53 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id jMfEYY1788612xKBoEFWHox6; Wed, 13 Jul 2022 19:27:53 -0700 X-Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by mx.groups.io with SMTP id smtpd.web11.3134.1657765672912952377 for ; Wed, 13 Jul 2022 19:27:53 -0700 X-Received: by mail-pj1-f50.google.com with SMTP id x18-20020a17090a8a9200b001ef83b332f5so6845120pjn.0 for ; Wed, 13 Jul 2022 19:27:52 -0700 (PDT) X-Gm-Message-State: OBHM7D7rbWBeOSRuX81ioTTFx1787277AA= X-Google-Smtp-Source: AGRyM1s0mDdvudJIRDs9r5h6wTz78oCn+3CdXYF3aAdF3OlCk/VtqyQ8+0+lxI7AjV/7m+LciHPoVA== X-Received: by 2002:a17:90b:3506:b0:1f0:81a:6477 with SMTP id ls6-20020a17090b350600b001f0081a6477mr13587049pjb.46.1657765672274; Wed, 13 Jul 2022 19:27:52 -0700 (PDT) X-Received: from localhost.localdomain ([192.182.149.255]) by smtp.gmail.com with ESMTPSA id t68-20020a625f47000000b0052aaf7fdf2esm244014pfb.137.2022.07.13.19.27.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 19:27:52 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Andrew Fish , Leif Lindholm , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [edk2-staging][PATCH v2 1/3] EDK2 Code First: PI Specification: New peripheral subclass for TPM Date: Wed, 13 Jul 2022 19:27:36 -0700 Message-Id: <20220714022738.110-2-kuqin12@gmail.com> In-Reply-To: <20220714022738.110-1-kuqin12@gmail.com> References: <20220714022738.110-1-kuqin12@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kuqin12@gmail.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1657765673; bh=gAQTRItaQXSNXRMv3ijYk+seREvfwsNdvJFWRc5M8kk=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=wjP7ayS0P1ia+PDS/B+hjNZ3EtaTsHJEXV8guvDzyYhMhRGStzgTFGXe8p7l7xaQ4ur EtWBgGP9ksjycpULSFmKmDW4IYUYassHQqwokg1UHkxesd9/RlYhPFg09X9VPCw8AmGWa NeGTmsG8eyGHb0iG4fka0+M7wNujMCvCycs= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1657765674451100004 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3966 This change includes specification update markdown file that describes the proposed PI Specification v1.7 Errata A in detail and potential impact to the existing codebase. Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Kun Qin --- Notes: v2: - Removed PCD replacement changes [Michael Kinney] CodeFirst/BZ3966-SpecChange.md | 59 ++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/CodeFirst/BZ3966-SpecChange.md b/CodeFirst/BZ3966-SpecChange.md new file mode 100644 index 000000000000..bfece823021d --- /dev/null +++ b/CodeFirst/BZ3966-SpecChange.md @@ -0,0 +1,59 @@ +# Title: Introduction of `EFI_PERIPHERAL_TPM` Peripheral Subclass Definiti= on + +## Status: Draft + +## Document: UEFI Platform Initialization Specification Version 1.7 Errata= A + +## License + +SPDX-License-Identifier: CC-BY-4.0 + +## Submitter: [TianoCore Community](https://www.tianocore.org) + +## Summary of the change + +Add `EFI_PERIPHERAL_TPM` into Peripheral Subclass definition. + +## Benefits of the change + +Current status code covered various [peripheral subclass definitions](http= s://github.com/tianocore/edk2/blob/master/MdePkg/Include/Pi/PiStatusCode.h). + +As Trusted Platform Module (TPM) becomes more available on the modern syst= ems, status reports from such peripheral are playing more important roles i= n anaylzing the secruity state and healthiness of a system. However, periph= eral subclass definitions do not cover TPM as of today. + +Standardizing the TPM peripheral subclass definition could facilitate the = parsing of peripheral reported errors and avoid potential definition collis= ions from implementation based subclass usages. + +The request of this change intends to expand definitions of `EFI_PERIPHERA= L_**` under Periperhal Subclass definitions to cover the TPM subclass. + +## Impact of the change + +Occupy a new macro definitions of subclass under `Defined Subclasses: User= -Accessible Peripheral Class`. + +## Detailed description of the change [normative updates] + +### Specification Changes + +1. In PI Specification v1.7 Errata A: Vol. 3, Table 3-30: Defined Subclass= es: User-Accessible Peripheral Class, add one new rows below `EFI_PERIPHERA= L_DOCKING` definition and adjust the rest of reserved definitions according= ly: + + | Subclass | Code Name | Description | + | --- | --- | --- | + | Trusted Platform Module | EFI_PERIPHERAL_TPM | The peripheral referr= ed to is a Trusted Platform Module | + | 0x0F=E2=80=930x7F | Reserved for future use by this specification | = | + +1. In PI Specification v1.7 Errata A: Vol. 3, Table 3-84: Defined Subclass= es: User-Accessible Peripheral Class, add one new rows below `EFI_PERIPHERA= L_DOCKING` definition and adjust the rest of reserved definitions according= ly: + + | Subclass | Code Name | + | --- | --- | + | Trusted Platform Module | EFI_PERIPHERAL_TPM | + | 0x0F=E2=80=930x7F | Reserved for future use by this specification. | + +1. In PI Specification v1.7 Errata A: Vol. 3, Section 6.7.2.1 Subclass Def= initions: Prototype, add one new definitions below `EFI_PERIPHERAL_DOCKING`= definition: + + ```c + #define EFI_PERIPHERAL_TPM \ + (EFI_PERIPHERAL | 0x000E0000) + ``` + +### Code Changes + +1. Add macro definitions in `MdePkg/Include/Pi/PiStatusCode.h` to match ne= w specification. +1. Updated the default value of `gEfiSecurityPkgTokenSpaceGuid.PcdStatusCo= deSubClassTpmDevice` to `(EFI_PERIPHERAL | 0x000E0000)` for consistency and= backwards compatibility outside of SecurityPkg. --=20 2.37.0.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 (#91331): https://edk2.groups.io/g/devel/message/91331 Mute This Topic: https://groups.io/mt/92372091/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-