summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>2019-10-23 10:39:04 +0530
committerThomas Abraham <thomas.abraham@arm.com>2019-10-23 17:43:28 +0530
commit13d6b13d745d57af12372d435ae73418ab430fec (patch)
tree81428ec8a23f6a42e7c6e88e11eca4294c91caa6
parentaac0ec2b8b2abfc4a6ac9fa94e17d27618a405b4 (diff)
rddaniel: add srat table to enable NUMA nodes
Change-Id: I980b1c6f9044484609a36e98d9df0bc81dd62342 Signed-off-by: Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
-rw-r--r--Platform/ARM/SgiPkg/AcpiTables/RdDanielAcpiTables.inf1
-rw-r--r--Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c10
2 files changed, 1 insertions, 10 deletions
diff --git a/Platform/ARM/SgiPkg/AcpiTables/RdDanielAcpiTables.inf b/Platform/ARM/SgiPkg/AcpiTables/RdDanielAcpiTables.inf
index 1557f845..7de673fb 100644
--- a/Platform/ARM/SgiPkg/AcpiTables/RdDanielAcpiTables.inf
+++ b/Platform/ARM/SgiPkg/AcpiTables/RdDanielAcpiTables.inf
@@ -28,6 +28,7 @@
Mcfg.aslc
RdDaniel/Dsdt.asl
RdDaniel/Madt.aslc
+ RdDaniel/Srat.aslc
Spcr.aslc
[Packages]
diff --git a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c b/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c
index 0373be74..a952aa68 100644
--- a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c
+++ b/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c
@@ -58,18 +58,11 @@ ArmPlatformGetVirtualMemoryMap (
FixedPcdGet64 (PcdSystemMemoryBaseRemote),
FixedPcdGet64 (PcdSystemMemorySize));
-#if 1
-#define REMOTE_TOP_MEM_SIZE 0x170000000ULL
-#define REMOTE_TOP_MEM_BASE 0x48090000000ULL
-
BuildResourceDescriptorHob (
EFI_RESOURCE_SYSTEM_MEMORY,
ResourceAttributes,
FixedPcdGet64 (PcdDramBlock2BaseRemote),
FixedPcdGet64 (PcdDramBlock2SizeRemote));
- //REMOTE_TOP_MEM_BASE,
- //REMOTE_TOP_MEM_SIZE);
-#endif
ASSERT (VirtualMemoryMap != NULL);
Index = 0;
@@ -150,10 +143,7 @@ ArmPlatformGetVirtualMemoryMap (
// Remote DDR - Second Block
VirtualMemoryTable[++Index].PhysicalBase = PcdGet64 (PcdDramBlock2BaseRemote);
VirtualMemoryTable[Index].VirtualBase = PcdGet64 (PcdDramBlock2BaseRemote);
- // VirtualMemoryTable[++Index].PhysicalBase = REMOTE_TOP_MEM_BASE;
- // VirtualMemoryTable[Index].VirtualBase = REMOTE_TOP_MEM_BASE;
VirtualMemoryTable[Index].Length = PcdGet64 (PcdDramBlock2SizeRemote);
- //VirtualMemoryTable[Index].Length = REMOTE_TOP_MEM_SIZE;
VirtualMemoryTable[Index].Attributes = ARM_MEMORY_REGION_ATTRIBUTE_WRITE_BACK;
// PCI Configuration Space