History log of /openbmc/openpower-vpd-parser/test/ (Results 1 – 25 of 39)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
08dc31cd16-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: I917f3a65c985f3df3bb4d7a1bef0a13da54ab7bd
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...

af92175617-Jun-2024 Manojkiran Eda <manojkiran.eda@gmail.com>

Fix spelling mistakes using codespell

This commit corrects various spelling mistakes throughout the
repository. The corrections were made automatically using `codespell`[1]
tool.

[1]: https://githu

Fix spelling mistakes using codespell

This commit corrects various spelling mistakes throughout the
repository. The corrections were made automatically using `codespell`[1]
tool.

[1]: https://github.com/codespell-project/codespell

Change-Id: Iae81201889d1bb4ca324243b863948cb60420ae7
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>

show more ...


/openbmc/openpower-vpd-parser/README.md
/openbmc/openpower-vpd-parser/config/ibm/50001000.json
/openbmc/openpower-vpd-parser/config/ibm/50001000_v2.json
/openbmc/openpower-vpd-parser/config/ibm/50001001.json
/openbmc/openpower-vpd-parser/config/ibm/50001001_v2.json
/openbmc/openpower-vpd-parser/config/ibm/50001002.json
/openbmc/openpower-vpd-parser/config/ibm/50003000.json
/openbmc/openpower-vpd-parser/config/ibm/50003000_v2.json
/openbmc/openpower-vpd-parser/config/ibm/systems.json
/openbmc/openpower-vpd-parser/config/ibm/vpd_inventory.json
/openbmc/openpower-vpd-parser/const.hpp
/openbmc/openpower-vpd-parser/examples/inventory.json
/openbmc/openpower-vpd-parser/ibm_vpd_app.cpp
/openbmc/openpower-vpd-parser/ibm_vpd_utils.cpp
/openbmc/openpower-vpd-parser/ibm_vpd_utils.hpp
/openbmc/openpower-vpd-parser/meson.build
/openbmc/openpower-vpd-parser/meson.options
/openbmc/openpower-vpd-parser/rules/70-ibm-vpd-parser.rules
/openbmc/openpower-vpd-parser/subprojects/nlohmann_json.wrap
vpd-manager-test/reader_test.cpp
/openbmc/openpower-vpd-parser/vpd-manager/editor_impl.cpp
/openbmc/openpower-vpd-parser/vpd-manager/editor_impl.hpp
/openbmc/openpower-vpd-parser/vpd-manager/gpioMonitor.hpp
/openbmc/openpower-vpd-parser/vpd-manager/manager.cpp
/openbmc/openpower-vpd-parser/vpd-parser/isdimm_vpd_parser.cpp
/openbmc/openpower-vpd-parser/vpd-parser/isdimm_vpd_parser.hpp
/openbmc/openpower-vpd-parser/vpd-parser/keyword_vpd_parser.cpp
/openbmc/openpower-vpd-parser/vpd-parser/keyword_vpd_parser.hpp
/openbmc/openpower-vpd-parser/vpd-parser/memory_vpd_parser.cpp
/openbmc/openpower-vpd-parser/vpd-parser/parser_factory.hpp
/openbmc/openpower-vpd-parser/vpd-parser/parser_interface.hpp
/openbmc/openpower-vpd-parser/vpd_exceptions.hpp
/openbmc/openpower-vpd-parser/vpd_tool.cpp
/openbmc/openpower-vpd-parser/vpd_tool_impl.cpp
/openbmc/openpower-vpd-parser/vpd_tool_impl.hpp
/openbmc/openpower-vpd-parser/vpdecc/vpdecc.h
/openbmc/openpower-vpd-parser/vpdecc/vpdecc_support.c
/openbmc/openpower-vpd-parser/vpdecc/vpdecc_support.h
468e8c5b29-Nov-2023 Patrick Williams <patrick@stwcx.xyz>

build: use allowed over enabled

Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer retur

build: use allowed over enabled

Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer return true for auto features. Instead, the
expectation is to use `allowed()` which is true for both enabled and auto.

Switch all uses of `enabled` to `allowed`.

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

show more ...

dc3c3c3007-Sep-2023 Patrick Williams <patrick@stwcx.xyz>

subprojects: nlohmann,cli11: add wraps and configure

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

abe481e107-Sep-2023 Patrick Williams <patrick@stwcx.xyz>

subprojects: libgpiod: add wrap and configure

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

c78d887c10-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: Ia442cdc88aaeaab2f1384cc46a56f5cd5e40f2f5
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


/openbmc/openpower-vpd-parser/.clang-format
/openbmc/openpower-vpd-parser/.gitignore
/openbmc/openpower-vpd-parser/common_utility.cpp
/openbmc/openpower-vpd-parser/common_utility.hpp
/openbmc/openpower-vpd-parser/const.hpp
/openbmc/openpower-vpd-parser/ibm_vpd_app.cpp
/openbmc/openpower-vpd-parser/ibm_vpd_utils.cpp
/openbmc/openpower-vpd-parser/ibm_vpd_utils.hpp
/openbmc/openpower-vpd-parser/impl.cpp
/openbmc/openpower-vpd-parser/impl.hpp
/openbmc/openpower-vpd-parser/meson.build
/openbmc/openpower-vpd-parser/store.hpp
ipz_parser/parser.cpp
keyword_vpd_parser_test/kw_vpd_test.cpp
parser/parser.cpp
vpd-manager-test/editor_test.cpp
vpd-manager-test/reader_test.cpp
/openbmc/openpower-vpd-parser/types.hpp
/openbmc/openpower-vpd-parser/utilInterface.hpp
/openbmc/openpower-vpd-parser/vpd-manager/bios_handler.cpp
/openbmc/openpower-vpd-parser/vpd-manager/bios_handler.hpp
/openbmc/openpower-vpd-parser/vpd-manager/editor_impl.cpp
/openbmc/openpower-vpd-parser/vpd-manager/editor_impl.hpp
/openbmc/openpower-vpd-parser/vpd-manager/gpioMonitor.cpp
/openbmc/openpower-vpd-parser/vpd-manager/gpioMonitor.hpp
/openbmc/openpower-vpd-parser/vpd-manager/manager.cpp
/openbmc/openpower-vpd-parser/vpd-manager/manager.hpp
/openbmc/openpower-vpd-parser/vpd-manager/reader_impl.cpp
/openbmc/openpower-vpd-parser/vpd-manager/reader_impl.hpp
/openbmc/openpower-vpd-parser/vpd-parser/ipz_parser.cpp
/openbmc/openpower-vpd-parser/vpd-parser/ipz_parser.hpp
/openbmc/openpower-vpd-parser/vpd-parser/isdimm_vpd_parser.cpp
/openbmc/openpower-vpd-parser/vpd-parser/isdimm_vpd_parser.hpp
/openbmc/openpower-vpd-parser/vpd-parser/keyword_vpd_parser.cpp
/openbmc/openpower-vpd-parser/vpd-parser/keyword_vpd_parser.hpp
/openbmc/openpower-vpd-parser/vpd-parser/memory_vpd_parser.cpp
/openbmc/openpower-vpd-parser/vpd-parser/memory_vpd_parser.hpp
/openbmc/openpower-vpd-parser/vpd-parser/parser_factory.hpp
/openbmc/openpower-vpd-parser/vpd-parser/parser_interface.hpp
/openbmc/openpower-vpd-parser/vpd_exceptions.hpp
/openbmc/openpower-vpd-parser/vpd_tool.cpp
/openbmc/openpower-vpd-parser/vpd_tool_impl.cpp
/openbmc/openpower-vpd-parser/vpd_tool_impl.hpp
/openbmc/openpower-vpd-parser/vpdecc/vpdecc.h
/openbmc/openpower-vpd-parser/vpdecc/vpdecc_support.c
/openbmc/openpower-vpd-parser/write.hpp
18bb985c16-Nov-2022 girik <giridharikrishnan@gmail.com>

Correction of VPD using ECC

ECC algorithm corrects VPD data in 32:1 bit ratio in the
event of corruption.
Main Test Cases:
1) Check correction of KW in records.
2) Check correction while writing and

Correction of VPD using ECC

ECC algorithm corrects VPD data in 32:1 bit ratio in the
event of corruption.
Main Test Cases:
1) Check correction of KW in records.
2) Check correction while writing and reading VPD.
3) Check for Module VPD correction.

Signed-off-by: Giridhari Krishna <giridharikrishnan@gmail.com>
Change-Id: I48a3db18df9d3a2aecde814610ab1b357e6f310d

show more ...

6555e7ef14-Feb-2023 jinuthomas <jinu.joy.thomas@in.ibm.com>

Adding ISDIMM support

Added ISDIMM support for Bonnell machine

Change-Id: Ifdb2fc9e2d38267c8eb6cd5848d30102ab48efd1
Signed-off-by: jinuthomas <jinu.joy.thomas@in.ibm.com>


/openbmc/openpower-vpd-parser/OWNERS
/openbmc/openpower-vpd-parser/const.hpp
/openbmc/openpower-vpd-parser/ibm_vpd/70-ibm-vpd-parser.rules
/openbmc/openpower-vpd-parser/ibm_vpd/com.ibm.VPD.Manager.service
/openbmc/openpower-vpd-parser/ibm_vpd/fru/50001000.json
/openbmc/openpower-vpd-parser/ibm_vpd/fru/50001000_v2.json
/openbmc/openpower-vpd-parser/ibm_vpd/fru/50001001.json
/openbmc/openpower-vpd-parser/ibm_vpd/fru/50001001_v2.json
/openbmc/openpower-vpd-parser/ibm_vpd/fru/50001002.json
/openbmc/openpower-vpd-parser/ibm_vpd/fru/50003000.json
/openbmc/openpower-vpd-parser/ibm_vpd/fru/50003000_v2.json
/openbmc/openpower-vpd-parser/ibm_vpd/fru/50004000.json
/openbmc/openpower-vpd-parser/ibm_vpd/fru/systems.json
/openbmc/openpower-vpd-parser/ibm_vpd/fru/vpd_inventory.json
/openbmc/openpower-vpd-parser/ibm_vpd/ibm-vpd-parser@.service
/openbmc/openpower-vpd-parser/ibm_vpd/system-vpd.service
/openbmc/openpower-vpd-parser/ibm_vpd/wait-vpd-parsers.service
/openbmc/openpower-vpd-parser/ibm_vpd/wait-vpd-parsers.sh
/openbmc/openpower-vpd-parser/ibm_vpd_app.cpp
/openbmc/openpower-vpd-parser/ibm_vpd_utils.cpp
/openbmc/openpower-vpd-parser/ibm_vpd_utils.hpp
/openbmc/openpower-vpd-parser/impl.cpp
/openbmc/openpower-vpd-parser/meson.build
meson.build
/openbmc/openpower-vpd-parser/types.hpp
/openbmc/openpower-vpd-parser/vpd-manager/manager.cpp
/openbmc/openpower-vpd-parser/vpd-parser/isdimm_vpd_parser.cpp
/openbmc/openpower-vpd-parser/vpd-parser/isdimm_vpd_parser.hpp
/openbmc/openpower-vpd-parser/vpd-parser/memory_vpd_parser.cpp
/openbmc/openpower-vpd-parser/vpd-parser/parser_factory.cpp
/openbmc/openpower-vpd-parser/vpd_tool.cpp
/openbmc/openpower-vpd-parser/vpd_tool_impl.cpp
/openbmc/openpower-vpd-parser/vpd_tool_impl.hpp
6a1bd39b02-Jun-2021 Sunny Srivastava <sunnsr25@in.ibm.com>

Single FRU VPD collection

This commit implements a Dbus Api to collect VPD of a given FRU
by launching the parser exe asynchronously.

The caller is supposed to update Present property for that FRU

Single FRU VPD collection

This commit implements a Dbus Api to collect VPD of a given FRU
by launching the parser exe asynchronously.

The caller is supposed to update Present property for that FRU
as false on Dbus before calling this Api and need to listen for
Present property change signal to mark the collection of VPD
complete for the FRU.

One of the use case for this api is to collect VPD for FRU
undergoing concurrent maintenance.

Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: Idc44d6bc05deb04f3b9097ccf3129f5d2b11eaf0

show more ...

cce0e65308-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

prettier: re-format

Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.

prettier: re-format

Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.

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

show more ...

f31a91bc09-Jun-2022 Sunny Srivastava <sunnsr25@in.ibm.com>

Update vpd read and write flow

The commit implement changes to log Pel and call out
FRU and record in case of any ECC failure while reading
the vpd data for the FRU and continue with the processing

Update vpd read and write flow

The commit implement changes to log Pel and call out
FRU and record in case of any ECC failure while reading
the vpd data for the FRU and continue with the processing
of rest of the records.

In case of write, BMC reboot is blocked till the VPD is
updated. Doing this will restrict any data/Ecc corruption
due to BMC reboot while VPD data is being updated.

Tested:
Corrupted vpd for tpm_wilson then triggered collection of
vpd for the FRU.
Pel was logged calling out the FRU

'''
root@rain127bmc:~# ibm-read-vpd --file /sys/bus/i2c/drivers/at24/0-0051/eeprom
root@rain127bmc:~# peltool -a
[
{
"Private Header": {
"Section Version": "1",
"Sub-section type": "0",
"Created by": "0x4000",
"Created at": "06/10/2022 06:36:59",
"Committed at": "06/10/2022 06:36:59",
"Creator Subsystem": "BMC",
"CSSVER": "",
"Platform Log Id": "0x50002B35",
"Entry Id": "0x50002B35",
"BMC Event Log Id": "10"
},
"User Header": {
"Section Version": "1",
"Sub-section type": "0",
"Log Committed by": "0x2000",
"Subsystem": "CEC Hardware - VPD Interface",
"Event Scope": "Entire Platform",
"Event Severity": "Predictive Error",
"Event Type": "Not Applicable",
"Action Flags": [
"Service Action Required",
"Report Externally",
"HMC Call Home"
],
"Host Transmission": "Not Sent",
"HMC Transmission": "Not Sent"
},
"Primary SRC": {
"Section Version": "1",
"Sub-section type": "1",
"Created by": "0x4000",
"SRC Version": "0x02",
"SRC Format": "0x55",
"Virtual Progress SRC": "False",
"I5/OS Service Event Bit": "False",
"Hypervisor Dump Initiated":"False",
"Backplane CCIN": "2E43",
"Terminate FW Error": "False",
"Deconfigured": "False",
"Guarded": "False",
"Error Details": {
"Message": "A VPD ecc exception occurred."
},
"Valid Word Count": "0x09",
"Reference Code": "BD554002",
"Hex Word 2": "00080255",
"Hex Word 3": "2E430010",
"Hex Word 4": "00000000",
"Hex Word 5": "00000000",
"Hex Word 6": "00000000",
"Hex Word 7": "00000000",
"Hex Word 8": "00000000",
"Hex Word 9": "00000000",
"Callout Section": {
"Callout Count": "1",
"Callouts": [{
"FRU Type": "Normal Hardware FRU",
"Priority": "Mandatory, replace all with this type as a unit",
"Location Code": "U78DB.ND0.WZS002U-P0-C22",
"Part Number": "02WF429",
"CCIN": "6B59",
"Serial Number": "Y131UF09S00H"
}]
}
},
"Extended User Header": {
"Section Version": "1",
"Sub-section type": "0",
"Created by": "0x2000",
"Reporting Machine Type": "9105-42A",
"Reporting Serial Number": "13BE990",
"FW Released Ver": "",
"FW SubSys Version": "fw1020.00-58.9",
"Common Ref Time": "00/00/0000 00:00:00",
"Symptom Id Len": "20",
"Symptom Id": "BD554002_2E430010"
},
"Failing MTMS": {
"Section Version": "1",
"Sub-section type": "0",
"Created by": "0x2000",
"Machine Type Model": "9105-42A",
"Serial Number": "13BE990"
},
"User Data 0": {
"Section Version": "1",
"Sub-section type": "1",
"Created by": "0x2000",
"BMCState": "Ready",
"BootState": "SecondaryProcInit",
"ChassisState": "On",
"FW Version ID": "fw1020.00-58.9-3-gb29698f8cf",
"HostState": "Running",
"System IM": "50001000"
},
"User Data 1": {
"Section Version": "1",
"Sub-section type": "1",
"Created by": "0x2000",
"CALLOUT_INVENTORY_PATH": "/xyz/openbmc_project/inventory/system/chassis/motherboard/tpm_wilson",
"DESCRIPTION": "ERROR: ECC check did not pass for the Record:VINI"
}
}
]
'''

Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: Ie7c7fff5699d8b89d5aa0995f4074ccb3fdd6c37

show more ...

e008432a27-Sep-2022 Priyanga Ramasamy <priyanga24@in.ibm.com>

Use namespace std in place

This commit uses std in place in header files rather than
using namespace.

Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
Change-Id: If8e77ad0d23c7e6d8f16ea93e6

Use namespace std in place

This commit uses std in place in header files rather than
using namespace.

Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
Change-Id: If8e77ad0d23c7e6d8f16ea93e65f34aefb6b157f

show more ...

a4a2adfa03-Feb-2022 Priyanga Ramasamy <priyanga24@in.ibm.com>

VPD ECC shared library

This commit makes the VPD ECC source into a shared library
and links the shared library with other executables which
are dependant on VPD ECC.

Since the ECC source file is co

VPD ECC shared library

This commit makes the VPD ECC source into a shared library
and links the shared library with other executables which
are dependant on VPD ECC.

Since the ECC source file is confidential, we need to share the
ECC as a shared library to the IBM Power customers.

Test:
Tested on simics:
1. Corrupted the vpd data.
root@p10bmc:/usr/lib# dd if=/dev/zero of=/sys/bus/i2c/drivers/at24/7-0050/eeprom bs=1 count=2 seek=184
2+0 records in
2+0 records out

root@p10bmc:/usr/lib# ibm-read-vpd --file /sys/bus/i2c/drivers/at24/7-0050/eeprom
ERROR: ECC check did not pass for the Record:VINI

2. VPD Parser parsed successfully for a valid vpd
root@p10bmc:/usr/lib# ibm-read-vpd --file /sys/bus/i2c/drivers/at24/7-0050/eeprom
<no error>

3.ECC Code worked fine with VPD-Manager
root@p10bmc:/usr/lib# vpd-tool -w -O /system/chassis/motherboard/base_op_panel_blyth -R VINI -K PN -V "PN34"
root@p10bmc:/usr/lib# ibm-read-vpd --file /sys/bus/i2c/drivers/at24/7-0050/eeprom
root@p10bmc:/usr/lib#
root@p10bmc:/usr/lib#
root@p10bmc:/usr/lib# vpd-tool -w -O /system/chassis/motherboard/base_op_panel_blyth -R VINI -K PN -V "PN12"
root@p10bmc:/usr/lib# ibm-read-vpd --file /sys/bus/i2c/drivers/at24/7-0050/eeprom

Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
Change-Id: I72306b06ca8724193ef5ef05a0659467994a154d

show more ...

0e34d35721-Mar-2021 Alpana Kumari <alpankum@in.ibm.com>

Handle ECC update

By default openpower-vpd-parser contains dummy code of ecc_create
which writes 0s to the vpd-ecc. And this corrupts the ECC.

This commit will not allow the user to update any reco

Handle ECC update

By default openpower-vpd-parser contains dummy code of ecc_create
which writes 0s to the vpd-ecc. And this corrupts the ECC.

This commit will not allow the user to update any record-kwd-data
with dummy ecc_create code as it returns -1. If want to update any vpd
data then build your image with vpdecc functions implementation.

Test-
when tried to update the keyword-
busctl call com.ibm.VPD.Manager /com/ibm/VPD/Manager com.ibm.VPD.Manager WriteKeyword ossay "/system/chassis/motherboard" "VINI" "PN" 1 65
ERROR: ECC update failed

And another terminal output-
root@rainier:/tmp# ./vpd-manager
Error: Couldn't update the ECC

Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: I7333a79ff06ac1acd21f9e10f99b4a78cb5705db

show more ...

735dee9b25-Mar-2022 Alpana Kumari <alpankum@in.ibm.com>

Move preAction postAction to Util

This commit moves preAction and postFailAction to ibm_read_util,
as we need them as common utility functions, to use it in vpd manager.

Signed-off-by: Alpana Kuma

Move preAction postAction to Util

This commit moves preAction and postFailAction to ibm_read_util,
as we need them as common utility functions, to use it in vpd manager.

Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: Iaade31143b8f114a9adec82a5c4d6ae4e9e2a2d5

show more ...

a0b2391a10-Feb-2022 Santosh Puranik <santosh.puranik@in.ibm.com>

Enable redundant EEPROMs

This commit adds support in the VPD manager to
automatically update redundant EEPROMs.

The redundant EEPROMs path is obtained from the
"redundantEeprom" key in the VPD JSON

Enable redundant EEPROMs

This commit adds support in the VPD manager to
automatically update redundant EEPROMs.

The redundant EEPROMs path is obtained from the
"redundantEeprom" key in the VPD JSON.

Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com>
Change-Id: I88dd6710523dd0d46d14bec5c849950db15cba28

show more ...

8e15b93a06-Oct-2021 Patrick Williams <patrick@stwcx.xyz>

catch exceptions as const

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

3ab26a7405-Apr-2021 Alpana Kumari <alpankum@in.ibm.com>

Dimm memory size support

This commit will calculate the memory size for Dimm and
populate the value with property MemorySizeinKB on dbus.

Test- Tested on simics 2s2u

Set the property with dummy va

Dimm memory size support

This commit will calculate the memory size for Dimm and
populate the value with property MemorySizeinKB on dbus.

Test- Tested on simics 2s2u

Set the property with dummy value-

root@rain71bmc:/tmp# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/dimm0| grep -e MemorySizeInKB -e Present -e PrettyName -e Model -e PartNumber -e SerialNumber
.Model property s "327A" emits-change writable
.PartNumber property s "78P6574" emits-change writable
.SerialNumber property s "YH301T01P00G" emits-change writable
.SparePartNumber property s "" emits-change writable
.SubModel property s "" emits-change writable
.Present property b true emits-change writable
.PrettyName property s "Memory DIMM" emits-change writable
.MemorySizeInKB property u 33554432 emits-change writable
root@rain71bmc:/tmp#

Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: I70e5bc3f538379f9891ae0ede6cdf09a585520a4

show more ...

f395376314-Jun-2021 Andrew Jeffery <andrew@aj.id.au>

meson: Add googletest as a subproject

Allow the tests to build without requiring a system-wide installation of
googletest.

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

meson: Add googletest as a subproject

Allow the tests to build without requiring a system-wide installation of
googletest.

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

show more ...

414d5aef04-Mar-2021 Alpana Kumari <alpankum@in.ibm.com>

Support XYZ interface for Location code

Update xyz interface for Location code in ibm-read-parser and vpd-manager
along with com.ibm.path for Location code.

Test Result-
busctl introspect xyz.openb

Support XYZ interface for Location code

Update xyz interface for Location code in ibm-read-parser and vpd-manager
along with com.ibm.path for Location code.

Test Result-
busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard| grep -e "Location" -e "FC" -e "SE"
com.ibm.ipzvpd.Location interface - - -
.LocationCode property s "U78DA.ND1.WZS004K-P0" emits-change writable
.FC property ay 8 65 65 68 65 45 48 48 49 emits-change writable
.SE property ay 7 68 68 83 48 48 52 75 emits-change writable
.SE property ay 7 49 51 57 70 50 66 48 emits-change writable
xyz.openbmc_project.Inventory.Decorator.LocationCode interface - - -
.LocationCode property s "UAADA.ND0.DDS004K-P0" emits-change writable

Below write command should trigger the LC update for motherboard and other dependent FRUs.

busctl call com.ibm.VPD.Manager /com/ibm/VPD/Manager com.ibm.VPD.Manager WriteKeyword ossay "/system/chassis/motherboard" "VCEN" "FC" 2 55 56
busctl call com.ibm.VPD.Manager /com/ibm/VPD/Manager com.ibm.VPD.Manager WriteKeyword ossay "/system/chassis/motherboard" "VCEN" "SE" 2 87 90

busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard| grep -e "Location" -e "FC" -e "SE"
com.ibm.ipzvpd.Location interface - - -
.LocationCode property s "U78DA.ND0.WZS004K-P0" emits-change writable
.FC property ay 8 55 56 68 65 45 48 48 49 emits-change writable
.SE property ay 7 87 90 83 48 48 52 75 emits-change writable
.SE property ay 7 49 51 57 70 50 66 48 emits-change writable
xyz.openbmc_project.Inventory.Decorator.LocationCode interface - - -
.LocationCode property s "U78DA.ND0.WZS004K-P0" emits-change writable

busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0| grep -e "Location" -e "FC" -e "SE"
com.ibm.ipzvpd.Location interface - - -
.LocationCode property s "U78DA.ND0.WZS004K-P0-C15" emits-change writable
xyz.openbmc_project.Inventory.Decorator.LocationCode interface - - -
.LocationCode property s "U78DA.ND0.WZS004K-P0-C15" emits-change writable

Change-Id: If8715b8cafcc87d8a46e7083f90f162c5ad4a6b0
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>

show more ...

6c71c9dc15-Apr-2021 Sunny Srivastava <sunnsr25@in.ibm.com>

Segregate utility methods

This commit segregates utility methods required commonly by both
openpower-read-vpd and ibm-read-vpd from methods only required by
ibm-read-vpd.
All dependency required by

Segregate utility methods

This commit segregates utility methods required commonly by both
openpower-read-vpd and ibm-read-vpd from methods only required by
ibm-read-vpd.
All dependency required by utility methods specific to ibm-read-vpd
is not applicable to utility methods required by openpower-read-vpd.

Hence to avoid un-necessary dependency inclusion, this change is
introduced.

Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: I95f2be27dc0c391a45beb1654a99506317aaa52b

show more ...

c0a534f424-Aug-2020 PriyangaRamasamy <priyanga24@in.ibm.com>

VPD Tool: Update Hardware

Vpd tool has --Hardware/-H flag which should be given along
with writeKeyword flags, if the user wants to write directly to "Hardware".

In general the user should give onl

VPD Tool: Update Hardware

Vpd tool has --Hardware/-H flag which should be given along
with writeKeyword flags, if the user wants to write directly to "Hardware".

In general the user should give only the object path in
--path/-P value.

Only if --Hardware/-H flag is given, the user has an
option to give either eeprom path or the object path in
--path/-P value.

Test:
Tested on simics.

./vpd-tool --writeKeyword -H --path < hardware path/object path > -R < record name > -K < keyword > -V < value in hex/ascii >

CASE 1: <updating eeprom path> < update directly on hardware using -H.>
./vpd-tool -u -H -P /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a480.i2c-bus/i2c-8/8-0051/8-00510/nvmem -R VINI -K PN -V 0x717273
updation successful on both dbus and hardware.

CASE 2:
./vpd-tool -u -H -P /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a480.i2c-bus/i2c-8/8-0051/8-00510/nvmem -R DINF -K FL -V 0x717273
updation successful on hardware. <this wont get updated in dbus as the given record-keyword pair is not required to update in dbus(only those record keywords
present in dbus_properties.json are required to be updated in dbus).

CASE 3: <failure case - invalid eeprom path>
root@rainier:/tmp# ./vpd-tool -u -H -P /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a490.i2c-bus/i2c-8/8-0051/8-00510/nvmem -R VINI -K PN -V 0x717273
Invalid object path : /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a490.i2c-bus/i2c-8/8-0051/8-00510/nvmem. Unable to find the corresponding EEPROM path for the given object path : /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e7$

Signed-off-by: PriyangaRamasamy <priyanga24@in.ibm.com>
Change-Id: I6b893e699fe343c90c3a3fd2b07fd8b9a4711687

show more ...

e12b181b26-May-2020 SunnySrivastava1984 <sunnsr25@in.ibm.com>

Interface & Factory implementation for VPD Parsers

This commit abstracts the implementation logic of different parser.
A parser factory is implemented to provide instance of required
parser based on

Interface & Factory implementation for VPD Parsers

This commit abstracts the implementation logic of different parser.
A parser factory is implemented to provide instance of required
parser based on the type of vpd file needed to be parsed.

The interface should be derived to implement any further parser logic
related to vpd.

Status: This does not add any new function, so basic testing of
VPD parsing, VPD tool and writes was performed.

Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: I3ce1a2d6b7e8d8984fd7800132e78ab8a9a21e56

show more ...

945a02d306-May-2020 SunnySrivastava1984 <sunnsr25@in.ibm.com>

Code refactoring

Moved all the constants to const.hpp and utility method to
utils.cpp/hpp.
Removed file ibm_vpd_type_check.cpp/hpp and keyword_vpd_types.hpp.

Signed-off-by: SunnySrivastava1984 <sun

Code refactoring

Moved all the constants to const.hpp and utility method to
utils.cpp/hpp.
Removed file ibm_vpd_type_check.cpp/hpp and keyword_vpd_types.hpp.

Signed-off-by: SunnySrivastava1984 <sunnsr25@in.ibm.com>
Change-Id: Ie7b54e6fd03a499fab7c3124e17292c6d525e471

show more ...

43c3afca12-Aug-2020 Santosh Puranik <santosh.puranik@in.ibm.com>

Remove make build system support

This commit removes autoconf/automake support
Only meson buildsystem will be used going forward.

Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com>
Change-

Remove make build system support

This commit removes autoconf/automake support
Only meson buildsystem will be used going forward.

Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com>
Change-Id: Ib4a0c9766fbeb8068de268c37083117ad0ad34df

show more ...

12