Unverified Commit 6b28c1c3 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!2989 [sync] PR-1095: irqchip: gic-v3: Collection table support muti pages

Merge Pull Request from: @openeuler-sync-bot 
 

Origin pull request: 
https://gitee.com/openeuler/kernel/pulls/1095 
 
Only one page is allocated to the collection table.
Recalculate the page number of collection table based on the number of CPUs. 
 
Link:https://gitee.com/openeuler/kernel/pulls/2989

 

Reviewed-by: default avatarZhang Jianhua <chris.zjh@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 59bdc5d7 018c1815
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2669,6 +2669,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);