On 5/24/21 3:01 PM, Sami Mujawar wrote: > From: Andreas Sandberg <andreas.sandb...@arm.com> > > Bugzilla: 3415 (https://bugzilla.tianocore.org/show_bug.cgi?id=3415) > > The GICv3 architecture supports up to 1020 ordinary interrupt > lines. The actual number of interrupts supported is described by the > ITLinesNumber field in the GICD_TYPER register. The total number of > implemented registers is normally calculated as > 32*(ITLinesNumber+1). However, maximum value (0x1f) is a special case > since that would indicate that 1024 interrupts are implemented. > > Add handling for this special case in ArmGicGetMaxNumInterrupts. > > Signed-off-by: Andreas Sandberg <andreas.sandb...@arm.com> > Signed-off-by: Joey Gouly <joey.go...@arm.com> > Signed-off-by: Sami Mujawar <sami.muja...@arm.com> > Reviewed-by: Ard Biesheuvel <a...@kernel.org> > --- > The changes can be seen at: > https://github.com/samimujawar/edk2/tree/1396_gic_max_num_intr_v2 > > Notes: > v2: > - Fix comment style. [Laszlo] > - Updated comment style. [Sami] > > ArmPkg/Drivers/ArmGic/ArmGicLib.c | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-)
Reviewed-by: Philippe Mathieu-Daude <phi...@redhat.com> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#75790): https://edk2.groups.io/g/devel/message/75790 Mute This Topic: https://groups.io/mt/83051437/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-