Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: e1999b264f1f9d7230edf2448f757c73da567832
      
https://github.com/tianocore/edk2/commit/e1999b264f1f9d7230edf2448f757c73da567832
  Author: Andreas Sandberg <andreas.sandb...@arm.com>
  Date:   2021-05-27 (Thu, 27 May 2021)

  Changed paths:
    M ArmPkg/Drivers/ArmGic/ArmGicLib.c

  Log Message:
  -----------
  ArmPkg/ArmGic: Fix maximum number of interrupts in GICv3

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>
Reviewed-by: Philippe Mathieu-Daude <phi...@redhat.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to