From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mx.groups.io with SMTP id smtpd.web11.2167.1657078726002615766 for ; Tue, 05 Jul 2022 20:38:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=in982KbT; spf=pass (domain: gmail.com, ip: 209.85.216.41, mailfrom: kuqin12@gmail.com) Received: by mail-pj1-f41.google.com with SMTP id w24so14047667pjg.5 for ; Tue, 05 Jul 2022 20:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fTsd+9Dbway3DUlWkbgQmuKMnMUQs5w1zqSIBbKjxtU=; b=in982KbTXaOQWiuc9NeoR3LWsWNjtA8z9XMqmvyXKZqvhfPAsLV2ZgVWB82qUosGln QQJ7ulHagb396gIwdFSUJmt1j66EilDINzLOLXDvijKuvtZTvhShGtdbC8Bt9Pf1jzcH uQb9/53JBj6w1mDwzWkVlxzspVIhStoK4xpE8SWhPVGdF9wQ3hpV5Qq5wPqt4/B4VTRm n5qTrHNeK+6Zs+ekD5XVyD0R8BeT1Y1VjwhUIDTRH4V1AkvlK5bDy2IkhtWkjy3HStrz 8qdk2kj67ASYnYpqSWGrEIem2hSHSI2YIum/Ay4cc8YkPEEgm5cYObnOEPPnVk0f2dXj hVeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fTsd+9Dbway3DUlWkbgQmuKMnMUQs5w1zqSIBbKjxtU=; b=kwF4TNEdO9wHu7l2bjtuWXlX9eNjqAZuJJdlkH2xaQ4EzR/dWpH6Qn7LlbiWiMxt5k VSfvSaLad1yHhYvHa0LjtnaTLoydYwmospP5IBj/csjIGY8Nfd2AppapQF5GRmguF6Qq uvX2c2uRsTLX3xh06a/t5WijVFj1wNs0rJTMt6dbtLr6cUmCK53l7NIeLcVjzNw2OQ5W +DcV1/GQe3BkAmHMxGx6sKqN78wJG/MKa/OJJXoq6zKbe5Fz63ytd0HETcia/EGwAkg2 SyS4W/cSfpKHn8TMXAe/85RjQsqaeYs9wh/G3IS7l7I50aMkxXS5+4u4j4aa2M5Jy9HU sOkA== X-Gm-Message-State: AJIora/5rB5H/3mhrAjsXUj6980ZhO4UbxmKLhNcDg8bw5LaVQypuqXn U3mRyWfxsX/8eKhO6gcqky5lRWC4TGc= X-Google-Smtp-Source: AGRyM1sl+cbvVUofHUQpGpZR5Fbaf0dlDyrVX2uwTYh115BXaywahzHrZFcxFGHFuA98jBbhykjMCg== X-Received: by 2002:a17:902:ed02:b0:16b:d5f6:2c17 with SMTP id b2-20020a170902ed0200b0016bd5f62c17mr20484813pld.85.1657078725298; Tue, 05 Jul 2022 20:38:45 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([192.182.149.255]) by smtp.gmail.com with ESMTPSA id a140-20020a621a92000000b005289fbef7c4sm864251pfa.140.2022.07.05.20.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 20:38:44 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Qi Zhang , Rahul Kumar , Andrew Fish , Leif Lindholm , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-staging][PATCH v1 0/7] Add TPM subclass definition Date: Tue, 5 Jul 2022 20:38:11 -0700 Message-Id: <20220706033818.1493-1-kuqin12@gmail.com> X-Mailer: git-send-email 2.35.1.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3966 >>From PI Specification v1.7 Errata A, EFI_PERIPHERAL_DOCKING is defined as 0xD0000 (as well as included in PiStatusCode.h). However, subclass employed as PCD for TPM peripheral in SecurityPkg is also defined as 0xD0000. The TPM subclass code was used in TcgPei.c when reporting error codes. The collision of subclass definition could cause the parsing of reported errors being ambiguous. This patch series add EFI_PERIPHERAL_TPM as a spec-defined value and removed potential usages in the SecurityPkg. Patch v1 branch: https://github.com/kuqin12/edk2/tree/BZ3966-add_tpm_subclass Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Cc: Rahul Kumar Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Kun Qin (7): EDK2 Code First: PI Specification: New peripheral subclass for TPM MdePkg: MmCommunication: Add TPM subclass definition to MdePkg SecurityPkg: Tcg2Dxe: Replace PcdStatusCodeSubClassTpmDevice SecurityPkg: Tcg2Pei: Replace PcdStatusCodeSubClassTpmDevice SecurityPkg: TcgDxe: Replace PcdStatusCodeSubClassTpmDevice SecurityPkg: TcgPei: Replace PcdStatusCodeSubClassTpmDevice SecurityPkg: SubClassTpm: Updated default value SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 4 +- SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 4 +- SecurityPkg/Tcg/TcgDxe/TcgDxe.c | 2 +- SecurityPkg/Tcg/TcgPei/TcgPei.c | 4 +- CodeFirst/BZ3966-SpecChange.md | 60 ++++++++++++++++++++ MdePkg/Include/Pi/PiStatusCode.h | 1 + SecurityPkg/SecurityPkg.dec | 6 +- SecurityPkg/SecurityPkg.uni | 2 +- SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf | 1 - SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf | 1 - SecurityPkg/Tcg/TcgDxe/TcgDxe.inf | 1 - SecurityPkg/Tcg/TcgPei/TcgPei.inf | 1 - 12 files changed, 72 insertions(+), 15 deletions(-) create mode 100644 CodeFirst/BZ3966-SpecChange.md -- 2.35.1.windows.2