History log of /openbmc/phosphor-mboxd/ (Results 226 – 247 of 247)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
e39c916327-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 ...

2dff340a16-Mar-2017 Suraj Jitindar Singh <sjitindarsingh@gmail.com>

README: Update README to describe version 2 of the mbox protocol

A second version (V2) of the mbox protocol has been designed to allow more
flexibility of the BMC implementation while allowing the h

README: Update README to describe version 2 of the mbox protocol

A second version (V2) of the mbox protocol has been designed to allow more
flexibility of the BMC implementation while allowing the host to provide some
directives as to what it may access in the future to allow the BMC to prefetch
data.

The main changes to the protocol in V2 are:
- All sizes specified in block size
- When opening a window the host provides a size directive and the
response contains the actual size of the window.
- Add an erase command to make it easier to erase large areas
- Add more response codes
- Add more BMC->Host event codes

Additionally further description of the protocol flow and the commands was
added for clarity.

These changes are now documented in the README document which describes the
mbox protocol.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Change-Id: I0d7a683e0d48810f5f404a0edd58804cbf9ecb35

show more ...

1974c6f922-Feb-2017 Suraj Jitindar Singh <sjitindarsingh@gmail.com>

mboxd: Fix MBOX_C_GET_FLASH_INFO to return size specified on command line

The MBOX_C_GET_FLASH_INFO command is supposed to return the size of the
file which was specified by the "flash" option on th

mboxd: Fix MBOX_C_GET_FLASH_INFO to return size specified on command line

The MBOX_C_GET_FLASH_INFO command is supposed to return the size of the
file which was specified by the "flash" option on the command line. However
currently the actual size of the flash chip its self is being reported.

Fix the MBOX_C_GET_FLASH_INFO command to correctly return the size of the
file rather than the whole flash size.

Change-Id: Ic7425dde8eca187a85e9bcec4084d5abc501c8da
Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>

show more ...

57b0bca426-Feb-2017 Andrew Jeffery <andrew@aj.id.au>

README: Add general overview information

This was extracted from email chains doing the rounds. It's more useful
to have it available out in the open, so lets put it in the README.

Full credit for

README: Add general overview information

This was extracted from email chains doing the rounds. It's more useful
to have it available out in the open, so lets put it in the README.

Full credit for the text goes to Mikey Neuling.

Change-Id: Ic5fb8b53c2ca5538737ad6ce532d0c5b79f3413b
Scribed-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

show more ...

2304290626-Feb-2017 Andrew Jeffery <andrew@aj.id.au>

README: Move autotools comment away from introduction

The comment is more about how to build the software, not so much about
what the purpose of the software is. As such I don't think it's worthy
of

README: Move autotools comment away from introduction

The comment is more about how to build the software, not so much about
what the purpose of the software is. As such I don't think it's worthy
of being part of the introduction.

Change-Id: Iacabd12f89fe569ea11af9d1d66ab1d6f0c7beef
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

show more ...

9dd93cfa29-Jan-2017 Cyril Bur <cyril.bur@au1.ibm.com>

README: Update protocol notes

Change-Id: I1ee76bd4fd0b23c2a8eb150fbe8e0b9c3086c074
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>

f0409b9924-Jan-2017 Cyril Bur <cyril.bur@au1.ibm.com>

mboxd: Workaround buggy kernel flash driver

Currently when mboxd starts (and on every SIGHUP) it reads the entire
flash into RAM (typically 32 or 64M). This large read causes the kernel
to become un

mboxd: Workaround buggy kernel flash driver

Currently when mboxd starts (and on every SIGHUP) it reads the entire
flash into RAM (typically 32 or 64M). This large read causes the kernel
to become unresponsive for an extended period of time (in the order of
10s of seconds). This period of unresponsiveness can cause misbehaviour
by the BMC, in particular it often causes SSH sessions to drop.

This patch is a temporary workaround until the kernel driver has been
fixed, at that point this patch should be reverted!
Patch originally from Michael Neuling <mikey@neuling.org>.

Change-Id: Ibd848a4074fc7bdcab194d669806589f9d274c93
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>

show more ...

465c676f24-Jan-2017 Cyril Bur <cyril.bur@au1.ibm.com>

gitignore: Add m4 directory, libtool and *.swp files

Change-Id: I1ea7a5fce49ea4c398741412094e642d092cdb7b
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>

ef315c1718-Jan-2017 Cyril Bur <cyril.bur@au1.ibm.com>

mboxd: Zero ioctl() map struct

Change-Id: I5528432af3e211bbac7d86cdf7e57beb0d1a6c0b
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>

8cb799c217-Jan-2017 Andrew Jeffery <andrew@aj.id.au>

autoconf: Don't depend on systemd

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

622992b417-Jan-2017 Michael Neuling <mikey@neuling.org>

Fix MBOX_C_RESET_STATE command crash

Currently MBOX_C_RESET_STATE tries to access
context->fds[LPC_CTRL_FD].fd but it's set to a negative value to avoid
being part of the poll loop. This causes MBO

Fix MBOX_C_RESET_STATE command crash

Currently MBOX_C_RESET_STATE tries to access
context->fds[LPC_CTRL_FD].fd but it's set to a negative value to avoid
being part of the poll loop. This causes MBOX_C_RESET_STATE command
crashes with:

[MBOXD 1479755597.524480127] Couldn't MAP the host LPC bus to the platform flash
[MBOXD 1479755597.524710309] Couldn't point the LPC BUS back to actual flash
[MBOXD 1479755597.525068895] Error handling MBOX event: Bad file descriptor

This patches removes the negative FDs and setups up a polls FD number
for the number of FDs to poll.

Signed-off-by: Michael Neuling <mikey@neuling.org>

show more ...

e8f2de1f16-Jan-2017 Cyril Bur <cyril.bur@au1.ibm.com>

mboxd: Add command-line option to specify platform flash size

2277804413-Jan-2017 Andrew Jeffery <andrew@aj.id.au>

Convert to autotools

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

899ebaca14-Jan-2017 Michael Neuling <mikey@neuling.org>

Enable SIGHUP to reset point to flash are reread flash.

b06bb08e14-Jan-2017 Michael Neuling <mikey@neuling.org>

Initial .gitignore file

4623367815-Jan-2017 Cyril Bur <cyril.bur@au1.ibm.com>

mboxd: Use MAP ioctl() to reset to flash

d7a15b8f12-Jan-2017 Andrew Jeffery <andrew@aj.id.au>

mboxd: Whitespace cleanups

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

78210b9b12-Jan-2017 Andrew Jeffery <andrew@aj.id.au>

mboxd: Fixup unused-result compilation warning

cc -Wall -O2 -g -I. -DPREFIX="\"MBOXD\"" mboxd.c common.o -o mboxd
mboxd.c: In function ‘dispatch_mbox’:
mboxd.c:170:5: warning: ignoring return v

mboxd: Fixup unused-result compilation warning

cc -Wall -O2 -g -I. -DPREFIX="\"MBOXD\"" mboxd.c common.o -o mboxd
mboxd.c: In function ‘dispatch_mbox’:
mboxd.c:170:5: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
read(-context->fds[MTD_FD].fd, context->lpc_mem, context->size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

show more ...

d8f6d7a410-Jan-2017 Cyril Bur <cyril.bur@au1.ibm.com>

mboxd: Test the single write functionality

c442b71018-Oct-2016 Cyril Bur <cyril.bur@au1.ibm.com>

README.md

c85e34d114-Nov-2016 Cyril Bur <cyril.bur@au1.ibm.com>

mboxd: Stripped down super simple daemon

This daemon may prove useful for debugging and for adding features.

Production daemons will likely need to be better designed

314929b413-Oct-2016 Cyril Bur <cyril.bur@au1.ibm.com>

First commit

12345678910