#
cb93504e |
| 14-Mar-2019 |
Andrew Jeffery <andrew@aj.id.au> |
flash: Introduce flash_validate()
Clean up the protocol_negotiate_version() mess. The existing approach came about due to viewing the vpnor implementation as an edge case in its own right. The code
flash: Introduce flash_validate()
Clean up the protocol_negotiate_version() mess. The existing approach came about due to viewing the vpnor implementation as an edge case in its own right. The code becomes much neater if we consider all backends as equal and afford them the callbacks necessary for correct behaviour.
Change-Id: Ifaeee9da459818cf22b2f137ddc5b8d0356b9be9 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
f69760da |
| 14-Mar-2019 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Introduce protocol_reset()
protocol_reset() encapsulates the actions necessary to return the LPC state to what's required to boot the host. This is backend dependent; for the mtd backend w
protocol: Introduce protocol_reset()
protocol_reset() encapsulates the actions necessary to return the LPC state to what's required to boot the host. This is backend dependent; for the mtd backend we can simply point the bridge at the host flash AHB mapping, and for the virtual pnor we want to rearrange the content of the LPC reserved memory (leaving the bridge pointed there). In either case the state of the FWH address space is distured, so inform the host as necessary.
Change-Id: Ie8efd1f703a3616c33f76f4e735c1efea039146c Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
fe0c9e86 |
| 31-Oct-2018 |
Andrew Jeffery <andrew@aj.id.au> |
mboxd: Broadcast the daemon is ready on all transports
The code as it stood only sent the state update at startup on the active transport, which is somewhat arbitrarily chosen as an implementation d
mboxd: Broadcast the daemon is ready on all transports
The code as it stood only sent the state update at startup on the active transport, which is somewhat arbitrarily chosen as an implementation detail of the mbox initialisation function.
If the host firmware is using IPMI, it will not learn of the update unless it attempts to contact mboxd, which it won't do if it knows the daemon isn't there, which it may have learned of by receiving a state update from the daemon's shutdown path. In this circumstance the host firmware is now stuck.
Relieve the host firmware of this problem by always sending the daemon state on all supported transports. To avoid some insanity we introduce a new callback in struct transport_ops that allows use to send the BMC's entire event state rather than just set or clear updates.
Change-Id: I094ff4089eeebd8be99fbd343b94f7bbef023fb1 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
2ebfd20f |
| 19-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
daemon: Remove the concept of triggering or suppressing events
Rather, trigger them (or not) as necessary in the relevant code-paths. This ensures that any call to one of protocol_events_{set,clear}
daemon: Remove the concept of triggering or suppressing events
Rather, trigger them (or not) as necessary in the relevant code-paths. This ensures that any call to one of protocol_events_{set,clear}() actually has a consequence that we can set about dealing with in the transport layer.
Change-Id: If64733fa53ed9def0da8330c99cbe48327bab934 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
5335f093 |
| 09-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Provide abstraction over event notification
How this works will be transport-dependent. Move the event notification helpers into the protocol abstraction and call-back through the register
protocol: Provide abstraction over event notification
How this works will be transport-dependent. Move the event notification helpers into the protocol abstraction and call-back through the registered flush handler as necessary.
Change-Id: I29e3a9a9785b92de46a2b2750257fb7f8480a184 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
c5c83048 |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Add ack
Change-Id: I3ebad03d7f79381c683a121c181db9f30a13a3c4 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
093eda5c |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Add close
Change-Id: I222a8f60edba0a5f5f2c938a6e2d78e2e0441a23 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
9b920cf4 |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Add flush
Change-Id: Ic5be69f534c9ff277cc3f7e5a85a0eae5bc41716 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
62a3daae |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Add erase
Change-Id: I8b533f911e2d008f474817831836d29663511e98 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
a336e43a |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Add mark_dirty
Change-Id: I192b96fa02a2266dd55ee97e5f4a751b45e3ae77 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
4bcec8ef |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Add create_write_window
Change-Id: Ia1f55488c2aaefbe744305d3ed823e41e48a5934 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
22fa5009 |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Add create_read_window
Change-Id: I82e9e69861163fb1ae35313fcfee37e03be69f65 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
91a87454 |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Add get_flash_info
Change-Id: Iff6c452c1399bc8e8f65219779c6a0f2375c68e6 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
ab666a57 |
| 06-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Add reset
Change-Id: Ie5c11e71312c30de1aa9ec14d963bde91545dc50 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
1e531afd |
| 06-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
protocol: Add get_info
Change-Id: Ie3338714813bb65f5d37fcd046dd5bebc0ba21f0 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|