[ADLN] Verify Table ID when updating Rtd3 SSDT (#1741)

Rtd3 SSDT have CRB and RVP versions. Verify Table ID to match Platfrom SKU
when updating SSDT table.

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

Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
This commit is contained in:
tsaikevin 2022-11-03 07:14:34 -07:00 committed by GitHub
parent 31fe742339
commit d8295bc0dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -423,6 +423,22 @@ PlatformUpdateAcpiTable (
if (GetCpuSku() == 0) { // ADL-S
FadtPointer->PreferredPmProfile = 0x2; //mobile
}
} else if (CompareMem (&Table->OemId, "Rtd3", 4) == 0) {
// Load RTD3 SSDT table for ADL RVP/CRB SKUs
// Note: "OemId" field is used to indentify whether SSDT table is for RTD3 usage
Status = EFI_UNSUPPORTED;
if (GlobalNvs->PlatformNvs.Rtd3Support == 1) {
// return EFI_SUCCESS only when PlatformID matches
if (GetPlatformId () == BoardIdAdlNDdr5Crb && Table->OemTableId == SIGNATURE_64('A', 'd', 'l', 'N' ,'_' ,'C' ,'r' ,'b')) {
Status = EFI_SUCCESS;
} else if (GetPlatformId () == BoardIdAdlNLp5Rvp && Table->OemTableId == SIGNATURE_64('A', 'd', 'l', 'N' ,'_' ,'R' ,'v' ,'p')) {
Status = EFI_SUCCESS;
}
DEBUG ((DEBUG_INFO, "Board SsdtRtd3 Table: %x\n", Table->OemTableId));
}
return Status;
}
if (MEASURED_BOOT_ENABLED()) {