aboutsummaryrefslogtreecommitdiff
path: root/doc/opal-api/opal-messages.rst
AgeCommit message (Collapse)AuthorFilesLines
2019-06-03prd: Implement generic HBRT - FSP interfaceVasant Hegde1-0/+6
This patch implements generic interface to pass data from HBRT to FSP during runtime (HBRT -> opal-prd -> kernel -> OPAL -> FSP). HBRT sends data via firmware_request interface. We have to convert that to MBOX format and send it to FSP. OPAL uses TCE mapped memory to send data. FSP will reuse same memory for response. Once processing is complete FSP sends response to OPAL. Finally OPAL calls HBRT with firmware_response message. Also introduces new opal_msg type (OPAL_MSG_PRD2) to pass bigger prd message to kernel. - if (prd_msg > OPAL_MSG_FIXED_PARAMS_SIZE) use OPAL_MSG_PRD2 Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
2019-06-03opal-msg: Enhance opal-get-msg APIVasant Hegde1-3/+4
Linux uses opal_get_msg (OPAL_GET_MSG) API to get OPAL messages. This interface supports upto 8 params (64 bytes). We have a requirement to send bigger data to Linux. This patch enhances OPAL to send bigger data to Linux. - Linux will use "opal-msg-size" device tree property to allocate memory for OPAL messages (previous patch increased "opal-msg-size" to 64K). - Replaced `reserved` field in "struct opal_msg" with `size`. So that Linux side opal_get_msg user can detect actual data size. - If buffer size < actual message size, then opal_get_msg will copy partial data and return OPAL_PARTIAL to Linux. - Add new variable "extended" to "opal_msg_entry" structure to keep track of messages that has more than 64byte data. We will allocate separate memory for these messages and once kernel consumes message we will release that memory. Cc: Jeremy Kerr <jk@ozlabs.org> Cc: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Cc: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Acked-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
2019-06-03doc: Add OPAL_GET_EPOW_STATUS docsStewart Smith1-1/+3
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
2019-06-03doc: Flesh out OPAL_(READ|WRITE)_TPO and OPAL_GET_DPO_STATUS docsStewart Smith1-0/+1
Fixes: https://github.com/open-power/skiboot/issues/130 Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
2019-06-03doc: prettify OPAL_PRD_MSGStewart Smith1-1/+3
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
2019-06-03doc: prettify and expand OPAL_HANDLE_HMI2 docsStewart Smith1-0/+2
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
2016-10-28doc: use RST references where appropriateStewart Smith1-0/+2
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-08-09doc/opal-api : Corrects typo errors and adheres to sphinx documentationMukesh Ojha1-1/+1
OAPL->OPAL conformining->conforming Other changes related to sphinx documentation. Signed-off-by: Mukesh Ojha <mukesh02@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-08-02doc/opal-api: fix ReStructured Text syntaxStewart Smith1-40/+46
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-08-02doc/opal-api: rename .txt to .rstStewart Smith1-0/+213
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>