From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mx.groups.io with SMTP id smtpd.web10.2186.1657078730587005925 for ; Tue, 05 Jul 2022 20:38:50 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OP7MdzEI; spf=pass (domain: gmail.com, ip: 209.85.216.53, mailfrom: kuqin12@gmail.com) Received: by mail-pj1-f53.google.com with SMTP id z12-20020a17090a7b8c00b001ef84000b8bso8645381pjc.1 for ; Tue, 05 Jul 2022 20:38:50 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=J33aLS/aRqo2p6hnAt4pGQcB/vQFPG9JOaPIeXc8tzI=; b=OP7MdzEIXFJBWy+eZSpzBkJkTe7v6PdJ7gcWgryyjhzjmCutCOJnmPrO8PZsUyMePf +ZuCWCHVF4VU/m+XvVHCI4DaLQGDlu2ko5SKkrXFyZ85kCPbWGBoujlj6bhpUmuiWTvE N0k3SoJlWSZf4KFgaiHIvbbZQswG+ttfjiDB44VTvjnLN/czEWRAhBYN104GBmBm6zXs Y/XLhfoS1h+l8C2TSCLlMWgR0Ix25kho1h4ohyq6Rga/laBOOkCoYVAMzrHvC9fS/aBR LH0FEadiDKIr7MhrJ1RCb4Hc7oxJVuF0KDiNZtCFNVTteFWlHwr0klKxUlA/Jp0Ui00A L6+w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=J33aLS/aRqo2p6hnAt4pGQcB/vQFPG9JOaPIeXc8tzI=; b=aoEGwx0iY/SRzX+iOfy0ExSk6pm7mShy+HHPH/2Asa3EWKiDoczAx7w7b+ebDLM6xH b7qxyozkz2paYFsGTy5qnRuRUXvY0bNU+BM1X5RRitwKR4OzDS7UDGREoQxF12BAJFiL VpU8FyxwC0fn5ZhHbFf8j/0d0vLv3rebf6yCrb6KXJU0WJBUHeIVxh5JBEPz5dklGS2h LfGfemP58rEZZJjaFzoK9vQOgk7abfo75cBGq5AXoAjnQLYPzu5rd5twZSVauQ3Bt/K3 OgVnSWHAehv5TqrQGoh1OuvN5vRRPqF36GiI6iR7rttIvHjUI0sqIN1Cdq1SJb4STas3 ttuw== X-Gm-Message-State: AJIora8g7/G78wrPwNjrmAZRgg/st3VLR15yKA+tfEkXrzawvyXlhq1c aN+X+b+RwBiapgr90X0k5GZ4nya0zBY= X-Google-Smtp-Source: AGRyM1sS3R4coKnmYdDpYVogzWUbDKg1QzcK5qfioG3nygi53ecxD6Lr5DATcamH3zu+tB2+u0y5UA== X-Received: by 2002:a17:90b:3e86:b0:1ec:fc46:9e05 with SMTP id rj6-20020a17090b3e8600b001ecfc469e05mr46613965pjb.0.1657078730005; Tue, 05 Jul 2022 20:38:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 20:38:49 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Qi Zhang , Rahul Kumar Subject: [edk2-staging][PATCH v1 6/7] SecurityPkg: TcgPei: Replace PcdStatusCodeSubClassTpmDevice Date: Tue, 5 Jul 2022 20:38:17 -0700 Message-Id: <20220706033818.1493-7-kuqin12@gmail.com> X-Mailer: git-send-email 2.35.1.windows.2 In-Reply-To: <20220706033818.1493-1-kuqin12@gmail.com> References: <20220706033818.1493-1-kuqin12@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3966 This change replaces the references of PcdStatusCodeSubClassTpmDevice with newly defined EFI_PERIPHERAL_TPM. Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Cc: Rahul Kumar Signed-off-by: Kun Qin --- SecurityPkg/Tcg/TcgPei/TcgPei.c | 4 ++-- SecurityPkg/Tcg/TcgPei/TcgPei.inf | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SecurityPkg/Tcg/TcgPei/TcgPei.c b/SecurityPkg/Tcg/TcgPei/TcgPei.c index 5aa80511aa81..dd9f996df9fe 100644 --- a/SecurityPkg/Tcg/TcgPei/TcgPei.c +++ b/SecurityPkg/Tcg/TcgPei/TcgPei.c @@ -355,7 +355,7 @@ HashLogExtendEvent ( BuildGuidHob (&gTpmErrorHobGuid, 0); REPORT_STATUS_CODE ( EFI_ERROR_CODE | EFI_ERROR_MINOR, - (PcdGet32 (PcdStatusCodeSubClassTpmDevice) | EFI_P_EC_INTERFACE_ERROR) + (BZ3966_EFI_PERIPHERAL_TPM | EFI_P_EC_INTERFACE_ERROR) ); Status = EFI_DEVICE_ERROR; } @@ -922,7 +922,7 @@ PeimEntryMA ( BuildGuidHob (&gTpmErrorHobGuid, 0); REPORT_STATUS_CODE ( EFI_ERROR_CODE | EFI_ERROR_MINOR, - (PcdGet32 (PcdStatusCodeSubClassTpmDevice) | EFI_P_EC_INTERFACE_ERROR) + (BZ3966_EFI_PERIPHERAL_TPM | EFI_P_EC_INTERFACE_ERROR) ); } diff --git a/SecurityPkg/Tcg/TcgPei/TcgPei.inf b/SecurityPkg/Tcg/TcgPei/TcgPei.inf index 2e3e7e0575d5..f49bb09062e3 100644 --- a/SecurityPkg/Tcg/TcgPei/TcgPei.inf +++ b/SecurityPkg/Tcg/TcgPei/TcgPei.inf @@ -78,7 +78,6 @@ [Pcd] gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid ## CONSUMES gEfiSecurityPkgTokenSpaceGuid.PcdTpmInitializationPolicy ## CONSUMES gEfiSecurityPkgTokenSpaceGuid.PcdTpmScrtmPolicy ## SOMETIMES_CONSUMES - gEfiSecurityPkgTokenSpaceGuid.PcdStatusCodeSubClassTpmDevice ## SOMETIMES_CONSUMES [Depex] gEfiPeiMasterBootModePpiGuid AND -- 2.35.1.windows.2