08fa59ea | 06-Mar-2025 |
Anupama B R <anupama.b.r1@ibm.com> |
Move single FAB API under the separate class
SingleFab class provides functionalities to support single FAB feature. This commit moves the single FAB related API under SingleFab class.
Change-Id: I
Move single FAB API under the separate class
SingleFab class provides functionalities to support single FAB feature. This commit moves the single FAB related API under SingleFab class.
Change-Id: I8d55cd2134f5812f83f5fc5033df097ab1b1f8f2 Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>
show more ...
|
7fea9f50 | 17-Feb-2025 |
RekhaAparna01 <vrekhaaparna@ibm.com> |
Refactor exception handling for json_utility APIs
This commit adds code to handle exceptions for some of the json_utility APIs. Each API will have output returned in case of error based on the retur
Refactor exception handling for json_utility APIs
This commit adds code to handle exceptions for some of the json_utility APIs. Each API will have output returned in case of error based on the return type of the API instead of throwing an exception.
Also updated the caller of the json_utility APIs to handle the return value.
Change-Id: I154a90d5edbbca7441f75a153b908914de83471d Signed-off-by: RekhaAparna01 <vrekhaaparna@ibm.com>
show more ...
|
a55fcca1 | 19-Feb-2025 |
Souvik Roy <souvikroyofficial10@gmail.com> |
Refactor get keyword value API exception handling
This commit refactors vpd specific utility API used to read value of a keyword,in order to handle any exceptions thrown by it locally. All utility m
Refactor get keyword value API exception handling
This commit refactors vpd specific utility API used to read value of a keyword,in order to handle any exceptions thrown by it locally. All utility methods should handle exceptions locally and log a journal log in case of failure. The caller of the utility APIs should check the return value to detect success/failure.
This commit also changes the caller of this API throughout the repo, in order to check the return value.
Test:
``` - Install bitbaked image on Everest system - After BMC boots, BMC should reach Ready state - Check vpd-manager service status, should be active(running) - Check no restarts in vpd-manager service - Check vpd-manager "CollectionStatus" = "Completed" - Check extra interfaces are processed properly - Check backup restore working properly ```
Change-Id: I965313f512553ed5d39373dd871754e1a8fed5f3 Signed-off-by: Souvik Roy <souvikroyofficial10@gmail.com>
show more ...
|
ef069f7e | 03-Mar-2025 |
Anupama B R <anupama.b.r1@ibm.com> |
API to read IM value from persisted location
This commit implements API to read IM value from PIM persisted location.
Change-Id: I9cd4f6ed9ded2dd4f42c65902509f7bea9e15849 Signed-off-by: Anupama B R
API to read IM value from persisted location
This commit implements API to read IM value from PIM persisted location.
Change-Id: I9cd4f6ed9ded2dd4f42c65902509f7bea9e15849 Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>
show more ...
|
f1dda767 | 19-Feb-2025 |
Sunny Srivastava <sunnsr25@in.ibm.com> |
Process FRU only when present with specific CCIN
Some FRUs are only supported with specific CCINs in case of PowerVS configuration. The commit implements changes to check for presence of the FRU ba
Process FRU only when present with specific CCIN
Some FRUs are only supported with specific CCINs in case of PowerVS configuration. The commit implements changes to check for presence of the FRU based on its Present property, if found checks for specific CCIN, if found updates the PN else skips.
Change-Id: I1f3ff08f82788aed4d8153474cd38352e5cc2394 Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
show more ...
|
022112bc | 19-Feb-2025 |
Sunny Srivastava <sunnsr25@in.ibm.com> |
JSON and API prototype to update powerVS VPD
The commit introduces JSON file to hold the VPD that needs to be updated for systems with PowerVS configuration.
It also adds API to fetch JSON as per s
JSON and API prototype to update powerVS VPD
The commit introduces JSON file to hold the VPD that needs to be updated for systems with PowerVS configuration.
It also adds API to fetch JSON as per system IM and prototype for API which will checks the existing data and based on that will either skip or update the VPD.
Change-Id: I5c279ce210831667be669c2a7c9c7d9c160de336 Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
show more ...
|
c6ef42d6 | 19-Feb-2025 |
Sunny Srivastava <sunnsr25@in.ibm.com> |
API to check powerVS configuration
The commit implements change to check for powerVS configuration.
It is a combination of system series and driver running on the system. Once that is established,
API to check powerVS configuration
The commit implements change to check for powerVS configuration.
It is a combination of system series and driver running on the system. Once that is established, only after that VPD vpdate will take place w.r.t powerVS system.
Change-Id: I93fefcb79ced4f89bd6f5143666b4cd487897ac8 Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
show more ...
|
094a7352 | 20-Feb-2025 |
Souvik Roy <souvikroyofficial10@gmail.com> |
Refactor pass 1 planar API exception handling
This commit refactors vpd specific utility API used to check pass 1 planar, in order to handle any exceptions thrown by it locally. All utility methods
Refactor pass 1 planar API exception handling
This commit refactors vpd specific utility API used to check pass 1 planar, in order to handle any exceptions thrown by it locally. All utility methods should handle exceptions locally and log a journal log in case of failure. The caller of the utility APIs should check the return value to detect success/failure.
Change-Id: I79e38a15ac38e2de9844061c00e7a6d06da6f793 Signed-off-by: Souvik Roy <souvikroyofficial10@gmail.com>
show more ...
|
815c6029 | 20-Feb-2025 |
Souvik Roy <souvikroyofficial10@gmail.com> |
Refactor find CCIN in VPD API exception handling
This commit refactors vpd specific utility API used to find CCIN in VPD, in order to handle any exceptions thrown by it locally. All utility methods
Refactor find CCIN in VPD API exception handling
This commit refactors vpd specific utility API used to find CCIN in VPD, in order to handle any exceptions thrown by it locally. All utility methods should handle exceptions locally and log a journal log in case of failure. The caller of the utility APIs should check the return value to detect success/failure.
This commit also logs a PEL in case VINI record or empty CCIN is found for any FRU.
Test: ``` - Install bitbaked image on Everest - After BMC becomes ready, check vpd-manager log to check postAction collection is successful for pcieslot2/pcie_card2 ```
Change-Id: I19ef8e9d67bdfdaab9876c9df5c04fa6f0c08f79 Signed-off-by: Souvik Roy <souvikroyofficial10@gmail.com>
show more ...
|
c532b188 | 19-Feb-2025 |
RekhaAparna01 <vrekhaaparna@ibm.com> |
Refactor exception handling for writeDbusProperty API
This commit refactors dbus_utility API used to update property value on DBus to handle any exceptions thrown by it locally and return only succe
Refactor exception handling for writeDbusProperty API
This commit refactors dbus_utility API used to update property value on DBus to handle any exceptions thrown by it locally and return only success or failure as the return type.
Also updated the caller of this API to handle the return value.
Change-Id: Ia92c1b0928d02cc0130a8b4e547ba3c6069d0d2f Signed-off-by: RekhaAparna01 <vrekhaaparna@ibm.com>
show more ...
|
c11e8b61 | 20-Feb-2025 |
RekhaAparna01 <vrekhaaparna@ibm.com> |
Exception handling for json_utility APIs
This commit refactors some of the json_utility APIs to handle any exceptions thrown by it locally and only return success or failure from the API.
Change-Id
Exception handling for json_utility APIs
This commit refactors some of the json_utility APIs to handle any exceptions thrown by it locally and only return success or failure from the API.
Change-Id: If1d253367ad730e7f3049e8aa5d445d12ee0a057 Signed-off-by: RekhaAparna01 <vrekhaaparna@ibm.com>
show more ...
|
fa47e6c0 | 20-Feb-2025 |
Souvik Roy <souvikroyofficial10@gmail.com> |
Refactor insert or merge API exception handling
This commit refactors vpd specific utility API used to insert or merge property map in interface map ,in order to handle any exceptions thrown by it l
Refactor insert or merge API exception handling
This commit refactors vpd specific utility API used to insert or merge property map in interface map ,in order to handle any exceptions thrown by it locally. All utility methods should handle exceptions locally and log a journal log in case of failure. The caller of the utility APIs should check the return value to detect success/failure.
This commit also removes unnecessary declaration of this API in worker.hpp
Test: ``` - Install bitbaked image on Everest - Clear persistent PIM data on filesystem, restart PIM and then vpd-manager services - Check all interfaces under PIM like LocationCode,Item,OperationalStatus,etc. are populated properly ```
Change-Id: Ie13882c0697d691f0593765f6f4dad5ac5eadea2 Signed-off-by: Souvik Roy <souvikroyofficial10@gmail.com>
show more ...
|
f277d6a7 | 20-Feb-2025 |
Souvik Roy <souvikroyofficial10@gmail.com> |
Refactor encode keyword API exception handling
This commit refactors vpd specific utility API used to encode value of a keyword,in order to handle any exceptions thrown by it locally. All utility me
Refactor encode keyword API exception handling
This commit refactors vpd specific utility API used to encode value of a keyword,in order to handle any exceptions thrown by it locally. All utility methods should handle exceptions locally and log a journal log in case of failure. The caller of the utility APIs should check the return value to detect success/failure.
Test: ``` - Install bitbaked image on Everest - Clear persistent PIM data on filesystem, restart PIM and then vpd-manager services - Check MACAddress property is properly populated on PIM for ethernet0 and ethernet1 ```
Change-Id: Idd2ec502081886937ab108fb4b19b9c359ecd000 Signed-off-by: Souvik Roy <souvikroyofficial10@gmail.com>
show more ...
|
8fc1252e | 19-Feb-2025 |
Souvik Roy <souvikroyofficial10@gmail.com> |
Refactor dump bad VPD utility exception handling
This commit refactors vpd specific utility APIs used to dump bad VPD in order to handle any exceptions thrown by them locally. All utility methods sh
Refactor dump bad VPD utility exception handling
This commit refactors vpd specific utility APIs used to dump bad VPD in order to handle any exceptions thrown by them locally. All utility methods should handle exception locally and log a journal log in case of failure. The caller of the utility APIs should check the return value to detect success/failure.
Change-Id: I53addf47f717999aae9c86ec89d7561ebe8be879 Signed-off-by: Souvik Roy <souvikroyofficial10@gmail.com>
show more ...
|
1ef21008 | 18-Feb-2025 |
RekhaAparna01 <vrekhaaparna@ibm.com> |
Exception handling for json_utility APIs
This commit adds code to handle exceptions for some of the json_utility APIs. Each API will have output returned in case of error based on the return type of
Exception handling for json_utility APIs
This commit adds code to handle exceptions for some of the json_utility APIs. Each API will have output returned in case of error based on the return type of the API instead of throwing an exception.
Also updated the caller of the json_utility APIs to handle the return value.
Change-Id: Ib43028974b61c18a0edae96608a8764cb440234a Signed-off-by: RekhaAparna01 <vrekhaaparna@ibm.com>
show more ...
|
1a48f0ce | 19-Feb-2025 |
Sunny Srivastava <sunnsr25@in.ibm.com> |
API to read IM from DBus
The commit implements utility method to read IM value from the DBus.
For now, it will be used to detect the system type before updating the VPD for power VS systems.
Chang
API to read IM from DBus
The commit implements utility method to read IM value from the DBus.
For now, it will be used to detect the system type before updating the VPD for power VS systems.
Change-Id: I425ebfc51721396cc1ca5f07d5725ef6617f4419 Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
show more ...
|
1aad7834 | 12-Dec-2024 |
Priyanga Ramasamy <priyanga24@in.ibm.com> |
worker::CollectionStatus for each inventory FRU
This commit populates CollectionStatus D-bus property under com.ibm.VPD.Collection D-bus interface for each inventory D-bus object path which represen
worker::CollectionStatus for each inventory FRU
This commit populates CollectionStatus D-bus property under com.ibm.VPD.Collection D-bus interface for each inventory D-bus object path which represents a FRU.
The property tells the current status of VPD collection for a given FRU's D-bus object path.
The property takes the below enum values:
>>>com.ibm.VPD.Collection.Status.Success ------------------------------------- This value is assigned when VPD collection is successful.
>>>com.ibm.VPD.Collection.Status.Failure ------------------------------------- VPD collection failure due to VPD exceptions.
>>>com.ibm.VPD.Collection.Status.InProgress ---------------------------------------- This value is assigned when VPD collection starts for the given FRU.
>>>com.ibm.VPD.Collection.Status.NotStarted ---------------------------------------- This default value is assigned when we hit prime inventory path.
Test: 1. VPD parsing failed for /sys/bus/i2c/drivers/at24/0-0051 /eeprom due to error: Unable to determine VPD format
=>CollectionStatus property value for tpm_wilson s "com.ibm.VPD.Collection.Status.Failure"
2. FRU not found s "com.ibm.VPD.Collection.Status.Failure"
3. Successful collection of VPD s "com.ibm.VPD.Collection.Status.Success"
Change-Id: Ia5010a181f720454bb51538d6fcf308daf6b75ca Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
show more ...
|
43fedabc | 03-Feb-2025 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: Id8301a67d945f8a3d1ceb87ae59087100338119c Signed-off-by: Patrick Williams <p
clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: Id8301a67d945f8a3d1ceb87ae59087100338119c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
78c91073 | 05-Feb-2025 |
Sunny Srivastava <sunnsr25@in.ibm.com> |
Skip presence detect and PEL for pass1 PCIe cards
Presence pin on pass1 planar does not reflect the true state of the slot. It does not guarantee if the card is actually present in the slot or not.
Skip presence detect and PEL for pass1 PCIe cards
Presence pin on pass1 planar does not reflect the true state of the slot. It does not guarantee if the card is actually present in the slot or not. Hence, the presence pin check is irrelevant in these scenarios and is being skipped before enabling the line for VPD collection.
Availability of EEPROM after enabling the line should confirm if the card needs to be collected or not.
Also, PCIe cards on pass1 is expected to have invalid VPD, avoiding logging of PELs for those error scenarios.
Change-Id: Ia646b7d442a94fadea6b4c78d1d97c5a214579cb Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
show more ...
|
4c164381 | 28-Jan-2025 |
Sunny Srivastava <sunnsr25@in.ibm.com> |
Update JSON tag to follow camel case
JSON tag for post fail action has been modified to follow camel case. Worker code has been modified accordingly.
Change-Id: I20960a2bdac13cca9f426d04e37247c5ebb
Update JSON tag to follow camel case
JSON tag for post fail action has been modified to follow camel case. Worker code has been modified accordingly.
Change-Id: I20960a2bdac13cca9f426d04e37247c5ebb62ddb Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
show more ...
|
fa5e4d32 | 12-Mar-2023 |
Sunny Srivastava <sunnsr25@in.ibm.com> |
Revamped code for VPD parser
The commit removes all the pre-existing code from the branch and pushes the revamped code.
Major modification includes: - Movement from multi exe to single daemon model
Revamped code for VPD parser
The commit removes all the pre-existing code from the branch and pushes the revamped code.
Major modification includes: - Movement from multi exe to single daemon model. - Multithreaded approach to parse FRU VPD. - Better error handling. - Refactored code for performance optimization.
Note: This code supports all the existing functionalities as it is.
Change-Id: I1ddce1f0725ac59020b72709689a1013643bda8b Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
show more ...
|