973b291e | 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I748aeef75e2078199193cd98013dd2fe7f6b5db8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
8f3f94da | 09-May-2024 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Replace Password with UserChallenge
This commit replaces the 'Password' field with 'UserChallenge' in the Resource dump implementation of xyz.openbmc_project.Dump.Entry.Resource interface
OpenPOWER: Replace Password with UserChallenge
This commit replaces the 'Password' field with 'UserChallenge' in the Resource dump implementation of xyz.openbmc_project.Dump.Entry.Resource interface.
The 'UserChallenge' is used to verify user authorization against an Access Control List provided through PLDM. This ensures that dump requests are processed only if the user-challenge is validated successfully.
Test: Successfully built with p10bmc
Change-Id: I1896c4645d1329e47556b8d75fff8cb6aae45945 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
show more ...
|
7cd0528a | 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: I8671a81c57e5032c776691d30a941c19b1d53e9d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
05ef8163 | 22-Nov-2022 |
Lei YU <yulei.sh@bytedance.com> |
Correct the timing of emit_object_added
The deletion of the dump objects emits InterfacesRemoved signal, but the interfaces removed in the signal does not contain the interfaces defined in the base
Correct the timing of emit_object_added
The deletion of the dump objects emits InterfacesRemoved signal, but the interfaces removed in the signal does not contain the interfaces defined in the base class phosphor::dump::Entry: ``` xyz.openbmc_project.Common.OriginatedBy xyz.openbmc_project.Common.Progress xyz.openbmc_project.Dump.Entry xyz.openbmc_project.Object.Delete xyz.openbmc_project.Time.EpochTime ```
This results in the mapper still keeping the objects even if the object is removed from DBus, and it becomes inconsistent between the DBus objects and mapper.
Adjust the inheritance sequence, so that in destruction, emit_object_removed() is called when all the interfaces are there, so that all the interfaces could be included in the signal.
Without this change, the destructor sequence is (Taking BMCEntry as example): 1. phosphor::dump::Entry is destructed, no signal is emitted; 2. phosphor::dump::bmc::EntryIfaces is destructed, signal is emitted, but at this time, only the interfaces implemented by phosphor::dump::bmc::EntryIfaces is included, which is the root cause of the problem.
With the change, the destructor sequence is: 1. phosphor::dump::bmc::EntryIfaces is destructed, signal is emitted, and all the interfaces are included in the signal; 2. phosphor::dump::Entry is destructed, no signal is emitted.
So all the interfaces implemented by BMCEntry is included in the InterfacesRemoved signal, and thus the issue is fixed.
Tested: Before this change: 1. Create a dump, say /xyz/openbmc_project/dump/bmc/entry/2 2. Delete it 3. Mapper still list the above object although it does not really exist. With this fix, verify the above issue is fixed.
Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I76710fa9b8d23344cf979bd8f3bdcc331e663264
show more ...
|
ea632b81 | 06-May-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Allow system dump in TransitioningToOff state
There are cases the host can be stuck in the TransitioningToOff state, a system dump from that state is needed for further debug on host side
OpenPOWER: Allow system dump in TransitioningToOff state
There are cases the host can be stuck in the TransitioningToOff state, a system dump from that state is needed for further debug on host side.
Tests: Initiate dump when system is in TransitioningToOff state
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I59b4e5710453fd87bec5de17af35f5d5064ebdf1
show more ...
|
7e4edab9 | 29-Mar-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Return Unavailable Instead of NotAllowed for Delete
This commit changes the exception thrown from 'NotAllowed' to 'Unavailable' when attempting to delete a system dump that is currently b
OpenPOWER: Return Unavailable Instead of NotAllowed for Delete
This commit changes the exception thrown from 'NotAllowed' to 'Unavailable' when attempting to delete a system dump that is currently being offloaded. This modification aligns with the objective to return an HTTP 'Unavailable' status via Redfish interface in this scenario.
The 'Unavailable' response more accurately reflects the system state, as the dump is not disallowed from deletion under normal circumstances, but temporarily unavailable due to the ongoing offload process.
Tests: - Attempt to delete resource dump while offloading it - Attempt to delete system dump while offloading it
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I6c5d9aba16380d86e68c06537417ad9d725826e5
show more ...
|
3a25e5b2 | 22-Mar-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Allow initiating mp reboot dump in quiesced state
When system dumps are disabled, a system dump collection request will end up in quiesced state. A memory preserving reboot from that sta
OpenPOWER: Allow initiating mp reboot dump in quiesced state
When system dumps are disabled, a system dump collection request will end up in quiesced state. A memory preserving reboot from that state can get the failed data from the host. So enabling the mp reboot dump collection from quiesced state.
Test: Disable dump Inject error in host to move to quiesced state Start mp reboot Dump should be generated
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I9f444752b321f1ab47b99e5b8ac32c79182d6453
show more ...
|
8098ca6a | 24-Jun-2023 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Change-Id: I02e8e49b245f1f42d10983fee65f05efc5326fc7 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
a72daf5c | 21-Jun-2023 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Fix compile error in p10bmc
There is fix in a line missed after testing in downstream with lastest review comment which caused the compile failure in p10bmc
Test: Created a system dump b
OpenPOWER: Fix compile error in p10bmc
There is fix in a line missed after testing in downstream with lastest review comment which caused the compile failure in p10bmc
Test: Created a system dump busctl --verbose call xyz.openbmc_project.Dump.Manager\ /xyz/openbmc_project/dump/system \ xyz.openbmc_project.Dump.Create CreateDump a{sv} 0
MESSAGE "o" { OBJECT_PATH "/xyz/openbmc_project/dump/system/\ entry/1"; };
Once the dump is completed check the value of pvm_sys_dump_active busctl call xyz.openbmc_project.BIOSConfigManager \ /xyz/openbmc_project/bios_config/manager \ xyz.openbmc_project.BIOSConfig.Manager \ GetAttribute s pvm_sys_dump_active svv "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.\ Enumeration" s "Enabled" s ""
Try another system dump busctl --verbose call xyz.openbmc_project.Dump.Manager \ /xyz/openbmc_project/dump/system \ xyz.openbmc_project.Dump.Create CreateDump a{sv} 0 Call failed: The service is temporarily unavailable.
System dump is not allowed when another dump is in progress
Change-Id: I367c4f5e58888348c33abbf813f16f2708f27ff8 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
show more ...
|
1ddb006b | 06-May-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Limit User-Requested System Dumps
System dumps can be several gigabytes in size. To conserve space, only one dump is stored at a time. When a new dump is requested, the existing dump will
OpenPOWER: Limit User-Requested System Dumps
System dumps can be several gigabytes in size. To conserve space, only one dump is stored at a time. When a new dump is requested, the existing dump will be discarded while creating a new one. In the case of system-generated dumps, which are triggered by critical errors, it is permissible to initiate a new dump even if an existing dump is already present in the host memory This commit adds a restriction on initiating new user-requested system dumps while a system dump is in progress or if one is already stored in host memory.
New user-requested system dumps will be allowed once the existing dump is deleted or offloaded.
This change applies only to user-requested dumps and does not impact system generated dumps.
Test: - Initiate system dump when another dump in progress and verified a Unavailable was returned - Force a system generated system dump when one dump is present a Unavailable was returned
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I4598912b0761669859f84a43ab4c60f47664b1e6
show more ...
|
9e905375 | 20-Aug-2021 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Add support for OpenPOWER dump policy
This commit introduces support for the system dump policy, wherein 'system dump' refers to all OpenPOWER dumps. This term encompasses all dumps from
OpenPOWER: Add support for OpenPOWER dump policy
This commit introduces support for the system dump policy, wherein 'system dump' refers to all OpenPOWER dumps. This term encompasses all dumps from host subsystems on OpenPOWER systems, which are collectively referred to as system dumps. The currently supported policy is 'dump enable'. A dump will be created only if this policy is enabled. If the policy is not enabled, a 'dump disabled' error message will be returned.
In scenarios where the settings service is unavailable, the system will default to considering the dump as enabled.
Tests: - Create a dump with policy enabled busctl --verbose call xyz.openbmc_project.Settings \ /xyz/openbmc_project/dump/system_dump_policy \ org.freedesktop.DBus.Properties \ Get ss "xyz.openbmc_project.Object.Enable" "Enabled" MESSAGE "v" { VARIANT "b" { BOOLEAN true; }; };
busctl --verbose call xyz.openbmc_project.Dump.Manager \ /xyz/openbmc_project/dump/resource \ xyz.openbmc_project.Dump.Create CreateDump a{sv} 2 \ "com.ibm.Dump.Create.CreateParameters.VSPString" s \ "vsp" "com.ibm.Dump.Create.CreateParameters.Password" \ s "password" MESSAGE "o" { OBJECT_PATH "/xyz/openbmc_project/dump/resource/entry/1"; };
Result: Dump created
- Create a dump with policy disabled busctl --verbose call xyz.openbmc_project.Settings \ /xyz/openbmc_project/dump/system_dump_policy \ org.freedesktop.DBus.Properties Get ss \ "xyz.openbmc_project.Object.Enable" "Enabled" MESSAGE "v" { VARIANT "b" { BOOLEAN false; }; };
busctl --verbose call xyz.openbmc_project.Dump.Manager \ /xyz/openbmc_project/dump/resource \ xyz.openbmc_project.Dump.Create CreateDump a{sv} 2 \ "com.ibm.Dump.Create.CreateParameters.VSPString" s "vsp" \ "com.ibm.Dump.Create.CreateParameters.Password" s "password" Call failed: Dump is disabled on this system.
Result: Dump is not allowed
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I5dc609b1f4fd0f36df8520f8a75c18a4cd3d7c4c
show more ...
|
64f8da9e | 08-Dec-2021 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
Implement GetFileHandle in dump entry interface
Certain applications need to offload the dump in various ways, for example, performing DMA transfer of the dump to the host memory. These applications
Implement GetFileHandle in dump entry interface
Certain applications need to offload the dump in various ways, for example, performing DMA transfer of the dump to the host memory. These applications require direct access to the file to read from the BMC storage.
This commit introduces the GetFileHandle method in the dump entry interface. This method provides direct access to the Unix file handle of the dump entry, facilitating more direct read operations on the dump file. The returned file descriptor is read-only, which ensures the integrity of the dump file.
The definition of the file handle is moved from the specific 'bmc_dump_entry' class to the parent 'dump_entry' class. This allows all dump types inheriting from 'dump_entry' to use this new method, thus increasing its utility across various dump types.
The introduction of this method primarily benefits PLDM for offloading the dump to the host, and bmcweb for offloading the dump to Redfish clients. By providing a file handle instead of exposing the file path, it resolves potential access issues for applications running in non-root contexts.
Test: Created a dump and made sure it reached host successfully Executed with additional traces Jun 21 10:56:09 pldmd[1856]: Requesting file handle Jun 21 10:56:09 pldmd[1856]: File handle received fd=9 Jun 21 10:56:09 pldmd[1856]: Transfer data rc= 0 Jun 21 10:56:09 phosphor-dump-manager[480]: File handle \ request Jun 21 10:56:09 phosphor-dump-manager[480]: returning fd=11 Jun 21 10:56:09 pldmd[1856]: File handle received fd=9 Jun 21 10:56:09 pldmd[1856]: File read rc=15
In th host: Service Processor Dump: Maximum file size: 0 (0x00000000) bytes (0 MBs) Dumps this PHYP IPL: 1 Pending Dump: Dump ID: 00000009 File size: 3749662 \ (0x000000000039371E) bytes (3 MBs) SP dump sub type: 0x000000000000000F BMC File name: \ BMCDUMP.1392A20.00000009.20230621105510 Dump create time: 06/21/2023 10:55:10.00 PHYP notify time: 06/21/2023 10:56:00.5918570000 LP recipient: 1 LP notify time: 06/21/2023 10:56:00.5918580000
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: If398940b655b4d90688273f0c76a20d4ead61992
show more ...
|
0007b70c | 01-Feb-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Ignore duplicate system dump entry
This commit introduces changes to handle scenarios where the host might report the same system dump entry more than once. The changes have been made to
OpenPOWER: Ignore duplicate system dump entry
This commit introduces changes to handle scenarios where the host might report the same system dump entry more than once. The changes have been made to address two main scenarios:
When the host generates a system dump having the same dump id and size as an existing entry, the new notification is ignored if the existing entry is marked as 'completed'. A trace is added if the existing entry is incomplete.
In cases where the dump id matches an existing entry, but the size is different, the old entry is considered stale and gets deleted. A new entry will be created subsequently.
This issue arises particularly during internal failure recovery in the host, where it notifies all the pending dumps again. In cases where entries are already available for such dumps on the BMC, duplicate entries may be created, potentially leading to confusion for users. This change prevents the creation of new entries if an entry already exists for the same dump.
Tests: Create a disruptive system dump and offload Create a non-disruptive system dump and offload
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I31d92df43476a19880d084a68e5db17c5207bd81
show more ...
|
d1f670fe | 05-Jun-2023 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
Implementing Phosphor-Logging/LG2 logging
This commit introduces changes in the phosphor-debug-collector repository to implement structured logging using the LG2 framework. The existing log calls in
Implementing Phosphor-Logging/LG2 logging
This commit introduces changes in the phosphor-debug-collector repository to implement structured logging using the LG2 framework. The existing log calls in the repository, have been replaced with LG2 logging, facilitates better log tracking and troubleshooting by offering improved detail in JSON object values.
Test: - Created BMC dump - Created system dump
Here is a example { "_EXE" : "/tmp/phosphor-dump-manager", "_MACHINE_ID" : "f9ca96d99c7b4ba688556f632ffeff5d", "_CAP_EFFECTIVE" : "1ffffffffff", "LOG2_FMTMSG" : "Invalid Dump file name, FILENAME: {FILENAME}", "__CURSOR" : "s=721ae7a5b6ed43ec904f2bb03e3c0403;i=2a8d0;\ b=b372b9a5989e46bb8e62b33310e181ea;m=2c05fda2b;t=5fdf0684c1e70;x=1592f60584d6486c", "CODE_FUNC" : "void phosphor::dump::bmc::Manager::\ createEntry(const std::filesystem::__cxx11::path&)", "_SYSTEMD_SLICE" : "system-dropbear.slice", "CODE_LINE" : "174", "__REALTIME_TIMESTAMP" : "1686583867350640", "PRIORITY" : "3", "_SYSTEMD_UNIT" : "dropbear@1-9.3.29.238:22-9.3.84.138:45432.service", "_PID" : "16209", "_BOOT_ID" : "b372b9a5989e46bb8e62b33310e181ea", "_SOURCE_REALTIME_TIMESTAMP" : "1686583867350580", "_TRANSPORT" : "journal", "_HOSTNAME" : "openbmc", "SYSLOG_IDENTIFIER" : "phosphor-dump-manager", "MESSAGE" : "Invalid Dump file name, \ FILENAME: BMCDUMP.XXXXXXX.0000006.20230612153010", "CODE_FILE" : \ "/usr/src/debug/phosphor-debug-collector/1.0+gitAUTOINC+a17f1c92ce-r1\ /dump_manager_bmc.cpp", "_UID" : "0", "_CMDLINE" : "/tmp/phosphor-dump-manager", "_RUNTIME_SCOPE" : "system", "FILENAME" : "BMCDUMP.XXXXXXXX.0000006.20230612153010", "_SYSTEMD_INVOCATION_ID" : "64a11629aade4c96ab62154cbc4be8b7", "__MONOTONIC_TIMESTAMP" : "11817441835", "_SYSTEMD_CGROUP" : "/system.slice/system-dropbear.slice/\ dropbear@1-9.3.29.238:22-9.3.84.138:45432.service", "_COMM" : "phosphor-dump-m", "_GID" : "0" }
Change-Id: I3a52b812b059b64d945493de2e2cc68a43f6d72a Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
show more ...
|
16eafec0 | 14-Feb-2023 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Remove duplicate OriginatedBy interface
The OriginatedBy interface is added to the base entry class but again added to resource and system dump entries which is causing issue while starti
OpenPOWER: Remove duplicate OriginatedBy interface
The OriginatedBy interface is added to the base entry class but again added to resource and system dump entries which is causing issue while starting the service.
Change-Id: I936dbccf9a7a2d26595cceea48daa4c67278c999 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
show more ...
|
27884e6b | 09-May-2023 |
Andrew Geissler <geissonator@yahoo.com> |
systemd: no installation in templated targets
Upstream yocto introduced a change via e510222 (systemd-systemctl: fix instance template WantedBy symlink construction).
This fixes a bug that we in Op
systemd: no installation in templated targets
Upstream yocto introduced a change via e510222 (systemd-systemctl: fix instance template WantedBy symlink construction).
This fixes a bug that we in OpenBMC had been taking advantage of in that we were able to document our templated target dependencies without it actually doing anything. The real installation of services within targets occurs in our bitbake recipes due to the complexity of chassis and host instances on a per machine basis.
Leave the dependency information in the service files but comment them out. It's useful to be able to look at a service and understand which targets it's going to be installed into by the bitbake recipes.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I5d0390d6993e70a9c28ca21fe4d32fc7e703b766
show more ...
|
78e88402 | 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: If4790d4928efc3e6690ca090aa79f0c7737c3683 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
74a1f39c | 27-Oct-2021 |
Asmitha Karunanithi <asmitk01@in.ibm.com> |
Implement OriginatedBy interface in dump entry dbus obj
This new interface "OriginatedBy" will be implemented by all the dump entry dbus objects. It contains a property "OriginatorId" which stores t
Implement OriginatedBy interface in dump entry dbus obj
This new interface "OriginatedBy" will be implemented by all the dump entry dbus objects. It contains a property "OriginatorId" which stores the unique id of the user that has initiated the dump. The unique id in this case is a string that contains the ip address of the client that initiated the dump.
The dbus interface change for the same is at: [1] https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/47057
Tested By:
[1] busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/bmc xyz.openbmc_project.Dump.Create CreateDump a{sv} 2 "xyz.openbmc_project.Dump.Create.CreateParameters.OriginatorId" s "<unique-id>" "xyz.openbmc_project.Dump.Create.CreateParameters.OriginatorType" s "xyz.openbmc_project.Common.OriginatedBy.OriginatorTypes.Client" o "/xyz/openbmc_project/dump/bmc/entry/2"
[2] busctl --verbose call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/resource xyz.openbmc_project.Dump.Create CreateDump a{sv} 4 "com.ibm.Dump.Create.CreateParameters.VSPString" s "vsp" "com.ibm.Dump.Create.CreateParameters.Password" s "password" "com.ibm.Dump.Create.CreateParameters.OriginatorId" s "<unique-id>" "xyz.openbmc_project.Dump.Create.CreateParameters.OriginatorType" s "xyz.openbmc_project.Common.OriginatedBy.OriginatorTypes.Client" MESSAGE "o" { OBJECT_PATH "/xyz/openbmc_project/dump/resource/entry/1"; };
[3] busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/system xyz.openbmc_project.Dump.Create CreateDump a{sv} 2 "com.ibm.Dump.Create.CreateParameters.OriginatorId" s "<unique-id>" "xyz.openbmc_project.Dump.Create.CreateParameters.OriginatorType" s "xyz.openbmc_project.Common.OriginatedBy.OriginatorTypes.Client" o "/xyz/openbmc_project/dump/system/entry/1"
Signed-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com> Change-Id: I23c9f769fd39cd84e042d6effbb3d71c7af4e889
show more ...
|
c0ab9d43 | 18-Aug-2022 |
Claire Weinan <cweinan@google.com> |
Populate timestamps with microsecond precision
xyz.openbmc_project.Time.EpochTime is defined as time elapsed since the epoch in microseconds.
xyz.openbmc_project.Common.Progress.StartTime and xyz.o
Populate timestamps with microsecond precision
xyz.openbmc_project.Time.EpochTime is defined as time elapsed since the epoch in microseconds.
xyz.openbmc_project.Common.Progress.StartTime and xyz.openbmc_project.Common.Progress.CompletedTime are similarly defined as microseconds.
Change timestamps that are currently captured in seconds to microseconds.
Tested:
Check xyz.openbmc_project.Time.EpochTime, xyz.openbmc_project.Common.Progress.StartTime, and xyz.openbmc_project.Common.Progress.CompletedTime timestamps of dump entries.
Example: busctl introspect xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/bmc/entry/1
Signed-off-by: Claire Weinan <cweinan@google.com> Change-Id: I6ea220af07f06ad79de0b62b24ce6cd5ba5fd33d
show more ...
|
345e56b0 | 17-May-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPower: Return unavailable if any error in deleting host dump
If there is a failure in sending dump delete request to host for resource and system dump, return unavailable error.
Signed-off-by:
OpenPower: Return unavailable if any error in deleting host dump
If there is a failure in sending dump delete request to host for resource and system dump, return unavailable error.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: Ia85ef46c55c5a2b54af2b8632f94c3318ef1d4d1
show more ...
|
1112bdfc | 23-Mar-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Prevent dump delete while offloading
Prevent the deletion of the dumps stored in host memory while offload is in progress
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
OpenPOWER: Prevent dump delete while offloading
Prevent the deletion of the dumps stored in host memory while offload is in progress
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I053d802a96548fdd9240cf21ef2bf91c4b38e367
show more ...
|
a5097b9e | 08-Mar-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Password is not mandatory for resource dump
In dump manager password is always expected for creating resource dump, which is not needed. So removing the restriction and making password an
OpenPOWER: Password is not mandatory for resource dump
In dump manager password is always expected for creating resource dump, which is not needed. So removing the restriction and making password an optional argument.
Tests: Request resource dump with providing password. Tested resource dump without giving password.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I46863409e9eb4b16727a78c904853d1408e4462a
show more ...
|
f5e5385d | 03-Mar-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Use non blocking call for host dump offload request
Currently dump manager is using pldm_send_recv which is a blocking call and if the host is not responding dump manager will hang to avo
OpenPOWER: Use non blocking call for host dump offload request
Currently dump manager is using pldm_send_recv which is a blocking call and if the host is not responding dump manager will hang to avoid this using pldm_send which is a non-blocking call.
Tests:
Send message while host is down and dump manager is not hung.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: Ie90e217325da4c8778c7527afcd453a8fdce02c8
show more ...
|
b116bbb0 | 24-Feb-2022 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Do not delete dump entries during mp reboot
The dump entries for the dumps stored in the host memory should not be deleted during a memory preserved reboot.
There is a file created durin
OpenPOWER: Do not delete dump entries during mp reboot
The dump entries for the dumps stored in the host memory should not be deleted during a memory preserved reboot.
There is a file created during memory preserved reboot this service will not be active if the file is present
Additional change to make sure the file which indicates memory preserving ipl is already created https://gerrit.openbmc-project.xyz/c/openbmc/openpower-proc-control/+/51515
Tests: During memory preserving reboot: Feb 24 11:38:53 systemd[1]: Finished Start memory preserving reboot host0. Feb 24 11:38:53 systemd[1]: Condition check resulted in Remove host dump entries during poweroff being skipped.
In normal poweroff Feb 24 11:52:08 ever6bmc systemd[1]: Reached target Stop Host0 (Pre). Feb 24 11:52:08 ever6bmc systemd[1]: Starting Remove host dump entries during poweroff... Feb 24 11:52:08 ever6bmc systemd[1]: Starting Stop instructions for host0... Feb 24 11:52:08 ever6bmc phosphor-dump-manager[496]: System dump delete id(3) srcdumpid(2) Feb 24 11:52:08 ever6bmc phosphor-dump-manager[496]: System dump entry with id(3) is deleted Feb 24 11:52:08 ever6bmc systemd[1]: Finished Remove host dump entries during poweroff.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: Ic4269ee3322c4b8b77ea072a97e325895feed20f
show more ...
|
9f557368 | 12-May-2021 |
Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> |
OpenPOWER: Clear system and resource dump entries while powering off
The dumps like system and resource dumps are stored in host memory and that will be lost during a power off, so the entries in BM
OpenPOWER: Clear system and resource dump entries while powering off
The dumps like system and resource dumps are stored in host memory and that will be lost during a power off, so the entries in BMC dump-manager for those dumps will be stale after a power off. This commit adds a service to call deleteAll to clear the entries for system and resource dumps during system power off.
Tests: 1 - Created a resource dump and system dump and activated the service Result: Both dump entries are cleared
2 - Created a resource dump and system dump powered off the system Result: Both dump entries are cleared
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I4e6a59ae852c86f5edbab767fb6a0ff2a4635289
show more ...
|