提交 b26ac6f4 编写于 作者: W wangwudi 提交者: Jialin Zhang

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: Nwangwudi <wangwudi@hisilicon.com>
上级 33daf350
...@@ -2665,6 +2665,10 @@ static int its_alloc_tables(struct its_node *its) ...@@ -2665,6 +2665,10 @@ static int its_alloc_tables(struct its_node *its)
indirect = its_parse_indirect_baser(its, baser, &order, indirect = its_parse_indirect_baser(its, baser, &order,
ITS_MAX_VPEID_BITS); ITS_MAX_VPEID_BITS);
break; 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); err = its_setup_baser(its, baser, cache, shr, order, indirect);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册