openbmc Digest, Vol 29, Issue 17
Subsystems (3)
For systemd update, I want to upgrade it too:
https://lists.ozlabs.org/pipermail/openbmc/2017-December/010124.html
For a new machine-id related API.
FYI, I uploaded a code review for this API: https://gerrit.openbmc-project.xyz/#/c/8323/
Thanks,
Yong
-----Original Message-----
From: openbmc [mailto:[email protected]] On Behalf Of [email protected]
Sent: Tuesday, January 9, 2018 9:45 AM
To: [email protected]
Subject: openbmc Digest, Vol 29, Issue 17
Send openbmc mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.ozlabs.org/listinfo/openbmc
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific than "Re: Contents of openbmc digest..."
Today's Topics:
1. Re: systemd update for openbmc (Gunnar Mills)
2. [PATCH linux dev-4.10 v3] ipmi: add an Aspeed KCS IPMI BMC driver (Haiyue Wang)
----------------------------------------------------------------------
Message: 1
Date: Mon, 8 Jan 2018 19:20:55 -0600
From: Gunnar Mills <[email protected]>
To: [email protected]
Subject: Re: systemd update for openbmc
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
We currently use systemd v232.
https://github.com/openbmc/openbmc/blob/master/import-layers/yocto-poky/meta/recipes-core/systemd/systemd_232.bb
Looks like that commit is included starting in systemd v233.
$git config --get remote.origin.url
[email protected]:systemd/systemd.gi
$git tag --contains aa3288505569433200bfa311ff12d29684a14374 v233
v234
v235
v236
Yocto Project 2.4 does update systemd to v234.
https://lists.yoctoproject.org/pipermail/yocto-announce/2017-October/000125.html
https://github.com/openbmc/openbmc/issues/2461 is the OpenBMC issue for updating to Yocto 2.4.
You could also look at including that patch in a systemd_%.bbappend.
Gunnar
Quoted 16 lines · Nancy Yuen
I think systemd is a component that OpenBMC picks up when it updates Yocto. I think there was some rumblings about updating to Yocto 2.4. I don't know what version of systemd is in it though.
----------
NancyOn Fri, Jan 5, 2018 at 9:53 AM, <[email protected] <mailto:[email protected]>> wrote:
systemd in openbmc repo seems a little outdated making it unable to build with GNU c++ compilers. Is there a plan to update it? Particularly interesting is the following fix,
https://github.com/systemd/systemd/commit/aa3288505569433200bfa311ff12d29684a14374
Quoted 10 lines
<https://github.com/systemd/systemd/commit/aa3288505569433200bfa311ff1
2d29684a14374>Will systemd be updated anytime soon?
Thanks
Balaji
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20180108/856bfca3/attachment-0001.html>
------------------------------
Message: 2
Date: Tue, 9 Jan 2018 09:45:19 +0800
From: Haiyue Wang <[email protected]>
To: [email protected], [email protected], [email protected]
Cc: Haiyue Wang <[email protected]>
Subject: [PATCH linux dev-4.10 v3] ipmi: add an Aspeed KCS IPMI BMC
driver
Message-ID:
<[email protected]>
The KCS (Keyboard Controller Style) interface is used to perform in-band IPMI communication between a server host and its BMC (BaseBoard Management Controllers).
This driver exposes the KCS interface on ASpeed SOCs (AST2400 and AST2500) as a character device. Such SOCs are commonly used as BMCs and this driver implements the BMC side of the KCS interface.
--- .../devicetree/bindings/ipmi/aspeed-kcs-bmc.txt | 25 + drivers/char/ipmi/Kconfig | 9 + drivers/char/ipmi/Makefile | 1 + drivers/char/ipmi/kcs-bmc.c | 744 +++++++++++++++++++++ include/uapi/linux/kcs-bmc.h | 14 + 5 files changed, 793 insertions(+) create mode 100644 Documentation/devicetree/bindings/ipmi/aspeed-kcs-bmc.txt create mode 100644 drivers/char/ipmi/kcs-bmc.c create mode 100644 include/uapi/linux/kcs-bmc.h
Documentation/devicetree/bindings/ipmi/aspeed-kcs-bmc.txt new file +25 -0
@@ -0,0 +1,25 @@ +* Aspeed KCS (Keyboard Controller Style) IPMI interface + +The Aspeed SOCs (AST2400 and AST2500) are commonly used as BMCs +(BaseBoard Management Controllers) and the KCS interface can be used to +perform in-band IPMI communication with their host. + +Required properties: +- compatible : should be one of + "aspeed,ast2400-kcs-bmc" + "aspeed,ast2500-kcs-bmc" +- interrupts : interrupt generated by the controller +- kcs_chan : The LPC channel number in the controller +- kcs_addr : The host CPU IO map address + + +Example: + + kcs: kcs@0 { + compatible = "aspeed,ast2500-kcs-bmc"; + interrupts = <8>; + kcs_chan = <3>; + kcs_addr = <0xCA2>; + status = "okay"; + }; +
drivers/char/ipmi/Kconfig +9 -0
@@ -85,3 +85,12 @@ config ASPEED_BT_IPMI_BMC Provides a driver for the BT (Block Transfer) IPMI interface found on Aspeed SOCs (AST2400 and AST2500). The driver implements the BMC side of the BT interface. + +config ASPEED_KCS_IPMI_BMC + depends on ARCH_ASPEED || COMPILE_TEST + select REGMAP_MMIO + tristate "KCS IPMI bmc driver" + help + Provides a driver for the KCS (Keyboard Controller Style) IPMI + interface found on Aspeed SOCs (AST2400 and AST2500). The driver + implements the BMC side of the KCS interface.
drivers/char/ipmi/Makefile +1 -0
@@ -12,3 +12,4 @@ obj-$(CONFIG_IPMI_POWERNV) += ipmi_powernv.o obj-$(CONFIG_IPMI_WATCHDOG) += ipmi_watchdog.o obj-$(CONFIG_IPMI_POWEROFF) += ipmi_poweroff.o obj-$(CONFIG_ASPEED_BT_IPMI_BMC) += bt-bmc.o +obj-$(CONFIG_ASPEED_KCS_IPMI_BMC) += kcs-bmc.o
drivers/char/ipmi/kcs-bmc.c new file +723 -0
723 lines not on this page · raw message
include/uapi/linux/kcs-bmc.h new file +14 -0
@@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2015-2017, Intel Corporation. + +#ifndef _UAPI_LINUX_KCS_BMC_H +#define _UAPI_LINUX_KCS_BMC_H + +#include <linux/ioctl.h> + +#define __KCS_BMC_IOCTL_MAGIC 'K' +#define KCS_BMC_IOCTL_SET_ATN _IO(__KCS_BMC_IOCTL_MAGIC, 1) +#define KCS_BMC_IOCTL_CLR_ATN _IO(__KCS_BMC_IOCTL_MAGIC, 2) +#define KCS_BMC_IOCTL_FORCE_ABORT _IO(__KCS_BMC_IOCTL_MAGIC, 3) + +#endif /* _UAPI_LINUX_KCS_BMC_H */
--
2.7.4
End of openbmc Digest, Vol 29, Issue 17
***************************************