[Skiboot] [PATCH v2] IPMI: Fix eSEL size

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Thu Aug 6 19:40:58 AEST 2015


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 at linux.vnet.ibm.com>
Cc: Alistair Popple <alistair at popple.id.au>
Cc: Jeremy Kerr <jk at ozlabs.org>
---
 hw/ipmi/ipmi-sel.c | 7 ++++---
 1 file 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
 
-- 
2.1.0



More information about the Skiboot mailing list