<feed xmlns='http://www.w3.org/2005/Atom'>
<title>phosphor-logging/test/openpower-pels/Makefile.include, branch master</title>
<subtitle>OpenBMC Phosphor logging library sources (not useful for felling trees)</subtitle>
<id>https://git.raptorcs.com/git/phosphor-logging/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/phosphor-logging/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/'/>
<updated>2020-02-14T19:15:42+00:00</updated>
<entry>
<title>PEL: Add ability to create event logs</title>
<updated>2020-02-14T19:15:42+00:00</updated>
<author>
<name>Matt Spinler</name>
<email>spinler@us.ibm.com</email>
</author>
<published>2019-12-18T19:48:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=f682b40dcde8badb7029a063e299e1bdf1501444'/>
<id>urn:sha1:f682b40dcde8badb7029a063e299e1bdf1501444</id>
<content type='text'>
There are cases where the PEL code wants to be able to create OpenBMC
event logs (and thus PELs) for problems it encounters when trying to
create or import other PELs.  For example, if the host were to send down
a malformed PEL, this code would like to create a new event log and
capture part of that bad PEL in the new PEL for debug purposes, as the
malformed PEL cannot be reported anywhere since it is malformed.

To handle this, create the EventLogger class that provides a log()
function that allows the PEL extension code to create OpenBMC event logs
(and thus PELs) from within.

The underlying function to do the event log creating is passed in via
the constructor so that it can be changed for testing.

The sd_event_add_defer function (wrapped by sdeventplus) is used to
dispatch the creation of a single event, so that the entry point is from
the event loop.  If there are still events left on the queue after that,
then they will be also be scheduled with sd_event_add_defer so that the
events are always created from event loop calls.

EventLogger does not allow events to be added to the queue if it is
being done from within the creation function so that the code can't
get stuck in a loop of creating a new event every time an event is
created.

Signed-off-by: Matt Spinler &lt;spinler@us.ibm.com&gt;
Change-Id: I6a9062074dc62cfb6043139ff0a9f3dfcd06c708
</content>
</entry>
<entry>
<title>PEL: Print Failing MTMS section into JSON</title>
<updated>2020-02-07T16:02:00+00:00</updated>
<author>
<name>Harisuddin Mohamed Isa</name>
<email>harisuddin@gmail.com</email>
</author>
<published>2020-02-06T09:32:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=e2d1bf317c0ddf25ddd305aa8f3c6f09118f799c'/>
<id>urn:sha1:e2d1bf317c0ddf25ddd305aa8f3c6f09118f799c</id>
<content type='text'>
Remove any trailing whitespace for serial number.

"Failing MTMS": {
    "Section Version":          "1",
    "Sub-section type":         "0",
    "Created by":               "0x4552",
    "Machine Type Model":       "OPWR-131",
    "Serial Number":            "1318ABA"
},

Testing: Manually run peltool and verified output. All unit tests
passed.
Signed-off-by: Harisuddin Mohamed Isa &lt;harisuddin@gmail.com&gt;
Change-Id: I7a05790bdf406ef6d7946ffae831a45ee6dd5cda
</content>
</entry>
<entry>
<title>PEL: Print SRC section into JSON</title>
<updated>2020-02-03T03:56:44+00:00</updated>
<author>
<name>Harisuddin Mohamed Isa</name>
<email>harisuddin@gmail.com</email>
</author>
<published>2020-01-15T12:05:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=0f717e1063154f0baec62f80e043d4d1c3317ce0'/>
<id>urn:sha1:0f717e1063154f0baec62f80e043d4d1c3317ce0</id>
<content type='text'>
For BMC created errors, look up the reason code in
the message registry for error description and also
meaning of data stored in hexwords 6-9 (if any).

Added registry message field in peltool list output.

"Primary SRC": {
    "Section Version":          "1",
    "Sub-section type":         "1",
    "Created by":               "0x1000",
    "SRC Version":              "0x02",
    "SRC Format":               "0x55",
    "Power Control Net Fault":  "False",
    "Error Details": {
        "Message":              "PS 0x64 had a PGOOD Fault",
        "PS_NUM":               "0x64"
    },
    "Valid Word Count":         "0x09",
    "Reference Code":           "BD8D1001",
    "Hex Word 2":               "00000055",
    "Hex Word 3":               "00000010",
    "Hex Word 4":               "00000000",
    "Hex Word 5":               "00000000",
    "Hex Word 6":               "00000064",
    "Hex Word 7":               "00000000",
    "Hex Word 8":               "00000000",
    "Hex Word 9":               "00000000"
}

"Primary SRC": {
    "Section Version":          "1",
    "Sub-section type":         "0",
    "Created by":               "0x4552",
    "SRC Version":              "0x02",
    "SRC Format":               "0x2008000",
    "Power Control Net Fault":  "False",
    "Valid Word Count":         "0x04",
    "Reference Code":           "B2001020",
    "Hex Word 2":               "02008000",
    "Hex Word 3":               "00000000",
    "Hex Word 4":               "00000012",
    "Callout Section": {
        "Callout Count":        "1",
        "Callouts": [{
            "FRU Type":         "Symbolic FRU",
            "Priority":         "Medium Priority",
            "Part Number":      "NEXTLVL"
        }]
    }
}

Testing: Manually run peltool and verified out. All unit tests passed.
Signed-off-by: Harisuddin Mohamed Isa &lt;harisuddin@gmail.com&gt;
Change-Id: I124627ba785413ebda02305b7d9f95431922e714
</content>
</entry>
<entry>
<title>PEL: Add PEL D-Bus methods</title>
<updated>2020-01-27T14:25:12+00:00</updated>
<author>
<name>Matt Spinler</name>
<email>spinler@us.ibm.com</email>
</author>
<published>2019-12-16T16:39:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=a34ab72c40382f98ff0d1badf909013ab3a458f5'/>
<id>urn:sha1:a34ab72c40382f98ff0d1badf909013ab3a458f5</id>
<content type='text'>
Implement the org.open_power.Logging.PEL D-Bus interface on
/xyz/openbmc_project/logging.

It provides the following methods:
* getPEL - Return a unix FD to the PEL data based on the PEL id.
* getPELFromOBMCID - Return PEL data in a vector based on the
                     corresponding OpenBMC event log id.
* hostAck - Called when the host has sent the PEL up to the OS,
            which is the final step in the reporting process.
* hostReject - Called when the host has an issue with a PEL, either:
  - The host doesn't have any more room for PELs at this moment.
  - The PEL was malformed.

Signed-off-by: Matt Spinler &lt;spinler@us.ibm.com&gt;
Change-Id: I633ae9e26d8336973363a1a207e8fd493f7ff7d2
</content>
</entry>
<entry>
<title>PEL: Fill in host command response handler</title>
<updated>2020-01-27T14:06:26+00:00</updated>
<author>
<name>Matt Spinler</name>
<email>spinler@us.ibm.com</email>
</author>
<published>2019-12-11T21:02:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=f869fcf81a23a8b80b110753d9c7ad8c2a3f60ae'/>
<id>urn:sha1:f869fcf81a23a8b80b110753d9c7ad8c2a3f60ae</id>
<content type='text'>
If notifying the host of a new PEL was successful, then it
will modify the PEL's host transmission state to 'sent' and
add it to the list of sent PELs.

If there was a failure, then a timer will be started so a
retry can be done.

Signed-off-by: Matt Spinler &lt;spinler@us.ibm.com&gt;
Change-Id: I77000c603a18726d4cdbb3920ca349e69198fb7f
</content>
</entry>
<entry>
<title>PEL: Add HostNotifier class</title>
<updated>2020-01-27T14:06:26+00:00</updated>
<author>
<name>Matt Spinler</name>
<email>spinler@us.ibm.com</email>
</author>
<published>2019-12-11T19:47:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=f60ac27e3ee4aa7166065db93a3fc0ae2d9481ac'/>
<id>urn:sha1:f60ac27e3ee4aa7166065db93a3fc0ae2d9481ac</id>
<content type='text'>
This class will watch for new PELs being created, and handle sending
them up to the host.  This first commit for this class mostly just fills
in the constructor to set up the various callbacks it will use.

It is only instantiated in the Manager class if the Manager constructor
used is the one that passes in the HostInterface object, to allow for
configurations that don't need PELs passed up.

Signed-off-by: Matt Spinler &lt;spinler@us.ibm.com&gt;
Change-Id: I0ddcf94d047979eb78209d396c2351566c634dbe
</content>
</entry>
<entry>
<title>PEL: Print action flags into JSON aligned</title>
<updated>2020-01-08T16:04:34+00:00</updated>
<author>
<name>Harisuddin Mohamed Isa</name>
<email>harisuddin@gmail.com</email>
</author>
<published>2019-12-20T04:42:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=600d15afba0c72ab4e7bf6769dccffffe08ca5aa'/>
<id>urn:sha1:600d15afba0c72ab4e7bf6769dccffffe08ca5aa</id>
<content type='text'>
"User Header": {
    "Section Version":          "1",
    "Sub-section type":         "0",
    "Log Committed by":         "0x4552",
    "Subsystem":                "System Hypervisor Firmware",
    "Event Scope":              "Entire Platform",
    "Event Severity":           "Informational Event",
    "Event Type":               "Miscellaneous, Informational Only",
    "Action Flags": [
                                "Report Externally"
    ]
}

Testing: Manually run peltool and verified output
Signed-off-by: Harisuddin Mohamed Isa &lt;harisuddin@gmail.com&gt;
Change-Id: Ie8376953b5f1baa093fc0aa9564d50cd4208564e
</content>
</entry>
<entry>
<title>PEL: Add ExtendedUserHeader section class</title>
<updated>2019-12-09T19:47:57+00:00</updated>
<author>
<name>Matt Spinler</name>
<email>spinler@us.ibm.com</email>
</author>
<published>2019-12-02T21:50:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=c63e2e82ba5b11114dfa1b5aa9ba8fb5bfa25382'/>
<id>urn:sha1:c63e2e82ba5b11114dfa1b5aa9ba8fb5bfa25382</id>
<content type='text'>
This is a required PEL section.

The section contains:
* The machine type/model/SN
* The server firmware version
* The BMC firmware version
* The 'Event Common Reference Time' (not used yet)
* The symptom ID (a unique event signature)

Signed-off-by: Matt Spinler &lt;spinler@us.ibm.com&gt;
Change-Id: I223041f85965195fccf69542dbe86ce856073b36
</content>
</entry>
<entry>
<title>PEL: Validate the Action Flags field</title>
<updated>2019-11-08T15:22:50+00:00</updated>
<author>
<name>Matt Spinler</name>
<email>spinler@us.ibm.com</email>
</author>
<published>2019-11-01T16:31:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=f1e85e20a1a6e97e27737b5883a8aa6a63c79b22'/>
<id>urn:sha1:f1e85e20a1a6e97e27737b5883a8aa6a63c79b22</id>
<content type='text'>
According to the PEL spec, the Action Flags and Event Type fields in the
User Header section must be in agreement with the Severity field. So,
when a PEL is being created from an OpenBMC event log, check those
values for correctness and fix them up if required.

In addition, as those fields are optional in the message registry, this
code will also just set these two fields to valid values if they were
left out.

The rules being followed are documented in the PEL readme.

Signed-off-by: Matt Spinler &lt;spinler@us.ibm.com&gt;
Change-Id: Iad88de5080ba79a9ff31f962ef99bfc11994b9ed
</content>
</entry>
<entry>
<title>PEL: PELTool Application</title>
<updated>2019-11-06T15:14:15+00:00</updated>
<author>
<name>Aatir</name>
<email>aatrapps@gmail.com</email>
</author>
<published>2019-10-20T20:13:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-logging/commit/?id=186ce8c9ffa266e34827eb75ae9c51f611c0ebd8'/>
<id>urn:sha1:186ce8c9ffa266e34827eb75ae9c51f611c0ebd8</id>
<content type='text'>
PELTooL application would be used to interact with PELs. This commit has
the first functionality, where a PEL file is passed and all PEL sections
are hexdumped in a JSON object.

Signed-off-by: Aatir &lt;aatrapps@gmail.com&gt;
Change-Id: I155d75bb58cbd14a297b094314f7fd1f271f4f37
</content>
</entry>
</feed>
