[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:
parent
11a82cd688
commit
b94b2fcd61
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364446
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user