Re: [edk2] [PATCH v2 edk2-platforms 6/8] SgiClark.Ares: AcpiTables: Add entry for virtio network device
On Tue, 26 Feb 2019 at 14:17, Vijayenthiran Subramaniam wrote: > > 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. > Apologies for that, this wasn't intentional. Reviewed-by: Ard Biesheuvel Pushed as 54f98cb1789a..c63c3f071271 > On Fri, Dec 14, 2018 at 11:28 PM Vijayenthiran Subramaniam > 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 >> --- >> 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 ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [PATCH v2 edk2-platforms 6/8] SgiClark.Ares: AcpiTables: Add entry for virtio network device
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.subraman...@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.subraman...@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 > ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel
[edk2] [PATCH v2 edk2-platforms 6/8] SgiClark.Ares: AcpiTables: Add entry for virtio network device
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 --- 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