<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/drivers/hwmon/occ, branch dev-4.10</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-4.10</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-4.10'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2018-01-16T17:54:30+00:00</updated>
<entry>
<title>hwmon (occ): Fix integer overflow in multiplication</title>
<updated>2018-01-16T17:54:30+00:00</updated>
<author>
<name>Eddie James</name>
<email>eajames@linux.vnet.ibm.com</email>
</author>
<published>2017-12-19T19:56:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=4a2c3dea18a9adabe189e2afc89d0324f85331f9'/>
<id>urn:sha1:4a2c3dea18a9adabe189e2afc89d0324f85331f9</id>
<content type='text'>
Power values were overflowing INT_MAX when being converted to
microwatts, even though the storage was sufficiently large (unsigned 64
bit). Change literals to unsigned long long. Also change tmep storage to u32
to avoid overflows at 65000 millidegrees.

OpenBMC-Staging-Count: 1
Signed-off-by: Edward A. James &lt;eajames@us.ibm.com&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>drivers (hwmon): occ: Fix memory allocation for extended sensors</title>
<updated>2017-10-26T21:16:46+00:00</updated>
<author>
<name>Edward A. James</name>
<email>eajames@us.ibm.com</email>
</author>
<published>2017-10-26T20:15:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=5806148a26fdea2a972d70d0c35fbf7cae000250'/>
<id>urn:sha1:5806148a26fdea2a972d70d0c35fbf7cae000250</id>
<content type='text'>
If extended sensors are present, the driver is doing bad memory access
since we weren't allocating enough memory for the extended sensors. Fix
this with proper allocation for extended sensor attributes.

OpenBMC-Staging-Count: 1
Signed-off-by: Edward A. James &lt;eajames@us.ibm.com&gt;
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>drivers: hwmon: occ: Add sysfs_notify to throttling attributes</title>
<updated>2017-10-17T11:04:14+00:00</updated>
<author>
<name>Edward A. James</name>
<email>eajames@us.ibm.com</email>
</author>
<published>2017-10-16T16:29:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=ff506c222d3dd3edc7b42bc4707e5de0ca6e73e9'/>
<id>urn:sha1:ff506c222d3dd3edc7b42bc4707e5de0ca6e73e9</id>
<content type='text'>
Need to alert user space when we change throttling state.

OpenBMC-Staging-Count: 1
Signed-off-by: Edward A. James &lt;eajames@us.ibm.com&gt;
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>drivers: hwmon: occ: Add occs_present attribute</title>
<updated>2017-10-17T11:02:57+00:00</updated>
<author>
<name>Edward A. James</name>
<email>eajames@us.ibm.com</email>
</author>
<published>2017-10-16T16:29:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=27208152611df5a269ca390d85492cb5f201258a'/>
<id>urn:sha1:27208152611df5a269ca390d85492cb5f201258a</id>
<content type='text'>
Remove the error on detecting occs_present mismatch. Add a new sysfs
entry for occs_present field. Add sysfs_notify for this field, if it
changes.

Two reasons for this change:
1) Userspace app was having trouble handling this error code, since if you
bind the master OCC device first, you'll immediately get an error that we
haven't bound the same number of OCCs as the OCC reports are available.

2) This error checking for "number of OCC devices bound" isn't designed well
anyway, and makes more sense in userspace. The original intent was to implement
all of the OCC requirements in the driver, but we have an application running
on top that can pick up the slack, as it were.

OpenBMC-Staging-Count: 1
Signed-off-by: Edward A. James &lt;eajames@us.ibm.com&gt;
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>drivers: hwmon: occ: Cancel occ operations in remove()</title>
<updated>2017-10-10T04:59:30+00:00</updated>
<author>
<name>Edward A. James</name>
<email>eajames@us.ibm.com</email>
</author>
<published>2017-10-06T14:29:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=97988a39b46d73304a5697b8d3a5cf08da287350'/>
<id>urn:sha1:97988a39b46d73304a5697b8d3a5cf08da287350</id>
<content type='text'>
Prevent hanging forever waiting for OCC ops to complete.

OpenBMC-Staging-Count: 1
Signed-off-by: Edward A. James &lt;eajames@us.ibm.com&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>hwmon: (occ) Remove repeated ops for OCC command in progress</title>
<updated>2017-10-10T04:59:27+00:00</updated>
<author>
<name>Edward A. James</name>
<email>eajames@us.ibm.com</email>
</author>
<published>2017-10-06T02:05:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=314959281480c9e05527276f3b329ea8bf07817b'/>
<id>urn:sha1:314959281480c9e05527276f3b329ea8bf07817b</id>
<content type='text'>
This is now handled in the occ driver.

OpenBMC-Staging-Count: 1
Signed-off-by: Edward A. James &lt;eajames@us.ibm.com&gt;
Reviewed-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>Revert "drivers/hwmon/occ: Add temperature fault attribute and VRM temp alarm"</title>
<updated>2017-10-05T03:48:36+00:00</updated>
<author>
<name>Edward A. James</name>
<email>eajames@us.ibm.com</email>
</author>
<published>2017-10-03T19:14:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=9f582983ddfd88ce2d90b7f6b0ca0a828be18149'/>
<id>urn:sha1:9f582983ddfd88ce2d90b7f6b0ca0a828be18149</id>
<content type='text'>
This reverts commit e55423ee10a5057338d24383c00e813436a126ea.

Apologies for pushing this up so early... Userspace applications aren't
ready for this change. The hwmon polling application cannot accept EGAIN
yet, and we can't be returning apparent errors if the sensor is
temporarily unavailable.

Brad Bishop &lt;bradleyb@fuzziesquirrel.com&gt; wrote:
&gt; userspace retries for a configurable period on eio, etimedout,
&gt; ebadmsg, eagain, and exnio.  It also exits cleanly on enoent.
&gt;
&gt; If any of these errnos don’t go away after the configured number of retry
&gt; attempts, an error is logged.  Any other errnos and an error is logged
&gt; immediately. If this list needs improvement I’d love to hear about it.
&gt;
&gt; ebadmsg and enxio are observed when i2c devices are unplugged with transfers
&gt; in various stages of flight.  They occur just before the driver is unbound
&gt; after the presence gpio toggle on these devices is noticed and processed
&gt; (killing the hwmon userspace daemon cleanly).
&gt;
&gt; eio, etimedout seem to be bus type errors that appear somewhat infrequently,
&gt; but occur nevertheless.
&gt;
&gt; we all know what eagain means...
&gt;
&gt; It isn’t so much that the hwmon userspace doesn’t support this change,
&gt; its just the resulting behavior difference at the other end of the
&gt; hwmon abi &lt;-&gt; dbus api translation is not optimal, right now.
&gt;
&gt; 1 - Without this change, the hwmon userspace reads a value of 0 out of
&gt; the sysfs attribute and happily reports that as the temp at the DBus level.
&gt;
&gt; With this change, the hwmon userspace would read the attribute, get an
&gt; error and retry for a bit.  After a number of retries, the error is
&gt; logged and the sensor is marked faulted at a dbus level.
&gt;
&gt; The issue is the consumer of the sensor at the dbus level.  Today, the
&gt; dbus consumer happens to translate the sensor value of zero into the
&gt; desired behavior.  If we submit this change the sensor will be put
&gt; into faulted state and the consuming application doesn’t have support
&gt; for that yet.
&gt;
&gt; We have open issues to enhance the application to support faulted sensors,
&gt; its just not implemented yet.

OpenBMC-Staging-Count: 1
Signed-off-by: Eddie James &lt;eajames@us.ibm.com&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>drivers/hwmon/occ: Add temperature fault attribute and VRM temp alarm</title>
<updated>2017-09-21T06:04:01+00:00</updated>
<author>
<name>Eddie James</name>
<email>eajames@us.ibm.com</email>
</author>
<published>2017-09-08T17:07:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=e55423ee10a5057338d24383c00e813436a126ea'/>
<id>urn:sha1:e55423ee10a5057338d24383c00e813436a126ea</id>
<content type='text'>
VRM temp doesn't return temperature, only alarm bit.
Add fault attribute, triggered when the temp sensor returns the 0xFF code.

OpenBMC-Staging-Count: 1
Signed-off-by: Eddie James &lt;eajames@us.ibm.com&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>hwmon: (occ): Return power readings in micro-Watts</title>
<updated>2017-08-23T07:05:16+00:00</updated>
<author>
<name>Edward A. James</name>
<email>eajames@us.ibm.com</email>
</author>
<published>2017-08-14T21:06:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=e404f8d7aef5f3d91b9bd173f2ca044c31db160a'/>
<id>urn:sha1:e404f8d7aef5f3d91b9bd173f2ca044c31db160a</id>
<content type='text'>
hwmon expects -6 exponent.

Signed-off-by: Edward A. James &lt;eajames@us.ibm.com&gt;
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>hwmon: (occ) Add error thresholding back in</title>
<updated>2017-08-10T03:44:20+00:00</updated>
<author>
<name>Edward A. James</name>
<email>eajames@us.ibm.com</email>
</author>
<published>2017-08-10T02:45:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=3e5afab9d58e8bea031e76df948405534267913c'/>
<id>urn:sha1:3e5afab9d58e8bea031e76df948405534267913c</id>
<content type='text'>
Threshold communication and message errors to the OCC, such that errors
are only valid after two have been observed in a row. This thresholding
is required by the OCC specification. An old P8 OCC spec is available
here:
https://github.com/open-power/docs/blob/master/occ/OCC_OpenPwr_FW_Interfaces.pdf

OpenBMC-Staging-Count: 1
Signed-off-by: Edward A. James &lt;eajames@us.ibm.com&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
</feed>
