History log of /openbmc/hiomapd/file/ (Results 1 – 3 of 3)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
68a24c9e25-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 ...


/openbmc/hiomapd/Documentation/mboxd.md
/openbmc/hiomapd/Documentation/protocol.md
/openbmc/hiomapd/Makefile.am
/openbmc/hiomapd/OWNERS
/openbmc/hiomapd/README.md
/openbmc/hiomapd/backend.h
/openbmc/hiomapd/bootstrap.sh
/openbmc/hiomapd/common.c
/openbmc/hiomapd/configure.ac
/openbmc/hiomapd/control.c
/openbmc/hiomapd/control_dbus.c
/openbmc/hiomapd/control_legacy.c
backend.c
/openbmc/hiomapd/format-code.sh
/openbmc/hiomapd/mboxd.c
/openbmc/hiomapd/mtd/backend.c
/openbmc/hiomapd/protocol.c
/openbmc/hiomapd/test/close_window_v2.c
/openbmc/hiomapd/test/create_oversize_window.c
/openbmc/hiomapd/test/create_read_window_v2.c
/openbmc/hiomapd/test/create_write_window_v2.c
/openbmc/hiomapd/test/create_zero_size_window.c
/openbmc/hiomapd/test/flash_erase.c
/openbmc/hiomapd/test/flash_write.c
/openbmc/hiomapd/test/get_flash_info_v2.c
/openbmc/hiomapd/test/implicit_flush.c
/openbmc/hiomapd/test/mark_read_dirty.c
/openbmc/hiomapd/test/mark_write_dirty_v2.c
/openbmc/hiomapd/test/mark_write_erased_v2.c
/openbmc/hiomapd/test/mbox.c
/openbmc/hiomapd/test/read_window_cycle.c
/openbmc/hiomapd/test/read_window_mark_write_erased.c
/openbmc/hiomapd/test/read_window_write_flush.c
/openbmc/hiomapd/test/system.c
/openbmc/hiomapd/test/tmpf.c
/openbmc/hiomapd/test/write_flush_v2.c
/openbmc/hiomapd/transport_dbus.c
/openbmc/hiomapd/transport_mbox.c
/openbmc/hiomapd/vpnor/Makefile.am.include
/openbmc/hiomapd/vpnor/README.md
/openbmc/hiomapd/vpnor/backend.cpp
/openbmc/hiomapd/vpnor/backend.h
/openbmc/hiomapd/vpnor/partition.cpp
/openbmc/hiomapd/vpnor/partition.hpp
/openbmc/hiomapd/vpnor/table.cpp
/openbmc/hiomapd/vpnor/table.hpp
/openbmc/hiomapd/vpnor/test/Makefile.am.include
/openbmc/hiomapd/vpnor/test/create_aligned_window.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_partition_exists.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_remap.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_size.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_straddle_partitions.cpp
/openbmc/hiomapd/vpnor/test/dump_flash.cpp
/openbmc/hiomapd/vpnor/test/tmpd.cpp
/openbmc/hiomapd/vpnor/test/tmpd.hpp
/openbmc/hiomapd/vpnor/test/toc_missing_file.cpp
/openbmc/hiomapd/vpnor/test/write_patch.cpp
/openbmc/hiomapd/vpnor/test/write_patch_resize.cpp
/openbmc/hiomapd/vpnor/test/write_prsv.cpp
/openbmc/hiomapd/vpnor/test/write_ro.cpp
/openbmc/hiomapd/vpnor/test/write_rw.cpp
/openbmc/hiomapd/windows.c
8cef63e315-Oct-2019 Alvin Wang <alvinwang@msn.com>

Add backend_adjust_offset to avoid the windows overlap

In mihawk, the windows overlap will cause the cache coherence.
Hostboot writes the SPD data to BMC through a window and read it
back with anoth

Add backend_adjust_offset to avoid the windows overlap

In mihawk, the windows overlap will cause the cache coherence.
Hostboot writes the SPD data to BMC through a window and read it
back with another window. It causes the data missed and DIMM lost.

Hostboot log
23.80714|<<DBG-956|SPD::getMemType() - MemType: 0xff, Error: NoHUID: 0x30008.

BMC log: The overlaped windows
Window @ 0x756e0000 for size 0x00046000 maps flash offset 0x000e7000
Window @ 0x757e0000 for size 0x00048000 maps flash offset 0x000e5000

Tested: 1. In mihawk, it can fix the SPD cache coherence issue
2. Add unit test to verify VPNOR offset alignment

Change-Id: I92670ade4e2a91b5c49a0acabfc0456f90d49b93
Signed-off-by: Alvin Wang <alvinwang@msn.com>
[AJ: Remove some MSG_INFO() spam, fix whitespace issues]
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

show more ...


/openbmc/hiomapd/MAINTAINERS
/openbmc/hiomapd/Makefile.am
/openbmc/hiomapd/backend.h
/openbmc/hiomapd/configure.ac
/openbmc/hiomapd/control.c
/openbmc/hiomapd/control_dbus.c
/openbmc/hiomapd/control_dbus.h
/openbmc/hiomapd/control_legacy.c
backend.c
/openbmc/hiomapd/mboxctl.c
/openbmc/hiomapd/mboxd.c
/openbmc/hiomapd/mboxd.h
/openbmc/hiomapd/mtd/backend.c
/openbmc/hiomapd/protocol.c
/openbmc/hiomapd/test/Makefile.am.include
/openbmc/hiomapd/test/mbox.c
/openbmc/hiomapd/transport_dbus.c
/openbmc/hiomapd/transport_mbox.c
/openbmc/hiomapd/vpnor/Makefile.am.include
/openbmc/hiomapd/vpnor/backend.cpp
/openbmc/hiomapd/vpnor/backend.h
/openbmc/hiomapd/vpnor/ffs.h
/openbmc/hiomapd/vpnor/partition.cpp
/openbmc/hiomapd/vpnor/partition.hpp
/openbmc/hiomapd/vpnor/table.cpp
/openbmc/hiomapd/vpnor/table.hpp
/openbmc/hiomapd/vpnor/test/Makefile.am.include
/openbmc/hiomapd/vpnor/test/create_aligned_window.cpp
/openbmc/hiomapd/vpnor/test/create_pnor_partition_table.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_oob.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_partition_exists.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_partition_invalid.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_remap.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_size.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_straddle_partitions.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_toc.cpp
/openbmc/hiomapd/vpnor/test/create_write_window_ro_partition.cpp
/openbmc/hiomapd/vpnor/test/create_write_window_rw_partition.cpp
/openbmc/hiomapd/vpnor/test/create_write_window_unmapped.cpp
/openbmc/hiomapd/vpnor/test/dump_flash.cpp
/openbmc/hiomapd/vpnor/test/force_readonly_toc.cpp
/openbmc/hiomapd/vpnor/test/read_patch.cpp
/openbmc/hiomapd/vpnor/test/tmpd.hpp
/openbmc/hiomapd/vpnor/test/toc_flags.cpp
/openbmc/hiomapd/vpnor/test/toc_lookup_failed.cpp
/openbmc/hiomapd/vpnor/test/toc_lookup_found.cpp
/openbmc/hiomapd/vpnor/test/toc_missing_file.cpp
/openbmc/hiomapd/vpnor/test/toc_no_end.cpp
/openbmc/hiomapd/vpnor/test/toc_no_name.cpp
/openbmc/hiomapd/vpnor/test/toc_no_start.cpp
/openbmc/hiomapd/vpnor/test/toc_no_version.cpp
/openbmc/hiomapd/vpnor/test/toc_overlap.cpp
/openbmc/hiomapd/vpnor/test/toc_start_gt_end.cpp
/openbmc/hiomapd/vpnor/test/write_toc.cpp
/openbmc/hiomapd/windows.c
a042978b12-Mar-2019 Evan Lojewski <github@meklort.com>

mboxd: Add support for file-backed flash devices.

This commit adds a new file based backing source. The file based
backing source takes a raw pnor image that is usually flashed to a mtd
device.

Th

mboxd: Add support for file-backed flash devices.

This commit adds a new file based backing source. The file based
backing source takes a raw pnor image that is usually flashed to a mtd
device.

This backing source enabled rapid testing of pnor images.

Tested on Witherspoon with the VPNOR and file backends, and Romulus for
the MTD and file backends.

Change-Id: I253ecfa6b58d071c7982f153ad50da8e4ad39fa2
Signed-off-by: Evan Lojewski <github@meklort.com>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>

show more ...


/openbmc/hiomapd/.clang-format-c
/openbmc/hiomapd/.clang-format-c++
/openbmc/hiomapd/.gitignore
/openbmc/hiomapd/Documentation/mboxctl.md
/openbmc/hiomapd/Documentation/mboxd.md
/openbmc/hiomapd/Documentation/protocol.md
/openbmc/hiomapd/LICENSE
/openbmc/hiomapd/MAINTAINERS
/openbmc/hiomapd/Makefile.am
/openbmc/hiomapd/README.md
/openbmc/hiomapd/backend.h
/openbmc/hiomapd/bootstrap.sh
/openbmc/hiomapd/common.c
/openbmc/hiomapd/common.h
/openbmc/hiomapd/configure.ac
/openbmc/hiomapd/control.c
/openbmc/hiomapd/control_dbus.c
/openbmc/hiomapd/control_dbus.h
/openbmc/hiomapd/control_legacy.c
/openbmc/hiomapd/dbus.h
Makefile.am.include
backend.c
/openbmc/hiomapd/format-code.sh
/openbmc/hiomapd/lpc.c
/openbmc/hiomapd/lpc.h
/openbmc/hiomapd/m4/.keep
/openbmc/hiomapd/mboxctl.c
/openbmc/hiomapd/mboxd.c
/openbmc/hiomapd/mboxd.h
/openbmc/hiomapd/mtd.c
/openbmc/hiomapd/mtd/Makefile.am.include
/openbmc/hiomapd/mtd/backend.c
/openbmc/hiomapd/mtd/backend.h
/openbmc/hiomapd/protocol.c
/openbmc/hiomapd/protocol.h
/openbmc/hiomapd/test/Makefile.am.include
/openbmc/hiomapd/test/backend.c
/openbmc/hiomapd/test/bmc_event_ack_v2.c
/openbmc/hiomapd/test/close_window_v2.c
/openbmc/hiomapd/test/create_oversize_window.c
/openbmc/hiomapd/test/create_read_window_v2.c
/openbmc/hiomapd/test/create_write_window_v2.c
/openbmc/hiomapd/test/create_zero_size_window.c
/openbmc/hiomapd/test/flash_copy.c
/openbmc/hiomapd/test/flash_erase.c
/openbmc/hiomapd/test/flash_write.c
/openbmc/hiomapd/test/get_flash_info_v2.c
/openbmc/hiomapd/test/get_mbox_info_v2.c
/openbmc/hiomapd/test/get_mbox_info_v2_timeout.c
/openbmc/hiomapd/test/implicit_flush.c
/openbmc/hiomapd/test/invalid_command.c
/openbmc/hiomapd/test/mark_read_dirty.c
/openbmc/hiomapd/test/mark_write_dirty_v2.c
/openbmc/hiomapd/test/mark_write_erased_v2.c
/openbmc/hiomapd/test/mbox.c
/openbmc/hiomapd/test/mbox.h
/openbmc/hiomapd/test/read_window_cycle.c
/openbmc/hiomapd/test/read_window_mark_write_erased.c
/openbmc/hiomapd/test/read_window_write_flush.c
/openbmc/hiomapd/test/request_high_version.c
/openbmc/hiomapd/test/request_low_version.c
/openbmc/hiomapd/test/reset_state.c
/openbmc/hiomapd/test/sanity.c
/openbmc/hiomapd/test/sequence_numbers.c
/openbmc/hiomapd/test/system.c
/openbmc/hiomapd/test/system.h
/openbmc/hiomapd/test/tmpf.c
/openbmc/hiomapd/test/tmpf.h
/openbmc/hiomapd/test/windows_equally_evictable.c
/openbmc/hiomapd/test/write_flush_v2.c
/openbmc/hiomapd/test/write_window_dirty_erase.c
/openbmc/hiomapd/transport.h
/openbmc/hiomapd/transport_dbus.c
/openbmc/hiomapd/transport_dbus.h
/openbmc/hiomapd/transport_mbox.c
/openbmc/hiomapd/transport_mbox.h
/openbmc/hiomapd/vpnor/Makefile.am.include
/openbmc/hiomapd/vpnor/README.md
/openbmc/hiomapd/vpnor/backend.cpp
/openbmc/hiomapd/vpnor/mboxd_pnor_partition_table.cpp
/openbmc/hiomapd/vpnor/mboxd_pnor_partition_table.h
/openbmc/hiomapd/vpnor/pnor_partition.cpp
/openbmc/hiomapd/vpnor/pnor_partition.hpp
/openbmc/hiomapd/vpnor/pnor_partition_defs.h
/openbmc/hiomapd/vpnor/pnor_partition_table.cpp
/openbmc/hiomapd/vpnor/pnor_partition_table.hpp
/openbmc/hiomapd/vpnor/test/Makefile.am.include
/openbmc/hiomapd/vpnor/test/create_pnor_partition_table.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_oob.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_partition_exists.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_partition_invalid.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_remap.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_size.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_straddle_partitions.cpp
/openbmc/hiomapd/vpnor/test/create_read_window_toc.cpp
/openbmc/hiomapd/vpnor/test/create_write_window_ro_partition.cpp
/openbmc/hiomapd/vpnor/test/create_write_window_rw_partition.cpp
/openbmc/hiomapd/vpnor/test/create_write_window_unmapped.cpp
/openbmc/hiomapd/vpnor/test/dump_flash.cpp
/openbmc/hiomapd/vpnor/test/force_readonly_toc.cpp
/openbmc/hiomapd/vpnor/test/read_patch.cpp
/openbmc/hiomapd/vpnor/test/tmpd.cpp
/openbmc/hiomapd/vpnor/test/tmpd.hpp
/openbmc/hiomapd/vpnor/test/toc_flags.cpp
/openbmc/hiomapd/vpnor/test/toc_lookup_failed.cpp
/openbmc/hiomapd/vpnor/test/toc_lookup_found.cpp
/openbmc/hiomapd/vpnor/test/toc_missing_file.cpp
/openbmc/hiomapd/vpnor/test/toc_no_end.cpp
/openbmc/hiomapd/vpnor/test/toc_no_name.cpp
/openbmc/hiomapd/vpnor/test/toc_no_start.cpp
/openbmc/hiomapd/vpnor/test/toc_no_version.cpp
/openbmc/hiomapd/vpnor/test/toc_overlap.cpp
/openbmc/hiomapd/vpnor/test/toc_start_gt_end.cpp
/openbmc/hiomapd/vpnor/test/write_patch.cpp
/openbmc/hiomapd/vpnor/test/write_patch_resize.cpp
/openbmc/hiomapd/vpnor/test/write_prsv.cpp
/openbmc/hiomapd/vpnor/test/write_ro.cpp
/openbmc/hiomapd/vpnor/test/write_rw.cpp
/openbmc/hiomapd/vpnor/test/write_toc.cpp
/openbmc/hiomapd/windows.c
/openbmc/hiomapd/windows.h