[Skiboot] [PATCH 08/11] xive: When an interrupt is freed, also clear its enabled map entry
    Benjamin Herrenschmidt 
    benh at kernel.crashing.org
       
    Wed Mar 15 20:58:57 AEDT 2017
    
    
  
Otherwise we try to disable an invalid IVE during xive_reset()
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 hw/xive.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/hw/xive.c b/hw/xive.c
index c9e07ca..dc5f279 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -4124,6 +4124,7 @@ static int64_t opal_xive_free_irq(uint32_t girq)
 		return OPAL_PARAMETER;
 	}
 	bitmap_clr_bit(*x->ipi_alloc_map, idx);
+	bitmap_clr_bit(*x->int_enabled_map, idx);
 	unlock(&x->lock);
 
 	return OPAL_SUCCESS;
-- 
2.9.3
    
    
More information about the Skiboot
mailing list