<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-skiboot/core/sensor.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-04-19T23:56:06+00:00</updated>
<entry>
<title>sensors: Dont add DTS sensors when OCC inband sensors are available</title>
<updated>2018-04-19T23:56:06+00:00</updated>
<author>
<name>Shilpasri G Bhat</name>
<email>shilpa.bhat@linux.vnet.ibm.com</email>
</author>
<published>2018-03-05T02:03:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=df62a033675da4d620731133c0cda1b320adeac8'/>
<id>urn:sha1:df62a033675da4d620731133c0cda1b320adeac8</id>
<content type='text'>
There are two sets of core temperature sensors today. One is DTS scom
based core temperature sensors and the second group is the sensors
provided by OCC. DTS is the highest temperature among the different
temperature zones in the core while OCC core temperature sensors are
the average temperature of the core. DTS sensors are read directly by
the host by SCOMing the DTS sensors while OCC sensors are read and
updated by OCC to main memory.

Reading DTS sensors by SCOMing is a heavy and slower operation as
compared to reading OCC sensors which is as good as reading memory.
So dont add DTS sensors when OCC sensors are available.

Signed-off-by: Shilpasri G Bhat &lt;shilpa.bhat@linux.vnet.ibm.com&gt;
Acked-by: Vaidyanathan Srinivasan &lt;svaidy@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.ibm.com&gt;
</content>
</entry>
<entry>
<title>sensor-groups: occ: Add support to disable/enable sensor group</title>
<updated>2018-02-21T02:28:08+00:00</updated>
<author>
<name>Shilpasri G Bhat</name>
<email>shilpa.bhat@linux.vnet.ibm.com</email>
</author>
<published>2017-12-22T05:04:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=99505c03f49312c5cc7d40a90728b048857a1078'/>
<id>urn:sha1:99505c03f49312c5cc7d40a90728b048857a1078</id>
<content type='text'>
This patch adds a new opal call to enable/disable a sensor group. This
call is used to select the sensor groups that needs to be copied to
main memory by OCC at runtime.

Signed-off-by: Shilpasri G Bhat &lt;shilpa.bhat@linux.vnet.ibm.com&gt;
[stewart: rebase and bump OPAL API number]
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>sensors: Support reading u64 sensor values</title>
<updated>2018-02-21T00:58:19+00:00</updated>
<author>
<name>Shilpasri G Bhat</name>
<email>shilpa.bhat@linux.vnet.ibm.com</email>
</author>
<published>2017-12-15T07:21:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=fa3494602a3e3effe9f222193453d67ccc0c0606'/>
<id>urn:sha1:fa3494602a3e3effe9f222193453d67ccc0c0606</id>
<content type='text'>
This patch adds support to read u64 sensor values. This also adds
changes to the core and the backend implementation code to make this
API as the base call. Host can use this new API to read sensors
upto 64bits.

This adds a list to store the pointer to the kernel u32 buffer, for
older kernels making async sensor u32 reads.

Signed-off-by: Shilpasri G Bhat &lt;shilpa.bhat@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>sensors: Fix dtc warning for dts sensors.</title>
<updated>2017-12-01T05:52:25+00:00</updated>
<author>
<name>Pridhiviraj Paidipeddi</name>
<email>ppaidipe@linux.vnet.ibm.com</email>
</author>
<published>2017-10-20T14:57:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=3e808354c311e40925bf53ed5ce9a872a5750141'/>
<id>urn:sha1:3e808354c311e40925bf53ed5ce9a872a5750141</id>
<content type='text'>
dtc complains about missing reg property when a DT node is having a
unit name or address but no reg property.

Example warning for core dts sensor:
/ibm,opal/sensors/core-temp@5c has a unit name, but no reg property
/ibm,opal/sensors/core-temp@804 has a unit name, but no reg property

This patch fixes this by adding necessary properties.

Signed-off-by: Pridhiviraj Paidipeddi &lt;ppaidipe@linux.vnet.ibm.com&gt;
[stewart: use handle as register rather than chip id]
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>sensors: dts: Assert special wakeup on idle cores while reading temperature</title>
<updated>2017-11-21T02:36:07+00:00</updated>
<author>
<name>Shilpasri G Bhat</name>
<email>shilpa.bhat@linux.vnet.ibm.com</email>
</author>
<published>2017-11-20T06:09:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=cbbd16bfbeef40b9f98d9d457fa024a23bfcc23e'/>
<id>urn:sha1:cbbd16bfbeef40b9f98d9d457fa024a23bfcc23e</id>
<content type='text'>
In P9, when a core enters a stop state, its clocks will be stopped
to save power and hence we will not be able to perform a scom
operation to read the DTS temperature sensor.  Hence, assert
a special wakeup on cores that have entered a stop state in order to
successfully complete the scom operation.

Signed-off-by: Shilpasri G Bhat &lt;shilpa.bhat@linux.vnet.ibm.com&gt;
[rlippert@google.com: Clear special wakeup only when it succeeds]
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>sensors: occ: Add support to clear sensor groups</title>
<updated>2017-07-28T04:53:19+00:00</updated>
<author>
<name>Shilpasri G Bhat</name>
<email>shilpa.bhat@linux.vnet.ibm.com</email>
</author>
<published>2017-07-27T19:15:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=5c2510d171cb0a0a7e34e659f2b7a2483decf7de'/>
<id>urn:sha1:5c2510d171cb0a0a7e34e659f2b7a2483decf7de</id>
<content type='text'>
Adds a generic API to clear sensor groups. OCC inband sensor groups
such as CSM, Profiler and Job Scheduler can be cleared using this API.
It will clear the min/max of all sensors belonging to OCC sensor
groups.

Signed-off-by: Shilpasri G Bhat &lt;shilpa.bhat@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>sensors: occ: Add support for OCC inband sensors</title>
<updated>2017-07-28T04:53:19+00:00</updated>
<author>
<name>Shilpasri G Bhat</name>
<email>shilpa.bhat@linux.vnet.ibm.com</email>
</author>
<published>2017-07-27T19:15:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=1ded56ceb6a1c0f6e37321cbb74f4104ebfcf3fa'/>
<id>urn:sha1:1ded56ceb6a1c0f6e37321cbb74f4104ebfcf3fa</id>
<content type='text'>
Add support to parse and export OCC inband sensors which are copied
by OCC to main memory in P9. Each OCC writes three buffers which
includes one names buffer for sensor meta data and two buffers for
sensor readings. While OCC writes to one buffer the sensor values
can be read from the other buffer. The sensors are updated every
100ms.

This patch adds power, temperature, current and voltage sensors to
/ibm,opal/sensors device-tree node which can be exported by the
ibmpowernv-hwmon driver in Linux.

Signed-off-by: Shilpasri G Bhat &lt;shilpa.bhat@linux.vnet.ibm.com&gt;
Reviewed-by: Cédric Le Goater &lt;clg@kaod.org&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>sensor: add a family field in the handler</title>
<updated>2016-12-08T02:03:23+00:00</updated>
<author>
<name>Cédric Le Goater</name>
<email>clg@kaod.org</email>
</author>
<published>2016-09-13T17:39:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=33fada1a6f4b1f5fcf131765f37fcb76c079bfb2'/>
<id>urn:sha1:33fada1a6f4b1f5fcf131765f37fcb76c079bfb2</id>
<content type='text'>
Currently, we are hijacking the last bit of the resource field of the
sensor handler to differentiate the sensor families and route the
opal_sensor_read() call to the appropriate component.

Let's reserve the last 3bits and provide an API to set the sensor
family for current use and future use. This gives us a maximum of 8
families and 32 resource classes. The FSP uses 15, so we should be
fine for a while.

Signed-off-by: Cédric Le Goater &lt;clg@kaod.org&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>sensor: add a compatible property</title>
<updated>2015-11-11T23:49:52+00:00</updated>
<author>
<name>Cédric Le Goater</name>
<email>clg@fr.ibm.com</email>
</author>
<published>2015-09-24T14:08:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=fff572c0bbad746c477d733fbde5280667d931f8'/>
<id>urn:sha1:fff572c0bbad746c477d733fbde5280667d931f8</id>
<content type='text'>
OPAL needs an extra compatible property "ibm,opal-sensor" to make
module autoload work smoothly in Linux for ibmpowernv driver.

Signed-off-by: Cédric Le Goater &lt;clg@fr.ibm.com&gt;
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>
</feed>
