History log of /openbmc/openpower-proc-control/procedures/phal/reinit_devtree.cpp (Results 1 – 8 of 8)
Revision Date Author Comments
# 1e43be06 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: I299e3888aee418ddcf391a44cd9ba563edabfe83
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 773fd244 13-Sep-2023 Jayanth Othayoth <ojayanth@in.ibm.com>

phal: fix ignoring attributes warning

This to fix the below compilation warnings with latest
yocto rebase .

einit_devtree.cpp:28:62: error: ignoring attributes
on template argument 'int (*)(FILE*

phal: fix ignoring attributes warning

This to fix the below compilation warnings with latest
yocto rebase .

einit_devtree.cpp:28:62: error: ignoring attributes
on template argument 'int (*)(FILE*)'
[-Werror=ignored-attributes]
| 28 | using FILE_Ptr =
std::unique_ptr<FILE, decltype(&std::fclose)>;

Change-Id: I12e0f4034eea80d19c0f1236102ab0bafd42432e
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>

show more ...


# e0dd7af4 13-Sep-2023 Jayanth Othayoth <ojayanth@in.ibm.com>

switch fmt::format to use std::format

fmt::format is supported in the c++ std. This will
help to remove fmt package dependency.

Change-Id: Ia3f5c607a348f062a0f112d5eae8b51ecc23fd37
Signed-off-by: J

switch fmt::format to use std::format

fmt::format is supported in the c++ std. This will
help to remove fmt package dependency.

Change-Id: Ia3f5c607a348f062a0f112d5eae8b51ecc23fd37
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>

show more ...


# 00dd33ef 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: I66785e0aa71a93f9370db0168049cd62c1f69728
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 4d5b5bfe 23-May-2022 Marri Devender Rao <devenrao@in.ibm.com>

PHAL: Log Informational error for PEL created during poweroff

1)Log informational PELS in case system state is transitioning to
power-off for IPL procedures/hardware access failures

2) Don't add ca

PHAL: Log Informational error for PEL created during poweroff

1)Log informational PELS in case system state is transitioning to
power-off for IPL procedures/hardware access failures

2) Don't add callouts to PEL's created during transition to
power-off as the CEC will not be in expected state.

Tested: transition to poweroff
root@xxxbmc:/usr# peltool -lfh
{
"0x50003BEB": {
"SRC": "BD503001",
"Message": "Failure occurred during boot process",
"PLID": "0x50003BEB",
"CreatorID": "BMC",
"Subsystem": "CEC Hardware",
"Commit Time": "05/23/2022 13:57:53",
"Sev": "Informational Event",
"CompID": "0x3000"
}
}

root@xxxbmc:~# peltool -i 0x50003be0
{
"Private Header": {
"Section Version": "1",
"Sub-section type": "0",
"Created by": "0x3000",
"Created at": "05/23/2022 13:48:12",
"Committed at": "05/23/2022 13:48:12",
"Creator Subsystem": "BMC",
"CSSVER": "",
"Platform Log Id": "0x50003BE0",
"Entry Id": "0x50003BE0",
"BMC Event Log Id": "510"
},
"User Header": {
"Section Version": "1",
"Sub-section type": "0",
"Log Committed by": "0x2000",
"Subsystem": "CEC Hardware",
"Event Scope": "Entire Platform",
"Event Severity": "Informational Event",
"Event Type": "Miscellaneous, Informational Only",
"Action Flags": [
"Event not customer viewable",
"Report Externally"
],
"Host Transmission": "Not Sent",
"HMC Transmission": "Not Sent"
},

.
.
.
Tested: transition to running
root@ever8bmc:/tmp# peltool -i 0x50003CF9
{
"Private Header": {
"Section Version": "1",
"Sub-section type": "0",
"Created by": "0x3000",
},
"User Header": {
"Section Version": "1",
"Sub-section type": "0",
"Log Committed by": "0x2000",
"Subsystem": "CEC Hardware",
"Event Scope": "Entire Platform",
"Event Severity": "Unrecoverable Error",
},

"User Data 0": {
"Created by": "0x2000",
"BMCState": "Ready",
"BootState": "Unspecified",
"ChassisState": "On",
"FW Version ID": "fw1020.00-57.7-2-gd86188a773",
"HostState": "TransitioningToRunning",
"Process Name": "/usr/bin/openpower-proc-control",
"System IM": "50003000"
},

Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Change-Id: I078d5cba2e0fb705bf424d2f8f3010f2cd2063bb

show more ...


# 90166c15 07-Jan-2022 Marri Devender Rao <devenrao@in.ibm.com>

PHAL: Compute RO device tree file path from RW device tree symbolic link

Example:
RW file = /media/hostfw/running/DEVTREE -> 81e00672.lid
RO file = /media/hostfw/running-ro/ + 81e00672.lid

Compute

PHAL: Compute RO device tree file path from RW device tree symbolic link

Example:
RW file = /media/hostfw/running/DEVTREE -> 81e00672.lid
RO file = /media/hostfw/running-ro/ + 81e00672.lid

Compute the lid name by reading the RW symbolic link and use
it to comptue RO file.

Symbolic links cannot be created to RO files so using this approach

Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Change-Id: I46101b8e246267c861edb5eae1ac24420cfc3c6d

show more ...


# 5409e877 03-Dec-2021 Jayanth Othayoth <ojayanth@in.ibm.com>

PHAL: devtree file based attribute override support

This commits enables the file based devtree attribute override
attributes tool enabled feature to export attribute to override
file during "attrib

PHAL: devtree file based attribute override support

This commits enables the file based devtree attribute override
attributes tool enabled feature to export attribute to override
file during "attributes write" command.
During devtree re-initiaization service execution, enabled
to import attribute override file based data to the devtree.

User can also manually create attribute override file by creating
cronus attribute override format file.
Example:
target = k0
ATTR_FREQ_PAU_MHZ u32 0x000008ca

Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I21335c0c81249f4d60b235ea204d0e90420fd29c

show more ...


# 94fc70cb 25-Nov-2021 Jayanth Othayoth <ojayanth@in.ibm.com>

PHAL: reinitialize the devtree attributes

In the regular host boot path devtree attribute need to
initialize the default data and also some of the selected
attributes need to preserve with previous

PHAL: reinitialize the devtree attributes

In the regular host boot path devtree attribute need to
initialize the default data and also some of the selected
attributes need to preserve with previous boot value.
Preserve attribute list is available BMC pre-defined location.
This function helps to meet the host ipl requirement
related to attribute persistency management for host ipl.

Steps involved
1. create attribute data file from devtree r/w version based on
the attribute list file installed in bmc.
2. create temporary copy of r/w version devtree for attributes
updates and initialise with r/o DEVTREE version
to default data.
3. apply step-1 attribute file on top of the temporary
copy file.
4. Incase any failure from step 1 to 3 log an error and
update r/w version with r/o version ( genesis boot).
5. Update DEVTREE r/w version with temporary version file.

Also added devtree libs part of the pdata repository to
export/import attributes devtree.

Tested: verified the devtree attribute values.

Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I20c17ba3013a0b4b01f9f8e0d4462c91489308e8

show more ...