From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=zailiang.sun@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EA4B521B02822 for ; Tue, 13 Nov 2018 23:22:18 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 23:22:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,231,1539673200"; d="scan'208";a="86350331" Received: from zailiang-mobl1.ccr.corp.intel.com ([10.239.198.14]) by fmsmga008.fm.intel.com with ESMTP; 13 Nov 2018 23:22:17 -0800 From: "Sun, Zailiang" To: edk2-devel@lists.01.org Cc: Zailiang Sun , David Wei Date: Wed, 14 Nov 2018 13:44:48 +0800 Message-Id: <20181114054448.1156-1-zailiang.sun@intel.com> X-Mailer: git-send-email 2.19.1.windows.1 MIME-Version: 1.0 Subject: [Patch][edk2-platforms/devel-MinnowBoardMax-UDK2017] Fix the D1 stepping issue for Minnowboard Turbot X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2018 07:22:19 -0000 Content-Transfer-Encoding: 8bit Since there are no ways to differentiate D0 and D1 stepping value by only checking CPUID, we use string "D0/D1" for boards with a D0 or D1 stepping value. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zailiang Sun CC: David Wei --- .../SmBiosMiscDxe/MiscSystemManufacturerFunction.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscSystemManufacturerFunction.c b/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscSystemManufacturerFunction.c index 726e9b2426..10dbabe777 100644 --- a/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscSystemManufacturerFunction.c +++ b/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscSystemManufacturerFunction.c @@ -294,11 +294,11 @@ if (Event != NULL) { DEBUG ((EFI_D_ERROR, "C0 Stepping Detected\n")); break; case PchD0: - UnicodeSPrint (Buffer, sizeof (Buffer),L"%s%s", PlatformNameBuffer, L"D0 PLATFORM"); + UnicodeSPrint (Buffer, sizeof (Buffer),L"%s%s", PlatformNameBuffer, L"D0/D1 PLATFORM"); HiiSetString(mHiiHandle,STRING_TOKEN(STR_MISC_SYSTEM_PRODUCT_NAME), Buffer, NULL); - UnicodeSPrint (Buffer, sizeof (Buffer),L"%s",L"D0"); + UnicodeSPrint (Buffer, sizeof (Buffer),L"%s",L"D0/D1"); HiiSetString(mHiiHandle,STRING_TOKEN(STR_MISC_SYSTEM_VERSION), Buffer, NULL); - DEBUG ((EFI_D_ERROR, "D0 Stepping Detected\n")); + DEBUG ((EFI_D_ERROR, "D0/D1 Stepping Detected\n")); break; default: DEBUG ((EFI_D_ERROR, "Unknow Stepping Detected\n")); -- 2.19.1.windows.1