From nobody Fri Apr 26 12:07:37 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+85221+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+85221+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1640689085; cv=none; d=zohomail.com; s=zohoarc; b=i0rdv5g8VepLAa4wiuVtX1WBe6omApvwwMQ5SrTac0J2NSKF9xGPu/bqZ0GP4TaTThZlg1TgL/TnHflV7+5I/8VpckV8uPzVpjnxyietbJrt+6xGT+81HwksaZOua/cypnSgTE537cjvYvBZqaSiq09qFG6LYrQGJlEqBlvnaLc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1640689085; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=1tEsz3orpnJNXXT86abcJJG3dQi/PQvz7AnFBSqn1M4=; b=HCQ/ywEnDzuFW/UCLl6eovNzIjMFR75Osx0fUAT9+mJCtl/6UhMMNsiCOts0IEshI6geqHX9y76k3PcibZGJc2l5ZImzTjAjeaOcDffWnToCVpDdjru3RZ//KefUempuJ1+JLoFlhjIzrSxBrX1IURscnhdyNcWSH9xg2WmVLks= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+85221+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1640689085604160.40811014942062; Tue, 28 Dec 2021 02:58:05 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id ph19YY1788612xeNueM5AEDp; Tue, 28 Dec 2021 02:58:05 -0800 X-Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web10.36935.1640689084297423530 for ; Tue, 28 Dec 2021 02:58:04 -0800 X-IronPort-AV: E=McAfee;i="6200,9189,10210"; a="221349465" X-IronPort-AV: E=Sophos;i="5.88,242,1635231600"; d="scan'208";a="221349465" X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2021 02:58:03 -0800 X-IronPort-AV: E=Sophos;i="5.88,242,1635231600"; d="scan'208";a="469998605" X-Received: from cchiu4-mobl.gar.corp.intel.com ([10.252.191.109]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2021 02:58:01 -0800 From: "Chiu, Chasel" To: devel@edk2.groups.io Cc: Chasel Chiu , Maurice Ma , Nate DeSimone , Star Zeng Subject: [edk2-devel] [PATCH] IntelFsp2Pkg/FspSecCore: ExtendedImageRevision was not printed. Date: Tue, 28 Dec 2021 18:57:49 +0800 Message-Id: <20211228105749.1934-1-chasel.chiu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,chasel.chiu@intel.com X-Gm-Message-State: iQmvIndM2TuKSivTvio3BUoXx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1640689085; bh=jKXyPlZpHNeAa+GhwxtNMVB5H/3XlSfv1Jr2Cvs7faM=; h=Cc:Date:From:Reply-To:Subject:To; b=JNyMwVNQbvcgYw4jA0vWddsnsFzXXciD2W9UHQL7eHgZJxdCwHhlUwvW07QzLrfMY4d r9wirrql8XC6NVDltjpNCzyKwh0OiOWZ8Y/ynfFNs20hZAbuzp5RSF9/1If099SMC+7og KjhxQKwB1df7uEbSExIiW5yxqqRDOlyDG+0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1640689086865000001 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3791 ExtendedImageRevision should be printed when Header revision >=3D 6. Cc: Maurice Ma Cc: Nate DeSimone Cc: Star Zeng Signed-off-by: Chasel Chiu Reviewed-by: Star Zeng --- IntelFsp2Pkg/FspSecCore/SecFsp.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/IntelFsp2Pkg/FspSecCore/SecFsp.c b/IntelFsp2Pkg/FspSecCore/Sec= Fsp.c index ae03fa228e..f79d45900e 100644 --- a/IntelFsp2Pkg/FspSecCore/SecFsp.c +++ b/IntelFsp2Pkg/FspSecCore/SecFsp.c @@ -1,6 +1,6 @@ /** @file =20 - Copyright (c) 2014 - 2020, Intel Corporation. All rights reserved.
+ Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -199,8 +199,12 @@ FspGlobalDataInit ( ImageId, \ (PeiFspData->FspInfoHeader->ImageRevision >> 24) & 0xFF, \ (PeiFspData->FspInfoHeader->ImageRevision >> 16) & 0xFF, \ - (PeiFspData->FspInfoHeader->ImageRevision >> 8) & 0xFF, \ - PeiFspData->FspInfoHeader->ImageRevision & 0xFF + (PeiFspData->FspInfoHeader->HeaderRevision >=3D 6) ? \ + (((PeiFspData->FspInfoHeader->ImageRevision >> 8) & 0xFF) | (PeiFspD= ata->FspInfoHeader->ExtendedImageRevision & 0xFF00)) :\ + ((PeiFspData->FspInfoHeader->ImageRevision >> 8) & 0xFF), \ + (PeiFspData->FspInfoHeader->HeaderRevision >=3D 6) ? \ + ((PeiFspData->FspInfoHeader->ImageRevision & 0xFF) | ((PeiFspData->F= spInfoHeader->ExtendedImageRevision & 0xFF) << 8)): \ + (PeiFspData->FspInfoHeader->ImageRevision & 0xFF) )); } =20 --=20 2.28.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#85221): https://edk2.groups.io/g/devel/message/85221 Mute This Topic: https://groups.io/mt/87993533/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-