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.web09.17296.1667466696902709955 for ; Thu, 03 Nov 2022 02:11:37 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=kvm4DdTT; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: victorx.hsu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667466696; x=1699002696; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=D4e0rL1L+Oet9c1xbUqrj7YT0+udwEjSXdELMhnOrEY=; b=kvm4DdTTCcnQCvFXPSoBCPYWfenl+6e3Ofd5l0BUcTKkI0Qt+ZoC0JL8 RornJ224raJTsuxiyKgYM4MimimxvOPs3FDeuoa7JMcz9pyBQB4/kLFAw rwObssACiKedkX09AtYnPWVuxibNWZ1O4Ub+Cn7ZMMNxso2ahrVwvnpK3 /LOzKdIshQQCVLyMnkPyTSyB84Wt5bX834k7zu/mz/xuMcBxazcbyDmRH Bj+gEuC3Rn/X7gxptNIe4oUqSNBEMLY/x6ygHMmwV5zxExBjiAMFNMEUW cEysTvf5EeHmcmK5beW6YyoYYHM52cp6LJs1lY1q2WBN61LUTMxfKec5g A==; X-IronPort-AV: E=McAfee;i="6500,9779,10519"; a="336321874" X-IronPort-AV: E=Sophos;i="5.95,235,1661842800"; d="scan'208";a="336321874" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2022 02:11:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10519"; a="667898123" X-IronPort-AV: E=Sophos;i="5.95,235,1661842800"; d="scan'208";a="667898123" Received: from hsuc1x-desk1.gar.corp.intel.com ([10.227.107.38]) by orsmga001.jf.intel.com with ESMTP; 03 Nov 2022 02:11:29 -0700 From: victorx.hsu@intel.com To: devel@edk2.groups.io Cc: VictorX Hsu , Guo Dong , Ray Ni , James Lu , Gua Guo Subject: [PATCH] UefiPayloadPkg: Boot mode in PHIT HOB will not be updated Date: Thu, 3 Nov 2022 17:11:26 +0800 Message-Id: <97e245cdf713c239f9354a79fc9aa81c7fc72a6d.1667465986.git.victorx.hsu@intel.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: VictorX Hsu REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4136 System will depend on Boot Mode value to do different behavior Update during Capsule Update process. So UPL need to support update boot mode. Cc: Guo Dong Cc: Ray Ni Cc: James Lu Cc: Gua Guo Signed-off-by: VictorX Hsu --- UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c b/Uefi= PayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c index edb3c20471..2ae6b088ab 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c +++ b/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c @@ -309,6 +309,7 @@ BuildHobs ( EFI_HOB_FIRMWARE_VOLUME *FvHob;=0D UNIVERSAL_PAYLOAD_ACPI_TABLE *AcpiTable;=0D ACPI_BOARD_INFO *AcpiBoardInfo;=0D + EFI_HOB_HANDOFF_INFO_TABLE *HobInfo;=0D =0D Hob.Raw =3D (UINT8 *)BootloaderParameter;=0D MinimalNeededSize =3D FixedPcdGet32 (PcdSystemMemoryUefiRegionSize);=0D @@ -368,7 +369,8 @@ BuildHobs ( MemoryTop =3D FreeMemoryTop;=0D }=0D =0D - HobConstructor ((VOID *)(UINTN)MemoryBottom, (VOID *)(UINTN)MemoryTop, (= VOID *)(UINTN)FreeMemoryBottom, (VOID *)(UINTN)FreeMemoryTop);=0D + HobInfo =3D HobConstructor ((VOID *)(UINTN)MemoryBottom, (VOID *)(UINTN)= MemoryTop, (VOID *)(UINTN)FreeMemoryBottom, (VOID *)(UINTN)FreeMemoryTop);= =0D + HobInfo->BootMode =3D Hob.HandoffInformationTable->BootMode;=0D //=0D // From now on, mHobList will point to the new Hob range.=0D //=0D --=20 2.28.0.windows.1