linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] irqchip: GICv3: ITS: don't assume 64K page size in its_alloc_tables
@ 2015-05-14 23:02 Stuart Yoder
  2015-05-18 13:23 ` Marc Zyngier
  0 siblings, 1 reply; 6+ messages in thread
From: Stuart Yoder @ 2015-05-14 23:02 UTC (permalink / raw)
  To: linux-arm-kernel

its_alloc_tables() needs to account for page sizes other than
64KB.  Without this change, when PAGE_SIZE=4KB its_alloc_tables()
gets stuck in an infinite loop.

Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
---

think this should go into 4.1 if at all possible...without it I am
unable to boot a 4.1 kernel on the LS2085 SoC

 drivers/irqchip/irq-gic-v3-its.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c
index 9687f8a..58a6612 100644
--- a/drivers/irqchip/irq-gic-v3-its.c
+++ b/drivers/irqchip/irq-gic-v3-its.c
@@ -800,7 +800,7 @@ static int its_alloc_tables(struct its_node *its)
 {
 	int err;
 	int i;
-	int psz = SZ_64K;
+	int psz = PAGE_SIZE;
 	u64 shr = GITS_BASER_InnerShareable;
 	u64 cache = GITS_BASER_WaWb;
 
-- 
2.3.3

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

end of thread, other threads:[~2015-05-18 15:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-14 23:02 [PATCH] irqchip: GICv3: ITS: don't assume 64K page size in its_alloc_tables Stuart Yoder
2015-05-18 13:23 ` Marc Zyngier
2015-05-18 13:38   ` Stuart Yoder
2015-05-18 14:09     ` Marc Zyngier
2015-05-18 15:33       ` Stuart Yoder
2015-05-18 15:36         ` Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).