<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/hwmon/occ/common.h, branch linux-5.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-06-29T20:59:23Z</updated>
<entry>
<title>hwmon: (occ) Prevent power cap command overwriting poll response</title>
<updated>2022-06-29T20:59:23Z</updated>
<author>
<name>Eddie James</name>
</author>
<published>2022-06-28T20:30:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1bbb2809040a1f9c7c53c9f06c21aa83275ed27b'/>
<id>urn:sha1:1bbb2809040a1f9c7c53c9f06c21aa83275ed27b</id>
<content type='text'>
Currently, the response to the power cap command overwrites the
first eight bytes of the poll response, since the commands use
the same buffer. This means that user's get the wrong data between
the time of sending the power cap and the next poll response update.
Fix this by specifying a different buffer for the power cap command
response.

Fixes: 5b5513b88002 ("hwmon: Add On-Chip Controller (OCC) hwmon driver")
Signed-off-by: Eddie James &lt;eajames@linux.ibm.com&gt;
Link: https://lore.kernel.org/r/20220628203029.51747-1-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (occ) Delay hwmon registration until user request</title>
<updated>2022-05-20T17:57:06Z</updated>
<author>
<name>Eddie James</name>
</author>
<published>2022-04-27T14:04:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=849b0156d9960da628a06756bb920d9571c15e66'/>
<id>urn:sha1:849b0156d9960da628a06756bb920d9571c15e66</id>
<content type='text'>
Instead of registering the hwmon device at probe time, use the
existing "occ_active" sysfs file to control when the driver polls
the OCC for sensor data and registers with hwmon. The reason for
this change is that the SBE, which is the device by which the
driver communicates with the OCC, cannot handle communications
during certain system state transitions, resulting in
unrecoverable system errors.

Signed-off-by: Eddie James &lt;eajames@linux.ibm.com&gt;
Link: https://lore.kernel.org/r/20220427140443.11428-1-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (occ) Add sysfs entry for OCC mode</title>
<updated>2022-02-28T01:03:19Z</updated>
<author>
<name>Eddie James</name>
</author>
<published>2022-02-15T15:10:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a25126fc32890a2a03ba5ddd1189aa8a4bcf4591'/>
<id>urn:sha1:a25126fc32890a2a03ba5ddd1189aa8a4bcf4591</id>
<content type='text'>
BMC control applications need to check the OCC mode returned by the
OCC poll response, so export it in sysfs with the other OCC-specific
data.

Signed-off-by: Eddie James &lt;eajames@linux.ibm.com&gt;
Reviewed-by: Joel Stanley &lt;joel@jms.id.au&gt;
Link: https://lore.kernel.org/r/20220215151022.7498-3-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (occ) Add sysfs entry for IPS (Idle Power Saver) status</title>
<updated>2022-02-28T01:03:18Z</updated>
<author>
<name>Eddie James</name>
</author>
<published>2022-02-15T15:10:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6109c3e1905c3f8d0a3909c5f6a9ad5186822b2b'/>
<id>urn:sha1:6109c3e1905c3f8d0a3909c5f6a9ad5186822b2b</id>
<content type='text'>
BMC control applications need to check the Idle Power Saver status
byte returned by the OCC poll response, so export it in sysfs with
the other OCC-specific data.

Signed-off-by: Eddie James &lt;eajames@linux.ibm.com&gt;
Reviewed-by: Joel Stanley &lt;joel@jms.id.au&gt;
Link: https://lore.kernel.org/r/20220215151022.7498-2-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (occ) Remove sequence numbering and checksum calculation</title>
<updated>2021-10-15T04:39:26Z</updated>
<author>
<name>Eddie James</name>
</author>
<published>2021-07-21T19:02:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=908dbf0242e21dd95c69a1b0935814cd1abfc134'/>
<id>urn:sha1:908dbf0242e21dd95c69a1b0935814cd1abfc134</id>
<content type='text'>
Checksumming of the request and sequence numbering is now done in the
OCC interface driver in order to keep unique sequence numbers. So
remove those in the hwmon driver. Also, add the command length to the
send_cmd function pointer, since the checksum must be placed in the
last two bytes of the command. The submit interface must receive the
exact size of the command - previously it could be rounded to the
nearest 8 bytes with no consequence.

Signed-off-by: Eddie James &lt;eajames@linux.ibm.com&gt;
Acked-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Link: https://lore.kernel.org/r/20210721190231.117185-3-eajames@linux.ibm.com
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>hwmon: (occ) Fix poll rate limiting</title>
<updated>2021-05-10T13:27:33Z</updated>
<author>
<name>Eddie James</name>
</author>
<published>2021-04-29T15:13:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5216dff22dc2bbbbe6f00335f9fd2879670e753b'/>
<id>urn:sha1:5216dff22dc2bbbbe6f00335f9fd2879670e753b</id>
<content type='text'>
The poll rate limiter time was initialized at zero. This breaks the
comparison in time_after if jiffies is large. Switch to storing the
next update time rather than the previous time, and initialize the
time when the device is probed.

Fixes: c10e753d43eb ("hwmon (occ): Add sensor types and versions")
Signed-off-by: Eddie James &lt;eajames@linux.ibm.com&gt;
Link: https://lore.kernel.org/r/20210429151336.18980-1-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>OCC: FSI and hwmon: Add sequence numbering</title>
<updated>2019-07-03T01:11:22Z</updated>
<author>
<name>Eddie James</name>
</author>
<published>2019-07-02T15:47:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=afd26118f0dcf29db031a213f6f95c46ff3bdcbe'/>
<id>urn:sha1:afd26118f0dcf29db031a213f6f95c46ff3bdcbe</id>
<content type='text'>
Sequence numbering of the commands submitted to the OCC is required by
the OCC interface specification. Add sequence numbering and check for
the correct sequence number on the response.

Signed-off-by: Eddie James &lt;eajames@linux.ibm.com&gt;
Acked-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Reviewed-by: Lei YU &lt;mine260309@gmail.com&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>hwmon: (occ) Store error condition for rate-limited polls</title>
<updated>2019-04-16T22:12:13Z</updated>
<author>
<name>Eddie James</name>
</author>
<published>2019-04-16T15:43:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b5c46a53ee6b1f97104883d93847b2b2fdddc289'/>
<id>urn:sha1:b5c46a53ee6b1f97104883d93847b2b2fdddc289</id>
<content type='text'>
The OCC driver limits the rate of sending poll commands to the OCC. If a
user reads a hwmon entry after a poll response resulted in an error and
is rate-limited, the error is invisible to the user. Fix this by storing
the last error and returning that in the rate-limited case.

Signed-off-by: Eddie James &lt;eajames@linux.ibm.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (occ) Fix license headers</title>
<updated>2019-02-18T22:23:29Z</updated>
<author>
<name>Eddie James</name>
</author>
<published>2019-01-28T16:23:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e2f05d608653cb212edea136ad82107c6be56e1d'/>
<id>urn:sha1:e2f05d608653cb212edea136ad82107c6be56e1d</id>
<content type='text'>
Files have inconsistent license information.

Signed-off-by: Eddie James &lt;eajames@linux.ibm.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon (occ): Add sysfs attributes for additional OCC data</title>
<updated>2018-12-16T23:13:10Z</updated>
<author>
<name>Eddie James</name>
</author>
<published>2018-11-08T21:05:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df04ced684d48f6ec5729ccd034702952160c6b3'/>
<id>urn:sha1:df04ced684d48f6ec5729ccd034702952160c6b3</id>
<content type='text'>
The OCC provides a variety of additional information about the state of
the host processor, such as throttling, error conditions, and the number
of OCCs detected in the system. This information is essential to service
processor applications such as fan control and host management.
Therefore, export this data in the form of sysfs attributes attached to
the platform device (to which the hwmon device is also attached).

Signed-off-by: Eddie James &lt;eajames@linux.ibm.com&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
</feed>
