lib: utils/ipi: Fix size check in aclint_mswi_cold_init()
authorAnup Patel <apatel@ventanamicro.com>
Thu, 6 Jan 2022 03:32:45 +0000 (09:02 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 11 Jan 2022 12:47:07 +0000 (18:17 +0530)
commit5b9960379fae14b554c953b0d4139f4b1a57cd5e
treeffbb92363e0d24d9daf57d03da86ee8aff323bac
parent48f91ee9c960f048c4a7d1da4447d31e04931e38
lib: utils/ipi: Fix size check in aclint_mswi_cold_init()

Currently, the ACLINT MSWI size check is forcing size to be at least
0x4000. This is inappropriate check because most systems will never
utilize full 16KB for a single ACLINT MSWI device so instead we should
check that ACLINT MSWI size is enough for on the associated HARTs.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Dong Du <Dd_nirvana@sjtu.edu.cn>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
lib/utils/ipi/aclint_mswi.c