From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mx.groups.io with SMTP id smtpd.web08.2228.1657078728607152715 for ; Tue, 05 Jul 2022 20:38:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=L0o3shpz; spf=pass (domain: gmail.com, ip: 209.85.214.170, mailfrom: kuqin12@gmail.com) Received: by mail-pl1-f170.google.com with SMTP id y18so4591786plb.2 for ; Tue, 05 Jul 2022 20:38:48 -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=60MEENqgO3GnrcRUsWfclgulQLmBxP1VoT+qTJjwUY8=; b=L0o3shpzCUWLEJ0IKJjmp3uGwJlpZ1Dnqie2wyAUXqoVHdsfC4BiP9mzNQXE/tTUF4 ZbbEmojnH0IGsgypyuBHp/w/heqInVCPGvGieeV2ffPmEOG+fF3CZnXAnGU5y5GioKSY xFLyGT1LlO4rDQtIoE1LW08G6m4ez8123Fdda34tstBPmt9ZySvM0mmt1TKM8dSf5JKL Xfs9AEuWkE+Nq04tONW9YrKX+7rccxKKNGEECXV0x75CnBlDVgh1JYNT9yZYBmvvTHgg vnLhjj+gXyS2AntMAgEZUZ/EBv5ymUsBHJKY/j5Ub5Moi03Bip4yMUSnj5oxNDRRU2So Xodw== 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=60MEENqgO3GnrcRUsWfclgulQLmBxP1VoT+qTJjwUY8=; b=kpLFcmEopsmD6qF4wXI/c0CJ9+q7i4UYh3nV/ze72XIP5tBVAOk67Se29dF7VRGQDf xnfiYAInbFYnIZzQL4/P1CE11g8m/qUVUwAs07QnWhuVN69GHd9DGLrL8WggJwBuGXsr CsbolxUwu9qYsn6WnGp30dHgnjTLKTV1P54u/2QH1ef+7TDJ496P/eT55rhXEC4P5jYe ihO+Mp9rcO17bryOuWbeIZDlctJEaJYP0mohNuZf1i93fdzglKxKIgAgX8wpGbBAckuj skyA3WxitZybYLpuLZbD1jeBf6sGuP9qDFBjJIF4uLt1Ye9HTQA4oWODnd7xJ1FBnbCn S0ag== X-Gm-Message-State: AJIora/7cI1Puo4LBbH9xSxBh26pwIY2rPVFjivXhScBcUXke8K1XhF8 +ByP2d9jmoKZVbWeEqE96RkLCUPJHIQ= X-Google-Smtp-Source: AGRyM1sUXAEDlVysjE7p85qFa5LFtP0yn4p2kFExds1ETlA59ZQmjbRontEkdIWKR2Rbwtr1Uz1uWA== X-Received: by 2002:a17:902:e889:b0:16a:3c79:f92f with SMTP id w9-20020a170902e88900b0016a3c79f92fmr44419750plg.51.1657078727903; Tue, 05 Jul 2022 20:38:47 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 20:38:47 -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 3/7] SecurityPkg: Tcg2Dxe: Replace PcdStatusCodeSubClassTpmDevice Date: Tue, 5 Jul 2022 20:38:14 -0700 Message-Id: <20220706033818.1493-4-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/Tcg2Dxe/Tcg2Dxe.c | 4 ++-- SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c index f6ea8b2bbf18..d6d2994f400b 100644 --- a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c +++ b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c @@ -1256,7 +1256,7 @@ TcgDxeHashLogExtendEvent ( mTcgDxeData.BsCap.TPMPresentFlag = FALSE; 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) ); } @@ -1342,7 +1342,7 @@ Tcg2HashLogExtendEvent ( mTcgDxeData.BsCap.TPMPresentFlag = FALSE; 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) ); } } else { diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf index 7dc7a2683d71..b40bdfc1c975 100644 --- a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf +++ b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf @@ -98,7 +98,6 @@ [Pcd] gEfiSecurityPkgTokenSpaceGuid.PcdTpmPlatformClass ## SOMETIMES_CONSUMES gEfiSecurityPkgTokenSpaceGuid.PcdFirmwareDebuggerInitialized ## SOMETIMES_CONSUMES gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid ## CONSUMES - gEfiSecurityPkgTokenSpaceGuid.PcdStatusCodeSubClassTpmDevice ## SOMETIMES_CONSUMES gEfiSecurityPkgTokenSpaceGuid.PcdTcg2HashAlgorithmBitmap ## CONSUMES gEfiSecurityPkgTokenSpaceGuid.PcdTcg2NumberOfPCRBanks ## CONSUMES gEfiSecurityPkgTokenSpaceGuid.PcdTcgLogAreaMinLen ## CONSUMES -- 2.35.1.windows.2