Skip to content

Commit

Permalink
JadePkg: Correct SMBIOS type 19 info
Browse files Browse the repository at this point in the history
Using wrong data field makes SMBIOS type 19 incomplete when SubNUMA
mode is Hemisphere or Quadrant. This change also help to fix wrong
total memory on UiApp as it was calculated from this SMBIOS info.

Signed-off-by: Vu Nguyen <Vu@amperecomputing.com>
  • Loading branch information
vu-ampere authored and thangqn-ampere committed Feb 26, 2021
1 parent 6ca639b commit 407e760
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@ InstallMemStructures (
// Copy Tempplate to Type 19
CopyMem (Table, (VOID *) &mArmDefaultType19, sizeof (ARM_TYPE19));

if (PlatformHob->DramInfo.Node[MemRegionIndex] != Index) {
if (PlatformHob->DramInfo.NvdRegion[MemRegionIndex] > 0
|| PlatformHob->DramInfo.Socket[MemRegionIndex] != Index)
{
continue;
}

Expand Down

0 comments on commit 407e760

Please sign in to comment.