forked from openbmc/openpower-vpd-parser
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keyword's value gets updated on D-bus irrespective of verifying the keyword size. For example, For a 4 byte keyword, if user gives more than 4 bytes of data to update, hardware update will accept only 4 bytes but D-bus update will accept every extra byte given by the user. This will create a mismatch between hardware and D-bus. So to avoid such mismatches we came up with the design of updating the keyword's value in hardware first ( which takes care of size checks) and copy the same in other sources. With this approach we maintain the reliability of keyword updates across all other sources. This commit implements the portion where we read the keyword's value from hardware (assuming the hardware write is already done from Manager class) and write the same on D-bus. Test: busctl call com.ibm.VPD.Manager /com/ibm/VPD/Manager com.ibm.VPD.Manager ReadKeyword sv "/tmp/keyword.dat" s "SN" v ay 12 89 72 51 48 66 71 55 56 66 48 49 52 Change-Id: I60d7a2b418ad5e451e46f288bde3477794145ec0 Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
- Loading branch information
1 parent
d4d8f48
commit 4b744f2
Showing
3 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters