summaryrefslogtreecommitdiffstats
path: root/doc/opal-api
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2017-12-22 10:34:08 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-02-21 13:28:08 +1100
commit99505c03f49312c5cc7d40a90728b048857a1078 (patch)
tree819d3ccc264b514f4760f55627d189683116bcb6 /doc/opal-api
parentad0861c914e8b1b7d81da2cbb7decad5b183200e (diff)
downloadblackbird-skiboot-99505c03f49312c5cc7d40a90728b048857a1078.tar.gz
blackbird-skiboot-99505c03f49312c5cc7d40a90728b048857a1078.zip
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>
Diffstat (limited to 'doc/opal-api')
-rw-r--r--doc/opal-api/opal-sensor-group-enable-160.rst46
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/opal-api/opal-sensor-group-enable-160.rst b/doc/opal-api/opal-sensor-group-enable-160.rst
new file mode 100644
index 00000000..b702dd5f
--- /dev/null
+++ b/doc/opal-api/opal-sensor-group-enable-160.rst
@@ -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
OpenPOWER on IntegriCloud