Commit 705032de authored by Heyi Guo's avatar Heyi Guo Committed by Manish Pandey
Browse files

drivers/gicv3: add debug log for maximum INTID of SPI and eSPI



Add debug log for the maximum supported INTID of SPI and eSPI on the
current GIC implementation.
Signed-off-by: default avatarHeyi Guo <guoheyi@linux.alibaba.com>
Change-Id: Ie45ab1d85b39658c4ca4bc54ee433ac44e41d03f
parent 4e42c227
......@@ -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)) {
......@@ -127,6 +128,7 @@ 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)) {
......@@ -134,6 +136,7 @@ void gicv3_spis_config_defaults(uintptr_t gicd_base)
}
} else {
num_eints = 0U;
INFO("ESPI range is not implemented.\n");
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment