<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-skiboot/core/utils.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>2018-02-09T00:21:42+00:00</updated>
<entry>
<title>core/utils: add snprintf_symbol</title>
<updated>2018-02-09T00:21:42+00:00</updated>
<author>
<name>Nicholas Piggin</name>
<email>npiggin@gmail.com</email>
</author>
<published>2018-02-02T05:34:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=3a7422851bc345971773c4d22881199b7911da33'/>
<id>urn:sha1:3a7422851bc345971773c4d22881199b7911da33</id>
<content type='text'>
get_symbol is difficult to use. Add snprintf_symbol helper which
prints a symbol into a buffer with length, and returns the number
of bytes used, similarly to snprintf. Use this in the stack dumping
code rather than open-coding it.

Signed-off-by: Nicholas Piggin &lt;npiggin@gmail.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>Add support for new gcc 7 parametrized stack protector</title>
<updated>2017-12-21T04:15:36+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2017-12-20T02:16:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=c7f2fab5c7854b11da909e79dd6c835d6ab91754'/>
<id>urn:sha1:c7f2fab5c7854b11da909e79dd6c835d6ab91754</id>
<content type='text'>
This gives us per-cpu guard values as well. For now I just
xor a magic constant with the CPU PIR value.

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>Add fwts annotations for critical errors</title>
<updated>2016-06-20T07:18:42+00:00</updated>
<author>
<name>Stewart Smith</name>
<email>stewart@linux.vnet.ibm.com</email>
</author>
<published>2016-06-20T07:18:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=be430d881285f72df6dd932c06811d62463dfe88'/>
<id>urn:sha1:be430d881285f72df6dd932c06811d62463dfe88</id>
<content type='text'>
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>Fix two sparse warnings on __stack_chk_guard</title>
<updated>2015-11-09T06:35:07+00:00</updated>
<author>
<name>Stewart Smith</name>
<email>stewart@linux.vnet.ibm.com</email>
</author>
<published>2015-11-09T06:35:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=ee4481c03173f444dc94af0dc997439454448d9c'/>
<id>urn:sha1:ee4481c03173f444dc94af0dc997439454448d9c</id>
<content type='text'>
core/utils.c:25:35: warning: constant 0xdeadf00dbaad300d is so big it is unsigned long
core/utils.c:25:15: warning: symbol '__stack_chk_guard' was not declared. Should it be static?

Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>platform: Add platform hook for terminate call</title>
<updated>2015-09-09T05:44:15+00:00</updated>
<author>
<name>Vasant Hegde</name>
<email>hegdevasant@linux.vnet.ibm.com</email>
</author>
<published>2015-09-04T11:25:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=a770f3385aed10db07dc78698423b5cdcb48a651'/>
<id>urn:sha1:a770f3385aed10db07dc78698423b5cdcb48a651</id>
<content type='text'>
Current abort() call works fine on FSP based system. We need different
mechanism on BMC based machine. Hence introduce platform hook for
terminate call.

Signed-off-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>Move FSP specific abort() code to platform layer</title>
<updated>2015-09-09T05:43:50+00:00</updated>
<author>
<name>Vasant Hegde</name>
<email>hegdevasant@linux.vnet.ibm.com</email>
</author>
<published>2015-09-04T11:25:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=a1db4ec5b9741eaf237481aff92ef2afa61bda48'/>
<id>urn:sha1:a1db4ec5b9741eaf237481aff92ef2afa61bda48</id>
<content type='text'>
Presently abort() call sets up HID0, triggers attention and finally
calls infinite for loop. FSP takes care of collecting required logs
and reboots the system. This sequence is specific to FSP machine
and it will not work on BMC based machine. Hence move FSP specific
code to hw/fsp/fsp-attn.c.

Note that this patch adds new parameter to abort call. Hence replaced
_abort() by abort() in exception.c so that we can capture file info
as well.

Signed-off-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>Disable bust_locks for general calls of abort()</title>
<updated>2015-07-06T04:05:46+00:00</updated>
<author>
<name>Alistair Popple</name>
<email>alistair@popple.id.au</email>
</author>
<published>2015-06-12T07:18:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=f5b38a25712ab74e6f8fcdaa088aaeead9655a71'/>
<id>urn:sha1:f5b38a25712ab74e6f8fcdaa088aaeead9655a71</id>
<content type='text'>
Currently bust_locks is set to true whenever abort() is called. This
was done for the lock debugging code which calls abort() as its last
step. If there is a locking error there is a good chance parts of the
console code will be deadlocked (for example if it has a lock on the
scom bus).

However busting locks can cause problems, especially now that flash
data is being read in parallel as this uses the LPC bus. Instead of
getting a nice error message showing where the code aborted it is
likely the message will go missing, or it will be garbled by the flash
data. So instead of always busting locks make it so they're only
busted if they're suspected of being broken.

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>Make abort() update sp attn area (like assert does)</title>
<updated>2015-02-11T01:17:21+00:00</updated>
<author>
<name>Stewart Smith</name>
<email>stewart@linux.vnet.ibm.com</email>
</author>
<published>2015-02-11T01:17:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=cbf0e24e6734ceb52bbefdb02fb9f35f180dad11'/>
<id>urn:sha1:cbf0e24e6734ceb52bbefdb02fb9f35f180dad11</id>
<content type='text'>
Gives better diagnostics in error logs/dumps

Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>Add symbolic backtraces and expose skiboot map to Linux</title>
<updated>2014-11-18T08:33:51+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2014-11-18T08:33:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=c38c2e8d08e03e905b72334747a9f8795f3526c2'/>
<id>urn:sha1:c38c2e8d08e03e905b72334747a9f8795f3526c2</id>
<content type='text'>
We use a double link technique, doing a first pass with a .o containing
a dummy symbol map, then re-linking with a new .o

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>Rename backtrace.c to stack.c and move stack related bits</title>
<updated>2014-11-18T03:43:47+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2014-11-18T03:43:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=20410452b956edaf7790803d441768fbf707b36c'/>
<id>urn:sha1:20410452b956edaf7790803d441768fbf707b36c</id>
<content type='text'>
 ... from util.c to stack.c

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
</feed>
