[00/28] arm64: Dom0 ITS emulation
diff mbox

Message ID ad7a3b6e-cb41-4aef-77c3-9f3e2a6b540a@arm.com
State New, archived
Headers show

Commit Message

Julien Grall Feb. 15, 2017, 3:59 p.m. UTC
Hi Vijay,

On 13/02/17 13:53, Vijay Kilari wrote:
>   I tried your patch series on HW. Dom0 boots but no LPIs are coming to Dom0.
> So I made below patch to consider segment ID in generating devid,
>  I see below panic from _xmalloc().

I found the root cause of this bug. The size of the ITT entry
is not read correctly from GITS_TYPER. Can you try the below patch?



Cheers,

Patch
diff mbox

diff --git a/xen/arch/arm/gic-v3-its.c b/xen/arch/arm/gic-v3-its.c
index 36839c919d..46519648e8 100644
--- a/xen/arch/arm/gic-v3-its.c
+++ b/xen/arch/arm/gic-v3-its.c
@@ -363,7 +363,7 @@  int gicv3_its_init(struct host_its *hw_its)
     reg = readq_relaxed(hw_its->its_base + GITS_TYPER);
     if ( reg & GITS_TYPER_PTA )
         hw_its->flags |= HOST_ITS_USES_PTA;
-    hw_its->itte_size = GITS_TYPER_ITT_SIZE(reg);
+    hw_its->itte_size = GITS_TYPER_ITT_SIZE(reg) + 1;
 
     for ( i = 0; i < GITS_BASER_NR_REGS; i++ )
     {