[Skiboot] [PATCH 1/6] FSP/ELOG: Reduce elog read buffer size

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Tue Apr 7 22:52:17 AEST 2015


Presently we are allocating 256K for elog read buffer. But we just
read one log at a time. Also maximum size of ELOG is 16KB.

Effectively we are not using remaining 240K. This patch reduces
the size of the buffer to 16K.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 hw/fsp/fsp-elog-read.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/fsp/fsp-elog-read.c b/hw/fsp/fsp-elog-read.c
index 7ec7742..88972ca 100644
--- a/hw/fsp/fsp-elog-read.c
+++ b/hw/fsp/fsp-elog-read.c
@@ -79,7 +79,7 @@ static LIST_HEAD(elog_read_free);
 static struct lock elog_read_lock = LOCK_UNLOCKED;
 
 /* log buffer  to copy FSP log for READ */
-#define ELOG_READ_BUFFER_SIZE	0x00040000
+#define ELOG_READ_BUFFER_SIZE	0x00004000
 static void *elog_read_buffer;
 static uint32_t elog_head_id;	/* FSP entry ID */
 static size_t elog_head_size;	/* actual FSP log size */



More information about the Skiboot mailing list