summaryrefslogtreecommitdiffstats
path: root/include/opal-internal.h
Commit message (Collapse)AuthorAgeFilesLines
* occ/prd/opal-prd: Queue OCC_RESET event message to host in OpenPOWERShilpasri G Bhat2016-09-261-0/+1
| | | | | | | | | | | | | | | | | During an OCC reset cycle the system is forced to Psafe pstate. When OCC becomes active, the system has to be restored to its last pstate as requested by host. So host needs to be notified of OCC_RESET event or else system will continue to remian in Psafe state until host requests a new pstate after the OCC reset cycle. This patch defines 'OPAL_PRD_MSG_TYPE_OCC_RESET_NOTIFY' to notify OPAL when opal-prd issues OCC reset. OPAL will queue OCC_RESET message to host when it receives opal_prd_msg of type '*_OCC_RESET_NOTIFY'. Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Add infrastructure for pointer validation.Balbir Singh2016-08-121-0/+22
| | | | | | | | | | | | | | If the kernel called an OPAL API with vmalloc'd address or any other address range in real mode, we would hit a problem with aliasing. Since the top 4 bits are ignored in real mode, pointers from 0xc.. and 0xd.. (and other ranges) could collide and lead to hard to solve bugs. This patch adds the infrastructure for pointer validation and a simple test case for testing the API Signed-off-by: Balbir Singh <bsingharora@gmail.com> [stewart@linux.vnet.ibm.com: move function to opal-internal.h rather than opal-api.h] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* sparse: opal_register() is CPU native endian argumentsStewart Smith2015-11-091-1/+1
| | | | | | | | token is CPU native endian rather than BE as this function is only ever called from within skiboot itself to maintain internal tables of what OPAL calls are registered. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Fixup sparse endian annotations for opal events and masksStewart Smith2015-11-091-2/+2
| | | | | | This fixes many spurious sparse warnings Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* opal_table_entry members should be native endianStewart Smith2015-11-091-2/+2
| | | | | | | Since the opal_table is just internal, it should be in native endian rather than forcing it to be BE. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Move opal-api.h to opal-internal.hMichael Ellerman2015-04-011-0/+85
| | | | | | | | | | | | | | | | Move the content of opal-api.h, which is currently "Internal header for OPAL API related things" to opal-internal.h. Recreate opal-api.h as an empty header, until the next commit, so as not to break all the includers of it. Include opal-internal.h from opal.h, but not for assembly users as it's all C declarations. Finally we need to adjust include guard names. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Remove opal-internal.hMichael Ellerman2015-04-011-234/+0
| | | | | | | | This seems to have been forgotten when the initial open source release was made. It's never been used in the open source tree at all. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Initial commit of Open Source releaseBenjamin Herrenschmidt2014-07-021-0/+234
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
OpenPOWER on IntegriCloud