staticvoid ics_opal_mask_real_irq(unsignedint hw_irq)
{ int server = ics_opal_mangle_server(xics_default_server);
int64_t rc;
if (hw_irq == XICS_IPI) return;
/* Have to set XIVE to 0xff to be able to remove a slot */
rc = opal_set_xive(hw_irq, server, 0xff); if (rc != OPAL_SUCCESS)
pr_err("%s: opal_set_xive(0xff) irq=%u returned %lld\n",
__func__, hw_irq, rc);
}
wanted_server = xics_get_irq_server(d->irq, cpumask, 1); if (wanted_server < 0) {
pr_warn("%s: No online cpus in the mask %*pb for irq %d\n",
__func__, cpumask_pr_args(cpumask), d->irq); return -1;
}
server = ics_opal_mangle_server(wanted_server);
/* Check if HAL knows about this interrupt */
rc = opal_get_xive(vec, &server, &priority); if (rc != OPAL_SUCCESS) return -1; return ics_opal_unmangle_server(be16_to_cpu(server));
}
/* Only one global & state struct ics */ staticstruct ics ics_hal = {
.check = ics_opal_check,
.mask_unknown = ics_opal_mask_unknown,
.get_server = ics_opal_get_server,
.host_match = ics_opal_host_match,
.chip = &ics_opal_irq_chip,
};
int __init ics_opal_init(void)
{ if (!firmware_has_feature(FW_FEATURE_OPAL)) return -ENODEV;
/* We need to patch our irq chip's EOI to point to the * right ICP
*/
ics_opal_irq_chip.irq_eoi = icp_ops->eoi;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.