diff --git a/sys/powerpc/powernv/opal.h b/sys/powerpc/powernv/opal.h index 03bb340ae03..7671ece2812 100644 --- a/sys/powerpc/powernv/opal.h +++ b/sys/powerpc/powernv/opal.h @@ -173,6 +173,9 @@ int opal_call(uint64_t token, ...); #define OPAL_XIVE_XICS_MODE_EMU 0 #define OPAL_XIVE_XICS_MODE_EXP 1 +#define OPAL_XIVE_SYNC_EAS 0x00000001 +#define OPAL_XIVE_SYNC_QUEUE 0x00000002 + #define OPAL_XIVE_VP_ENABLED 0x00000001 #define OPAL_XIVE_VP_SINGLE_ESCALATION 0x00000002 diff --git a/sys/powerpc/powernv/xive.c b/sys/powerpc/powernv/xive.c index 349559e58d7..7be9ab5ab14 100644 --- a/sys/powerpc/powernv/xive.c +++ b/sys/powerpc/powernv/xive.c @@ -466,7 +466,7 @@ xive_bind(device_t dev, u_int irq, cpuset_t cpumask, void **priv) ncpus++; } - opal_call(OPAL_XIVE_SYNC); + opal_call(OPAL_XIVE_SYNC, OPAL_XIVE_SYNC_QUEUE, irq); irqd->vp = pcpu_find(cpu)->pc_hwref; error = opal_call(OPAL_XIVE_SET_IRQ_CONFIG, irq, irqd->vp,