#
99991367 |
| 05-Aug-2024 |
Sagar Srinivas <sagar.srinivas@ibm.com> |
softpoweroff: Correcting PEL log creation
Correct the PEL log creation as per the PEL message registry when we hit the timeout waiting for host to respond.
Signed-off-by: Sagar Srinivas <sagar.srin
softpoweroff: Correcting PEL log creation
Correct the PEL log creation as per the PEL message registry when we hit the timeout waiting for host to respond.
Signed-off-by: Sagar Srinivas <sagar.srinivas@ibm.com> Change-Id: I51909309f6a107078455f6e6993278c7fbcaafcd
show more ...
|
#
087a751f |
| 06-Apr-2024 |
Riya Dixit <riyadixitagra@gmail.com> |
pldmd, requester, softoff & utilities: 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
pldmd, requester, softoff & utilities: 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: I230e9e1404db8c92c81e2f872183d691c91ff16c Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
show more ...
|
#
92fb0b55 |
| 17-Apr-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Revert "Adding severity when reporting an error"
This reverts commit d28f08cf0238435ac92184fabaafd9c76bff62cf.
Reason for revert : Pel severity is completely openpower-specific , we should not poll
Revert "Adding severity when reporting an error"
This reverts commit d28f08cf0238435ac92184fabaafd9c76bff62cf.
Reason for revert : Pel severity is completely openpower-specific , we should not polluting common code with IBM specific things, hence reverting this change for now.
Change-Id: If11721b1522097460ba07d51335b7ebbe821311a Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
#
d28f08cf |
| 15-Dec-2021 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Adding severity when reporting an error
Severity is part of the PEL User Header section, and is used to specify the PEL severity. This commit adds an option to pass severity parameter while logging
Adding severity when reporting an error
Severity is part of the PEL User Header section, and is used to specify the PEL severity. This commit adds an option to pass severity parameter while logging PEL. This will help to classify PELs based on their severity. The commit also maintains uniformity in the PEL Error logged.
Tested: By creating the error logs(pel) in error scenarios.
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com> Change-Id: Ic084d49b8ffe9aaea2c36c9fefa95a10a9c1c3ec
show more ...
|
#
3fcfaa12 |
| 26-Feb-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Fix softoff crash due to double free corruption
In its present condition, the instance database gets initialized within the hostSoftOff function. Consequently, once the function execution is complet
Fix softoff crash due to double free corruption
In its present condition, the instance database gets initialized within the hostSoftOff function. Consequently, once the function execution is complete, the database goes out of scope, triggering the invocation of the instanceDb destructor. This, in turn, prematurely destroys the instance database in the middle of the softpoweroff flow, resulting in a double free corruption.
Tested: After implementing the fix, softoff was tested to ensure it does not crash.
Change-Id: I251201b06864a8a5273bfaa23468a06ad678763a Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
#
cbe68b2d |
| 23-Feb-2024 |
Sagar Srinivas <sagar.srinivas@ibm.com> |
Remove iostream references
With the adoption of LG2 we do not need iostream prints to the journal. The library was referred but never used in these cases.
Signed-off-by: Sagar Srinivas <sagar.srini
Remove iostream references
With the adoption of LG2 we do not need iostream prints to the journal. The library was referred but never used in these cases.
Signed-off-by: Sagar Srinivas <sagar.srinivas@ibm.com> Change-Id: I11d3f00284e4f16b63cddb8da2fed14d59672ba1
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 ...
|
#
184f6026 |
| 16-Apr-2020 |
Chicago Duan <duanzhijia01@inspur.com> |
soft-off: Send soft off request to the host and wait the host soft off responds
The pldm-softpoweroff application will send a set state effecter states request to host, then the host will soft off.
soft-off: Send soft off request to the host and wait the host soft off responds
The pldm-softpoweroff application will send a set state effecter states request to host, then the host will soft off.
The pldm-softpoweroff need two timers. One of the timer is used to wait the response of the pldm soft off request message(default 30s). Another timer is used to wait the host graceful shutdown complete(default 7200s).If the host response is not received within the timeout then log an error and exit the application.
The pldm-softpowerroff application need Subscribe to the xyz.openbmc_project.PLDM.Event StateSensorEvent signal,When the host soft off is complete, it sends a pldm event Msg to BMC.After pldmd receive this event Msg ,it will emit the StateSensorEvent signal.When the pldm-softpowerroff receive the signal,it will stop the timer and exit.
Tested in fp5280g2 system: 1、If the host state is not "Running", this application will exit with success(0). 2、If no ACK of the soft off request is received within 30 seconds, this application will exit with error(-1). 3、If no pldm event Msg(host gracefully shutdown complete) is received within 7200 seconds, this application will record an error log and exit with error(-1). 4、If the pldm event Msg(host gracefully shutdown complete) is received within 7200 seconds, this application will exit with success(0).
Signed-off-by: Chicago Duan <duanzhijia01@inspur.com> Change-Id: I486d8068d013766329f78685acc0508fc3cb6c95
show more ...
|
#
4c1a3fda |
| 09-Mar-2020 |
George Liu <liuxiwei@inspur.com> |
soft-off: Add pldm host soft off requester application.
Since the phosphor-softpoweroff is too tied up to IPMI, we need to implement a new pldm host soft off requester application in parallel in the
soft-off: Add pldm host soft off requester application.
Since the phosphor-softpoweroff is too tied up to IPMI, we need to implement a new pldm host soft off requester application in parallel in the pldm repo.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I47534bb25c976a0004a1cd9f07d7590e605ce243 Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
show more ...
|