irqchip: gic-v3: Collection table support muti pages

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7CX6S
CVE: NA

--------------------------------------------------------------------------

Only one page is allocated to the collection table.
Recalculate the page number of collection table based on the number of
CPUs.

Signed-off-by: wangwudi <wangwudi@hisilicon.com>
Signed-off-by: Zihao Xue <xuezihao@huawei.com>
This commit is contained in:
wangwudi 2023-06-12 22:51:24 +08:00 committed by Jianping Liu
parent ccf99c1357
commit f3844ad046
1 changed files with 4 additions and 0 deletions

View File

@ -2665,6 +2665,10 @@ static int its_alloc_tables(struct its_node *its)
indirect = its_parse_indirect_baser(its, baser, &order,
ITS_MAX_VPEID_BITS);
break;
case GITS_BASER_TYPE_COLLECTION:
indirect = its_parse_indirect_baser(its, baser, &order,
order_base_2(num_possible_cpus()));
break;
}
err = its_setup_baser(its, baser, cache, shr, order, indirect);