public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: "Sajjan, Vikas C" <vikas.cha.sajjan@hpe.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@ml01.01.org>,
	"ard.biesheuvel@linaro.org" <ard.biesheuvel@linaro.org>,
	"leif.lindholm@linaro.org" <leif.lindholm@linaro.org>,
	"Shannon Zhao (Linaro address)" <shannon.zhao@linaro.org>
Subject: Re: [PATCH] ArmVirtPkg: Add NFIT report feature for ArmVirtPkg for ramdisks
Date: Mon, 15 Aug 2016 22:38:26 +0200	[thread overview]
Message-ID: <da2a9d2b-4b5e-59c3-8ca6-4552ba1e318f@redhat.com> (raw)
In-Reply-To: <AT5PR84MB00520A1C2442A0E278966D7AD91C0@AT5PR84MB0052.NAMPRD84.PROD.OUTLOOK.COM>

On 08/09/16 11:55, Sajjan, Vikas C wrote:
> Adding Maintainers.
> 
> -----Original Message-----
> From: Sajjan, Vikas C 
> Sent: Tuesday, August 09, 2016 1:28 PM
> To: edk2-devel@lists.01.org
> Cc: Sajjan, Vikas C <vikas.cha.sajjan@hpe.com>
> Subject: [PATCH] ArmVirtPkg: Add NFIT report feature for ArmVirtPkg for ramdisks
> 
> Adds NFIT report feature for ArmVirtPkg for ramdisks of reserved memory type.
> 
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Vikas C Sajjan <vikas.cha.sajjan@hpe.com>
> ---
>  ArmVirtPkg/ArmVirtQemu.dsc      | 4 ++++
>  ArmVirtPkg/ArmVirtQemu.fdf      | 2 ++
>  ArmVirtPkg/ArmVirtRules.fdf.inc | 2 ++
>  3 files changed, 8 insertions(+)
> 
> diff --git a/ArmVirtPkg/ArmVirtQemu.dsc b/ArmVirtPkg/ArmVirtQemu.dsc index 9f88786..35a3d8f 100644
> --- a/ArmVirtPkg/ArmVirtQemu.dsc
> +++ b/ArmVirtPkg/ArmVirtQemu.dsc
> @@ -103,6 +103,9 @@
>    # Activate KVM workaround for now.
>    gArmVirtTokenSpaceGuid.PcdKludgeMapPciMmioAsCached|TRUE
>  
> +  # Activate AcpiSdtProtocol.
> +  gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
> +
>  !if $(PURE_ACPI_BOOT_ENABLE) == TRUE
>    gArmVirtTokenSpaceGuid.PcdPureAcpiBoot|TRUE
>  !endif
> @@ -397,6 +400,7 @@
>    # ACPI Support
>    #
>    MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
> +  MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
>    OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf {
>      <LibraryClasses>
>        NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
> diff --git a/ArmVirtPkg/ArmVirtQemu.fdf b/ArmVirtPkg/ArmVirtQemu.fdf index c6a22dc..7d6737b 100644
> --- a/ArmVirtPkg/ArmVirtQemu.fdf
> +++ b/ArmVirtPkg/ArmVirtQemu.fdf
> @@ -110,6 +110,8 @@ READ_LOCK_STATUS   = TRUE
>    INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
>    INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
>    INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
> +  INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
> +  INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
>  
>    FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
>      SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { diff --git a/ArmVirtPkg/ArmVirtRules.fdf.inc b/ArmVirtPkg/ArmVirtRules.fdf.inc index 8952c67..5ff3004 100644
> --- a/ArmVirtPkg/ArmVirtRules.fdf.inc
> +++ b/ArmVirtPkg/ArmVirtRules.fdf.inc
> @@ -85,6 +85,8 @@
>      DXE_DEPEX    DXE_DEPEX              Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
>      PE32         PE32                   $(INF_OUTPUT)/$(MODULE_NAME).efi
>      UI           STRING="$(MODULE_NAME)" Optional
> +    RAW          ACPI  Optional               |.acpi
> +    RAW          ASL   Optional               |.aml
>    }
>  
>  [Rule.Common.DXE_RUNTIME_DRIVER]
> --
> 1.9.1

(1) Please clarify in the commit message (including the subject line)
that this patch is actually about adding the RAM Disk driver to the
ArmVirtPkg platforms, not just the NFIT reporting feature of the driver.

(2) Please mention that this patch ports OvmfPkg commit 259d87146b07 to
ArmVirtPkg.

(3) Please investigate whether the RAM Disk driver makes any sense for
32-bit ARM (note that only AARCH64 platforms include the ACPI Table
Protocol). This will have an impact on (4b) below.

I think RAM Disks make sense for 32-bit ARM as well, even without the
NFIT table.

(4) I think this feature should be enabled for all of ArmVirtQemu,
ArmVirtQemuKernel, and ArmVirtXen.

(4a) In preparation for that, please prepend a patch to the series that
extracts "MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf"
from all of the DSC files, into "ArmVirt.dsc.inc", section
[Components.AARCH64].

The FDF files are fine already.

(4b) Please add RamDiskDxe.inf to "ArmVirtQemuFvMain.fdf.inc" and
"ArmVirtXen.fdf", and "ArmVirt.dsc.inc". This ensures that the RAM Disk
driver is built for all platforms. Restrict this as needed to AARCH64
(see (3)).

(4c) In the second patch, PcdInstallAcpiSdtProtocol should go into
"ArmVirt.dsc.inc", section [PcdsFeatureFlag.AARCH64], for matching (4a).

(4d) The DXE_DRIVER build rules should also be updated in "ArmVirtXen.fdf".

Thanks
Laszlo


  reply	other threads:[~2016-08-15 20:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-09  7:58 [PATCH] ArmVirtPkg: Add NFIT report feature for ArmVirtPkg for ramdisks Vikas C Sajjan
2016-08-09  9:55 ` Sajjan, Vikas C
2016-08-15 20:38   ` Laszlo Ersek [this message]
2016-08-16  2:32     ` Sajjan, Vikas C

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da2a9d2b-4b5e-59c3-8ca6-4552ba1e318f@redhat.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox