#
df5a0eb1 |
| 06-Feb-2024 |
George Liu <liuxiwei@ieisystem.com> |
meson: Remove unused variables
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Id5386d13a8ca09ccee65601a729f163f78af164d
|
#
494ff070 |
| 05-Oct-2023 |
girik <giridharikrishnan@gmail.com> |
Move VPD jsons to vpd repo
Replace jsons from ibm_vpd folder to config/ and install json via meson.
Signed-off-by: RekhaAparna01<vrekhaaparna@ibm.com> Change-Id: I30240e820a50653d325b5dd56cf09f775a
Move VPD jsons to vpd repo
Replace jsons from ibm_vpd folder to config/ and install json via meson.
Signed-off-by: RekhaAparna01<vrekhaaparna@ibm.com> Change-Id: I30240e820a50653d325b5dd56cf09f775af29812
show more ...
|
#
920566bf |
| 08-Dec-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: adjust nlohmann-json dependency
Simplify nlohmann-json dependency logic and align wrap file name with other repositories.
Change-Id: Ie8a3590a474c0138932230fc9e9f11e457cbabea Signed-off-by:
meson: adjust nlohmann-json dependency
Simplify nlohmann-json dependency logic and align wrap file name with other repositories.
Change-Id: Ie8a3590a474c0138932230fc9e9f11e457cbabea Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
468e8c5b |
| 29-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 ...
|
#
29fbea93 |
| 04-Oct-2023 |
Priyanga Ramasamy <priyanga24@in.ibm.com> |
Move service file to repo
This commit moves vpd service files to openpower-vpd-parser repository and also install the service files in systemd unit directory via meson.
Test works as expected.
Sig
Move service file to repo
This commit moves vpd service files to openpower-vpd-parser repository and also install the service files in systemd unit directory via meson.
Test works as expected.
Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com> Change-Id: If0ee5f3b0cc4cc949f584d3f1cb234f31a9e0dc5
show more ...
|
#
12259991 |
| 11-Sep-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: fix option selection
By default, meson will set a feature option to `auto`, which is suppose to be effectively enabled. Multiple places in this repository's meson.build use `if option.enable
build: fix option selection
By default, meson will set a feature option to `auto`, which is suppose to be effectively enabled. Multiple places in this repository's meson.build use `if option.enabled` instead of `if option.allowed`, which means that only an explicit `enabled` setting actually enables the feature. This is not desired and limits the amount of testing we see in CI. Switch them to enable the feature if either `enabled` or `auto` (by using `allowed`).
Change-Id: I977557b35af7c7d0a880b20cbd09a2f29e1c7fe4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
dc3c3c30 |
| 07-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
|
#
c57a9a3e |
| 07-Sep-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: fix warning for deprecated source_root
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4fc5840a1f5fa4d44c213e633f8da9fbc4b7c5c6
|
#
abe481e1 |
| 07-Sep-2023 |
Patrick Williams <patrick@stwcx.xyz> |
subprojects: libgpiod: add wrap and configure
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I60ecdd3c2d28b11844407141922215ce658c4d8b
|
#
d8577739 |
| 21-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: upgrade to C++23
Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of the standard has been implemented. Upgrade the build to leverage it.
Change-Id: I46a48a720bc66e845c883
build: upgrade to C++23
Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of the standard has been implemented. Upgrade the build to leverage it.
Change-Id: I46a48a720bc66e845c8838ec1aa1c3809c09b49d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
38ee9c8d |
| 07-Apr-2023 |
Kantesh Nagaradder <kantesh.nagaradder@ibm.com> |
Backup & restore changes for bonnell's system VPD
This commit implements the changes of system backplane VPD backup on the base banel VPD and restoring it from the base panel VPD
The bonnell BMC is
Backup & restore changes for bonnell's system VPD
This commit implements the changes of system backplane VPD backup on the base banel VPD and restoring it from the base panel VPD
The bonnell BMC is embedded in the system backplane, so if either fails, the backplane should be replaced as a whole. So the changes have been made to backup the system backplane critical keywords on the operator panel base EEPROM under the VSBK record.
Test: Case 1: A PEL with error severity is created when the base panel EEPROM file doesn't exist.
Case 2: A PEL with error severity is created when the base panel VPD has ecc exceptions.
Case 3: A PEL with error severity is created when the base panel EEPROM doesn't contain VSBK record.
Case 4: System VPD's critical keywords are backing up in the base panel VPD
Case 5: System VPD's critical keywords are restoring from the base panel VPD
Case 6: The VSBK record creation and population of properties on dbus
Case 7: A PEL with warning serverity is created when there is a mismatch between system VPD & base panel keyword values.
Case 8: A PEL with error serverity is created when both the system VPD & base panel keyword values are default.
Tests above works as expected.
Change-Id: Ieea6ff4e267518f010c924e2d51a2b080b47e91c Signed-off-by: Kantesh Nagaradder <kantesh.nagaradder@ibm.com>
show more ...
|
#
c68829ad |
| 12-Apr-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: remove deprecated get_pkgconfig_variable
Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In meson 0.58 the `get_variable` was enhanced to no longer require the `pkgconfig
meson: remove deprecated get_pkgconfig_variable
Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In meson 0.58 the `get_variable` was enhanced to no longer require the `pkgconfig` keyword argument. Ensure meson 0.58 is required and update the usage of all `get_pkgconfig_variable` and `get_variable` to be the modern variant.
Change-Id: I85d8e7d41c3fbcf6f21533d1a95d73959ca877e4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
6555e7ef |
| 14-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>
|
#
b48e6ffa |
| 24-Apr-2022 |
Alpana Kumari <alpankum@in.ibm.com> |
Move Jsons, services and rules to VPD repo
This commit moves Jsons, service files and rules to the VPD repo, and installing it by meson.
Test: Tested the image on simics and a rainier system , boot
Move Jsons, services and rules to VPD repo
This commit moves Jsons, service files and rules to the VPD repo, and installing it by meson.
Test: Tested the image on simics and a rainier system , booted to standby succesfully. Also, I verified all the jsons, rules and service files are in the appropriate location.
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com> Change-Id: I538b7159e5226134c3e0d16bbb1686166cd17441
show more ...
|
#
f31a91bc |
| 09-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 ...
|
#
3803131f |
| 07-Oct-2021 |
Priyanga Ramasamy <priyanga24@in.ibm.com> |
Vpd-tool:Read keyword from hardware
Vpd-tool adds an option to read any keyword directly from hardware with the help of -H option.
This commit has the front-end portion which gets the user option a
Vpd-tool:Read keyword from hardware
Vpd-tool adds an option to read any keyword directly from hardware with the help of -H option.
This commit has the front-end portion which gets the user option and calls the back end code which is present in Impl class in this commit https://gerrit.openbmc.org/c/openbmc/openpower-vpd-parser/+/47666 .
Test: Tested on rainier.
1. root@rain111bmc:/tmp# ./vpd-tool -r -O /sys/bus/spi/drivers/at25/spi12.0/eeprom -R CP00 -K PG -H { "/sys/bus/spi/drivers/at25/spi12.0/eeprom": { "PG": "0x01e03fffe051ffe37fffe53fffffffffffffffffffffffffffe00c1fe00c1fffffffffffffe21dffe21dffffffffffffffe79fffe39fffe79fffe79fffffffffffffffffffffffffffffffffffffffe3bdffe3bdffe3bdffffffffe3bdffe3bdffe7f9ffe1987fe0001fe7f9ffe7f9ffe0001fe6619fe0001fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" } }
root@rain111bmc:/tmp# ./vpd-tool -r -O /system/chassis/motherboard/dcm0/cpu0 -R CP00 -K PG { "/system/chassis/motherboard/dcm0/cpu0": { "PG": "0x01e03fffe051ffe37fffe53fffffffffffffffffffffffffffe00c1fe00c1fffffffffffffe21dffe21dffffffffffffffe79fffe39fffe79fffe79fffffffffffffffffffffffffffffffffffffffe3bdffe3bdffe3bdffffffffe3bdffe3bdffe7f9ffe1987fe0001fe7f9ffe7f9ffe0001fe6619fe0001fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" } }
2. root@rain111bmc:/tmp# ./vpd-tool -r -H -O /sys/bus/spi/drivers/at25/spi12.0/eeprom -R VINI -K SN { "/sys/bus/spi/drivers/at25/spi12.0/eeprom": { "SN": "YA3936110110" } } root@rain111bmc:/tmp# ./vpd-tool -r -O /system/chassis/motherboard/dcm0/cpu0 -R VINI -K SN { "/system/chassis/motherboard/dcm0/cpu0": { "SN": "YA3936110110" } }
3. root@rain111bmc:/tmp# ./vpd-tool -r -H -O /sys/bus/i2c/drivers/at24/8-0050/eeprom -R VSYS -K BR { "/sys/bus/i2c/drivers/at24/8-0050/eeprom": { "BR": "S0" } }
4. root@rain111bmc:/tmp# ./vpd-tool -r -H -O /sys/bus/i2c/drivers/at24/8-0050/eeprom -R VINI -K SN { "/sys/bus/i2c/drivers/at24/8-0050/eeprom": { "SN": "Y131UF07302S" } }
5. root@perfrain86bmctest:/tmp# ./vpd-tool -r -H -O /sys/bus/i2c/drivers/at24/7-0050/eeprom -R VR10 -K BD The given keyword BD is not present in the given record VR10 in the given vpd path /sys/bus/i2c/drivers/at24/7-0050/eeprom
6. root@perfrain86bmctest:/tmp# ./vpd-tool -r -H -O /sys/bus/i2c/drivers/at24/7-0050/eeprom -R CP00 -K SN The given record CP00 is not present in the given vpd path /sys/bus/i2c/drivers/at24/7-0050/eeprom
7. root@perfrain86bmctest:/tmp# ./vpd-tool -r -H -O /sys/bus/i2c/drivers/at24/7-0050/eeprom -R VR10 -K DC { "/sys/bus/i2c/drivers/at24/7-0050/eeprom": { "DC": "BD 201908260800" } }
Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com> Change-Id: I37f85fe22a2c98704bbc8f6090f0d83084d4c6f8
show more ...
|
#
a4a2adfa |
| 03-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 ...
|
#
735dee9b |
| 25-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 ...
|
#
8e532c10 |
| 06-Oct-2021 |
Patrick Williams <patrick@stwcx.xyz> |
build: switch to C++20
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie6f4ce72461411cb39b7fb7cb8398589771e210d
|
#
f3953763 |
| 14-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 ...
|
#
60b5bd2f |
| 14-Jun-2021 |
Andrew Jeffery <andrew@aj.id.au> |
meson: Add OpenBMC-specific subprojects
phosphor-dbus-interfaces and phosphor-logging depend on the build tools provided by sdbusplus, so add appropriate configuration to ensure these are picked up
meson: Add OpenBMC-specific subprojects
phosphor-dbus-interfaces and phosphor-logging depend on the build tools provided by sdbusplus, so add appropriate configuration to ensure these are picked up in the dependent subproject builds.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I3b866a928043ab245a195f4403be68aa19601550
show more ...
|
#
8cc5b15c |
| 03-Jun-2021 |
PriyangaRamasamy <priyanga24@in.ibm.com> |
Vpd-tool defect fix:data not shown for primed objects
Issue: Some of the primed objects data were not shown by vpd-tool.
For those inventory paths whose inherit is true, the tool checks for specifi
Vpd-tool defect fix:data not shown for primed objects
Issue: Some of the primed objects data were not shown by vpd-tool.
For those inventory paths whose inherit is true, the tool checks for specific VINI properties presence. If any VINI property is not present, the tool considered dbus object itself is not present. And the output json was emplaced with null object.
Thus ended up in showing empty data for primed frus with no common interfaces properties.
Fix: Emplace null object for the inventory path, only when the inventory path is not found in dbus.
Other Fixes:
-> Removed checking inherit value, as whether or not inherit is true/false, we need both common interfaces and location code(for some frus like powersupply).
So in this fix, if the common interface keywords are not present, we ignore and get only the extra interfaces properties.
-> Removed unwanted null object emplacement. -> Logic which adds fan type interface for fan frus.
Tested on rainier:
1. Frus without common interface properties are displayed with its extra interface properties.
"/system/chassis/motherboard/dimm29": { "LocationCode": "U78DB.ND0.WZS000G-P0-C46", "TYPE": "FRU", "type": "xyz.openbmc_project.Inventory.Item.Dimm" }, "/system/chassis/motherboard/dimm3": { "LocationCode": "U78DB.ND0.WZS000G-P0-C17", "TYPE": "FRU", "type": "xyz.openbmc_project.Inventory.Item.Dimm" },
2. cable card10 and its connectors are physically present on the system
"/system/chassis/motherboard/pcie_cable_card10": { "CC": "6B87", "DR": "NVME JBOF RISER", "FN": "03FL205", "LocationCode": "U78DA.ND0.WZS004K-P0-C10", "PN": "03FL204", "SN": "YA31UF07200Z", "TYPE": "FRU", "type": "xyz.openbmc_project.Inventory.Item.FabricAdapter" }, "/system/chassis/motherboard/pcie_cable_card10/cxp_bot": { "LocationCode": "U78DA.ND0.WZS004K-P0-C10-T1", "TYPE": "FRU", "type": "xyz.openbmc_project.Inventory.Item.Connector" }, "/system/chassis/motherboard/pcie_cable_card10/cxp_top": { "LocationCode": "U78DA.ND0.WZS004K-P0-C10-T0", "TYPE": "FRU", "type": "xyz.openbmc_project.Inventory.Item.Connector" },
3. cable card3 and its connectors are not present on the system
"/system/chassis/motherboard/pcie_cable_card3": { "LocationCode": "U78DA.ND0.WZS004K-P0-C3", "TYPE": "FRU", "type": "xyz.openbmc_project.Inventory.Item.FabricAdapter" }, "/system/chassis/motherboard/pcie_cable_card3/cxp_bot": {}, "/system/chassis/motherboard/pcie_cable_card3/cxp_top": {},
4. Fan frus showing up with its Item inteface
"/system/chassis/motherboard/fan1": { "LocationCode": "U78DB.ND0.WZS000G-A1", "type": "xyz.openbmc_project.Inventory.Item.Fan" },
Signed-off-by: PriyangaRamasamy <priyanga24@in.ibm.com> Change-Id: I38467642944fffec381d070d2a1a7dd3b9882399
show more ...
|
#
3aec4787 |
| 14-Jun-2021 |
Andrew Jeffery <andrew@aj.id.au> |
meson: Add global arguments before invoking the compiler
Add arguments early to avoid introduction of targets before the call. The addition of subproject definitions in later patches introduces such
meson: Add global arguments before invoking the compiler
Add arguments early to avoid introduction of targets before the call. The addition of subproject definitions in later patches introduces such targets.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I7df34040a67923a97fbca948442df8b338a91e1f
show more ...
|
#
c2fe40f8 |
| 02-Mar-2021 |
PriyangaRamasamy <priyanga24@in.ibm.com> |
Collect Bad/Broken VPDs in BMC
When there is a vpd failure case due to the corruption in vpd data, this commit collects the bad vpd into BMC tmp/bad-vpd directory, so that this bad-vpd directory get
Collect Bad/Broken VPDs in BMC
When there is a vpd failure case due to the corruption in vpd data, this commit collects the bad vpd into BMC tmp/bad-vpd directory, so that this bad-vpd directory gets into BMC Dump collection.
Tested on simics. 1.Corrupted the data of a vpd file.
dd if=/dev/zero of=/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a500.i2c-bus/i2c-9/9-0050/9-00500/nvmem bs=1 seek=170 count=3
2.No bad-vpd directory before executing the commit changes.
root@rainier:/tmp# ls dbus_properties.json systemd-private-9dfe8fba43254dfc8b7be9e4278a3ced-systemd-resolved.service-8pLWbo ibm-read-vpd systemd-private-9dfe8fba43254dfc8b7be9e4278a3ced-systemd-timesyncd.service-7yowK9 images vpd-manager overlays vpd-tool systemd-private-9dfe8fba43254dfc8b7be9e4278a3ced-dbus-broker.service-hb47BQ root@rainier:/tmp#
3. Due to the data corruption, ibm-read-vpd throws exception
root@rainier:/tmp# ./ibm-read-vpd --file /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a500.i2c-bus/i2c-9/9-0050/9-00500/nvmem std::exception root@rainier:/tmp#
4. And collects the broken vpd into bad-vpd directory in /tmp
root@rainier:/tmp# ls bad-vpd systemd-private-9dfe8fba43254dfc8b7be9e4278a3ced-dbus-broker.service-hb47BQ dbus_properties.json systemd-private-9dfe8fba43254dfc8b7be9e4278a3ced-systemd-resolved.service-8pLWbo ibm-read-vpd systemd-private-9dfe8fba43254dfc8b7be9e4278a3ced-systemd-timesyncd.service-7yowK9 images vpd-manager overlays vpd-tool root@rainier:/tmp#
5. The bad vpd file is stored in /tmp/bad-vpd directory.
root@rainier:/tmp/bad-vpd# ls -l -rw-r--r-- 1 root root 16384 Mar 28 19:54 i2c-9-0050 -rw-r--r-- 1 root root 65504 Mar 28 20:01 spi22
(vpd-names of i2c eeproms will be in the pattern "i2c-busNumber-eepromAddress"; for spi eeproms - "spiBusNumber")
Signed-off-by: PriyangaRamasamy <priyanga24@in.ibm.com> Change-Id: I34fb8c61c79e02ca72d7e99413baebf7e5cb3d53
show more ...
|
#
f05effdb |
| 07-Apr-2021 |
Alpana Kumari <alpankum@in.ibm.com> |
PASS 2 Planar support for vpd parser
The system has two planar passes - Pass1 & Pass2 Planars. Pass1 Planar a buffer connects all pcie cards, Whereas Pass2 Planar has mux connection established for
PASS 2 Planar support for vpd parser
The system has two planar passes - Pass1 & Pass2 Planars. Pass1 Planar a buffer connects all pcie cards, Whereas Pass2 Planar has mux connection established for pcie card selection.
ibm-read-vpd picks up the right deviceTree and json (either 2UPass1/2UPass2/4UPass1/4UPass2) based on the HW and IM kw of the planar.
Test- tested on Rainier 2U simics
root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd imKeyword- 50001001, HW - 0001 Processing with this JSON - /usr/share/vpd/50001001_v1.json
root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd imKeyword- 50001001, HW - 0011 Processing with this JSON - /usr/share/vpd/50001001_v2.json
root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd imKeyword- 50001000, HW - 0011 Processing with this JSON - /usr/share/vpd/50001000_v2.json
root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd imKeyword- 50001000, HW - 0001 Processing with this JSON - /usr/share/vpd/50001000_v1.json root@rainier:/tmp#
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com> Change-Id: I36de12d9697039e61e6ad569e1e119f001e782f6
show more ...
|