aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-05-28 11:17:18 +0530
committerStewart Smith <stewart@linux.ibm.com>2019-06-03 10:28:57 +1000
commitbc5584c3145bc2029293674689275b55f87f246e (patch)
treeb8643aae50b1014f40cca288a63a2350820b39d7 /include
parentbedb1c2343b2b1a71bee5f1f97e1aa29ace04eb8 (diff)
downloadskiboot-bc5584c3145bc2029293674689275b55f87f246e.zip
skiboot-bc5584c3145bc2029293674689275b55f87f246e.tar.gz
skiboot-bc5584c3145bc2029293674689275b55f87f246e.tar.bz2
core/opal: Increase opal-msg-size size
Kernel will use `opal-msg-size` property to allocate memory for opal_msg. We want to send bigger data from OPAL to kernel. Hence increase opal-msg-size to 64K. 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>
Diffstat (limited to 'include')
-rw-r--r--include/opal-msg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/opal-msg.h b/include/opal-msg.h
index 74163c4..86b6d61 100644
--- a/include/opal-msg.h
+++ b/include/opal-msg.h
@@ -27,6 +27,9 @@
*/
#define OPAL_MAX_ASYNC_COMP 16
+/* Max size of struct opal_msg */
+#define OPAL_MSG_SIZE (64 * 1024)
+
int _opal_queue_msg(enum opal_msg_type msg_type, void *data,
void (*consumed)(void *data), size_t num_params,
const u64 *params);