Lines Matching full:ipmi
3 * PowerNV OPAL IPMI driver
8 #define pr_fmt(fmt) "ipmi-powernv: " fmt
155 pr_warn("unexpected IPMI message size %lld\n", size); in ipmi_powernv_recv()
161 pr_warn("unexpected IPMI message format (version %d)\n", in ipmi_powernv_recv()
213 struct ipmi_smi_powernv *ipmi; in ipmi_powernv_probe() local
223 ipmi = devm_kzalloc(dev, sizeof(*ipmi), GFP_KERNEL); in ipmi_powernv_probe()
224 if (!ipmi) in ipmi_powernv_probe()
227 spin_lock_init(&ipmi->msg_lock); in ipmi_powernv_probe()
229 rc = of_property_read_u32(dev->of_node, "ibm,ipmi-interface-id", in ipmi_powernv_probe()
235 ipmi->interface_id = prop; in ipmi_powernv_probe()
243 ipmi->irq = irq_of_parse_and_map(dev->of_node, 0); in ipmi_powernv_probe()
244 if (!ipmi->irq) { in ipmi_powernv_probe()
246 ipmi->irq = opal_event_request(prop); in ipmi_powernv_probe()
249 rc = request_irq(ipmi->irq, ipmi_opal_event, IRQ_TYPE_LEVEL_HIGH, in ipmi_powernv_probe()
250 "opal-ipmi", ipmi); in ipmi_powernv_probe()
256 ipmi->opal_msg = devm_kmalloc(dev, in ipmi_powernv_probe()
257 sizeof(*ipmi->opal_msg) + IPMI_MAX_MSG_LENGTH, in ipmi_powernv_probe()
259 if (!ipmi->opal_msg) { in ipmi_powernv_probe()
264 rc = ipmi_register_smi(&ipmi_powernv_smi_handlers, ipmi, dev, 0); in ipmi_powernv_probe()
266 dev_warn(dev, "IPMI SMI registration failed (%d)\n", rc); in ipmi_powernv_probe()
270 dev_set_drvdata(dev, ipmi); in ipmi_powernv_probe()
274 devm_kfree(dev, ipmi->opal_msg); in ipmi_powernv_probe()
276 free_irq(ipmi->irq, ipmi); in ipmi_powernv_probe()
278 irq_dispose_mapping(ipmi->irq); in ipmi_powernv_probe()
280 devm_kfree(dev, ipmi); in ipmi_powernv_probe()
296 { .compatible = "ibm,opal-ipmi" },
303 .name = "ipmi-powernv",
314 MODULE_DESCRIPTION("powernv IPMI driver");