Skip to content

Commit

Permalink
drivers/gicv3: add debug log for maximum INTID of SPI and eSPI
Browse files Browse the repository at this point in the history
Add debug log for the maximum supported INTID of SPI and eSPI on the
current GIC implementation.

Signed-off-by: Heyi Guo <guoheyi@linux.alibaba.com>
Change-Id: Ie45ab1d85b39658c4ca4bc54ee433ac44e41d03f
  • Loading branch information
iwishguo authored and manish-pandey-arm committed Feb 3, 2021
1 parent 4e42c22 commit 705032d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/arm/gic/v3/gicv3_helpers.c
Expand Up @@ -113,6 +113,7 @@ void gicv3_spis_config_defaults(uintptr_t gicd_base)
if (num_ints > MAX_SPI_ID + 1U) {
num_ints = MAX_SPI_ID + 1U;
}
INFO("Maximum SPI INTID supported: %u\n", num_ints - 1);

/* Treat all (E)SPIs as G1NS by default. We do 32 at a time. */
for (i = MIN_SPI_ID; i < num_ints; i += (1U << IGROUPR_SHIFT)) {
Expand All @@ -127,13 +128,15 @@ void gicv3_spis_config_defaults(uintptr_t gicd_base)
*/
num_eints = ((((typer_reg >> TYPER_ESPI_RANGE_SHIFT) &
TYPER_ESPI_RANGE_MASK) + 1U) << 5) + MIN_ESPI_ID;
INFO("Maximum ESPI INTID supported: %u\n", num_eints - 1);

for (i = MIN_ESPI_ID; i < num_eints;
i += (1U << IGROUPR_SHIFT)) {
gicd_write_igroupr(gicd_base, i, ~0U);
}
} else {
num_eints = 0U;
INFO("ESPI range is not implemented.\n");
}
#endif

Expand Down

0 comments on commit 705032d

Please sign in to comment.