From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mx.groups.io with SMTP id smtpd.web10.8987.1598340206507533144 for ; Tue, 25 Aug 2020 00:23:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=qPWJpaYW; spf=pass (domain: linaro.org, ip: 209.85.210.194, mailfrom: tanmay.jagdale@linaro.org) Received: by mail-pf1-f194.google.com with SMTP id d22so6625693pfn.5 for ; Tue, 25 Aug 2020 00:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vpHRPyg8CId/rYk5uhVmD/YftkiEnxr9oRnczlYT574=; b=qPWJpaYWy+zPHH6T1rfr9C+HYChToESvxGeDFjQqFoJBFEDz/C7PvtsifQ5irX2c7w D7VkFUnWQmriUptXiXovlZld+OPw21fRA8yb2zY3wYVlG/GSQkTXFaYd7Sv20ZQR646f 39nlVb64gP5LnYg29MkoAGBluqWWPIgF+3SWApuz3zKw99WNQtC/HszdOtHl8tqwj/AX WaVhU/5LXFplfVcrFy772wJgw2p5oOJezP3QFBCA7MtZZ3V4agL/foRd0YGwjtm38Y5m CuvQamc7pbieLI4lSTu1V9LZPFK034CwNiGL6yImj11q5w8YsPSV84Tamef219bGhhIw qUpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vpHRPyg8CId/rYk5uhVmD/YftkiEnxr9oRnczlYT574=; b=oxuT9fHkaE4eyeGcFX++7Ep2tuqSb3s2WuQzIXRoQqAVJHV5o1WPRvy0fEXF9PgoN1 a3A29yUFuECTX2BNQ/pL3ohOWt0wuy5q4F0LcELSz2W/98M5Qc75mf0Q1vllN7wPkkml XXb6QuywUbGEs2esnsAgDqfYoAxP9SsIG8wWY0l6EgduVDPn62xmvmK5IwvS2oQTYRqL 9aEzO8Cg0AGA30JPeFLq6j9bkSIEW+CS8RZiN07uq95fE9PMtLWJUO04PATsFCvPn9Jq JUoZ9Qk3U51XlbcAgomMZp0qHcHS/na0B40hJE6aHYvP7FKg3DSBDJiaAd1aRPDi6G2Z TKSQ== X-Gm-Message-State: AOAM53391pJAEoUVHeI9tKd+n8GUxceDNdXSeCGW/83xeKVYokj5nD/Q eRAzHKrou4/9VYgamNRZhTtqig== X-Google-Smtp-Source: ABdhPJzJEXLcO3rgLbfzulNnGtEZEeNJsw7ErQYEzjb1Qryvs/eTPy4H8fUfclTfRP0pDgf6eE9pRQ== X-Received: by 2002:a17:902:900b:: with SMTP id a11mr6590695plp.199.1598340205905; Tue, 25 Aug 2020 00:23:25 -0700 (PDT) Return-Path: Received: from bean-canyon.localdomain ([106.51.140.68]) by smtp.googlemail.com with ESMTPSA id d5sm1722417pjw.18.2020.08.25.00.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 00:23:24 -0700 (PDT) From: "Tanmay Jagdale" To: leif@nuviainc.com, graeme@nuviainc.com, shashi.mallela@linaro.org, devel@edk2.groups.io Cc: paul.isaacs@linaro.org, tanmay@marvell.com, Tanmay Jagdale Subject: [PATCH v2 edk2-platforms 0/8] Add ACPI tables support for SbsaQemu Date: Tue, 25 Aug 2020 12:53:14 +0530 Message-Id: <20200825072322.10848-1-tanmay.jagdale@linaro.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 v2: - Moved the PcdCoreCount and Fdtlib changes in dsc file changes 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 | 486 ++++++++++++++++++++ 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, 1619 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