From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by mx.groups.io with SMTP id smtpd.web12.88598.1597847410783888187 for ; Wed, 19 Aug 2020 07:30:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=dLtZ8zw4; spf=pass (domain: linaro.org, ip: 209.85.216.68, mailfrom: tanmay.jagdale@linaro.org) Received: by mail-pj1-f68.google.com with SMTP id ds1so864068pjb.1 for ; Wed, 19 Aug 2020 07:30:10 -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=RR81/FGErDYryiVgMtebHQhC5NCkF1+sfdlL/dUrlnE=; b=dLtZ8zw44aoOfK2vK4MfRd5+tw2vMQ4L+CGerfTltKn/VTvywKsvqjC/9Gn9FhcvHl 4HhZcrzxD1zHRcQ1iijJGHtalTMikLlwotDWtlYavbnZ7t3rpduoj/kTPJW2J9WaBC6w 31viKITdxsjBpYyO3C7naHYgbeQQmNZmogPgEV4uhPanznrnVqWs8svj6tJUMjvxEMl4 fbpgOSWCRluNRF41vfqFYoq9SMubnzOF2NBs56lIiWD4JCcxhkIE0Xy6freW6YHBe60p 6CM0orQrgmotIxM1oZsdF3K6h4koNxNs4GCNM/ONhYjEUt2tdmhBQVyJStHZilVxABjw gdlA== 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=RR81/FGErDYryiVgMtebHQhC5NCkF1+sfdlL/dUrlnE=; b=Zkun2ziIg6yWpv9Iyz3MGxaJwvZ1DKEZ04XqvgEB3ivLbrqWjEOiE18kt6Yg+wnX27 gsyyJoowKLu9rPwiQJ1wSsgGbpewQA/MVaQ7aBsGVGMYo0/hCywb3PPlIK4cllIRLUNy rsedpPkcHnAS1xftukmMt98fEx4RKXmbF6TT8LYriK97NwgY+evxCtadMhsG3fgokqPa 7qx3t67g0AHifKrURI29h1dHuqRW4zLCA8f53NDELmD84QbSv5n+k+2w0eUO49bNahjy wPWPV4EgWpKVrlMRDKK/rj2utUDbZXzmsOl3Al63/pnjEDYFRVwq/ylz1wKJPdMHB/Qb T7QA== X-Gm-Message-State: AOAM533tqNXYW5VlfepdfB9dwKdaVGtAfQsb3Q7GBLC/3Hsr3VWcKO2s gSyfRpbdg6VwlNAH0OhxTBohLw== X-Google-Smtp-Source: ABdhPJxFK2gd+B9GHJvXGsuQU8CowZptaBn/JvwVTAdBkVRo8TaJEiV/beylfIPO6t1h/GtkciKpyg== X-Received: by 2002:a17:90a:c58b:: with SMTP id l11mr4303597pjt.195.1597847410183; Wed, 19 Aug 2020 07:30:10 -0700 (PDT) Return-Path: Received: from bean-canyon.localdomain ([106.51.140.68]) by smtp.googlemail.com with ESMTPSA id y10sm3320752pjv.55.2020.08.19.07.30.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 07:30:09 -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 edk2-platforms 0/7] Add ACPI tables support for SbsaQemu Date: Wed, 19 Aug 2020 19:59:58 +0530 Message-Id: <20200819143005.13999-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. Tanmay Jagdale (7): SbsaQemu: Initial support for static ACPI tables SbsaQemu: AcpiTables: Add PCI support and MCFG Table 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 Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 12 +- Platform/Qemu/SbsaQemu/SbsaQemu.fdf | 9 + Silicon/Qemu/SbsaQemu/Acpi.dsc.inc | 36 ++ .../Qemu/SbsaQemu/AcpiTables/AcpiTables.inf | 47 ++ Silicon/Qemu/SbsaQemu/AcpiTables/Dbg2.aslc | 68 +++ 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 ++ .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 490 ++++++++++++++++++ .../SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.inf | 67 +++ .../Include/IndustryStandard/SbsaQemuAcpi.h | 199 +++++++ Silicon/Qemu/SbsaQemu/SbsaQemu.dec | 8 +- 14 files changed, 1624 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/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 create mode 100644 Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c create mode 100644 Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.inf create mode 100644 Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuAcpi.h -- 2.28.0