diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2015-08-06 15:10:58 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-08-14 14:14:07 +1000 |
commit | 1999773d8f2f033308a63b004649aec8d8681971 (patch) | |
tree | f20815cf64f729638218f1401bd693bc92011f59 /hw | |
parent | d78a7b6da63543b0de2a0794b1f9cefe93ac47e4 (diff) | |
download | skiboot-1999773d8f2f033308a63b004649aec8d8681971.zip skiboot-1999773d8f2f033308a63b004649aec8d8681971.tar.gz skiboot-1999773d8f2f033308a63b004649aec8d8681971.tar.bz2 |
IPMI: Fix eSEL size
Currently we are assuming Max PEL size is 64K. But in reality log size
much lesser than this. Hence chose max size to 2K.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Cc: Alistair Popple <alistair@popple.id.au>
Cc: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ipmi/ipmi-sel.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c index 05ac977..e672ecf 100644 --- a/hw/ipmi/ipmi-sel.c +++ b/hw/ipmi/ipmi-sel.c @@ -58,9 +58,10 @@ struct oem_sel { /* As far as I can tell the size of PEL record is unbounded (due to * the possible presence of the user defined section). We chose this - * size because it's what FSP uses, but we could probably reduce - * it. */ -#define MAX_PEL_SIZE 0x10000 + * size because it's what hostboot also uses and most of the OPAL logs + * are few hundred bytes. + */ +#define MAX_PEL_SIZE 0x800 #define ESEL_HDR_SIZE 7 |