#
2576aecd |
| 17-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: I539a0c5baa63be240fc1c76367c0af338dd89c7b Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
#
89644441 |
| 31-Mar-2024 |
Riya Dixit <riyadixitagra@gmail.com> |
libpldmresponder: Improving Logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as mentioned in the anti
libpldmresponder: Improving Logs (lg2)
This commit corrects the severity level of logs and also formats the message string, fixing the ill-defined message string of the logs as mentioned in the anti-pattern document [1]. Additionally, based on the requirement this commit adds more debug information to logs.
[1]: https://github.com/openbmc/docs/blob/master/anti-patterns.md#ill-defined-data-structuring-in-lg2-message-strings
Change-Id: I7dc5c308a8cd76573995e07d01d1a6037bca31ba Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
show more ...
|
#
58cbcaf2 |
| 06-Oct-2023 |
Kamalkumar Patel <kamalkumar.patel@ibm.com> |
PLDM:Catching exception precisely and printing it
Correcting catch block in PLDM repo to print all exception precisely so pldm trace can be more useful to identify defect easily.
Change-Id: If2e86d
PLDM:Catching exception precisely and printing it
Correcting catch block in PLDM repo to print all exception precisely so pldm trace can be more useful to identify defect easily.
Change-Id: If2e86dcb031ddc2e927e7836d7f4359f5b44cdec Signed-off-by: Kamalkumar Patel <kamalkumar.patel@ibm.com>
show more ...
|
#
797f338f |
| 22-Aug-2023 |
Riya Dixit <riyadixitagra@gmail.com> |
PLDM: Implementing Phosphor-Logging/LG2 logging
This commit migrates std::cerr/cout added as part of new changes in PLDM to LG2.
Change-Id: I8e85732684d47b6740521e95712433a7c6760d8a Signed-off-by:
PLDM: Implementing Phosphor-Logging/LG2 logging
This commit migrates std::cerr/cout added as part of new changes in PLDM to LG2.
Change-Id: I8e85732684d47b6740521e95712433a7c6760d8a Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
show more ...
|
#
6da4f91b |
| 10-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: I61b093f75011417cc9c7acf9605200f4fa429bac Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
49cfb138 |
| 02-Mar-2023 |
Riya Dixit <riyadixitagra@gmail.com> |
PLDM: Implementing Phosphor-Logging/LG2 logging
This commit adds changes in PLDM for implementing structured LG2 logging, thereby moving away from std::cout/cerr practice of logging which are output
PLDM: Implementing Phosphor-Logging/LG2 logging
This commit adds changes in PLDM for implementing structured LG2 logging, thereby moving away from std::cout/cerr practice of logging which are output streams and not logging mechanism.
PLDM now can make use of lg2 features like accurate CODE LINE Number and CODE_FUNCTION Name and better detailing in json object values which can be used in log tracking.
More detailed logging change: https://gist.github.com/riyadixitagra/c251685c1ba84248181891f7bc282395
Tested: Ran a power off, on, cycle, and reset-reload.
Change-Id: I0485035f15f278c3fd172f0581b053c1c37f3a5b Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
show more ...
|
#
ca1998f3 |
| 06-Jun-2022 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
update clang-format
This commit would update the repo's clang-format file to the latest of docs/style/cpp/clang-format file.
Following is the new change that is added: Brad : clang-format: cpp: r
update clang-format
This commit would update the repo's clang-format file to the latest of docs/style/cpp/clang-format file.
Following is the new change that is added: Brad : clang-format: cpp: remove empty lines
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: Ieaadd8a1cd779c9c12adf6d065cc1f9e9a8fa37b
show more ...
|
#
5bb9edb9 |
| 05-Aug-2021 |
George Liu <liuxiwei@inspur.com> |
BIOS: support readonly attributes Since the P10 system has BMC to manager the BIOS attributes, and the BMC side does not know the attribute values of the BIOS, it should allow the OO
BIOS: support readonly attributes Since the P10 system has BMC to manager the BIOS attributes, and the BMC side does not know the attribute values of the BIOS, it should allow the OOB interface(Host) to be able to set BIOS readOnly attributes, while still preventing the redfish-doPATCH operation on it. Tested: if the readOnly attribute of the pvm_system_name is true, so we can use `pldmtool` to update the BIOS attributes. pldmtool bios SetBIOSAttributeCurrentValue -a pvm_system_name -d XXX { "Response": "SUCCESS" } Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Iabcb5c2400eb0a5c208cc76180d4b07e02457f44
show more ...
|
#
5079ac4a |
| 19-Aug-2021 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
treewide: remove 'using namespace' from headers Using namespace at global scope in a header file violates the cpp core guidelines. Quoting the guidelines: "Doing so takes awa
treewide: remove 'using namespace' from headers Using namespace at global scope in a header file violates the cpp core guidelines. Quoting the guidelines: "Doing so takes away an #includer’s ability to effectively disambiguate and to use alternatives. It also makes #included headers order-dependent as they might have different meaning when included in different orders." For further reading: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rs-using-directive The guidelines don't call out using using namespace from namespace scope, but it is only marginally less problematic and still unexpected, so this patch removes those as well. The process used to do the update is roughly: 1 - git grep 'using namespace' **.hpp 2 - For each instance, remove the offending 'using namespace' line 3 - build 4 - add 'using namespace' to cpp files or fully resolve types in hpp files until the project builds again. Further cleanup is possible - for example cpp files could be scrubbed for unnecessary namespace qualification - this was not done here to make review as simple as possible. Change-Id: I4931f5e78a1b5b74b4a4774c035a549f4d59b91a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
#
ca7b2524 |
| 18-Nov-2020 |
Tom Joseph <tomjoseph@in.ibm.com> |
bios: Initialise the bios attributes from bios-settings-manager The bios-settings-manager is persisting the current value for the PLDM BIOS attributes. The PLDM daemon will lookup the bi
bios: Initialise the bios attributes from bios-settings-manager The bios-settings-manager is persisting the current value for the PLDM BIOS attributes. The PLDM daemon will lookup the bios-settings-manager for the current value and create the BIOS attribute value table. Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com> Change-Id: I6a7a9ff9c3766189e6a64ab88c5c5e438881151f
show more ...
|
#
081d03b6 |
| 14-Dec-2020 |
Andrew Geissler <geissonator@yahoo.com> |
ensure variable initialized and error path reported New upstream yocto brings in an option that ensure all variables are initialized. Without this change, we get this failure: |
ensure variable initialized and error path reported New upstream yocto brings in an option that ensure all variables are initialized. Without this change, we get this failure: | ../git/libpldmresponder/bios_integer_attribute.cpp:158:12: error: | 'value' may be used uninitialized in this function [-Werror=maybe-uninitialized] | 158 | return value; | | ^~~~~ | cc1plus: all warnings being treated as errors There's no good way to report a property type is not found so add code to raise an exception in this situation. Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ie218f72b6d58fa4ad1e99f1a83eb17f3f87cd941
show more ...
|
#
daa6923c |
| 02-Sep-2020 |
George Liu <liuxiwei@inspur.com> |
BIOS: Fix readOnly BIOS attributes Previously, the readOnly property is true when without a D-Bus section in BIOS JSON. Now, the readOnly property should be determined by a new readOnly
BIOS: Fix readOnly BIOS attributes Previously, the readOnly property is true when without a D-Bus section in BIOS JSON. Now, the readOnly property should be determined by a new readOnly field, which should be introduced in the JSON. The checks are updated to ensure that if there is D-Bus mapping then only D-Bus lookups are done. Tested: test with json https://gist.github.com/lxwinspur/2afffff2e445fddf90dfed6eceef4014 busctl get-property xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager BaseBIOSTable a{s(sbsssvva(sv))} 5 "CodeUpdatePolicy" "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.Enumeration" true "" "" "" s "Concurrent" s "Concurrent" 2 "xyz.openbmc_project.BIOSConfig.Manager.BoundType.OneOf" s "Concurrent" "xyz.openbmc_project.BIOSConfig.Manager.BoundType.OneOf" s "Disruptive" "Led" "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.Enumeration" false "" "" "" s "Off" s "Off" 2 "xyz.openbmc_project.BIOSConfig.Manager.BoundType.OneOf" s "On" "xyz.openbmc_project.BIOSConfig.Manager.BoundType.OneOf" s "Off" "Model" "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.String" false "" "" "" s "powersupply0" s "FP5280G2" 2 "xyz.openbmc_project.BIOSConfig.Manager.BoundType.MinStringLength" x 1 "xyz.openbmc_project.BIOSConfig.Manager.BoundType.MaxStringLength" x 100 "OUTLET" "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.Integer" false "" "" "" x 9149282306036291456 x 0 3 "xyz.openbmc_project.BIOSConfig.Manager.BoundType.LowerBound" x 0 "xyz.openbmc_project.BIOSConfig.Manager.BoundType.UpperBound" x 68002 "xyz.openbmc_project.BIOSConfig.Manager.BoundType.ScalarIncrement" x 1 "str_example3" "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.String" true "" "" "" s "ef" s "ef" 2 "xyz.openbmc_project.BIOSConfig.Manager.BoundType.MinStringLength" x 1 "xyz.openbmc_project.BIOSConfig.Manager.BoundType.MaxStringLength" x 100 Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I73d2dcb9fc65a1aa8bbd060cfb9d44e708b47aae
show more ...
|
#
1244acfd |
| 13-Aug-2020 |
George Liu <liuxiwei@inspur.com> |
support runtime update of BIOS attributes Register the BIOSConfig/PendingAttributes signal and when the out of band redfish user updates the BIOS attributes, the pldm daemon should proce
support runtime update of BIOS attributes Register the BIOSConfig/PendingAttributes signal and when the out of band redfish user updates the BIOS attributes, the pldm daemon should process and check the PendingAttributes porperty, and then update the BIOSConfig/BaseBIOSTable property and the BIOS table. Tested: test JSON with https://gist.github.com/lxwinspur/2afffff2e445fddf90dfed6eceef4014 Type.Enumeration: ~#: busctl set-property xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager PendingAttributes a\{s\(sv\)\} 1 "Led" "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.Enumeration" s "xyz.openbmc_project.Led.Physical.Action.On" ~#: pldmtool bios getbiostable -t 2 PLDM AttributeValueTable: ... ... AttributeHandle: 3 AttributeType: BIOSEnumeration NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 0, StringHandle = On ... ... Type.String ~#: busctl set-property xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager PendingAttributes a\{s\(sv\)\} 1 "Model" "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.String" s "testModel" ~#: pldmtool bios getbiostable -t 2 PLDM AttributeValueTable: AttributeHandle: 0 AttributeType: BIOSString CurrentStringLength: 10 CurrentString: testModel ... ... Type.Integer ~#: busctl set-property xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager PendingAttributes a\{s\(sv\)\} 1 "OUTLET" "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.Integer" x 1000 ~#: pldmtool bios getbiostable -t 2 ... ... AttributeHandle: 2 AttributeType: BIOSInteger CurrentValue: 1000 ... ... Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I4d4d2941e6c9bfa7f6fccb664db1580f2ffc9c9f
show more ...
|
#
aca897b7 |
| 18-Aug-2020 |
George Liu <liuxiwei@inspur.com> |
libpldmresponder: Add double property type for D-Bus backend Add a handler with double property type in the get/setAttrValue methods. Signed-off-by: George Liu <liuxiwei@inspur.com>
libpldmresponder: Add double property type for D-Bus backend Add a handler with double property type in the get/setAttrValue methods. Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I493678b57199e8f7c252da99292029f77eef482e
show more ...
|
#
d130e1a3 |
| 17-Jun-2020 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
common: code re-org Move common files under a common/ directory. Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com> Change-Id: I0eaf91d4ee94c1e78228da0c50892f82e91912fa
|
#
46ece063 |
| 18-Mar-2020 |
Sampa Misra <sampmisr@in.ibm.com> |
libpldmresponder: enable DBus change notification This commit enables libpldmresponder to subscribe to DBus property change signal for the BIOS properties which are fetched from DBus
libpldmresponder: enable DBus change notification This commit enables libpldmresponder to subscribe to DBus property change signal for the BIOS properties which are fetched from DBus. The new DBus value is received and the relevant entry in the attributeValueTable is updated. test result: root@rainier:/tmp# pldmtool bios GetBIOSTable -t 0 Parsed Response Msg: PLDM StringTable: BIOSStringHandle : BIOSString 0 : Allowed 1 : Disabled 2 : Enabled 3 : IPv4DHCP 4 : IPv4Static 5 : Not Allowed 6 : Perm 7 : Temp 8 : pvm-fw-boot-side 9 : pvm-inband-code-update 10 : pvm-os-boot-side 11 : pvm-pcie-error-inject 12 : pvm-surveillance 13 : pvm-system-name 14 : vmi-hostname 15 : vmi-if-count 16 : vmi-if0-ipv4-ipaddr 17 : vmi-if0-ipv4-method 18 : vmi-if0-ipv4-prefix-length 19 : vmi-if1-ipv4-ipaddr 20 : vmi-if1-ipv4-method 21 : vmi-if1-ipv4-prefix-length 22 : vmi-ipv4-gateway root@rainier:/tmp# root@rainier:/tmp# pldmtool bios GetBIOSTable -t 1 Parsed Response Msg: PLDM AttributeTable: AttributeHandle: 0, AttributeNameHandle: 13(pvm-system-name) AttributeType: BIOSStringReadOnly StringType: 0x01 MinimumStringLength: 1 MaximumStringLength: 100 DefaultStringLength: 15 DefaultString: witherspoon-128 AttributeHandle: 1, AttributeNameHandle: 14(vmi-hostname) AttributeType: BIOSString StringType: 0x01 MinimumStringLength: 0 MaximumStringLength: 255 DefaultStringLength: 0 DefaultString: AttributeHandle: 2, AttributeNameHandle: 22(vmi-ipv4-gateway) AttributeType: BIOSString StringType: 0x01 MinimumStringLength: 7 MaximumStringLength: 15 DefaultStringLength: 7 DefaultString: 0.0.0.0 AttributeHandle: 3, AttributeNameHandle: 16(vmi-if0-ipv4-ipaddr) AttributeType: BIOSString StringType: 0x01 MinimumStringLength: 7 MaximumStringLength: 15 DefaultStringLength: 7 DefaultString: 0.0.0.0 AttributeHandle: 4, AttributeNameHandle: 19(vmi-if1-ipv4-ipaddr) AttributeType: BIOSString StringType: 0x01 MinimumStringLength: 7 MaximumStringLength: 15 DefaultStringLength: 7 DefaultString: 0.0.0.0 AttributeHandle: 5, AttributeNameHandle: 15(vmi-if-count) AttributeType: BIOSIntegerReadOnly LowerBound: 0 UpperBound: 2 ScalarIncrement: 1 DefaultValue: 1 AttributeHandle: 6, AttributeNameHandle: 18(vmi-if0-ipv4-prefix-length) AttributeType: BIOSInteger LowerBound: 0 UpperBound: 32 ScalarIncrement: 1 DefaultValue: 0 AttributeHandle: 7, AttributeNameHandle: 21(vmi-if1-ipv4-prefix-length) AttributeType: BIOSInteger LowerBound: 0 UpperBound: 32 ScalarIncrement: 1 DefaultValue: 0 AttributeHandle: 8, AttributeNameHandle: 8(pvm-fw-boot-side) AttributeType: BIOSEnumerationReadOnly NumberOfPossibleValues: 2 PossibleValueStringHandle[0] = 6(Perm) PossibleValueStringHandle[1] = 7(Temp) NumberOfDefaultValues: 1 DefaultValueStringHandleIndex[0] = 0, StringHandle = 6(Perm) AttributeHandle: 9, AttributeNameHandle: 10(pvm-os-boot-side) AttributeType: BIOSEnumerationReadOnly NumberOfPossibleValues: 2 PossibleValueStringHandle[0] = 6(Perm) PossibleValueStringHandle[1] = 7(Temp) NumberOfDefaultValues: 1 DefaultValueStringHandleIndex[0] = 0, StringHandle = 6(Perm) AttributeHandle: 10, AttributeNameHandle: 9(pvm-inband-code-update) AttributeType: BIOSEnumerationReadOnly NumberOfPossibleValues: 2 PossibleValueStringHandle[0] = 0(Allowed) PossibleValueStringHandle[1] = 5(Not Allowed) NumberOfDefaultValues: 1 DefaultValueStringHandleIndex[0] = 0, StringHandle = 0(Allowed) AttributeHandle: 11, AttributeNameHandle: 12(pvm-surveillance) AttributeType: BIOSEnumerationReadOnly NumberOfPossibleValues: 2 PossibleValueStringHandle[0] = 1(Disabled) PossibleValueStringHandle[1] = 2(Enabled) NumberOfDefaultValues: 1 DefaultValueStringHandleIndex[0] = 1, StringHandle = 2(Enabled) AttributeHandle: 12, AttributeNameHandle: 11(pvm-pcie-error-inject) AttributeType: BIOSEnumerationReadOnly NumberOfPossibleValues: 2 PossibleValueStringHandle[0] = 1(Disabled) PossibleValueStringHandle[1] = 2(Enabled) NumberOfDefaultValues: 1 DefaultValueStringHandleIndex[0] = 1, StringHandle = 2(Enabled) AttributeHandle: 13, AttributeNameHandle: 17(vmi-if0-ipv4-method) AttributeType: BIOSEnumeration NumberOfPossibleValues: 2 PossibleValueStringHandle[0] = 4(IPv4Static) PossibleValueStringHandle[1] = 3(IPv4DHCP) NumberOfDefaultValues: 1 DefaultValueStringHandleIndex[0] = 0, StringHandle = 4(IPv4Static) AttributeHandle: 14, AttributeNameHandle: 20(vmi-if1-ipv4-method) AttributeType: BIOSEnumeration NumberOfPossibleValues: 2 PossibleValueStringHandle[0] = 4(IPv4Static) PossibleValueStringHandle[1] = 3(IPv4DHCP) NumberOfDefaultValues: 1 DefaultValueStringHandleIndex[0] = 0, StringHandle = 4(IPv4Static) root@rainier:/tmp# root@rainier:/tmp# pldmtool bios GetBIOSTable -t 2 Parsed Response Msg: PLDM AttributeValueTable: AttributeHandle: 0 AttributeType: BIOSStringReadOnly CurrentStringLength: 15 CurrentString: witherspoon-128 AttributeHandle: 1 AttributeType: BIOSString CurrentStringLength: 0 CurrentString: AttributeHandle: 2 AttributeType: BIOSString CurrentStringLength: 7 CurrentString: 0.0.0.0 AttributeHandle: 3 AttributeType: BIOSString CurrentStringLength: 7 CurrentString: 0.0.0.0 AttributeHandle: 4 AttributeType: BIOSString CurrentStringLength: 7 CurrentString: 0.0.0.0 AttributeHandle: 5 AttributeType: BIOSIntegerReadOnly CurrentValue: 1 AttributeHandle: 6 AttributeType: BIOSInteger CurrentValue: 0 AttributeHandle: 7 AttributeType: BIOSInteger CurrentValue: 0 AttributeHandle: 8 AttributeType: BIOSEnumerationReadOnly NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 0, StringHandle = 6(Perm) AttributeHandle: 9 AttributeType: BIOSEnumerationReadOnly NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 0, StringHandle = 6(Perm) AttributeHandle: 10 AttributeType: BIOSEnumerationReadOnly NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 0, StringHandle = 0(Allowed) AttributeHandle: 11 AttributeType: BIOSEnumerationReadOnly NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 1, StringHandle = 2(Enabled) AttributeHandle: 12 AttributeType: BIOSEnumerationReadOnly NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 1, StringHandle = 2(Enabled) AttributeHandle: 13 AttributeType: BIOSEnumeration NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 0, StringHandle = 4(IPv4Static) AttributeHandle: 14 AttributeType: BIOSEnumeration NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 0, StringHandle = 4(IPv4Static) root@rainier:/tmp# root@rainier:/tmp# busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/network/vmi/intf1/ipv4/addr0 xyz.openbmc_project.Network.IP PrefixLength y 0 root@rainier:/tmp# busctl set-property xyz.openbmc_project.Settings /xyz/openbmc_project/network/vmi/intf1/ipv4/addr0 xyz.openbmc_project.Network.IP PrefixLength y 6 root@rainier:/tmp# busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/network/vmi/intf1/ipv4/addr0 xyz.openbmc_project.Network.IP Origin s "xyz.openbmc_project.Network.IP.AddressOrigin.Static" root@rainier:/tmp# busctl set-property xyz.openbmc_project.Settings /xyz/openbmc_project/network/vmi/intf1/ipv4/addr0 xyz.openbmc_project.Network.IP Origin s "xyz.openbmc_project.Network.IP.AddressOrigin.DHCP" root@rainier:/tmp# busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/network/vmi/intf1/ipv4/addr0 xyz.openbmc_project.Network.IP Address s "0.0.0.0" root@rainier:/tmp# busctl set-property xyz.openbmc_project.Settings /xyz/openbmc_project/network/vmi/intf1/ipv4/addr0 xyz.openbmc_project.Network.IP Address s "1.2.3.4" root@rainier:/tmp# pldmtool bios GetBIOSTable -t 2 Parsed Response Msg: PLDM AttributeValueTable: AttributeHandle: 0 AttributeType: BIOSStringReadOnly CurrentStringLength: 15 CurrentString: witherspoon-128 AttributeHandle: 1 AttributeType: BIOSString CurrentStringLength: 0 CurrentString: AttributeHandle: 2 AttributeType: BIOSString CurrentStringLength: 7 CurrentString: 0.0.0.0 AttributeHandle: 3 AttributeType: BIOSString CurrentStringLength: 7 CurrentString: 0.0.0.0 AttributeHandle: 4 AttributeType: BIOSString CurrentStringLength: 7 CurrentString: 1.2.3.4 AttributeHandle: 5 AttributeType: BIOSIntegerReadOnly CurrentValue: 1 AttributeHandle: 6 AttributeType: BIOSInteger CurrentValue: 0 AttributeHandle: 7 AttributeType: BIOSInteger CurrentValue: 6 AttributeHandle: 8 AttributeType: BIOSEnumerationReadOnly NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 0, StringHandle = 6(Perm) AttributeHandle: 9 AttributeType: BIOSEnumerationReadOnly NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 0, StringHandle = 6(Perm) AttributeHandle: 10 AttributeType: BIOSEnumerationReadOnly NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 0, StringHandle = 0(Allowed) AttributeHandle: 11 AttributeType: BIOSEnumerationReadOnly NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 1, StringHandle = 2(Enabled) AttributeHandle: 12 AttributeType: BIOSEnumerationReadOnly NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 1, StringHandle = 2(Enabled) AttributeHandle: 13 AttributeType: BIOSEnumeration NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 0, StringHandle = 4(IPv4Static) AttributeHandle: 14 AttributeType: BIOSEnumeration NumberOfCurrentValues: 1 CurrentValueStringHandleIndex[0] = 1, StringHandle = 3(IPv4DHCP) Change-Id: I60e8f916a82bda0ef27c8c482fafb755b65210b4 Signed-off-by: Sampa Misra <sampmisr@in.ibm.com>
show more ...
|
#
95e6b3c1 |
| 12-Feb-2020 |
John Wang <wangzqbj@inspur.com> |
bios: Implement BIOSIntegerAttribute Implement BIOSIntegerAttribute, most of the code is copied from bios/bios_parser.cpp. Implement SetAttrValueOnDbus and constructEntry for in
bios: Implement BIOSIntegerAttribute Implement BIOSIntegerAttribute, most of the code is copied from bios/bios_parser.cpp. Implement SetAttrValueOnDbus and constructEntry for integer attribute Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I57d5b5dbcb74f9a404f5133426208f4c6851dea2
show more ...
|