ANDROID: trusty-log: Update trusty log buffer size to hold a complete  Trusty crash logs

Update log shared memory to 5 * PAGE_SIZE,
allowing for a log ring buffer of 4 * PAGE_SIZE = 16KB
enough to fit Trusty crash logs with enough prior context

Bug: 188666004
Change-Id: Ib8a585a7f3693669bd12537a2faa7a2aaeafc629
Signed-off-by: Armelle Laine <[email protected]>
diff --git a/drivers/trusty/trusty-log.c b/drivers/trusty/trusty-log.c
index 39a46c2..99c6b6e 100644
--- a/drivers/trusty/trusty-log.c
+++ b/drivers/trusty/trusty-log.c
@@ -15,7 +15,16 @@
 #include <asm/page.h>
 #include "trusty-log.h"
 
-#define TRUSTY_LOG_SIZE (PAGE_SIZE * 2)
+/*
+ * Rationale for the chosen log buffer size:
+ *  - the log buffer shall contain unthrottled trusty crash dump.
+ *    Testing identifies that the logbuffer size shall be
+ *    (~96Bytes * 100) i.e. ~2^13
+ *  - specifying twice as much as the crash dump minimum allows to have
+ *    ~100 lines of context prior to the crash.
+ *  - conclusion: logbuffer = 2^14 is comfortable, half is minimal.
+ */
+#define TRUSTY_LOG_SIZE (PAGE_SIZE * 5)
 #define TRUSTY_LINE_BUFFER_SIZE 256
 
 /*