79c37f11 | 31-Oct-2019 |
John Wang <wangzqbj@inspur.com> |
bios: Use crc implemented in libpldm
Use the crc function implemented in libpldm, and fixed the endianness of checksum.
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: Id799da93fdf55ce9fa
bios: Use crc implemented in libpldm
Use the crc function implemented in libpldm, and fixed the endianness of checksum.
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: Id799da93fdf55ce9fad31dc7c1cfca7f832cf6f1
show more ...
|
ec482978 | 26-Nov-2019 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Add version for PLDM FRU spec implementation
GetPLDMVersion wasn't reporting the implemented version of the PLDM FRU spec (DSP0257). Fix this - the current implemented version is 1.0.0.
Signed-off-
Add version for PLDM FRU spec implementation
GetPLDMVersion wasn't reporting the implemented version of the PLDM FRU spec (DSP0257). Fix this - the current implemented version is 1.0.0.
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com> Change-Id: I74668453df8e69956924e2adfde4271a33f8e2d4
show more ...
|
dbbc9ff3 | 25-Oct-2019 |
John Wang <wangzqbj@inspur.com> |
bios: table construct: Add support for integer attribute
Add support for integer attribute to construct attribute table and attribute value table
Signed-off-by: John Wang <wangzqbj@inspur.com> Chan
bios: table construct: Add support for integer attribute
Add support for integer attribute to construct attribute table and attribute value table
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I98a027a32d935cef704b3e7052f87c1af57fddf8
show more ...
|
ecb7d57e | 17-Oct-2019 |
John Wang <wangzqbj@inspur.com> |
bios: Add a configuration parser for integer attribute
Add a configuration parser for integer attribute and check the fields for string attribute
Signed-off-by: John Wang <wangzqbj@inspur.com> Chan
bios: Add a configuration parser for integer attribute
Add a configuration parser for integer attribute and check the fields for string attribute
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I3be56f4a64373fb442ef58ad9d6693ffb8994917
show more ...
|
8b85f52d | 17-Oct-2019 |
John Wang <wangzqbj@inspur.com> |
bios: Use DBusHandler functions to avoid duplicate
Use the DBusHandler functions to avoid duplicate
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I1def4701c4ef773f3bccf5dce9c7510fa39012
bios: Use DBusHandler functions to avoid duplicate
Use the DBusHandler functions to avoid duplicate
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I1def4701c4ef773f3bccf5dce9c7510fa3901210
show more ...
|
daebf4dc | 28-Aug-2019 |
John Wang <wangzqbj@inspur.com> |
bios: Define json structure for integer attribute
Define json structure for "Specific BIOS Attribute Table Fields for BIOSInteger and BIOSIntegerReadOnly Types", see DSP0247 Version 1.0.0 Table 9.
bios: Define json structure for integer attribute
Define json structure for "Specific BIOS Attribute Table Fields for BIOSInteger and BIOSIntegerReadOnly Types", see DSP0247 Version 1.0.0 Table 9.
In the json, VDD_AVSBUS_RAIL is an example for BIOSInteger type and SBE_IMAGE_MINIMUM_VALID_ECS is an exmaple for BIOSIntegerReadOnly Type
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I08190923df2c100062194ccb2e266407bc63ef31
show more ...
|
f7d1a36c | 18-Nov-2019 |
Carol Wang <wangkair@cn.ibm.com> |
bios: fix bugs in PLDM BIOS
1. Correct json file example for enum type. 2. Enhance conditions for getBIOSAttributeValueTable.
Change-Id: Iba99a2aa0315623baeedec30170739030a6ebb4c Signed-off-by: Car
bios: fix bugs in PLDM BIOS
1. Correct json file example for enum type. 2. Enhance conditions for getBIOSAttributeValueTable.
Change-Id: Iba99a2aa0315623baeedec30170739030a6ebb4c Signed-off-by: Carol Wang <wangkair@cn.ibm.com>
show more ...
|
854e61f2 | 22-Aug-2019 |
Sampa Misra <sampmisr@in.ibm.com> |
oem-ibm: implement WriteFileByTypeFromMemory handler
This commit implements a framework for handling oem file types received to/from host. Along with that it also implements the responder for oem co
oem-ibm: implement WriteFileByTypeFromMemory handler
This commit implements a framework for handling oem file types received to/from host. Along with that it also implements the responder for oem command WriteFileByTypeFromMemory and processes PELs received from the host firmware.
Change-Id: Ice866aed0343b90769013c4be31a0c730f6e6bcd Signed-off-by: Sampa Misra <sampmisr@in.ibm.com>
show more ...
|
ccc0455b | 14-Oct-2019 |
John Wang <wangzqbj@inspur.com> |
bios: Move en/decodes for Attribute Table to libpldm
BIOS Attribute Table has various attribute types, the existing code implements enum/string.
This commit moves the existing encode/decode functio
bios: Move en/decodes for Attribute Table to libpldm
BIOS Attribute Table has various attribute types, the existing code implements enum/string.
This commit moves the existing encode/decode functions for BIOS Attribute Table to libplm.
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I60757ee346464d3d108d1667e6074a1345e6e150
show more ...
|
dd9a628d | 11-Oct-2019 |
John Wang <wangzqbj@inspur.com> |
bios: Move en/decodes for String Table to libpldm
Move encode/decode functions for BIOS String Table to libpldm. And implement an iterator to traverse the string table.
Signed-off-by: John Wang <wa
bios: Move en/decodes for String Table to libpldm
Move encode/decode functions for BIOS String Table to libpldm. And implement an iterator to traverse the string table.
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I409a935dc6fed0b8a16ac37e11401e82d070612c
show more ...
|
e96e7e53 | 05-Oct-2019 |
John Wang <wangzqbj@inspur.com> |
Refactor: bios_parser: Implement a new parsing process
The new version parses the configuration file before `bios module` is loaded.
Assume that configuration files consist of bios attributes. For
Refactor: bios_parser: Implement a new parsing process
The new version parses the configuration file before `bios module` is loaded.
Assume that configuration files consist of bios attributes. For each attribute, Parsing process has the following 3 steps.
1. Get bios strings for BIOS String Table 2. Implement an `attribute to dbus object` mapping 3. Get the type-related values for the attribute
1), 3) are type-related, need to implement handlers for those.
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: Id7de7f163e75945fb4efdc9b58aa199cb363dd9b
show more ...
|
3ad2175f | 06-Oct-2019 |
John Wang <wangzqbj@inspur.com> |
Refactor: bios: Construct the attribute value table
when constructing the attribute value table, we need to traverse the attribute table. But there is a bug in the previous version when traversing t
Refactor: bios: Construct the attribute value table
when constructing the attribute value table, we need to traverse the attribute table. But there is a bug in the previous version when traversing the attribute table.
Now we use the iterator of the last commit implementation to rebuild attribute value table.
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I9fe2b6eabf2b01e124b780fc0fc8615d492c1fed
show more ...
|
0270040b | 06-Oct-2019 |
John Wang <wangzqbj@inspur.com> |
bios: Implement an iterator for bios attribute table
Traversing bios attribute table should be platform-independent, so implement a c-version bios attribute table iterator in libpldm, also implement
bios: Implement an iterator for bios attribute table
Traversing bios attribute table should be platform-independent, so implement a c-version bios attribute table iterator in libpldm, also implement a c++ auxiliary function to traverse a bios table.
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I2afcaac306603410e711aa4772ba35b5e0b131d5
show more ...
|
92b3c97e | 16-Oct-2019 |
John Wang <wangzqbj@inspur.com> |
utils: Add DBusHandler functions
Add helper functions to get dbus property
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I9921848729f00b63290598679d6e7e1d2b2e7eea |
c293835a | 30-Sep-2019 |
John Wang <wangzqbj@inspur.com> |
cleanup: bios: Avoid duplicates for table pad/checksum
Implement a function for table pad/checksum to avoid duplicates
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: Iafb4ff3429c204abedc
cleanup: bios: Avoid duplicates for table pad/checksum
Implement a function for table pad/checksum to avoid duplicates
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: Iafb4ff3429c204abedc5888cac7c00ac9e58069f
show more ...
|
f6704d5c | 23-Oct-2019 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
build: remove autotools support
The project has shifted over to use meson since about a month, and there have been no challenges in terms of build from the source, bitbake builds, OpenBMC CI builds,
build: remove autotools support
The project has shifted over to use meson since about a month, and there have been no challenges in terms of build from the source, bitbake builds, OpenBMC CI builds, etc. The time seems right to disable autotools.
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com> Change-Id: I464a1e5ff93b8d3cf825d452ddbc6c162fceffd2
show more ...
|
408c3c40 | 16-Oct-2019 |
George Liu <liuxiwei@inspur.com> |
Fix: BMC shall maintain Host time
We need to get the Host time instead of BMC time from PLDM by the GetDateTime method and shall be targeting /xyz/openbmc_project/time/host.
Signed-off-by: George L
Fix: BMC shall maintain Host time
We need to get the Host time instead of BMC time from PLDM by the GetDateTime method and shall be targeting /xyz/openbmc_project/time/host.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I12147c8dee51b582cfd4bfa817a12c139a6f0331
show more ...
|
960dc969 | 08-Oct-2019 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
responder: add state effecter for system power off
Add a handler to respond to a set effecter meant to request the BMC to turn the system power off.
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm
responder: add state effecter for system power off
Add a handler to respond to a set effecter meant to request the BMC to turn the system power off.
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com> Change-Id: I03c974cd34a18c84a7a9bd81412cc1844b195694
show more ...
|
535efa0f | 08-Oct-2019 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
meson: fix lib names
PLDM libs were being prefixed with a duplicate 'lib'. Fixed this such that they're named as usual, for eg libpldm.so.
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com> Chan
meson: fix lib names
PLDM libs were being prefixed with a duplicate 'lib'. Fixed this such that they're named as usual, for eg libpldm.so.
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com> Change-Id: If6819baa4f7b912d6fd2cfd6f1a50ac9032b968c
show more ...
|
be6b8023 | 27-Sep-2019 |
John Wang <wangzqbj@inspur.com> |
Fix a possible buffer overflow issue
This commit fixes a possible overflow issue that would occur when comparing strings
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I6c21ab289c81d6e86
Fix a possible buffer overflow issue
This commit fixes a possible overflow issue that would occur when comparing strings
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I6c21ab289c81d6e8617ca765aecbef55f177f6ec
show more ...
|
69d3e7fb | 04-Sep-2019 |
Carol Wang <wangkair@cn.ibm.com> |
BIOS: UT for bios attribute tables with string type
In libpldmresponder_bios_test.cpp: 1. Modify some existing UTs to match new implemented types. 2. Add new class TestSingleTypeBIOSTable to test at
BIOS: UT for bios attribute tables with string type
In libpldmresponder_bios_test.cpp: 1. Modify some existing UTs to match new implemented types. 2. Add new class TestSingleTypeBIOSTable to test attribute value table based on single type.
Tested: /tmp/singleTypeBIOSTable.pnzuaS$ hexdump -C stringTable 00000000 0f 00 0c 00 73 74 72 5f 65 78 61 6d 70 6c 65 31 |....str_example1| 00000010 10 00 0c 00 73 74 72 5f 65 78 61 6d 70 6c 65 32 |....str_example2| 00000020 11 00 0c 00 73 74 72 5f 65 78 61 6d 70 6c 65 33 |....str_example3| 00000030 98 4c 55 cf |.LU.| 00000034 /tmp/singleTypeBIOSTable.pnzuaS$ hexdump -C attributeTable 00000000 07 00 01 0f 00 01 01 00 64 00 03 00 61 62 63 08 |........d...abc.| 00000010 00 01 10 00 02 00 00 64 00 00 00 09 00 01 11 00 |.......d........| 00000020 00 01 00 64 00 02 00 65 66 00 00 00 fb e0 7d 7f |...d...ef.....}.| 00000030 /tmp/singleTypeBIOSTable.pnzuaS$ hexdump -C attributeValueTable 00000000 09 00 01 02 00 65 66 00 6d 81 4a b6 |.....ef.m.J.|
Change-Id: I65316bcbd52c60d2671709632dd567aea0a52593 Signed-off-by: Carol Wang <wangkair@cn.ibm.com>
show more ...
|
b503f9e0 | 02-Sep-2019 |
Carol Wang <wangkair@cn.ibm.com> |
BIOS: Implement attribute value table with type string
Construct attribute value table with type string based on string table and attribute table.
Change-Id: I40c782ae8753340c964cf067e53e7947b18e9e
BIOS: Implement attribute value table with type string
Construct attribute value table with type string based on string table and attribute table.
Change-Id: I40c782ae8753340c964cf067e53e7947b18e9e35 Signed-off-by: Carol Wang <wangkair@cn.ibm.com>
show more ...
|
612f35b4 | 26-Aug-2019 |
Carol Wang <wangkair@cn.ibm.com> |
BIOS: Implement attribute table with type string
Construct attribute table with type string based on string table.
Tested: Following are the tables constructed from the sample json file present at
BIOS: Implement attribute table with type string
Construct attribute table with type string based on string table.
Tested: Following are the tables constructed from the sample json file present at "test/bios_jsons/
$ hexdump -C stringTable 00000000 00 00 07 00 41 6c 6c 6f 77 65 64 01 00 10 00 43 |....Allowed....C| 00000010 6f 64 65 55 70 64 61 74 65 50 6f 6c 69 63 79 02 |odeUpdatePolicy.| 00000020 00 0a 00 43 6f 6e 63 75 72 72 65 6e 74 03 00 0a |...Concurrent...| 00000030 00 44 69 73 72 75 70 74 69 76 65 04 00 0a 00 46 |.Disruptive....F| 00000040 57 42 6f 6f 74 53 69 64 65 05 00 0f 00 48 4d 43 |WBootSide....HMC| 00000050 4d 61 6e 61 67 65 64 53 74 61 74 65 06 00 10 00 |ManagedState....| 00000060 49 6e 62 61 6e 64 43 6f 64 65 55 70 64 61 74 65 |InbandCodeUpdate| 00000070 07 00 0a 00 4e 6f 74 41 6c 6c 6f 77 65 64 08 00 |....NotAllowed..| 00000080 03 00 4f 66 66 09 00 02 00 4f 6e 0a 00 04 00 50 |..Off....On....P| 00000090 65 72 6d 0b 00 04 00 54 65 6d 70 0c 00 0c 00 73 |erm....Temp....s| 000000a0 74 72 5f 65 78 61 6d 70 6c 65 31 0d 00 0c 00 73 |tr_example1....s| 000000b0 74 72 5f 65 78 61 6d 70 6c 65 32 0e 00 0c 00 73 |tr_example2....s| 000000c0 74 72 5f 65 78 61 6d 70 6c 65 33 00 6c 11 89 d4 |tr_example3.l...|
$ hexdump -C attributeTable 00000000 00 00 00 01 00 02 02 00 03 00 01 00 01 00 00 04 |................| 00000010 00 02 0a 00 0b 00 01 00 02 00 00 05 00 02 08 00 |................| 00000020 09 00 01 01 03 00 00 06 00 02 00 00 07 00 01 00 |................| 00000030 04 00 01 0c 00 01 01 00 64 00 03 00 61 62 63 05 |........d...abc.| 00000040 00 01 0d 00 02 00 00 64 00 00 00 06 00 01 0e 00 |.......d........| 00000050 00 01 00 64 00 02 00 65 66 00 00 00 72 ef 0c 2a |...d...ef...r..*|
Change-Id: I272c59b96b5aa14571d01eeeaccd504ca7ac168b Signed-off-by: Carol Wang <wangkair@cn.ibm.com>
show more ...
|
dc220c87 | 26-Aug-2019 |
Carol Wang <wangkair@cn.ibm.com> |
BIOS: Modify to support BIOS string type
Modify the definitions of constructAttrTable() to make it more convenient to construct different type data together.
Change-Id: I607966eeaac888a9bd863cedcc8
BIOS: Modify to support BIOS string type
Modify the definitions of constructAttrTable() to make it more convenient to construct different type data together.
Change-Id: I607966eeaac888a9bd863cedcc80ce819f5b34d8 Signed-off-by: Carol Wang <wangkair@cn.ibm.com>
show more ...
|
473d2c9b | 22-Aug-2019 |
Carol Wang <wangkair@cn.ibm.com> |
BIOS: Define JSON structure for BIOS String type
Give a sample of JSON configuration file for BIOS string type. Take one entry for example: { "attribute_name" : "str_example1",
BIOS: Define JSON structure for BIOS String type
Give a sample of JSON configuration file for BIOS string type. Take one entry for example: { "attribute_name" : "str_example1", "string_type" : "ASCII", "minimum_string_length" : 1, "maximum_string_length" : 100, "default_string_length" : 3, "default_string" : "abc", "dbus": { "object_path" : "/xyz/abc/def", "interface" : "xyz.openbmc_project.str_example1.value", "property_name" : "Str_example1", "property_type" : "string" } }
Signed-off-by: Carol Wang <wangkair@cn.ibm.com> Change-Id: I6217ddf75aa60dfb46e4384f81f2ff39c922d3bb
show more ...
|