[PowerPC64] Fix invalid OPAL call in xive_bind().

This fixes spurious "XIVE[ IC 00  ] ISN 1 lead to invalid IVE !" messages
generated by OPAL when running with the debug level cranked up.

Discussed with jhibbits.

Sponsored by:	Tag1 Consulting, Inc.
This commit is contained in:
Brandon Bergren 2020-08-21 03:23:10 +00:00
parent 11a82cd688
commit b94b2fcd61
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364446
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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,