public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v3 edk2-platforms 0/8] Add ACPI tables support for SbsaQemu
@ 2020-08-25 13:39 Tanmay Jagdale
  2020-08-25 13:39 ` [PATCH v3 edk2-platforms 1/8] SbsaQemu: Initial support for static ACPI tables Tanmay Jagdale
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Tanmay Jagdale @ 2020-08-25 13:39 UTC (permalink / raw)
  To: leif, graeme, devel; +Cc: shashi.mallela, Tanmay Jagdale

This patch series adds ACPI tables support for the SbsaQemu platform.
We are using a pseudo static approach to create the ACPI tables.

The ACPI tables namely DBG2, DSDT, MCFG, SPCR, GTDT are created in a
static way at compile time because they hold a fixed configuration
and there are no changes at runtime.

The MADT, SSDT and PPTT tables are dependant on the number of CPUs and
hence they are created at runtime based on the number of CPUs the user
has requested

Changes in v3:
  - Dropped ASSERT() in CountCpusFromFdt() function in patch 4.
  - Changed EFI_D_ERROR to DEBUG_ERROR

Changes in v2:
  - Moved PcdCoreCount and Fdtlib related changes in SbsaQemu.dsc to a
    separate patch (Patch 3).
  - Removed Acpi6x.h header file includes and used IndustryStandard/Acpi.h
  - Whitespace cleanups
  - Added proper code comments

Tanmay Jagdale (8):
  SbsaQemu: Initial support for static ACPI tables
  SbsaQemu: AcpiTables: Add PCI support and MCFG Table
  SbsaQemu: SbsaQemu.dsc: Move CoreCount and Fdtlib
  SbsaQemu: Add new ACPI driver and FDT parser to count CPUs
  SbsaQemu: AcpiDxe: Create MADT table at runtime
  SbsaQemu: AcpiDxe: Create SSDT table at runtime
  SbsaQemu: AcpiDxe: Create PPTT table at runtime
  SbsaQemu: AcpiTables: Add DBG2 Table

 Silicon/Qemu/SbsaQemu/SbsaQemu.dec                                |   8 +-
 Silicon/Qemu/SbsaQemu/Acpi.dsc.inc                                |  36 ++
 Platform/Qemu/SbsaQemu/SbsaQemu.dsc                               |  12 +-
 Platform/Qemu/SbsaQemu/SbsaQemu.fdf                               |   9 +
 Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf                   |  47 ++
 Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.inf |  67 +++
 Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuAcpi.h     | 199 ++++++++
 Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c   | 485 ++++++++++++++++++++
 Silicon/Qemu/SbsaQemu/AcpiTables/Dbg2.aslc                        |  67 +++
 Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl                         | 449 ++++++++++++++++++
 Silicon/Qemu/SbsaQemu/AcpiTables/Fadt.aslc                        |  80 ++++
 Silicon/Qemu/SbsaQemu/AcpiTables/Gtdt.aslc                        |  67 +++
 Silicon/Qemu/SbsaQemu/AcpiTables/Mcfg.aslc                        |  43 ++
 Silicon/Qemu/SbsaQemu/AcpiTables/Spcr.aslc                        |  53 +++
 14 files changed, 1618 insertions(+), 4 deletions(-)
 create mode 100644 Silicon/Qemu/SbsaQemu/Acpi.dsc.inc
 create mode 100644 Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf
 create mode 100644 Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.inf
 create mode 100644 Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuAcpi.h
 create mode 100644 Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c
 create mode 100644 Silicon/Qemu/SbsaQemu/AcpiTables/Dbg2.aslc
 create mode 100644 Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl
 create mode 100644 Silicon/Qemu/SbsaQemu/AcpiTables/Fadt.aslc
 create mode 100644 Silicon/Qemu/SbsaQemu/AcpiTables/Gtdt.aslc
 create mode 100644 Silicon/Qemu/SbsaQemu/AcpiTables/Mcfg.aslc
 create mode 100644 Silicon/Qemu/SbsaQemu/AcpiTables/Spcr.aslc

-- 
2.28.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-08-27  9:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-25 13:39 [PATCH v3 edk2-platforms 0/8] Add ACPI tables support for SbsaQemu Tanmay Jagdale
2020-08-25 13:39 ` [PATCH v3 edk2-platforms 1/8] SbsaQemu: Initial support for static ACPI tables Tanmay Jagdale
2020-08-25 13:39 ` [PATCH v3 edk2-platforms 2/8] SbsaQemu: AcpiTables: Add PCI support and MCFG Table Tanmay Jagdale
2020-08-25 13:39 ` [PATCH v3 edk2-platforms 3/8] SbsaQemu: SbsaQemu.dsc: Move CoreCount and Fdtlib Tanmay Jagdale
2020-08-25 13:39 ` [PATCH v3 edk2-platforms 4/8] SbsaQemu: Add new ACPI driver and FDT parser to count CPUs Tanmay Jagdale
2020-08-25 13:39 ` [PATCH v3 edk2-platforms 5/8] SbsaQemu: AcpiDxe: Create MADT table at runtime Tanmay Jagdale
2020-08-26 15:35   ` graeme
2020-08-26 22:48     ` Graeme Gregory
2020-08-27  2:56       ` Tanmay Jagdale
2020-08-27  9:41         ` Graeme Gregory
2020-08-25 13:39 ` [PATCH v3 edk2-platforms 6/8] SbsaQemu: AcpiDxe: Create SSDT " Tanmay Jagdale
2020-08-25 13:39 ` [PATCH v3 edk2-platforms 7/8] SbsaQemu: AcpiDxe: Create PPTT " Tanmay Jagdale
2020-08-25 13:39 ` [PATCH v3 edk2-platforms 8/8] SbsaQemu: AcpiTables: Add DBG2 Table Tanmay Jagdale
2020-08-25 13:57 ` [PATCH v3 edk2-platforms 0/8] Add ACPI tables support for SbsaQemu Leif Lindholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox