[PATCH 0/4] ipmi: Allow dynamic device IDs

Jeremy Kerr jk at ozlabs.org
Mon Sep 12 18:55:33 AEST 2016


This series implements a more dynamic method of reporting BMC version &
identification. The current method of registering versions and IDs
during ipmi_register_smi means that if a BMC is upgraded during a boot,
the IPMI core code will report old version information.

We do this by querying the BMC (using a Get Device ID request) at smi
registration in the IPMI core code, and when the sysfs version & id
attributes are accessed.

The core of the change is in patch 3/4. Patches 1 and 2 implement a
couple of minor API changes leading up to this.

Patch 4 converts the powernv IPMI driver to use the dynamic IDs; the
behaviour of the other SMIs is not changed by this series. However,
if there's interest, I'm happy to alter the existing SMIs too, in a
follow-up series.

Questions & comments most welcome.

Cheers,

	
Jeremy
---

Jeremy Kerr (4):
  ipmi: Add a reference from BMC devices to their interfaces
  ipmi: Make ipmi_demangle_device_id more generic
  ipmi: allow dynamic BMC version information
  ipmi/powernv: Use dynamic device ids

 drivers/char/ipmi/ipmi_msghandler.c | 160 ++++++++++++++++++++++++++++++++++--
 drivers/char/ipmi/ipmi_powernv.c    |   5 +-
 drivers/char/ipmi/ipmi_si_intf.c    |   3 +-
 drivers/char/ipmi/ipmi_ssif.c       |   3 +-
 include/linux/ipmi_smi.h            |  16 ++--
 5 files changed, 169 insertions(+), 18 deletions(-)

-- 
2.7.4



More information about the Linuxppc-dev mailing list