All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH phosphor-host-ipmid v7] Add get/set ipmid command support with correct DBUS property handling.
@ 2016-01-12  0:50 OpenBMC Patches
  2016-01-12  0:50 ` [PATCH phosphor-host-ipmid v7] Add get/set boot option " OpenBMC Patches
  2016-01-12  5:45 ` [PATCH phosphor-host-ipmid v7] Add get/set " Stewart Smith
  0 siblings, 2 replies; 5+ messages in thread
From: OpenBMC Patches @ 2016-01-12  0:50 UTC (permalink / raw)
  To: openbmc

1) Add support for IPMI get/set boot option command.
    a) boot options stored in dbus property.
    b) IPMI get boot option command get boot option from the dbus
    property.
    c) IPMI set boot option coomand set boot option to the dbus
    property.
2) Two methods to handle the dbus property set and get:
    a) dbus_set_property()
    b) dbus_get_property()
3) The property is stored as a 10 character strings which representsd 5-byte information.
4) ipmid set method is registered and implemented since petitboot will use it to clear the boot options.
5) Get service name via object mapper
    a) The connection name is got via objectmapper.
    b) The method used to get the connection name is object_mapper_get_connection().
    c) dbus_get_property/dbus_set_property will get the connection name via the above method instead of hard coding.
6) Error code are properly handled.
7) Use sprinf/sscanf for int/string conversion.
    a) Instead of reinventing the wheel by defining methods converting int to string, use sprintf/sscanf should be a more clean and robust way.
8) Fix issues addressed by the community.
    a) change malloc heap to stack local variable.
    b) Fix multi line comment style from "//" to "/**/".
    c) Add defines for return codes.
    d) Add more comments.

https://github.com/openbmc/phosphor-host-ipmid/pull/55

shgoupf (1):
  Add get/set boot option ipmid command support with correct DBUS
    property handling.

 chassishandler.C | 316 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
 chassishandler.h |  18 ++++
 2 files changed, 326 insertions(+), 8 deletions(-)

-- 
2.6.4

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

end of thread, other threads:[~2016-01-12  5:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-12  0:50 [PATCH phosphor-host-ipmid v7] Add get/set ipmid command support with correct DBUS property handling OpenBMC Patches
2016-01-12  0:50 ` [PATCH phosphor-host-ipmid v7] Add get/set boot option " OpenBMC Patches
2016-01-12  2:02   ` Sam Mendoza-Jonas
2016-01-12  2:57     ` Peng Fei BG Gou
2016-01-12  5:45 ` [PATCH phosphor-host-ipmid v7] Add get/set " Stewart Smith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.