* [edk2-platforms][PATCH V1 0/3] ACPI cleanup for RD-V1
@ 2021-02-15 10:45 Pranav Madhu
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 1/3] Platform/Sgi: include SSDT table for RD-V1 platform Pranav Madhu
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Pranav Madhu @ 2021-02-15 10:45 UTC (permalink / raw)
To: devel; +Cc: Ard Biesheuvel, Leif Lindholm, Sami Mujawar
This patch series contains assorted cleanups for the RD-V1 platform ACPI
tables. The first patch in this series includes the SSDT table for both
the RD-V1 single chip and multi-chip platform. The subsequent patches in
this series cleanup the ACPI processor ID and MPIDR values for RD-V1 in
multichip configuration.
Pranav Madhu (3):
Platform/Sgi: include SSDT table for RD-V1 platform
Platform/Sgi: fix the list of CPU devices on RD-V1-MC platform
Platform/Sgi: fix CPU acpi-id for RD-V1-MC platform
.../ARM/SgiPkg/AcpiTables/RdV1AcpiTables.inf | 1 +
.../SgiPkg/AcpiTables/RdV1McAcpiTables.inf | 1 +
.../ARM/SgiPkg/AcpiTables/RdV1Mc/Dsdt.asl | 6 -----
.../ARM/SgiPkg/AcpiTables/RdV1Mc/Madt.aslc | 24 +++++++++----------
4 files changed, 14 insertions(+), 18 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [edk2-platforms][PATCH V1 1/3] Platform/Sgi: include SSDT table for RD-V1 platform
2021-02-15 10:45 [edk2-platforms][PATCH V1 0/3] ACPI cleanup for RD-V1 Pranav Madhu
@ 2021-02-15 10:45 ` Pranav Madhu
2021-03-01 14:10 ` [edk2-devel] " Sami Mujawar
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 2/3] Platform/Sgi: fix the list of CPU devices on RD-V1-MC platform Pranav Madhu
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 3/3] Platform/Sgi: fix CPU acpi-id for " Pranav Madhu
2 siblings, 1 reply; 7+ messages in thread
From: Pranav Madhu @ 2021-02-15 10:45 UTC (permalink / raw)
To: devel; +Cc: Ard Biesheuvel, Leif Lindholm, Sami Mujawar
Ssdt ACPI table in SgiPkg describes the PCIe controller and the root
complex resources. Include this table for RD-V1 and RD-V1-MC platforms.
Signed-off-by: Pranav Madhu <pranav.madhu@arm.com>
---
Platform/ARM/SgiPkg/AcpiTables/RdV1AcpiTables.inf | 1 +
Platform/ARM/SgiPkg/AcpiTables/RdV1McAcpiTables.inf | 1 +
2 files changed, 2 insertions(+)
diff --git a/Platform/ARM/SgiPkg/AcpiTables/RdV1AcpiTables.inf b/Platform/ARM/SgiPkg/AcpiTables/RdV1AcpiTables.inf
index a5f936b8a758..583ffac70b71 100644
--- a/Platform/ARM/SgiPkg/AcpiTables/RdV1AcpiTables.inf
+++ b/Platform/ARM/SgiPkg/AcpiTables/RdV1AcpiTables.inf
@@ -24,6 +24,7 @@
RdV1/Dsdt.asl
RdV1/Madt.aslc
Spcr.aslc
+ Ssdt.asl
[Packages]
ArmPkg/ArmPkg.dec
diff --git a/Platform/ARM/SgiPkg/AcpiTables/RdV1McAcpiTables.inf b/Platform/ARM/SgiPkg/AcpiTables/RdV1McAcpiTables.inf
index 051825993af0..2d6a65b103b4 100644
--- a/Platform/ARM/SgiPkg/AcpiTables/RdV1McAcpiTables.inf
+++ b/Platform/ARM/SgiPkg/AcpiTables/RdV1McAcpiTables.inf
@@ -25,6 +25,7 @@
RdV1Mc/Madt.aslc
RdV1Mc/Srat.aslc
Spcr.aslc
+ Ssdt.asl
[Packages]
ArmPkg/ArmPkg.dec
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [edk2-platforms][PATCH V1 2/3] Platform/Sgi: fix the list of CPU devices on RD-V1-MC platform
2021-02-15 10:45 [edk2-platforms][PATCH V1 0/3] ACPI cleanup for RD-V1 Pranav Madhu
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 1/3] Platform/Sgi: include SSDT table for RD-V1 platform Pranav Madhu
@ 2021-02-15 10:45 ` Pranav Madhu
2021-03-01 14:30 ` [edk2-devel] " Sami Mujawar
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 3/3] Platform/Sgi: fix CPU acpi-id for " Pranav Madhu
2 siblings, 1 reply; 7+ messages in thread
From: Pranav Madhu @ 2021-02-15 10:45 UTC (permalink / raw)
To: devel; +Cc: Ard Biesheuvel, Leif Lindholm, Sami Mujawar
RD-V1-MC platform has four CPUs in each of its four coherently connected
chips. So remove a incorrect CPU device entry in DSDT table that lists a
additional non-existent CPU.
Signed-off-by: Pranav Madhu <pranav.madhu@arm.com>
---
Platform/ARM/SgiPkg/AcpiTables/RdV1Mc/Dsdt.asl | 6 ------
1 file changed, 6 deletions(-)
diff --git a/Platform/ARM/SgiPkg/AcpiTables/RdV1Mc/Dsdt.asl b/Platform/ARM/SgiPkg/AcpiTables/RdV1Mc/Dsdt.asl
index aef6473857b0..9bf57d05a646 100644
--- a/Platform/ARM/SgiPkg/AcpiTables/RdV1Mc/Dsdt.asl
+++ b/Platform/ARM/SgiPkg/AcpiTables/RdV1Mc/Dsdt.asl
@@ -109,11 +109,5 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 1, "ARMLTD", "ARMSGI",
Name (_UID, 15)
Name (_STA, 0xF)
}
-
- Device (CP16) { // Zeus core 16
- Name (_HID, "ACPI0007")
- Name (_UID, 16)
- Name (_STA, 0xF)
- }
} // Scope(_SB)
}
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [edk2-platforms][PATCH V1 3/3] Platform/Sgi: fix CPU acpi-id for RD-V1-MC platform
2021-02-15 10:45 [edk2-platforms][PATCH V1 0/3] ACPI cleanup for RD-V1 Pranav Madhu
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 1/3] Platform/Sgi: include SSDT table for RD-V1 platform Pranav Madhu
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 2/3] Platform/Sgi: fix the list of CPU devices on RD-V1-MC platform Pranav Madhu
@ 2021-02-15 10:45 ` Pranav Madhu
2021-03-01 14:32 ` [edk2-devel] " Sami Mujawar
2 siblings, 1 reply; 7+ messages in thread
From: Pranav Madhu @ 2021-02-15 10:45 UTC (permalink / raw)
To: devel; +Cc: Ard Biesheuvel, Leif Lindholm, Sami Mujawar
Fix the incorrect ACPI _UID (Unique ID) object for CPU devices listed
for the RD-V1-MC platform.
Signed-off-by: Pranav Madhu <pranav.madhu@arm.com>
---
Platform/ARM/SgiPkg/AcpiTables/RdV1Mc/Madt.aslc | 24 ++++++++++----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/Platform/ARM/SgiPkg/AcpiTables/RdV1Mc/Madt.aslc b/Platform/ARM/SgiPkg/AcpiTables/RdV1Mc/Madt.aslc
index 0da56ed2a39b..9b3e4f2be370 100644
--- a/Platform/ARM/SgiPkg/AcpiTables/RdV1Mc/Madt.aslc
+++ b/Platform/ARM/SgiPkg/AcpiTables/RdV1Mc/Madt.aslc
@@ -69,55 +69,55 @@ STATIC EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE Madt = {
// Chip 1
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core0
- 0, 0, GET_MPID(0x01000000ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 4, GET_MPID(0x01000000ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core1
- 0, 1, GET_MPID(0x01000100ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 5, GET_MPID(0x01000100ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core2
- 0, 2, GET_MPID(0x01000200ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 6, GET_MPID(0x01000200ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core3
- 0, 3, GET_MPID(0x01000300ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 7, GET_MPID(0x01000300ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
// Chip 2
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core0
- 0, 0, GET_MPID(0x02000000ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 8, GET_MPID(0x02000000ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core1
- 0, 1, GET_MPID(0x02000100ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 9, GET_MPID(0x02000100ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core2
- 0, 2, GET_MPID(0x02000200ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 10, GET_MPID(0x02000200ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core3
- 0, 3, GET_MPID(0x02000300ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 11, GET_MPID(0x02000300ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
// Chip 3
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core0
- 0, 0, GET_MPID(0x03000000ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 12, GET_MPID(0x03000000ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core1
- 0, 1, GET_MPID(0x03000100ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 13, GET_MPID(0x03000100ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core2
- 0, 2, GET_MPID(0x03000200ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 14, GET_MPID(0x03000200ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
EFI_ACPI_6_2_GICC_STRUCTURE_INIT( // Zeus core3
- 0, 3, GET_MPID(0x03000300ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
+ 0, 15, GET_MPID(0x03000300ULL, 0x0), EFI_ACPI_6_2_GIC_ENABLED, 23,
FixedPcdGet32 (PcdGicDistributorBase),
0x2c020000, 0x2c010000, 25, 0 /* GicRBase */, 0 /* Efficiency */),
},
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [edk2-devel] [edk2-platforms][PATCH V1 1/3] Platform/Sgi: include SSDT table for RD-V1 platform
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 1/3] Platform/Sgi: include SSDT table for RD-V1 platform Pranav Madhu
@ 2021-03-01 14:10 ` Sami Mujawar
0 siblings, 0 replies; 7+ messages in thread
From: Sami Mujawar @ 2021-03-01 14:10 UTC (permalink / raw)
To: Pranav Madhu, devel
[-- Attachment #1: Type: text/plain, Size: 78 bytes --]
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Regards,
Sami Mujawar
[-- Attachment #2: Type: text/html, Size: 101 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [edk2-devel] [edk2-platforms][PATCH V1 2/3] Platform/Sgi: fix the list of CPU devices on RD-V1-MC platform
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 2/3] Platform/Sgi: fix the list of CPU devices on RD-V1-MC platform Pranav Madhu
@ 2021-03-01 14:30 ` Sami Mujawar
0 siblings, 0 replies; 7+ messages in thread
From: Sami Mujawar @ 2021-03-01 14:30 UTC (permalink / raw)
To: Pranav Madhu, devel
[-- Attachment #1: Type: text/plain, Size: 799 bytes --]
Hi Pranav,
Can you add a link to the RD-V1-MC platform documentation in a specification reference section in the file header, please?
See https://edk2-docs.gitbook.io/edk-ii-c-coding-standards-specification/5_source_files/52_spacing#5-2-3-1-every-new-file-shall-begin-with-a-file-header-comment-block
Also can you submit another patch in this series that adds a Readme.md file that describes the following, please?
- Where to find the documentation for the platform.
- RD-V1-MC model binary download location.
- Toolchain to be used and location to download the same.
- Firmware build instructions and supported build hosts.
- Any other dependencies required to boot to the UEFI shell.
The Readme.md file could be added as a new patch in the v2 series.
Regards,
Sami Mujawar
[-- Attachment #2: Type: text/html, Size: 37362 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [edk2-devel] [edk2-platforms][PATCH V1 3/3] Platform/Sgi: fix CPU acpi-id for RD-V1-MC platform
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 3/3] Platform/Sgi: fix CPU acpi-id for " Pranav Madhu
@ 2021-03-01 14:32 ` Sami Mujawar
0 siblings, 0 replies; 7+ messages in thread
From: Sami Mujawar @ 2021-03-01 14:32 UTC (permalink / raw)
To: Pranav Madhu, devel
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
Hi Pranav,
Can you add a link to the RD-V1-MC platform documentation in a specification reference section in the file header, please?
See https://edk2-docs.gitbook.io/edk-ii-c-coding-standards-specification/5_source_files/52_spacing#5-2-3-1-every-new-file-shall-begin-with-a-file-header-comment-block
Regards,
Sami Mujawar
[-- Attachment #2: Type: text/html, Size: 579 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-03-01 14:32 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-15 10:45 [edk2-platforms][PATCH V1 0/3] ACPI cleanup for RD-V1 Pranav Madhu
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 1/3] Platform/Sgi: include SSDT table for RD-V1 platform Pranav Madhu
2021-03-01 14:10 ` [edk2-devel] " Sami Mujawar
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 2/3] Platform/Sgi: fix the list of CPU devices on RD-V1-MC platform Pranav Madhu
2021-03-01 14:30 ` [edk2-devel] " Sami Mujawar
2021-02-15 10:45 ` [edk2-platforms][PATCH V1 3/3] Platform/Sgi: fix CPU acpi-id for " Pranav Madhu
2021-03-01 14:32 ` [edk2-devel] " Sami Mujawar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox