Chrome platform driver development
 help / color / mirror / Atom feed
* [PATCH] drivers/cros_ec: Reduce log polling period to 2s
@ 2023-09-21 14:19 Rob Barnes
  2023-09-23  8:41 ` Tzung-Bi Shih
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Barnes @ 2023-09-21 14:19 UTC (permalink / raw)
  To: chrome-platform; +Cc: gwendal, groweck, Rob Barnes

Lowering the log polling interval to 2 seconds provides two advantages:
1. Minimizes the risk of EC internal log buffer overfilling and truncating.
2. Yields more recent logs prior to a crash, facilitating easier debugging.

Signed-off-by: Rob Barnes <robbarnes@google.com>
---
 drivers/platform/chrome/cros_ec_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/chrome/cros_ec_debugfs.c b/drivers/platform/chrome/cros_ec_debugfs.c
index 9044c6bab770c..c96493504127d 100644
--- a/drivers/platform/chrome/cros_ec_debugfs.c
+++ b/drivers/platform/chrome/cros_ec_debugfs.c
@@ -21,7 +21,7 @@
 
 #define LOG_SHIFT		14
 #define LOG_SIZE		(1 << LOG_SHIFT)
-#define LOG_POLL_SEC		10
+#define LOG_POLL_SEC		2
 
 #define CIRC_ADD(idx, size, value)	(((idx) + (value)) & ((size) - 1))
 
-- 
2.42.0.459.ge4e396fd5e-goog


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-02 17:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-21 14:19 [PATCH] drivers/cros_ec: Reduce log polling period to 2s Rob Barnes
2023-09-23  8:41 ` Tzung-Bi Shih
2023-09-26 18:57   ` Rob Barnes
2023-09-28  7:07     ` Tzung-Bi Shih
2024-05-02 17:13       ` Rob Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox