From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.1943.1662615666661067752 for ; Wed, 07 Sep 2022 22:41:07 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=EFqzaAzQ; spf=permerror, err=too many SPF records (domain: intel.com, ip: 192.55.52.88, mailfrom: heng.luo@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662615666; x=1694151666; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=oghAAHXuCQDd2FqgW6F3FKS/qc24th1KFKMikAZjKes=; b=EFqzaAzQWxwbnzkAH2AyLX8kKm3+kmzrWeGIFsU9y8lZsptncGGacKvK whlciTySu1KpLHS9JqNEnqZIsrdWJ0E4FPzgJ4XkqMrkxCBJiES/U/iWc eR/9hAzHp2vZt/OB0cFATV5LTOGiwM4RRdyDmXav1RAlXYMPjh38AS8mF m1/L1a85yueYabqGncSNV0f8Qps8ZCTzRCf0xZS14CPP/QSxQq7Uj/6ZV tnZ74CQxu1X9Tcvp2xoHvkqswxhRBtBZ2LY5qJcgRnrX0zztVo7zmqnTg WuuTCP0qTAZ5lvDmXLY2onTV3MAenoYjVCjeeibqHiBz23ZNG+mH4cNqY Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="323264566" X-IronPort-AV: E=Sophos;i="5.93,299,1654585200"; d="scan'208";a="323264566" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 22:41:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,299,1654585200"; d="scan'208";a="676528139" Received: from hengluo-dev.ccr.corp.intel.com ([10.239.153.107]) by fmsmga008.fm.intel.com with ESMTP; 07 Sep 2022 22:41:04 -0700 From: "Heng Luo" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Zhiguang Liu , Dandan Bi , Star Zeng , Zhichao Gao Subject: [PATCH] MdeModulePkg SmbiosMeasurementDxe: Add Type4 CurrentSpeed to filter table Date: Thu, 8 Sep 2022 13:40:59 +0800 Message-Id: <20220908054059.451-1-heng.luo@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4051 The Type4 CurrentSpeed field may be various. So this patch adds it into the filter table. Signed-off-by: Heng Luo Cc: Jian J Wang Cc: Liming Gao Cc: Zhiguang Liu Cc: Dandan Bi Cc: Star Zeng Cc: Zhichao Gao --- MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c b/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c index 348082ff86..d61edc846b 100644 --- a/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c +++ b/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c @@ -1,7 +1,7 @@ /** @file This driver measures SMBIOS table to TPM. -Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.
+Copyright (c) 2015 - 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -66,6 +66,7 @@ SMBIOS_FILTER_TABLE mSmbiosFilterType4BlackList[] = { { 0x04, OFFSET_OF (SMBIOS_TABLE_TYPE4, EnabledCoreCount2), FIELD_SIZE_OF (SMBIOS_TABLE_TYPE4, EnabledCoreCount2), 0 }, { 0x04, OFFSET_OF (SMBIOS_TABLE_TYPE4, ThreadCount2), FIELD_SIZE_OF (SMBIOS_TABLE_TYPE4, ThreadCount2), 0 }, { 0x04, OFFSET_OF (SMBIOS_TABLE_TYPE4, Voltage), FIELD_SIZE_OF (SMBIOS_TABLE_TYPE4, Voltage), 0 }, + { 0x04, OFFSET_OF (SMBIOS_TABLE_TYPE4, CurrentSpeed), FIELD_SIZE_OF (SMBIOS_TABLE_TYPE4, CurrentSpeed), 0 }, }; SMBIOS_FILTER_TABLE mSmbiosFilterType17BlackList[] = { { 0x11, OFFSET_OF (SMBIOS_TABLE_TYPE17, SerialNumber), FIELD_SIZE_OF (SMBIOS_TABLE_TYPE17, SerialNumber), SMBIOS_FILTER_TABLE_FLAG_IS_STRING }, -- 2.31.1.windows.1