From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=217.140.101.70; helo=foss.arm.com; envelope-from=vijayenthiran.subramaniam@arm.com; receiver=edk2-devel@lists.01.org Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by ml01.01.org (Postfix) with ESMTP id 2150C211CAF4B for ; Tue, 26 Feb 2019 05:17:15 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 55D1D80D for ; Tue, 26 Feb 2019 05:17:15 -0800 (PST) Received: from mail-lj1-f179.google.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1D4F73F703 for ; Tue, 26 Feb 2019 05:17:15 -0800 (PST) Received: by mail-lj1-f179.google.com with SMTP id v10so10743884lji.3 for ; Tue, 26 Feb 2019 05:17:15 -0800 (PST) X-Gm-Message-State: AHQUAuYd4hAMmPbkOL6mG6knF2lxtGyCsFSiT45WDhhwbIzVOmwRXPLD vZN6fOwuiHOScoZMuhKkTGcnVvFA4XkQL2xr7eg= X-Google-Smtp-Source: AHgI3IZqZm0WPCo8KDByLF5cfgvFjYyAUCiSXtQ7LzaeIMIhACmvoC4MHEHZtRhExr1bUg4o6ZFx3s6BjNmp7CfxcGI= X-Received: by 2002:a2e:93cf:: with SMTP id p15mr8544351ljh.184.1551187033203; Tue, 26 Feb 2019 05:17:13 -0800 (PST) MIME-Version: 1.0 References: <1544806699-25401-1-git-send-email-vijayenthiran.subramaniam@arm.com> <1544806699-25401-7-git-send-email-vijayenthiran.subramaniam@arm.com> In-Reply-To: <1544806699-25401-7-git-send-email-vijayenthiran.subramaniam@arm.com> From: Vijayenthiran Subramaniam Date: Tue, 26 Feb 2019 18:46:36 +0530 X-Gmail-Original-Message-ID: Message-ID: To: edk2-devel@lists.01.org, Ard Biesheuvel , leif.lindholm@linaro.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [PATCH v2 edk2-platforms 6/8] SgiClark.Ares: AcpiTables: Add entry for virtio network device X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2019 13:17:16 -0000 Content-Type: text/plain; charset="UTF-8" Hi Ard, This patch is part of the patch series "Platform/ARM/Sgi: Add support for virtio network device". While other seven patches are merged upstream, this patch is not yet merged. Please let me know if you have any comments on this patch. On Fri, Dec 14, 2018 at 11:28 PM Vijayenthiran Subramaniam < vijayenthiran.subramaniam@arm.com> wrote: > SgiClark Ares include an instance of the virtio network device. Add > a representation for it in the ACPI tables. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Vijayenthiran Subramaniam < > vijayenthiran.subramaniam@arm.com> > --- > Platform/ARM/SgiPkg/AcpiTables/SgiClarkAresAcpiTables.inf | 3 +++ > Platform/ARM/SgiPkg/AcpiTables/SgiClarkAres/Dsdt.asl | 17 > +++++++++++++++++ > 2 files changed, 20 insertions(+) > > diff --git a/Platform/ARM/SgiPkg/AcpiTables/SgiClarkAresAcpiTables.inf > b/Platform/ARM/SgiPkg/AcpiTables/SgiClarkAresAcpiTables.inf > index 10a805e07fd1..d4bacdbc8c85 100644 > --- a/Platform/ARM/SgiPkg/AcpiTables/SgiClarkAresAcpiTables.inf > +++ b/Platform/ARM/SgiPkg/AcpiTables/SgiClarkAresAcpiTables.inf > @@ -58,5 +58,8 @@ [FixedPcd] > gArmSgiTokenSpaceGuid.PcdVirtioBlkBaseAddress > gArmSgiTokenSpaceGuid.PcdVirtioBlkSize > gArmSgiTokenSpaceGuid.PcdVirtioBlkInterrupt > + gArmSgiTokenSpaceGuid.PcdVirtioNetBaseAddress > + gArmSgiTokenSpaceGuid.PcdVirtioNetSize > + gArmSgiTokenSpaceGuid.PcdVirtioNetInterrupt > > gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress > diff --git a/Platform/ARM/SgiPkg/AcpiTables/SgiClarkAres/Dsdt.asl > b/Platform/ARM/SgiPkg/AcpiTables/SgiClarkAres/Dsdt.asl > index af4dc424a77c..69dc33c06b4d 100644 > --- a/Platform/ARM/SgiPkg/AcpiTables/SgiClarkAres/Dsdt.asl > +++ b/Platform/ARM/SgiPkg/AcpiTables/SgiClarkAres/Dsdt.asl > @@ -118,5 +118,22 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 1, > "ARMLTD", "ARMSGI", > } > }) > } > + > + // VIRTIO NET > + Device (VR01) { > + Name (_HID, "LNRO0005") > + Name (_UID, 1) > + Name (_CCA, 1) // mark the device coherent > + > + Name (_CRS, ResourceTemplate() { > + Memory32Fixed (ReadWrite, > + FixedPcdGet32 (PcdVirtioNetBaseAddress), > + FixedPcdGet32 (PcdVirtioNetSize) > + ) > + Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { > + FixedPcdGet32 (PcdVirtioNetInterrupt) > + } > + }) > + } > } // Scope(_SB) > } > -- > 2.7.4 > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel >