<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-skiboot/core/errorlog.c, branch master</title>
<subtitle>Talos™ II skiboot sources</subtitle>
<id>https://git.raptorcs.com/git/talos-skiboot/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-skiboot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/'/>
<updated>2017-05-10T04:32:17+00:00</updated>
<entry>
<title>FSP: Notify FSP of Platform Log ID after Host Initiated Reset Reload</title>
<updated>2017-05-10T04:32:17+00:00</updated>
<author>
<name>Stewart Smith</name>
<email>stewart@linux.vnet.ibm.com</email>
</author>
<published>2017-05-05T05:55:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=f3a5741408a11be6992cf8779f2eae10b08c020a'/>
<id>urn:sha1:f3a5741408a11be6992cf8779f2eae10b08c020a</id>
<content type='text'>
Trigging a Host Initiated Reset (when the host detects the FSP has gone
out to lunch and should be rebooted), would cause "Unknown Command" messages
to appear in the OPAL log.

This patch implements those messages

How to trigger FSP RR(HIR):

$ putmemproc 300000f8 0x00000000deadbeef
s1	k0:n0:s0:p00
ecmd_ppc putmemproc 300000f8 0x00000000deadbeef

Log showing unknown command:
/ # cat /sys/firmware/opal/msglog | grep -i ,3
[  110.232114723,3] FSP: fsp_trigger_reset() entry
[  188.431793837,3] FSP #0: Link down, starting R&amp;R
[  464.109239162,3] FSP #0: Got XUP with no pending message !
[  466.340598554,3] FSP-DPO: Unknown command 0xce0900
[  466.340600126,3] FSP: Unhandled message ce0900

The message we need to handle is "Get PLID after host initiated FipS
reset/reload". When the FSP comes back from HIR, it asks "hey, so, which
error log explains why you rebooted me?". So, we tell it.

Reported-by: Pridhiviraj Paidipeddi &lt;ppaidipe@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>errorlog : Modification as per coding guidelines to make the code more legible</title>
<updated>2016-10-25T09:10:57+00:00</updated>
<author>
<name>Mukesh Ojha</name>
<email>mukesh02@linux.vnet.ibm.com</email>
</author>
<published>2016-09-07T10:21:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=a125d242fa2e4b614ce4ac1085fb17ab075b180f'/>
<id>urn:sha1:a125d242fa2e4b614ce4ac1085fb17ab075b180f</id>
<content type='text'>
Some modifications related to typo errors, alignment, case letter mismatch to add
more clarity to the code.

Signed-off-by: Mukesh Ojha &lt;mukesh02@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>opal/errorlog :Removes the two times inclusion of header file errorlog.h from errorlog.c</title>
<updated>2016-03-31T21:11:09+00:00</updated>
<author>
<name>Mukesh Ojha</name>
<email>mukesh02@linux.vnet.ibm.com</email>
</author>
<published>2016-03-31T10:25:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=c15569edbcfb83d2f1b50ed3442ffa7fee71807d'/>
<id>urn:sha1:c15569edbcfb83d2f1b50ed3442ffa7fee71807d</id>
<content type='text'>
Removes two times inclusion of the same header file errorlog.h inside
errorlog.c

Signed-off-by: Mukesh Ojha &lt;mukesh02@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>errorlog: Simplify log calling convention</title>
<updated>2015-07-31T05:32:42+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam.mj@au1.ibm.com</email>
</author>
<published>2015-07-28T04:31:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=56b7f5113e3469620c5a1f8994550c5d72f571a8'/>
<id>urn:sha1:56b7f5113e3469620c5a1f8994550c5d72f571a8</id>
<content type='text'>
Remove the callback functionality from log_error() and replace it with
the ability to append to a user data section, or add addtional user
data sections to an error log.

For multiline or otherwise complex logging the convention is now to call
opal_elog_create() to obtain a errorlog buffer and use log_append_msg()
and log_append_data() to append to the user data section. Additional
user data sections can be added to the error log via log_add_section().
The caller is then responsible for calling log_commit().

For simple logs log_simple_error() takes care of creating and committing
the error log as before.

Signed-off-by: Samuel Mendoza-Jonas &lt;sam.mj@au1.ibm.com&gt;
Reviewed-by: Vasant Hegde &lt;hegdevasant@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>elog: Don't call uninitialized platform elog_commit</title>
<updated>2015-03-31T04:41:26+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2015-03-27T02:49:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=f35cbce965991f04ad253bd83989c259b375a745'/>
<id>urn:sha1:f35cbce965991f04ad253bd83989c259b375a745</id>
<content type='text'>
Some platforms fail to initialize it and bad things ensure

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Acked-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>elog: Clean up error logging headers</title>
<updated>2014-12-02T07:54:47+00:00</updated>
<author>
<name>Alistair Popple</name>
<email>alistair@popple.id.au</email>
</author>
<published>2014-11-13T06:16:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=28a178751b4195e546e0e8d429f988793c18f848'/>
<id>urn:sha1:28a178751b4195e546e0e8d429f988793c18f848</id>
<content type='text'>
Commit cf6f4e8912d29fb89ce85c84834607065ad595a5 introduced a platform
independent frontend for error logging. However it failed to move the
generic parts of the fsp-elog.h header into the platform independent
one, instead relying on the fact that up until now fsp-elog.h was
included whenever a function needed to log errors.

This patch moves the platform independent defines into the frontend
header file (errorlog.h) and removes the include of the platform
specific header in generic code paths.

Signed-off-by: Alistair Popple &lt;alistair@popple.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>fsp/elog: Make the logging backend platform specific</title>
<updated>2014-10-22T07:00:19+00:00</updated>
<author>
<name>Alistair Popple</name>
<email>alistair@popple.id.au</email>
</author>
<published>2014-10-20T00:42:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=f84066fdeedffaac8a9113a4be1d8e17327eba64'/>
<id>urn:sha1:f84066fdeedffaac8a9113a4be1d8e17327eba64</id>
<content type='text'>
OpenPOWER boxes don't have an FSP and therefore implement their own
method for passing log messages to a support processor. This patch
makes the logging method platform specific.

Signed-off-by: Alistair Popple &lt;alistair@popple.id.au&gt;
Reviewed-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>fsp/elog: Create a logging frontend</title>
<updated>2014-10-22T07:00:10+00:00</updated>
<author>
<name>Alistair Popple</name>
<email>alistair@popple.id.au</email>
</author>
<published>2014-10-20T00:42:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=cf6f4e8912d29fb89ce85c84834607065ad595a5'/>
<id>urn:sha1:cf6f4e8912d29fb89ce85c84834607065ad595a5</id>
<content type='text'>
In order to support fsp-less machines we need to be able to log errors
using a BMC or some other mechanism. Currently the error logging code
is tightly coupled to the platform making it difficult to add
different platforms.

This patch factors out the generic parts of the error logging code in
preparation for adding different logging backends. It also adds a
generic mechanism for pre-allocating a specific number of objects.

Signed-off-by: Alistair Popple &lt;alistair@popple.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
</feed>
