public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] irqchip: gic-v3: Collection table support muti pages
@ 2023-05-15 12:10 wangwudi
  2023-05-15 12:44 ` Marc Zyngier
  0 siblings, 1 reply; 5+ messages in thread
From: wangwudi @ 2023-05-15 12:10 UTC (permalink / raw)
  To: linux-kernel; +Cc: wangwudi, Thomas Gleixner, Marc Zyngier

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

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <maz@kernel.org>
Signed-off-by: wangwudi <wangwudi@hisilicon.com>
---
 drivers/irqchip/irq-gic-v3-its.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c
index 0ec2b1e1df75..dfdeba86b9aa 100644
--- a/drivers/irqchip/irq-gic-v3-its.c
+++ b/drivers/irqchip/irq-gic-v3-its.c
@@ -2626,6 +2626,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);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-22 12:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-15 12:10 [PATCH] irqchip: gic-v3: Collection table support muti pages wangwudi
2023-05-15 12:44 ` Marc Zyngier
     [not found]   ` <41cbc6cb4e964fe0bbba87f52110b1c3@hisilicon.com>
2023-05-16  2:53     ` wangwudi
2023-05-16  7:16       ` Marc Zyngier
2023-05-22 12:52         ` wangwudi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox