public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v1] ArmPkg/ArmPkg.dec: New pcd defined for GICv3 ITS
@ 2021-03-11 20:20 Shashi Mallela
  2021-03-11 21:12 ` Ard Biesheuvel
  0 siblings, 1 reply; 3+ messages in thread
From: Shashi Mallela @ 2021-03-11 20:20 UTC (permalink / raw)
  To: leif, ardb+tianocore, ray.ni; +Cc: devel

To enable detection of GICv3 Interrupt Translation Service capability
in the ACPI MADT,a new pcd setting has been created in edk2.This pcd
setting would be referenced by edk2-platform code to advertise the ITS
physical base address within GIC ITS structure of MADT.

Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Signed-off-by: Shashi Mallela <shashi.mallela@linaro.org>
---
 ArmPkg/ArmPkg.dec | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ArmPkg/ArmPkg.dec b/ArmPkg/ArmPkg.dec
index a8a22c649f..c22b7d0c42 100644
--- a/ArmPkg/ArmPkg.dec
+++ b/ArmPkg/ArmPkg.dec
@@ -266,6 +266,7 @@
   # Base address for the GIC Redistributor region that contains the boot CPU
   gArmTokenSpaceGuid.PcdGicRedistributorsBase|0|UINT64|0x0000000E
   gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0|UINT64|0x0000000D
+  gArmTokenSpaceGuid.PcdGicItsBase|0|UINT64|0x0000000F
   gArmTokenSpaceGuid.PcdGicSgiIntId|0|UINT32|0x00000025
 
   #
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] ArmPkg/ArmPkg.dec: New pcd defined for GICv3 ITS
  2021-03-11 20:20 [PATCH v1] ArmPkg/ArmPkg.dec: New pcd defined for GICv3 ITS Shashi Mallela
@ 2021-03-11 21:12 ` Ard Biesheuvel
  2021-03-12  1:03   ` Shashi Mallela
  0 siblings, 1 reply; 3+ messages in thread
From: Ard Biesheuvel @ 2021-03-11 21:12 UTC (permalink / raw)
  To: Shashi Mallela; +Cc: Leif Lindholm, Ard Biesheuvel, Ray Ni, devel

Hello Shashi,

On Thu, 11 Mar 2021 at 21:20, Shashi Mallela <shashi.mallela@linaro.org> wrote:
>
> To enable detection of GICv3 Interrupt Translation Service capability
> in the ACPI MADT,a new pcd setting has been created in edk2.This pcd
> setting would be referenced by edk2-platform code to advertise the ITS
> physical base address within GIC ITS structure of MADT.
>

This does not explain why the PCD in question should be defined in
ArmPkg. UEFI itself does not use interrupts other than the timer one
in the first place, so ITS, LPI, MSI etc are also irrelevant to it.

I think it would be better to find a home for this PCD in edk2-platforms itself.


> Cc: Leif Lindholm <leif@nuviainc.com>
> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> Signed-off-by: Shashi Mallela <shashi.mallela@linaro.org>
> ---
>  ArmPkg/ArmPkg.dec | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/ArmPkg/ArmPkg.dec b/ArmPkg/ArmPkg.dec
> index a8a22c649f..c22b7d0c42 100644
> --- a/ArmPkg/ArmPkg.dec
> +++ b/ArmPkg/ArmPkg.dec
> @@ -266,6 +266,7 @@
>    # Base address for the GIC Redistributor region that contains the boot CPU
>    gArmTokenSpaceGuid.PcdGicRedistributorsBase|0|UINT64|0x0000000E
>    gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0|UINT64|0x0000000D
> +  gArmTokenSpaceGuid.PcdGicItsBase|0|UINT64|0x0000000F
>    gArmTokenSpaceGuid.PcdGicSgiIntId|0|UINT32|0x00000025
>
>    #
> --
> 2.27.0
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] ArmPkg/ArmPkg.dec: New pcd defined for GICv3 ITS
  2021-03-11 21:12 ` Ard Biesheuvel
@ 2021-03-12  1:03   ` Shashi Mallela
  0 siblings, 0 replies; 3+ messages in thread
From: Shashi Mallela @ 2021-03-12  1:03 UTC (permalink / raw)
  To: Ard Biesheuvel; +Cc: Leif Lindholm, Ard Biesheuvel, Ray Ni, devel

Hi Ard,

Thanks for your comments.
Please ignore this edk2 patch as i have now localised the new pcd
creation and reference within SbsaQemu of edk2-platform.
The edk2-platform patchset has been updated accordingly.

Shashi

On Thu, 2021-03-11 at 22:12 +0100, Ard Biesheuvel wrote:
> Hello Shashi,
> 
> On Thu, 11 Mar 2021 at 21:20, Shashi Mallela <
> shashi.mallela@linaro.org> wrote:
> > To enable detection of GICv3 Interrupt Translation Service
> > capability
> > in the ACPI MADT,a new pcd setting has been created in edk2.This
> > pcd
> > setting would be referenced by edk2-platform code to advertise the
> > ITS
> > physical base address within GIC ITS structure of MADT.
> > 
> 
> This does not explain why the PCD in question should be defined in
> ArmPkg. UEFI itself does not use interrupts other than the timer one
> in the first place, so ITS, LPI, MSI etc are also irrelevant to it.
> 
> I think it would be better to find a home for this PCD in edk2-
> platforms itself.
> 
> 
> > Cc: Leif Lindholm <leif@nuviainc.com>
> > Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> > Signed-off-by: Shashi Mallela <shashi.mallela@linaro.org>
> > ---
> >  ArmPkg/ArmPkg.dec | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/ArmPkg/ArmPkg.dec b/ArmPkg/ArmPkg.dec
> > index a8a22c649f..c22b7d0c42 100644
> > --- a/ArmPkg/ArmPkg.dec
> > +++ b/ArmPkg/ArmPkg.dec
> > @@ -266,6 +266,7 @@
> >    # Base address for the GIC Redistributor region that contains
> > the boot CPU
> >    gArmTokenSpaceGuid.PcdGicRedistributorsBase|0|UINT64|0x0000000E
> >    gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0|UINT64|0x00000
> > 00D
> > +  gArmTokenSpaceGuid.PcdGicItsBase|0|UINT64|0x0000000F
> >    gArmTokenSpaceGuid.PcdGicSgiIntId|0|UINT32|0x00000025
> > 
> >    #
> > --
> > 2.27.0
> > 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-12  1:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-11 20:20 [PATCH v1] ArmPkg/ArmPkg.dec: New pcd defined for GICv3 ITS Shashi Mallela
2021-03-11 21:12 ` Ard Biesheuvel
2021-03-12  1:03   ` Shashi Mallela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox