#
a6ca7a9c |
| 19-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
transport: dbus: Handle events
Change-Id: I873c60ef072c2e46d1306a086ce81d28927b593c Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
ef9e62d3 |
| 08-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
mboxd: Clean up dbus objects
Change-Id: I24328c8fca02b004b0297ecc2f2a0320bfb23d9b Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
55f4d6f9 |
| 05-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
dbus: Use new bus name, object and interface
The new interface is a more typical use of DBus, exposing multiple methods for the functions that are available on the object. The legacy interface by co
dbus: Use new bus name, object and interface
The new interface is a more typical use of DBus, exposing multiple methods for the functions that are available on the object. The legacy interface by comparison exposed only one method whose arguments selected sub-commands to be executed. The legacy approach is not terribly discoverable and leads to a lack of clarity in the client code. The legacy approach also obscured the implementation with its use of `struct mbox_dbus_msg`. The new interface wraps around the existing helpers and so also deals with `struct mbox_dbus_msg`, but this can at least be removed in the future.
Change-Id: I7113ed8fd2324bf3fb049d8d20acb3fd7fba6de3 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
68023074 |
| 05-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
dbus: Mark current command set as legacy
Change-Id: I1b5d1c9262ea6ae0a9ff77c902b6941943085cd1 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
Revision tags: v2.1.1 |
|
#
4fe996c2 |
| 26-Feb-2018 |
Andrew Jeffery <andrew@aj.id.au> |
misc: Replace license blurb with kernel-style SPDX markers
This was roughly achieved by the following shell script:
$ git ls-files | grep '\.[ch]p*$' | while read F; do EXT=${F##*.}; cat spdx.$EX
misc: Replace license blurb with kernel-style SPDX markers
This was roughly achieved by the following shell script:
$ git ls-files | grep '\.[ch]p*$' | while read F; do EXT=${F##*.}; cat spdx.$EXT <(sed '/^\/\*$/,/^ \*\/$/d' $F) > ${F}.tmp; mv ${F}.tmp $F; done
With the following context:
$ cat spdx.c // SPDX-License-Identifier: Apache-2.0 // Copyright (C) 2018 IBM Corp. $ cat spdx.h /* SPDX-License-Identifier: Apache-2.0 */ /* Copyright (C) 2018 IBM Corp. */ $ ls -l spdx.* -rw-r--r-- 1 andrew andrew 71 Feb 27 12:02 spdx.c lrwxrwxrwx 1 andrew andrew 6 Feb 27 12:02 spdx.cpp -> spdx.c -rw-r--r-- 1 andrew andrew 77 Feb 27 12:02 spdx.h lrwxrwxrwx 1 andrew andrew 6 Feb 27 12:02 spdx.hpp -> spdx.h
The `sed` invocation catches a lot of function documentation, so the hunks were manually added to avoid removing information that we want to keep.
Change-Id: I63e49ca2593aa0db0568c7a63bfdead388642e76 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
Revision tags: v2.1.0 |
|
#
ddf0edbf |
| 27-Mar-2017 |
Suraj Jitindar Singh <sjitindarsingh@gmail.com> |
mboxctl: Implement mboxctl to facilitate dbus control of the daemon
The daemon can now be controlled by issuing commands over dbus. Implement a mailbox control program to facilitate communication wi
mboxctl: Implement mboxctl to facilitate dbus control of the daemon
The daemon can now be controlled by issuing commands over dbus. Implement a mailbox control program to facilitate communication with the daemon over dbus.
Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com> Change-Id: I2a11f187268d28ce92d3c2592e0021e1ba5588b4
show more ...
|
#
e39c9163 |
| 27-Mar-2017 |
Suraj Jitindar Singh <sjitindarsingh@gmail.com> |
mboxd: Update mboxd to implement protocol V2 and add dbus support
Version 2 of the mbox protocol contains a few changes such as: - All sizes are in block size - Adds an erase command - Adds new r
mboxd: Update mboxd to implement protocol V2 and add dbus support
Version 2 of the mbox protocol contains a few changes such as: - All sizes are in block size - Adds an erase command - Adds new response codes - Adds new BMC events - Open windows commands now take a size directive
Update the mailbox daemon to support version 2 of the protocol which includes implementing all of the V2 functionality. Also entirely refactor the mboxd.c code to make it more modular improving readability and maintainability.
At the same time improve the functionality by adding: - Multiple windows in the daemon (still only one active window) to cache flash contents - Implement a dbus interface to allow interaction with the daemon - Handle sigterm and sigint and terminate cleanly
The previous implementation utilised the entire reserved memory region. Update the daemon so that on the command line the number of windows and the size of each which the reserved memory region will be split into can be specified. The reserved memory region is then divided between the windows, however there can still only be one "active" window at a time. The daemon uses these windows to cache the flash contents meaning the flash doesn't have to be copied when the host requests access assuming the daemon already has a copy.
A dbus interface is added so that commands can be sent to the daemon to control it's operation from the bmc. These include suspending and resuming the daemon to synchronise flash access, telling the daemon to point the lpc mapping back to flash and telling the daemon when the flash has been modified out from under it.
Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com> Change-Id: I10be01a395c2bec437cf2c825fdd144580b60dbc
show more ...
|