qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/1] hw/ipmi: add an aspeed IPMI iBT device model
@ 2021-09-28 22:39 Titus Rwantare
  2021-09-28 22:39 ` [RFC 1/1] hw/ipmi: add an aspeed ipmi " Titus Rwantare
  2021-09-29  6:24 ` [RFC 0/1] hw/ipmi: add an aspeed IPMI " Cédric Le Goater
  0 siblings, 2 replies; 4+ messages in thread
From: Titus Rwantare @ 2021-09-28 22:39 UTC (permalink / raw)
  To: clg
  Cc: qemu-arm, qemu-devel, f4bug, andrew, wuhaotsh, minyard, Titus Rwantare

This patch follows the Handing IPMI for emulating BMC patch set by Hao Wu.
Building on top of the work in [PATCH] hw/misc: Add an iBT device model posted
by Cédric Le Goater, this iBT model works as a backend to ipmi-host-extern.

Needed to run:
- [PATCH 4/8] hw/ipmi: Refactor IPMI interface, Hao Wu
- [PATCH 5/8] hw/ipmi: Take out common from ipmi_bmc_extern.c, Hao Wu
- [PATCH 6/8] hw/ipmi: Move handle_command to IPMICoreClass, Hao Wu
- [PATCH 7/8] hw/ipmi: Add an IPMI external host device, Hao Wu

Host commandline
    -chardev socket,id=ipmichr1,host=localhost,port=9999,reconnect=10 \
    -device ipmi-bmc-extern,chardev=ipmichr1,id=bmc0 \
    -device isa-ipmi-bt,bmc=bmc0,irq=10 -nodefaults

BMC commandline
    -chardev socket,id=ipmichr1,host=localhost,port=9999,server=on,wait=off \
    -device "ipmi-host-extern,chardev=ipmichr1,responder=/machine/soc/ibt"

Currently, IRQs are not functional, but it is able to connect.
The following printout is from the host:

[    6.869742] ipmi_si IPI0001:00: IPMI message handler: Found new BMC (man_id:
 0x002b79, prod_id: 0x0000, dev_id: 0x00)
[   12.393281] ipmi_si IPI0001:00: IPMI bt interface initialized

This patch is an RFC because of the missing IRQs and the need for other patches
to get merged.

Thank you all.

Titus Rwantare (1):
  hw/ipmi: add an aspeed ipmi iBT device model

 hw/ipmi/ipmi_extern.h        |   1 +
 include/hw/arm/aspeed_soc.h  |   2 +
 include/hw/ipmi/aspeed_ibt.h |  77 +++++++++
 hw/arm/aspeed_ast2600.c      |  12 ++
 hw/arm/aspeed_soc.c          |  12 ++
 hw/ipmi/aspeed_ibt.c         | 311 +++++++++++++++++++++++++++++++++++
 hw/ipmi/meson.build          |   1 +
 hw/ipmi/trace-events         |   7 +
 8 files changed, 423 insertions(+)
 create mode 100644 include/hw/ipmi/aspeed_ibt.h
 create mode 100644 hw/ipmi/aspeed_ibt.c

-- 
2.33.0.800.g4c38ced690-goog



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-29 21:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 22:39 [RFC 0/1] hw/ipmi: add an aspeed IPMI iBT device model Titus Rwantare
2021-09-28 22:39 ` [RFC 1/1] hw/ipmi: add an aspeed ipmi " Titus Rwantare
2021-09-29  6:24 ` [RFC 0/1] hw/ipmi: add an aspeed IPMI " Cédric Le Goater
2021-09-29 21:27   ` Titus Rwantare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).