#
68a24c9e |
| 25-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
resolve stricter warnings
In order to convert this repository to Meson, we need to make it compile under `warning_level=3`. Fix a number of warning classes across the repository or disable them.
S
resolve stricter warnings
In order to convert this repository to Meson, we need to make it compile under `warning_level=3`. Fix a number of warning classes across the repository or disable them.
Some fixes are:
* Add missing header files. * Fully initialize structs as necessary. * Add `__attribute__((unused))` on parameters as necessary. * Fix comparisons between signed and unsigned. * Fix printf specifiers as necessary. * Avoid case-fallthrough. * Remove if conditions which are always true.
Some warnings would require extensive code changes, due to their pervasive use, and so are disabled at a per-file level: * `-Wpointer-arith` * `-Wunused-result`
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: If8992b9108f12b39f796ed090ba29868c9f3c627
show more ...
|
#
2ecad07c |
| 10-Apr-2020 |
Andrew Jeffery <andrew@aj.id.au> |
control: Retain current backend on initialisation failure
A failure to initialise a new backend should not lead to the current backend becoming invalid. Fix the current behaviour by only destroying
control: Retain current backend on initialisation failure
A failure to initialise a new backend should not lead to the current backend becoming invalid. Fix the current behaviour by only destroying the current backend once we know the requested backend has successfully initialised.
Change-Id: I5da11b346b8b5ab2c95085f512de4599d1272f57 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
5320f6e0 |
| 14-Mar-2019 |
Andrew Jeffery <andrew@aj.id.au> |
mboxd: Add backend DBus interface and commandline options
Also implement a backend commandline option to mboxctl: `mboxctl --backend ...`, to allow easy run-time switching of the backend from the co
mboxd: Add backend DBus interface and commandline options
Also implement a backend commandline option to mboxctl: `mboxctl --backend ...`, to allow easy run-time switching of the backend from the commandline.
Switching between VPNOR and file backends via mboxctl was tested on Witherspoon, and MTD and file backends on Romulus.
Change-Id: Iaf0e27ecf1d5cdd9e3a31729fb179096bbc37408 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
0297e5b8 |
| 14-Mar-2019 |
Andrew Jeffery <andrew@aj.id.au> |
mboxd: Remove flash API compatibility shim
The flash API compatibility was kept to reduce the line noise in the previous backend patch. Remove the compatibility layer now and convert the remaining c
mboxd: Remove flash API compatibility shim
The flash API compatibility was kept to reduce the line noise in the previous backend patch. Remove the compatibility layer now and convert the remaining call-sites.
Change-Id: I4b6e54f4463059a7804918add81e7572db7b7c21 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
f1e547c7 |
| 13-Mar-2019 |
Evan Lojewski <github@meklort.com> |
mboxd: Add a backend abstraction layer to mboxd.
Introduce a backend abstraction, enabling multiple implementations to be compiled in at once. This change formally abstracts the two existing backend
mboxd: Add a backend abstraction layer to mboxd.
Introduce a backend abstraction, enabling multiple implementations to be compiled in at once. This change formally abstracts the two existing backends, mtd and vpnor.
With the backend abstraction in place, subsequent backends are easier to implement.
This change is based of Evan's work and he retains authorship credit. I (AJ) have reworked the patch to pass the vpnor tests, refactored some parts to enable broader use of const structures and others to clarify the initialisation sequences.
Due to the existing lack of abstraction the patch has unfortunately wide-ranging impacts. I've whittled it down as much as I consider reasonable.
Change-Id: I29984a36dae4ea86ec00b853d2a756f0b9afb3ec Signed-off-by: Evan Lojewski <github@meklort.com> 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 ...
|
#
cda29646 |
| 29-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
control: Add FIXME in reset handling
windows_reset_all() doesn't perform a flush of the currently open window like the comment suggests. Iron out whether the comment or the behaviour is incorrect.
control: Add FIXME in reset handling
windows_reset_all() doesn't perform a flush of the currently open window like the comment suggests. Iron out whether the comment or the behaviour is incorrect.
Change-Id: Id10384651c02e397f4c8d2a749b66f8881bfe08b 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 ...
|
#
26558dbb |
| 09-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
mboxd: Refactor and rename mbox.h to mboxd.h
Refine the purpose of the header file to represent what's required for the daemon itself, not its constituent pieces. Rather, split those definitions out
mboxd: Refactor and rename mbox.h to mboxd.h
Refine the purpose of the header file to represent what's required for the daemon itself, not its constituent pieces. Rather, split those definitions out to their respective header files and include them as necessary.
Finally the header file is renamed to better reflect its purpose.
Change-Id: I48c409f57d96c844589cd865b24f197477dfe87c 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 ...
|
#
457a6e5f |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
mboxd: Rename mboxd_msg to transport_mbox
Change-Id: I0f4e206648c02a98fa938a7e582470c8d90904f1 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
d6a7426e |
| 08-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
windows: Rename reset_all_windows to windows_reset_all
Change-Id: Ibcbfa51e83a678fb1eddeeebfb22dd870bb112da Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
f593b1bd |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
mboxd: Rename windows files
Change-Id: I44e110906fd0f751f8f34b175f971e65896a7301 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
17971e44 |
| 08-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
lpc: Rename reset_lpc to lpc_reset
Change-Id: Iee234830b7ea93a7c51b45217d87162e14ef56ee Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
cd18611e |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
mboxd: Rename lpc source files
Change-Id: I289618c90b2df8911e362397b7eab99403c86c05 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
f953f798 |
| 08-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
flash: Rename set_flash_bytemap to flash_set_bytemap
Change-Id: I0bd244ab1f8f37cdf54a5dc9198651ade7ed0876 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
eebc6bd4 |
| 07-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
mboxd: Rename flash files
Change-Id: Icfe9d61775a198c5a0f8227bf5d6c4b7f11aeec3 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>
|
#
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>
|