Commit a357b8f4 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Need to set state to IDLE during sun4v IRQ enable.

This fixes hypervisor console interrupts on LDOM guests.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 12450884
...@@ -329,6 +329,10 @@ static void sun4v_irq_enable(unsigned int virt_irq) ...@@ -329,6 +329,10 @@ static void sun4v_irq_enable(unsigned int virt_irq)
if (err != HV_EOK) if (err != HV_EOK)
printk("sun4v_intr_settarget(%x,%lu): err(%d)\n", printk("sun4v_intr_settarget(%x,%lu): err(%d)\n",
ino, cpuid, err); ino, cpuid, err);
err = sun4v_intr_setstate(ino, HV_INTR_STATE_IDLE);
if (err != HV_EOK)
printk("sun4v_intr_setstate(%x): "
"err(%d)\n", ino, err);
err = sun4v_intr_setenabled(ino, HV_INTR_ENABLED); err = sun4v_intr_setenabled(ino, HV_INTR_ENABLED);
if (err != HV_EOK) if (err != HV_EOK)
printk("sun4v_intr_setenabled(%x): err(%d)\n", printk("sun4v_intr_setenabled(%x): err(%d)\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment