Commit Graph

2016 Commits

Author SHA1 Message Date
Vincent Chen 78be589bab [ADLP] Update FSP/VBT for MR5 release
- update FSP version to IoT ADL-P MR5 (0C.01.B0.50)
- update VBT version to 251
- Update platform version to 1.5

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2023-10-27 08:58:06 -07:00
Stanley Chang ee2ad158df fix: [EHL] add missing GPIO definitions
add missing GPIO and PINMUX definitions

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
2023-10-27 08:56:23 -07:00
tsaikevin 1dd3da7cb7
fix: [Common] Fix coverity issue (#2064)
Fixed Assignment to Variable without Use(CWE 563)

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2023-10-26 11:23:20 -07:00
tsaikevin 800b4c3727
feat: [ASL] Updated FSP UPD (#2063)
* feat: [ASL] Updated FSP UPD

Updated FSP UPDs
Removed TCC subregion

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>

* fix: [ADLN] Fix TCC memory config

Added PcdAdlNSupport PCD in FspmUpdUpdateLib

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>

---------

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2023-10-26 11:20:19 -07:00
Kobe 3d070ab7f7 fix: [MTL] Update stitch config to for all boards
Updated stitch configs for RVP (revB), CRB and LP5 boards

TEST: Able to boot into Ubuntu and Windows

Signed-off-by: Kobe <kok.tong.ong@intel.com>
2023-10-23 15:11:30 -07:00
Pedro Queiros ab30dc5e76 [ICX-D] Configuration knob for flash descriptor verification
Adding a dedicated stitching option to create
IFWI images with flash descriptor verification enabled.
and signed accordingly.

Signed-off-by: Pedro Queiros <pedro.queiros@intel.com>
2023-10-23 11:25:26 -07:00
Alexander Goncharov 72d3569949 AlderlakeBoardPkg: Increase OsLoader FD size for ADL-S
Increase OsLoader FD size to 0x58000 for ADL-S to resolve build error.

Signed-off-by: Alexander Goncharov <chat@joursoir.net>
2023-10-23 11:21:14 -07:00
Guo Dong 1e38183d82
feat: Enhance firmware Update (#2062)
If the component in SPI flash could not be memory-mapped, it need access
using SPI library.
If the component is registered using memory address, it means it need use
SPI library to access. It would read required info using SPI library.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2023-10-23 13:41:26 -04:00
Biswas Arghya 935f57d459 fix: [AZB] fix GPIO definition issue from linux
_LP_SUPPORT was disabled as a result,  GPIO programming was faulty
from the Linux side. Enable the _LP_SUPPORT to select the proper
ACPI to fix the issue.

Signed-off-by: Biswas Arghya <arghya.biswas@intel.com>
2023-10-20 09:33:40 -07:00
tsaikevin 9fa505a664
[ADLN] Upstream MR2 release (#2054)
Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2023-10-20 07:58:17 -07:00
jinjhuli fb99781ff6
fix: [MTL] Fix typo in inf file (#2058)
Fix missing .dec typo in inf file

Signed-off-by: jinjhuli <jin.jhu.lim@intel.com>
2023-10-20 16:28:28 +08:00
jinjhuli 26cdbf64b1
fix: [MTL] Resolve build error with latest GPIOV2 changes (#2052)
Move MeteorlakePkg.dec order to resolve build error

Signed-off-by: jinjhuli <jin.jhu.lim@intel.com>
2023-10-20 15:25:32 +08:00
tsaikevin b403ebe0cf
[ADLN] Remove TCC binaries (#2049)
Removed TCC subregion from dlt, FSP update and Acpi table.
Renamed TSN dlt for consistent file naming

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2023-10-17 11:12:07 -07:00
Karuppasamy 03fccf0fc8
feat: Addition of GPIO V2 library support (#2044)
GPIO V2 library uses sideband access to read and write a
particular GPIO also adds support for Virtual GPIO (These GPIO
can not have external connections,These are mainly used to integrate
discrete GPIO devices present on board)

Signed-off-by: Karuppasamy M <karuppasamy.m@intel.com>
2023-10-17 08:23:03 -07:00
Guo Dong 6570aa9037 Update FPDT Table
Update the FPDT header length to include the length
of boot records. This way we could easily get all the
boot records from dumped ACPI FPDT table.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2023-10-12 08:35:13 -07:00
Kevin Tsai b51241bb73 fix: [ADLN] program memory range above max address uncacheable
Windows memory test failed with write back cacheable setting for memory
address above maximum usable address.
The fix programs one MTRR register for memory range above max usable address
to override default MTRR register setting after temp ram exit.

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
2023-10-12 08:34:46 -07:00
koktong-ong ed1382da67
fix: [MTLP] DDI config update for RVP rev2 board (#2046)
SBL MTL-P DDI config update to support RVP rev2 board

TEST: Able to boot into Ubuntu with HDMI display

Signed-off-by: Kobe <kok.tong.ong@intel.com>
2023-10-10 09:55:36 -04:00
jinjhuli 0cc43e613c fix: [MTL] Update SwPart in Boot Option
Update SwPart to align with latest Ubuntu OS

Signed-off-by: jinjhuli <jin.jhu.lim@intel.com>
2023-10-09 17:00:53 -07:00
Sabryna 9d0cb1e5e5
fix: [MTL] Correction on UPD naming of PlatformDebugOption (#2042)
The UPD name of PlatformDebugConsent has been changed to PlatformDebugOption and by default is disabled.

Signed-off-by: Syahirah Sabryna <nur.syahirah.sabryna.mohmad@intel.com>
2023-10-09 14:51:41 -04:00
Guo Dong b4c1b6b36c
Add "acpi" shell command (#2041)
It could help debug ACPI related issues.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2023-10-07 23:14:39 -07:00
kokweich 4b27c245e7 fix:[MTL-P] Sync FSP Upd value with BIOS
Sync up FSP UPD value to BIOS v3323_48

This UPD sync fixed DXE assert error when booting Ubuntu on pendrive

Signed-off-by: kokweich <kok.wei.chan@intel.com>
2023-10-04 13:34:08 -07:00
Sean McGinn 480a58adaa Add support for authority measure in SHA384 and SM3 PCR banks
Allows authority measure to be extended into SHA384
and SM3 PCR banks, SHA256 PCR banks are already
supported

Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2023-10-03 10:56:05 -07:00
Sean McGinn c6522e1da0 Fix authority measure calculation for PCR[7]
This change corrects the authority measure
calculation in the common BootGuardTpmEventLogLib

If BtG KM is signed using RSA 3K key, a SHA384 hash
should be added to the authority PCR structure

If BtG KM is signed using RSA 2K key, a SHA256 hash
(padded to 384 bits) should be added to the authority
PCR structure

The entire authority PCR structure should be initialized
to zero before being populated

The authority event type should not be
EV_EFI_VARIABLE_DRIVER_CONFIG as the authority PCR
structure does not correspond to the EFI variable
structure (breaks tools)

Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
2023-10-03 10:56:05 -07:00
randylintw df1f7b8c58
fix: IsElfFormat doesn't correctly check the ELF header (#2036) (#2038)
Verify on booting with universal payload.

Signed-off-by: Randy <randy.lin@intel.com>
2023-10-03 12:15:12 -04:00
Arghya Biswas cbab6710a4
feat: Added FIT4 Entry in FIT table (#2037)
FIT4 Entry is needed for PCH-less Server platforms to execute CBnT
and/or PFR. By default, FIT4 Entry will not come into the scenario.
It needs to enable from BoardConfig.py for specific platforms.

Signed-off-by: Biswas Arghya <arghya.biswas@intel.com>
2023-10-02 10:10:39 -07:00
Biswas Arghya 000e6cc6d4 fix: [AZB] Fix modem connectivity issue
Some FSPm parameters not able to set and DMAR ACPI table was not
populated due to VTD was set as 0. As a result, OS able to detect
the modem but modem connectivity failed.

Signed-off-by: Biswas Arghya <arghya.biswas@intel.com>
2023-09-26 09:18:29 -07:00
Guo Dong 7db779439b [ADL/RPL] Update reset reason
Add reset reason caused by S4.
Update ADL to set reset reason.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2023-09-26 09:18:00 -07:00
Aakash Panwar c27857c458 [ICXD][LCC][HCC] Update Microcode for both LCC and HCC
Update Microcode from 270 to 280

Signed-off-by: Aakash Panwar <aakash.panwar@intel.com>
2023-09-20 22:09:30 -07:00
kokweich ffa48fe4c0
fix: [MTL] Fix Linux build issue (#2032)
Fix lowercase typo which causes linux build to fix

Signed-off-by: kokweich <kok.wei.chan@intel.com>
2023-09-20 20:56:33 -07:00
koktong-ong ade7f84eca
fix: [MTL] Fix coverity issue (#2029)
Fix for coverity scan issues

TEST: Able to boot with Windows and Ubuntu

Signed-off-by: Kobe <kok.tong.ong@intel.com>
2023-09-20 18:24:43 -07:00
Guo Dong cf38997cca Fix windows build failure
Previous patch used GCC extension "attribute__((packed))" which
caused windows build failure. This patch fixes it by using
#pragma pack().

Signed-off-by: Guo Dong <guo.dong@intel.com>
2023-09-20 14:57:31 -07:00
Jiaqing Zhao 338ba840bf OsLoader: Print misc image info in Shell
Add support to print misc image info in shell. Misc image will only be
printed when BOOT_FLAGS_MISC is set.

Also fixes some minor bugs in 5968cfa919 ("OsLoader: Print all extra
images")

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-19 17:58:18 -07:00
Jiaqing Zhao 7b13f02c68 CommonBoardPkg: Add misc support
This patch adds a new image addendum type 0xBE for LoadedImageTypeMisc.
Misc is used to implementing Android A/B boot by reading Bootloader
Control Block (BCB) in "misc" partition.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-19 17:58:18 -07:00
jizhenlo 4e3cfe8eb9 AbSupportLib: Align with Android Boot Control Block 1.1
Boot Control Block (BCB) is stored at the "misc" partition which is
used for implementing A/B boot in bootloader. This patch updates
AB_SLOT_DATA and AB_BOOT_INFO struct to align it with Android[1] and
kernelflinger[2] of project celadon.

[1] https://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/main/boot/1.1/default/boot_control/include/private/boot_control_definition.h
[2] https://github.com/projectceladon/kernelflinger/blob/master/avb/libavb_ab/avb_ab_flow.h

Signed-off-by: jizhenlo <zhenlong.z.ji@intel.com>
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-19 17:58:18 -07:00
Kobe 259908c8de fix: [MTL] Fixed RTC wake issue
Issue seen when performing S4/S5 power cycle with rtcwake method and
only occured with UEFI payload

Added few lines to clear RTC alarm and corresponding Pm1Sts only if
wake-up source is RTC SMI

Removed the duplicated RTC header file

TEST: Able to boot with Windows and Ubuntu

Signed-off-by: Kobe <kok.tong.ong@intel.com>
2023-09-19 17:31:13 -07:00
Sachin Kamat fb941001b3 feat: [AZB] Add Arizona Beach platform support
This patch adds platform and silicon for Arizona Beach (AZB)
platform.

TEST=LPDDR5 AZB CRB board is able to boot to Yocto.

Signed-off-by: Aakash Panwar <aakash.panwar@intel.com>
Signed-off-by: Akshatha Thekkade <akshatha.thekkade@intel.com>
Signed-off-by: Biswas Arghya <arghya.biswas@intel.com>
Signed-off-by: Chirag Vijay Kolhe <chirag.vijay.kolhe@intel.com>
Signed-off-by: M Karuppasamy <karuppasamy.m@intel.com>
Signed-off-by: Sachin Kamat <sachin.kamat@intel.com>
2023-09-13 22:49:14 -07:00
Jiaqing Zhao 7a5471d5f6 AlderlakeBoardPkg: Increase OsLoader FD size for ADL-PS
Increase OsLoader FD size to 0x58000 for ADL-PS to resolve build error.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-12 13:55:06 -07:00
Jiaqing Zhao c65cd572d2 OsLoader: Print all extra images
Currently only PreOs and Extra0 image info is printed in boot options
list, this patch prints all of them.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-12 13:55:06 -07:00
Jiaqing Zhao 5968cfa919 OsLoader: Shell support for FILE_IMAGE_LOCATION
Support printing and modifying boot file info in FILE_IMAGE_LOCATION
struct in OsLoader shell.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-12 13:55:06 -07:00
Jiaqing Zhao c6ee0e7859 OsLoader: Add MULTIBOOT_MODULE container support
MULTIBOOT_MODULE container is handled in a similar way as modules in
MULTIBOOT container when loading and parsing. If the normal image is
multiboot/multiboot2 format, these modules in extra images will be
appended to it in SetupBootImages().

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-12 13:55:06 -07:00
Jiaqing Zhao ebc9ae0625 Container: Add new container type MULTIBOOT_MODULE
The MULTIBOOT_MODULE type indicates the container contains only
multiboot modules and their string without a bootable kernel. Similar
to the MULTIBOOT container type, the files in container should be
organized in pairs which contains a zero-teminated text for string
and the a module binary.

This type should only be used in Extra images when Normal image is in
multiboot/multiboot2 format.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-12 13:55:06 -07:00
Jiaqing Zhao fe9d1a195a OsLoader: Add A/B support for GetBootImageFromFs()
Adds A/B support for GetBootImageFromFs(), the behavior is the same as
GetBootImageFromRawPartition(). When loading from B partition, it will
load the container file at the sampe path from next SwPart.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-12 13:55:06 -07:00
Jiaqing Zhao 49f5ae55ea OsLoader: Support loading extra images from other partitions
This patch adds a new struct FILE_IMAGE_LOCATION in BOOT_IMAGE to store
the SwPart and FsType of image file. This enables loading extra images
from a partition different than normal image.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-12 13:55:06 -07:00
Jiaqing Zhao 77c6c82c82 OsLoader: Initialize SwPart in LoadBootImages()
Move the initialization process of SwPart to support loading extra
images from other partitions in future.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-12 13:55:06 -07:00
Jiaqing Zhao b17d6f8c2f Fix typo EnumImageTypeAdroid
"Adroid" should be "Android".

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-05 20:36:54 -07:00
Jiaqing Zhao 68da867e71 ShellLib: Allow editing ImageType in boot command
Allow ImageType to be edited in boot command in shell.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
2023-09-05 20:36:54 -07:00
Guo Dong 9380ed2d0e Send FSP notification in universal UEFI payload
In current implementation all FSP notification are sent in SBL.
When using universal UEFI payload with SMM enabled, it is expected
to send ReadyToBoot and EndOfFirmware event in payload.
This patch just skip the FSP notification in SBL. Universal UEFI
payload should make sure FSP notification would be sent.

Signed-off-by: Guo Dong <guo.dong@intel.com>
2023-09-05 20:30:51 -07:00
cshur 83e3f07c9d feat: Update # of X2Apic Processor Local APIC
Since # of PROCESSOR_LOCAL_APICs are
Madt Local Apic # is 1.
Madt X2 Local Apic # is 9.

Need to update # of structure type of X2Apic.

Signed-off-by: cshur <cs.hur@intel.com>
2023-09-05 15:48:55 -07:00
koktong-ong 2d18ee3a46
fix: [MTL] Add IgdOpRegionDefine 3.0 header (#2017)
Added IgdOpRegionDefine 3.0 header file
Removed unsed IgdPlatformInfo in Stage2BoardInit file

TEST: Booted into Ubuntu and Windows

Signed-off-by: Kobe <kok.tong.ong@intel.com>
2023-09-05 18:17:28 -04:00
Aakash Panwar 372d75250c [ICXD][LCC] Update Microcode for both LCC and HCC
Update Microcode from 260 to 270

Signed-off-by: Aakash Panwar <aakash.panwar@intel.com>
2023-09-01 10:07:32 -07:00