Skip to content

Commit 4e606a4

Browse files
committed
tests: arm64_gicv3_its: add imx95_evk support
Add imx95_evk support, as hardware limication, it only has 832 LPIs. Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
1 parent bffe8d5 commit 4e606a4

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# The GICv3 & ITS drivers allocation needs are:
2+
# - LPI prop table: global 1x64K aligned on 64K
3+
# - LPI pend table: for each redistributor/cpu 1x64K aligned on 64K
4+
# - Devices table: 128x4K aligned on 4K
5+
# - Interrupt Collections table: 1x4K aligned on 4K
6+
#
7+
# This makes 11x64K to permit all allocations to success.
8+
#
9+
# Note, will need 64K HEAP_MEM per CPUs added.
10+
#
11+
# This doesn't necessarily include the Interrupt Translation Table, which are
12+
# 256bytes aligned tables, for reference a 32 ITEs table needs 256bytes.
13+
#
14+
# To permit allocating 256 ITT tables of 32 ITEs, 13x64K HEAP_MEM is needed
15+
CONFIG_HEAP_MEM_POOL_SIZE=851968

tests/arch/arm64/arm64_gicv3_its/src/main.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,19 @@ static void lpi_irq_handle(const void *parameter)
1919
last_lpi_irq_num = i;
2020
}
2121

22+
#ifdef CONFIG_SOC_MIMX9596_A55
23+
/* DeviceID is 8bits */
24+
#define ITS_TEST_DEV(id) (id & 0xff)
25+
/* Cover up to 832 LPIs over 26 DevicesIDs and 32 EventIDs per DeviceID */
26+
#define ITS_TEST_NUM_DEVS 26
27+
#define ITS_TEST_NUM_ITES 32
28+
#else
2229
/* Generate a DeviceID over the whole 16bits */
2330
#define ITS_TEST_DEV(id) ((((id + 256) % 16) << 12) | (((id + 256) % 24) << 8) | (id & 0xff))
24-
2531
/* Cover up to 8192 LPIs over 256 DevicesIDs and 32 EventIDs per DeviceID */
2632
#define ITS_TEST_NUM_DEVS 256
2733
#define ITS_TEST_NUM_ITES 32
34+
#endif
2835

2936
/* Do not test all 8192 irqs, iterate with a prime offset to cover most of the possible event_ids */
3037
#define ITS_TEST_NEXT 13

0 commit comments

Comments
 (0)