<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-skiboot/core/timer.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-12-12T01:30:46+00:00</updated>
<entry>
<title>timer: Stop calling list_top() racily</title>
<updated>2017-12-12T01:30:46+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2017-12-06T17:36:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=b504f2737e9ba3b6935b4ea1c015b3643aefaf51'/>
<id>urn:sha1:b504f2737e9ba3b6935b4ea1c015b3643aefaf51</id>
<content type='text'>
This will trip the debug checks in debug builds under some circumstances
and is actually a rather bad idea as we might look at a timer that is
concurrently being removed and modified, and thus incorrectly assume
there is no work to do.

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>Convert important polling loops to spin at lowest SMT priority</title>
<updated>2017-06-06T10:49:06+00:00</updated>
<author>
<name>Nicholas Piggin</name>
<email>npiggin@gmail.com</email>
</author>
<published>2017-05-22T05:53:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=05b8834b5a4ff9bd14548594700d354bc4486c5c'/>
<id>urn:sha1:05b8834b5a4ff9bd14548594700d354bc4486c5c</id>
<content type='text'>
The pattern of calling cpu_relax() inside a polling loop does
not suit the powerpc SMT priority instructions. Prefrred is to
set a low priority then spin until break condition is reached,
then restore priority.

Signed-off-by: Nicholas Piggin &lt;npiggin@gmail.com&gt;
[stewart@linux.vnet.ibm.com: fixup lpc-uart wait_tx_room() and unit test]
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>list: Use list_empty_nocheck() when checking a list racily</title>
<updated>2016-08-18T06:04:26+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2016-07-23T23:26:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=4296082b02630ac56697fc81b13465b49db2d7b1'/>
<id>urn:sha1:4296082b02630ac56697fc81b13465b49db2d7b1</id>
<content type='text'>
Otherwise we might trigger an assertion when list debug is enabled

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>core/timer: Add support for platform specific heartbeat</title>
<updated>2016-07-22T07:09:52+00:00</updated>
<author>
<name>Chris Smart</name>
<email>chris@distroguy.com</email>
</author>
<published>2016-07-21T07:10:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=d9160de47755bf7d4aa6eebcd8a73b827671375b'/>
<id>urn:sha1:d9160de47755bf7d4aa6eebcd8a73b827671375b</id>
<content type='text'>
The timer code currently has a default and a special check for FSP
machines or those with SLW timer facility.

This patch adds support for platform quirk to set the timer.

Signed-off-by: Chris Smart &lt;chris@distroguy.com&gt;
Acked-by: Michael Neuling &lt;mikey@neuling.org&gt;
[stewart@linux.vnet.ibm.com: fix whitespace issue]
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>core/timer: Actually use default heartbeat value</title>
<updated>2016-07-22T07:08:54+00:00</updated>
<author>
<name>Chris Smart</name>
<email>chris@distroguy.com</email>
</author>
<published>2016-07-21T07:09:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=3f3326d6b3afdba8e0fa10525f7152b75e51b7ac'/>
<id>urn:sha1:3f3326d6b3afdba8e0fa10525f7152b75e51b7ac</id>
<content type='text'>
HEARTBEAT_DEFAULT_MS sets the default heartbeat timeout, however this
was not actually used as the default. The default was ten times quicker
than this (HEARTBEAT_DEFAULT_MS / 10) while HEARTBEAT_DEFAULT_MS was
actually used as a special case for FSP machines or those with SLW
timer facility.

This patch makes the default use HEARTBEAT_DEFAULT_MS and changes FSP
or machines with SLW timer facility run 10 times slower
(HEARTBEAT_DEFAULT_MS * 10). This will also now match the existing
in-line comment.

Signed-off-by: Chris Smart &lt;chris@distroguy.com&gt;
Acked-by: Michael Neuling &lt;mikey@neuling.org&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>slw/timer: SBE based timer support</title>
<updated>2015-09-11T06:42:17+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@au1.ibm.com</email>
</author>
<published>2015-09-10T00:09:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=9af5751a00faf9ad3fe4b52f56de9bd7835d9bb7'/>
<id>urn:sha1:9af5751a00faf9ad3fe4b52f56de9bd7835d9bb7</id>
<content type='text'>
Recent HostBoot &amp; SBE firmware provide a HW timer facility that can
be used to implement OPAL timers and thus limit the reliance on the
Linux heartbeat.

This implements support for it. The side effect is that i2c from Centaurs
is now usable.

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
[stewart@linux.vnet.ibm.com: fix run-timer unit test]
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>timer: Pass current timer to timer callbacks</title>
<updated>2015-09-11T06:32:37+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2015-09-10T00:08:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=b5f05ac337b3495cf506f5492fd053e90ae0bda3'/>
<id>urn:sha1:b5f05ac337b3495cf506f5492fd053e90ae0bda3</id>
<content type='text'>
The caller usually has it and it avoids additional mftb() which
can be expensive.

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
[stewart@linux.vnet.ibm.com: fix run-timer unit test]
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>Remove redundant includes of opal-api.h</title>
<updated>2015-04-01T01:16:39+00:00</updated>
<author>
<name>Michael Ellerman</name>
<email>mpe@ellerman.id.au</email>
</author>
<published>2015-03-31T10:53:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=e61506bcc11b887eb39c61a4657db75a1757c1f7'/>
<id>urn:sha1:e61506bcc11b887eb39c61a4657db75a1757c1f7</id>
<content type='text'>
Now that opal.h includes opal-api.h, there are a bunch of files that
include both but don't need to.

Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>Move skiboot internal things from opal.h to opal-api.h</title>
<updated>2015-02-06T02:11:25+00:00</updated>
<author>
<name>Stewart Smith</name>
<email>stewart@linux.vnet.ibm.com</email>
</author>
<published>2015-02-06T02:11:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=d195fd680eac1044681fd265edfbf342888f4a93'/>
<id>urn:sha1:d195fd680eac1044681fd265edfbf342888f4a93</id>
<content type='text'>
This is probably not the best collection of things in the world,
but it means that opal.h is much closer to being directly usable
by an OS.

This triggers a bunch of #include fixes throughout the tree.

Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>timer: Change property name "ibm,heartbeat-freq" -&gt; "ibm,heartbeat-ms"</title>
<updated>2014-11-14T05:07:26+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2014-11-14T04:52:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=f70a248f0bf8a77c988d5ba64a1b3cbd11ef3de7'/>
<id>urn:sha1:f70a248f0bf8a77c988d5ba64a1b3cbd11ef3de7</id>
<content type='text'>
Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
</feed>
