Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sensor-groups: occ: Add support to disable/enable sensor group
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 <shilpa.bhat@linux.vnet.ibm.com> [stewart: rebase and bump OPAL API number] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
- Loading branch information
1 parent
ad0861c
commit 99505c0
Showing
7 changed files
with
465 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.. _opal-sensor-groups-enable: | ||
|
||
OPAL_SENSOR_GROUP_ENABLE | ||
========================== | ||
OPAL call to enable/disable the sensor group using a handle to identify | ||
the type of sensor group provided in the device tree. | ||
|
||
For example this call is used to disable/enable copying of sensor | ||
group by OCC to main memory. | ||
|
||
The call can be asynchronus, where the token parameter is used to wait | ||
for the completion. | ||
|
||
Parameters | ||
---------- | ||
:: | ||
u32 handle | ||
int token | ||
bool enable | ||
|
||
Returns | ||
------- | ||
OPAL_SUCCESS | ||
Success | ||
|
||
OPAL_UNSUPPORTED | ||
No support to enable/disable the sensor group | ||
|
||
OPAL_HARDWARE | ||
Unable to procced due to the current hardware state | ||
|
||
OPAL_PERMISSION | ||
Hardware cannot take the request | ||
|
||
OPAL_ASYNC_COMPLETION | ||
Request was sent and an async completion message will be sent with | ||
token and status of the request. | ||
|
||
OPAL_BUSY | ||
Previous request in progress | ||
|
||
OPAL_INTERNAL_ERROR | ||
Error in request response | ||
|
||
OPAL_TIMEOUT | ||
Timeout in request completion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.