From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mx.groups.io with SMTP id smtpd.web12.2159.1657078729807317453 for ; Tue, 05 Jul 2022 20:38:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=euJdVOAW; spf=pass (domain: gmail.com, ip: 209.85.216.48, mailfrom: kuqin12@gmail.com) Received: by mail-pj1-f48.google.com with SMTP id fz10so7931991pjb.2 for ; Tue, 05 Jul 2022 20:38:49 -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=/dXYRSiMdOGQlAJB/QyxHz5KYM5pFBythjI2n8KSUwQ=; b=euJdVOAWNG1dGFV+Tl6Oee6CWD9vwHIQvC1g/6jarFi7fjxcBfB6pXgKXsz0tuJqUV k0rV7LS1gd20tmNMB7b5eXEbmsYgvfgFoNvaPqSD3DdHBEWVdb+/u0ZNRZxiBecDBoYE 0rMOZC3X9Jlu91iHFOOnJ+h8dPq4ppE+gaBtEQZU/exUD8n5CK6x/b1xQ/9c6MWh0GcF QjB9fcWL3HJ2tiahPlgoRnh87H3mjgxEiF5tA6hCgctedy8NWt2YQHL3P378FzWOAfkf lar2MemBgs+tJXRDAh2mhWIEkUK6YfG3iV8NWxbjcfHvD74Yoc7unmbV1Wk7+P8vCjL1 Oyyg== 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=/dXYRSiMdOGQlAJB/QyxHz5KYM5pFBythjI2n8KSUwQ=; b=HaewHVAgAiG2NTO8XwF9dalnVPtpFKvQ6lfgLa7PxtZq6diKXzLrhdWbAxVC9UmBD7 zKcVWn3OFafxq0zanbZvI44Xt7DkDdWPKhYK9Sr9/Hm+mNsb3GRAwabaWWffwyaF2UXU 29207OCzreAapG9swjIXUDlu21UL0Mq6frduXKK6u447Fue+h/+shTThQU/JJjpGKT4w cp4JDnCxnLAuUBQF6PmIhlPLjNmi0aZSYnh+GKroCwXtcSXx4FasWXi2ef0bKJIlSem0 aUUu/k40kio4jbuns0UpYZL0dysRSaQe37Ymfj+xsyGOx6zUOhxRoHJ4WW2t+Hp2cb6q /pnA== X-Gm-Message-State: AJIora/onyF+qmZmAkX06sJYXoEAoN2MqbzNbX+1VaKpWTWpIr7AWLRw iOl9dCdafe6Klo/rx3p7AOrcNudWHH0= X-Google-Smtp-Source: AGRyM1toYVwAIb3gFLYt9ugqmU1qx448W1qBxL9PCxNO5gcEDSW6sVZhnSkgqZgDnbivKPH6Jswg7Q== X-Received: by 2002:a17:90b:4a0c:b0:1ec:d90c:601d with SMTP id kk12-20020a17090b4a0c00b001ecd90c601dmr46442784pjb.154.1657078729213; Tue, 05 Jul 2022 20:38:49 -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.48 (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 5/7] SecurityPkg: TcgDxe: Replace PcdStatusCodeSubClassTpmDevice Date: Tue, 5 Jul 2022 20:38:16 -0700 Message-Id: <20220706033818.1493-6-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/TcgDxe/TcgDxe.c | 2 +- SecurityPkg/Tcg/TcgDxe/TcgDxe.inf | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c index ee6c6273033b..779125b1beb4 100644 --- a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c +++ b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c @@ -593,7 +593,7 @@ TcgDxeHashLogExtendEventI ( TcgData->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) ); Status = EFI_DEVICE_ERROR; } diff --git a/SecurityPkg/Tcg/TcgDxe/TcgDxe.inf b/SecurityPkg/Tcg/TcgDxe/TcgDxe.inf index c93b377b34ff..be0f4a64958c 100644 --- a/SecurityPkg/Tcg/TcgDxe/TcgDxe.inf +++ b/SecurityPkg/Tcg/TcgDxe/TcgDxe.inf @@ -70,7 +70,6 @@ [Pcd] gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemRevision ## SOMETIMES_CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorId ## SOMETIMES_CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorRevision ## SOMETIMES_CONSUMES - gEfiSecurityPkgTokenSpaceGuid.PcdStatusCodeSubClassTpmDevice ## SOMETIMES_CONSUMES gEfiSecurityPkgTokenSpaceGuid.PcdTcgLogAreaMinLen ## CONSUMES [Depex] -- 2.35.1.windows.2