History log of /openbmc/phosphor-ipmi-flash/tools/io.cpp (Results 1 – 9 of 9)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 42a44c28 16-Aug-2024 Patrick Williams <patrick@stwcx.xyz>

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda forma

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.

See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.

Change-Id: I09e19a126d456dc184fd70e82d4e4e4217fa8ee7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 1038836c 10-May-2023 Patrick Williams <patrick@stwcx.xyz>

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.

Change-Id: I2ee8cbc4581d0c3ccdc130b646357c45fa0373db
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# ea0e470f 05-Oct-2020 Patrick Venture <venture@google.com>

tools: io: add ppcMemFd cleanup

The destructor may try to double-close because the ppcMemFd was not
being set to -1.

Signed-off-by: Patrick Venture <venture@google.com>
Chan

tools: io: add ppcMemFd cleanup

The destructor may try to double-close because the ppcMemFd was not
being set to -1.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I3423ae874d551b39f3deb761c5572078b07a0349

show more ...


# 286cc6ad 05-Nov-2019 Brandon Kim <brandonkim@google.com>

tools: Add PpcMemDevice as an HostIoInterface

PPC platforms may require a different mempath and different I/O
operations to access the file system.

Change-Id: I46b8825c685b36200

tools: Add PpcMemDevice as an HostIoInterface

PPC platforms may require a different mempath and different I/O
operations to access the file system.

Change-Id: I46b8825c685b362009dc62fdbaa59c65239831d1
Signed-off-by: Brandon Kim <brandonkim@google.com>

show more ...


Revision tags: v1.0
# 213f2db6 15-May-2019 Patrick Venture <venture@google.com>

tools: io: fix printf portability

The printfs were using actual sizes instead of leveraging %z to deal
with std::size_t.

Signed-off-by: Patrick Venture <venture@google.com>

tools: io: fix printf portability

The printfs were using actual sizes instead of leveraging %z to deal
with std::size_t.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I7ac731b0458d9501762651bdc9d796f7a6ada620

show more ...


# 18bbe3c6 14-May-2019 Patrick Venture <venture@google.com>

pci: implement sending firmware image over p2a

Implement sending firmware image over p2a via the aspeed-p2a-ctrl
driver.

Test configuration:
# Image is static, uses the PCI

pci: implement sending firmware image over p2a

Implement sending firmware image over p2a via the aspeed-p2a-ctrl
driver.

Test configuration:
# Image is static, uses the PCI bridge, and requires the ASPEED
# PCI-to-AHB hardware implementation.
EXTRA_OECONF_append_quanta-q71l = " --enable-static-layout"
EXTRA_OECONF_append_quanta-q71l = " --enable-pci-bridge"
EXTRA_OECONF_append_quanta-q71l = " --enable-aspeed-p2a"
EXTRA_OECONF_append_quanta-q71l = " MAPPED_ADDRESS=0x47FF0000"

Tested: Verified via md5sum the image-bmc file sent from the host via
this tool matches the hash of /run/initramfs/bmc-image. This code can
be used to send any file down, but was only tested with a "static"
layout build.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I430bc7444f06f4f93a63e3bf2646bd195eaa2e52

show more ...


# 206097b7 07-May-2019 Patrick Venture <venture@google.com>

tools: io: do aligned read/write mapping

Align the mmap by pagesize.

Tested: Verified alignment is correct and mmap succeeds where it would
fail on a mis-aligned call.
Signe

tools: io: do aligned read/write mapping

Align the mmap by pagesize.

Tested: Verified alignment is correct and mmap succeeds where it would
fail on a mis-aligned call.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I76a4f94415c9337d8ca983e24a18e3e4fc701564

show more ...


# ac4ff973 03-May-2019 Patrick Venture <venture@google.com>

tools: io: add read method

Add method for reading the host's memory to enable reading the PCI
configuration.

Tested: Verified it's able to read a memory BAR associated with the

tools: io: add read method

Add method for reading the host's memory to enable reading the PCI
configuration.

Tested: Verified it's able to read a memory BAR associated with the
ASPEED ast2400.

Change-Id: Id06f30b063e69825f2dfa69786b69392657f7b1c
Signed-off-by: Patrick Venture <venture@google.com>

show more ...


# 030b1a8a 18-Jan-2019 Patrick Venture <venture@google.com>

tools: add io interface for mmio, etc

Add an IO interface for host-side memory access. This is done as an
interface to allow platform specific implementations.

Change-Id: Id8e3

tools: add io interface for mmio, etc

Add an IO interface for host-side memory access. This is done as an
interface to allow platform specific implementations.

Change-Id: Id8e35d5beb21f7db544e27d6592bbeac58748dcb
Signed-off-by: Patrick Venture <venture@google.com>

show more ...