public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH edk2 v2 1/1] ArmPkg/ArmGic: Fix GICR_IPRIORITYR address wrong issue
@ 2021-02-23 11:06 Ming Huang
  2021-02-23 12:42 ` Ard Biesheuvel
  2021-02-23 12:58 ` Heyi Guo
  0 siblings, 2 replies; 8+ messages in thread
From: Ming Huang @ 2021-02-23 11:06 UTC (permalink / raw)
  To: devel, ardb+tianocore, leif; +Cc: guoheyi, Ming Huang

The register address of GICR_IPRIORITYR is in SGI_base frame. Add
IPRIORITY_ADDRESS macro for getting GICR_IPRIORITYR address. Otherwise
GIC RAS error(Uncorrected software error) may report in ArmGicDxe.
---
 ArmPkg/Drivers/ArmGic/ArmGicLib.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
index 8ef32b33a1..b4d3965acb 100644
--- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c
+++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
@@ -30,6 +30,9 @@
 #define ICENABLER_ADDRESS(base,offset) ((base) + \
           ARM_GICR_CTLR_FRAME_SIZE +  ARM_GICR_ICENABLER + (4 * offset))
 
+#define IPRIORITY_ADDRESS(base,offset) ((base) + \
+          ARM_GICR_CTLR_FRAME_SIZE +  ARM_GIC_ICDIPR + (4 * offset))
+
 /**
  *
  * Return whether the Source interrupt index refers to a shared interrupt (SPI)
@@ -236,7 +239,7 @@ ArmGicSetInterruptPriority (
     }
 
     MmioAndThenOr32 (
-      GicCpuRedistributorBase + ARM_GIC_ICDIPR + (4 * RegOffset),
+      IPRIORITY_ADDRESS (GicCpuRedistributorBase, RegOffset),
       ~(0xff << RegShift),
       Priority << RegShift
       );
-- 
2.17.1


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

* Re: [PATCH edk2 v2 1/1] ArmPkg/ArmGic: Fix GICR_IPRIORITYR address wrong issue
  2021-02-23 11:06 [PATCH edk2 v2 1/1] ArmPkg/ArmGic: Fix GICR_IPRIORITYR address wrong issue Ming Huang
@ 2021-02-23 12:42 ` Ard Biesheuvel
  2021-02-23 12:58   ` Leif Lindholm
  2021-02-23 12:58 ` Heyi Guo
  1 sibling, 1 reply; 8+ messages in thread
From: Ard Biesheuvel @ 2021-02-23 12:42 UTC (permalink / raw)
  To: Ming Huang; +Cc: devel, Ard Biesheuvel, Leif Lindholm, guoheyi

On Tue, 23 Feb 2021 at 12:07, Ming Huang <huangming@linux.alibaba.com> wrote:
>
> The register address of GICR_IPRIORITYR is in SGI_base frame. Add
> IPRIORITY_ADDRESS macro for getting GICR_IPRIORITYR address. Otherwise
> GIC RAS error(Uncorrected software error) may report in ArmGicDxe.

NOTE: missing sign-off

Patch seems fine to me

Tested-by: Ard Biesheuvel <ardb@kernel.org> # QEMU/kvm guest on ThunderX2



> ---
>  ArmPkg/Drivers/ArmGic/ArmGicLib.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> index 8ef32b33a1..b4d3965acb 100644
> --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> @@ -30,6 +30,9 @@
>  #define ICENABLER_ADDRESS(base,offset) ((base) + \
>            ARM_GICR_CTLR_FRAME_SIZE +  ARM_GICR_ICENABLER + (4 * offset))
>
> +#define IPRIORITY_ADDRESS(base,offset) ((base) + \
> +          ARM_GICR_CTLR_FRAME_SIZE +  ARM_GIC_ICDIPR + (4 * offset))
> +
>  /**
>   *
>   * Return whether the Source interrupt index refers to a shared interrupt (SPI)
> @@ -236,7 +239,7 @@ ArmGicSetInterruptPriority (
>      }
>
>      MmioAndThenOr32 (
> -      GicCpuRedistributorBase + ARM_GIC_ICDIPR + (4 * RegOffset),
> +      IPRIORITY_ADDRESS (GicCpuRedistributorBase, RegOffset),
>        ~(0xff << RegShift),
>        Priority << RegShift
>        );
> --
> 2.17.1
>

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

* Re: [PATCH edk2 v2 1/1] ArmPkg/ArmGic: Fix GICR_IPRIORITYR address wrong issue
  2021-02-23 12:42 ` Ard Biesheuvel
@ 2021-02-23 12:58   ` Leif Lindholm
  2021-02-24  8:26     ` Ming Huang
  0 siblings, 1 reply; 8+ messages in thread
From: Leif Lindholm @ 2021-02-23 12:58 UTC (permalink / raw)
  To: Ming Huang; +Cc: devel, Ard Biesheuvel, guoheyi

On Tue, Feb 23, 2021 at 13:42:49 +0100, Ard Biesheuvel wrote:
> On Tue, 23 Feb 2021 at 12:07, Ming Huang <huangming@linux.alibaba.com> wrote:
> >
> > The register address of GICR_IPRIORITYR is in SGI_base frame. Add
> > IPRIORITY_ADDRESS macro for getting GICR_IPRIORITYR address. Otherwise
> > GIC RAS error(Uncorrected software error) may report in ArmGicDxe.
> 
> NOTE: missing sign-off
> 
> Patch seems fine to me
> 
> Tested-by: Ard Biesheuvel <ardb@kernel.org> # QEMU/kvm guest on ThunderX2

Also looks good in QEMU.
Reviewed-by: Leif Lindholm <leif@nuviainc.com>

Ming, can you confirm that the contribution conforms to the developer
certificate of origin by replyint with your Signed-off-by: ?

> 
> 
> 
> > ---
> >  ArmPkg/Drivers/ArmGic/ArmGicLib.c | 5 ++++-
> >  1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> > index 8ef32b33a1..b4d3965acb 100644
> > --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> > +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> > @@ -30,6 +30,9 @@
> >  #define ICENABLER_ADDRESS(base,offset) ((base) + \
> >            ARM_GICR_CTLR_FRAME_SIZE +  ARM_GICR_ICENABLER + (4 * offset))
> >
> > +#define IPRIORITY_ADDRESS(base,offset) ((base) + \
> > +          ARM_GICR_CTLR_FRAME_SIZE +  ARM_GIC_ICDIPR + (4 * offset))
> > +
> >  /**
> >   *
> >   * Return whether the Source interrupt index refers to a shared interrupt (SPI)
> > @@ -236,7 +239,7 @@ ArmGicSetInterruptPriority (
> >      }
> >
> >      MmioAndThenOr32 (
> > -      GicCpuRedistributorBase + ARM_GIC_ICDIPR + (4 * RegOffset),
> > +      IPRIORITY_ADDRESS (GicCpuRedistributorBase, RegOffset),
> >        ~(0xff << RegShift),
> >        Priority << RegShift
> >        );
> > --
> > 2.17.1
> >

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

* Re: [edk2-devel] [PATCH edk2 v2 1/1] ArmPkg/ArmGic: Fix GICR_IPRIORITYR address wrong issue
  2021-02-23 11:06 [PATCH edk2 v2 1/1] ArmPkg/ArmGic: Fix GICR_IPRIORITYR address wrong issue Ming Huang
  2021-02-23 12:42 ` Ard Biesheuvel
@ 2021-02-23 12:58 ` Heyi Guo
  2021-02-23 13:02   ` Leif Lindholm
  1 sibling, 1 reply; 8+ messages in thread
From: Heyi Guo @ 2021-02-23 12:58 UTC (permalink / raw)
  To: devel, huangming, ardb+tianocore, leif


On 2021/2/23 下午7:06, Ming Huang wrote:
> The register address of GICR_IPRIORITYR is in SGI_base frame. Add
> IPRIORITY_ADDRESS macro for getting GICR_IPRIORITYR address. Otherwise
> GIC RAS error(Uncorrected software error) may report in ArmGicDxe.
> ---
>   ArmPkg/Drivers/ArmGic/ArmGicLib.c | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> index 8ef32b33a1..b4d3965acb 100644
> --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> @@ -30,6 +30,9 @@
>   #define ICENABLER_ADDRESS(base,offset) ((base) + \
>             ARM_GICR_CTLR_FRAME_SIZE +  ARM_GICR_ICENABLER + (4 * offset))
>   
> +#define IPRIORITY_ADDRESS(base,offset) ((base) + \
> +          ARM_GICR_CTLR_FRAME_SIZE +  ARM_GIC_ICDIPR + (4 * offset))

For macro parameter, I think we need to put "offset" in parentheses, and 
it is not necessary to put 4 * offset inside parentheses.

How about adding one more patch to fix the existing macros 
ICENABLER_ADDRESS and ISENABLER_ADDRESS first and then this patch?

Thanks,

Heyi


> +
>   /**
>    *
>    * Return whether the Source interrupt index refers to a shared interrupt (SPI)
> @@ -236,7 +239,7 @@ ArmGicSetInterruptPriority (
>       }
>   
>       MmioAndThenOr32 (
> -      GicCpuRedistributorBase + ARM_GIC_ICDIPR + (4 * RegOffset),
> +      IPRIORITY_ADDRESS (GicCpuRedistributorBase, RegOffset),
>         ~(0xff << RegShift),
>         Priority << RegShift
>         );

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

* Re: [edk2-devel] [PATCH edk2 v2 1/1] ArmPkg/ArmGic: Fix GICR_IPRIORITYR address wrong issue
  2021-02-23 12:58 ` Heyi Guo
@ 2021-02-23 13:02   ` Leif Lindholm
  0 siblings, 0 replies; 8+ messages in thread
From: Leif Lindholm @ 2021-02-23 13:02 UTC (permalink / raw)
  To: devel, guoheyi; +Cc: huangming, ardb+tianocore

On Tue, Feb 23, 2021 at 20:58:14 +0800, Heyi Guo wrote:
> 
> On 2021/2/23 下午7:06, Ming Huang wrote:
> > The register address of GICR_IPRIORITYR is in SGI_base frame. Add
> > IPRIORITY_ADDRESS macro for getting GICR_IPRIORITYR address. Otherwise
> > GIC RAS error(Uncorrected software error) may report in ArmGicDxe.
> > ---
> >   ArmPkg/Drivers/ArmGic/ArmGicLib.c | 5 ++++-
> >   1 file changed, 4 insertions(+), 1 deletion(-)
> > 
> > diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> > index 8ef32b33a1..b4d3965acb 100644
> > --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> > +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> > @@ -30,6 +30,9 @@
> >   #define ICENABLER_ADDRESS(base,offset) ((base) + \
> >             ARM_GICR_CTLR_FRAME_SIZE +  ARM_GICR_ICENABLER + (4 * offset))
> > +#define IPRIORITY_ADDRESS(base,offset) ((base) + \
> > +          ARM_GICR_CTLR_FRAME_SIZE +  ARM_GIC_ICDIPR + (4 * offset))
> 
> For macro parameter, I think we need to put "offset" in parentheses, and it
> is not necessary to put 4 * offset inside parentheses.

You are correct.

> How about adding one more patch to fix the existing macros ICENABLER_ADDRESS
> and ISENABLER_ADDRESS first and then this patch?

If Ming could spin that at the same time as adding Signed-off-by, that
would be ideal.

Thanks!

/
    Leif

> Thanks,
> 
> Heyi
> 
> 
> > +
> >   /**
> >    *
> >    * Return whether the Source interrupt index refers to a shared interrupt (SPI)
> > @@ -236,7 +239,7 @@ ArmGicSetInterruptPriority (
> >       }
> >       MmioAndThenOr32 (
> > -      GicCpuRedistributorBase + ARM_GIC_ICDIPR + (4 * RegOffset),
> > +      IPRIORITY_ADDRESS (GicCpuRedistributorBase, RegOffset),
> >         ~(0xff << RegShift),
> >         Priority << RegShift
> >         );
> 
> 
> 
> 
> 

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

* Re: [PATCH edk2 v2 1/1] ArmPkg/ArmGic: Fix GICR_IPRIORITYR address wrong issue
  2021-02-23 12:58   ` Leif Lindholm
@ 2021-02-24  8:26     ` Ming Huang
  2021-02-24 11:49       ` [edk2-devel] " Leif Lindholm
  0 siblings, 1 reply; 8+ messages in thread
From: Ming Huang @ 2021-02-24  8:26 UTC (permalink / raw)
  To: Leif Lindholm; +Cc: devel, Ard Biesheuvel, guoheyi



On 2/23/21 8:58 PM, Leif Lindholm wrote:
> On Tue, Feb 23, 2021 at 13:42:49 +0100, Ard Biesheuvel wrote:
>> On Tue, 23 Feb 2021 at 12:07, Ming Huang <huangming@linux.alibaba.com> wrote:
>>>
>>> The register address of GICR_IPRIORITYR is in SGI_base frame. Add
>>> IPRIORITY_ADDRESS macro for getting GICR_IPRIORITYR address. Otherwise
>>> GIC RAS error(Uncorrected software error) may report in ArmGicDxe.
>>
>> NOTE: missing sign-off
>>
>> Patch seems fine to me
>>
>> Tested-by: Ard Biesheuvel <ardb@kernel.org> # QEMU/kvm guest on ThunderX2
> 
> Also looks good in QEMU.
> Reviewed-by: Leif Lindholm <leif@nuviainc.com>
> 
> Ming, can you confirm that the contribution conforms to the developer
> certificate of origin by replyint with your Signed-off-by: ?

Sorry, I miss the Signed-off-by.
please help to add my Signed-off-by:
Signed-off-by: Ming Huang <huangming@linux.alibaba.com>

Thanks,
Ming

> 
>>
>>
>>
>>> ---
>>>  ArmPkg/Drivers/ArmGic/ArmGicLib.c | 5 ++++-
>>>  1 file changed, 4 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
>>> index 8ef32b33a1..b4d3965acb 100644
>>> --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c
>>> +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
>>> @@ -30,6 +30,9 @@
>>>  #define ICENABLER_ADDRESS(base,offset) ((base) + \
>>>            ARM_GICR_CTLR_FRAME_SIZE +  ARM_GICR_ICENABLER + (4 * offset))
>>>
>>> +#define IPRIORITY_ADDRESS(base,offset) ((base) + \
>>> +          ARM_GICR_CTLR_FRAME_SIZE +  ARM_GIC_ICDIPR + (4 * offset))
>>> +
>>>  /**
>>>   *
>>>   * Return whether the Source interrupt index refers to a shared interrupt (SPI)
>>> @@ -236,7 +239,7 @@ ArmGicSetInterruptPriority (
>>>      }
>>>
>>>      MmioAndThenOr32 (
>>> -      GicCpuRedistributorBase + ARM_GIC_ICDIPR + (4 * RegOffset),
>>> +      IPRIORITY_ADDRESS (GicCpuRedistributorBase, RegOffset),
>>>        ~(0xff << RegShift),
>>>        Priority << RegShift
>>>        );
>>> --
>>> 2.17.1
>>>

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

* Re: [edk2-devel] [PATCH edk2 v2 1/1] ArmPkg/ArmGic: Fix GICR_IPRIORITYR address wrong issue
  2021-02-24  8:26     ` Ming Huang
@ 2021-02-24 11:49       ` Leif Lindholm
  2021-02-25  3:06         ` Ming Huang
  0 siblings, 1 reply; 8+ messages in thread
From: Leif Lindholm @ 2021-02-24 11:49 UTC (permalink / raw)
  To: devel, huangming; +Cc: Ard Biesheuvel, guoheyi

Hi Ming,

Thanks for this.
However, just after I sent my reply, Heyi suggested another
improvement to this patch. Can you please implement that, and submit a
v2?

Best Regards,

Leif

On Wed, Feb 24, 2021 at 16:26:33 +0800, Ming Huang wrote:
> 
> 
> On 2/23/21 8:58 PM, Leif Lindholm wrote:
> > On Tue, Feb 23, 2021 at 13:42:49 +0100, Ard Biesheuvel wrote:
> >> On Tue, 23 Feb 2021 at 12:07, Ming Huang <huangming@linux.alibaba.com> wrote:
> >>>
> >>> The register address of GICR_IPRIORITYR is in SGI_base frame. Add
> >>> IPRIORITY_ADDRESS macro for getting GICR_IPRIORITYR address. Otherwise
> >>> GIC RAS error(Uncorrected software error) may report in ArmGicDxe.
> >>
> >> NOTE: missing sign-off
> >>
> >> Patch seems fine to me
> >>
> >> Tested-by: Ard Biesheuvel <ardb@kernel.org> # QEMU/kvm guest on ThunderX2
> > 
> > Also looks good in QEMU.
> > Reviewed-by: Leif Lindholm <leif@nuviainc.com>
> > 
> > Ming, can you confirm that the contribution conforms to the developer
> > certificate of origin by replyint with your Signed-off-by: ?
> 
> Sorry, I miss the Signed-off-by.
> please help to add my Signed-off-by:
> Signed-off-by: Ming Huang <huangming@linux.alibaba.com>
> 
> Thanks,
> Ming
> 
> > 
> >>
> >>
> >>
> >>> ---
> >>>  ArmPkg/Drivers/ArmGic/ArmGicLib.c | 5 ++++-
> >>>  1 file changed, 4 insertions(+), 1 deletion(-)
> >>>
> >>> diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> >>> index 8ef32b33a1..b4d3965acb 100644
> >>> --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> >>> +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> >>> @@ -30,6 +30,9 @@
> >>>  #define ICENABLER_ADDRESS(base,offset) ((base) + \
> >>>            ARM_GICR_CTLR_FRAME_SIZE +  ARM_GICR_ICENABLER + (4 * offset))
> >>>
> >>> +#define IPRIORITY_ADDRESS(base,offset) ((base) + \
> >>> +          ARM_GICR_CTLR_FRAME_SIZE +  ARM_GIC_ICDIPR + (4 * offset))
> >>> +
> >>>  /**
> >>>   *
> >>>   * Return whether the Source interrupt index refers to a shared interrupt (SPI)
> >>> @@ -236,7 +239,7 @@ ArmGicSetInterruptPriority (
> >>>      }
> >>>
> >>>      MmioAndThenOr32 (
> >>> -      GicCpuRedistributorBase + ARM_GIC_ICDIPR + (4 * RegOffset),
> >>> +      IPRIORITY_ADDRESS (GicCpuRedistributorBase, RegOffset),
> >>>        ~(0xff << RegShift),
> >>>        Priority << RegShift
> >>>        );
> >>> --
> >>> 2.17.1
> >>>
> 
> 
> 
> 
> 

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

* Re: [edk2-devel] [PATCH edk2 v2 1/1] ArmPkg/ArmGic: Fix GICR_IPRIORITYR address wrong issue
  2021-02-24 11:49       ` [edk2-devel] " Leif Lindholm
@ 2021-02-25  3:06         ` Ming Huang
  0 siblings, 0 replies; 8+ messages in thread
From: Ming Huang @ 2021-02-25  3:06 UTC (permalink / raw)
  To: Leif Lindholm, devel; +Cc: Ard Biesheuvel, guoheyi



On 2/24/21 7:49 PM, Leif Lindholm wrote:
> Hi Ming,
> 
> Thanks for this.
> However, just after I sent my reply, Heyi suggested another
> improvement to this patch. Can you please implement that, and submit a
> v2?

OK, I will implement that in v2.
As one issue in my email filter, I miss Heyi's email, sorry for that.

Thanks,
Ming

> 
> Best Regards,
> 
> Leif
> 
> On Wed, Feb 24, 2021 at 16:26:33 +0800, Ming Huang wrote:
>>
>>
>> On 2/23/21 8:58 PM, Leif Lindholm wrote:
>>> On Tue, Feb 23, 2021 at 13:42:49 +0100, Ard Biesheuvel wrote:
>>>> On Tue, 23 Feb 2021 at 12:07, Ming Huang <huangming@linux.alibaba.com> wrote:
>>>>>
>>>>> The register address of GICR_IPRIORITYR is in SGI_base frame. Add
>>>>> IPRIORITY_ADDRESS macro for getting GICR_IPRIORITYR address. Otherwise
>>>>> GIC RAS error(Uncorrected software error) may report in ArmGicDxe.
>>>>
>>>> NOTE: missing sign-off
>>>>
>>>> Patch seems fine to me
>>>>
>>>> Tested-by: Ard Biesheuvel <ardb@kernel.org> # QEMU/kvm guest on ThunderX2
>>>
>>> Also looks good in QEMU.
>>> Reviewed-by: Leif Lindholm <leif@nuviainc.com>
>>>
>>> Ming, can you confirm that the contribution conforms to the developer
>>> certificate of origin by replyint with your Signed-off-by: ?
>>
>> Sorry, I miss the Signed-off-by.
>> please help to add my Signed-off-by:
>> Signed-off-by: Ming Huang <huangming@linux.alibaba.com>
>>
>> Thanks,
>> Ming
>>
>>>
>>>>
>>>>
>>>>
>>>>> ---
>>>>>  ArmPkg/Drivers/ArmGic/ArmGicLib.c | 5 ++++-
>>>>>  1 file changed, 4 insertions(+), 1 deletion(-)
>>>>>
>>>>> diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
>>>>> index 8ef32b33a1..b4d3965acb 100644
>>>>> --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c
>>>>> +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
>>>>> @@ -30,6 +30,9 @@
>>>>>  #define ICENABLER_ADDRESS(base,offset) ((base) + \
>>>>>            ARM_GICR_CTLR_FRAME_SIZE +  ARM_GICR_ICENABLER + (4 * offset))
>>>>>
>>>>> +#define IPRIORITY_ADDRESS(base,offset) ((base) + \
>>>>> +          ARM_GICR_CTLR_FRAME_SIZE +  ARM_GIC_ICDIPR + (4 * offset))
>>>>> +
>>>>>  /**
>>>>>   *
>>>>>   * Return whether the Source interrupt index refers to a shared interrupt (SPI)
>>>>> @@ -236,7 +239,7 @@ ArmGicSetInterruptPriority (
>>>>>      }
>>>>>
>>>>>      MmioAndThenOr32 (
>>>>> -      GicCpuRedistributorBase + ARM_GIC_ICDIPR + (4 * RegOffset),
>>>>> +      IPRIORITY_ADDRESS (GicCpuRedistributorBase, RegOffset),
>>>>>        ~(0xff << RegShift),
>>>>>        Priority << RegShift
>>>>>        );
>>>>> --
>>>>> 2.17.1
>>>>>
>>
>>
>> 
>>
>>

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

end of thread, other threads:[~2021-02-25  3:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-23 11:06 [PATCH edk2 v2 1/1] ArmPkg/ArmGic: Fix GICR_IPRIORITYR address wrong issue Ming Huang
2021-02-23 12:42 ` Ard Biesheuvel
2021-02-23 12:58   ` Leif Lindholm
2021-02-24  8:26     ` Ming Huang
2021-02-24 11:49       ` [edk2-devel] " Leif Lindholm
2021-02-25  3:06         ` Ming Huang
2021-02-23 12:58 ` Heyi Guo
2021-02-23 13:02   ` Leif Lindholm

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