public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Handle CrOS EC Panics
@ 2023-01-04  1:15 Rob Barnes
  2023-01-04  1:15 ` [PATCH v3 1/2] platform/chrome: cros_ec: Poll EC log on EC panic Rob Barnes
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Rob Barnes @ 2023-01-04  1:15 UTC (permalink / raw)
  To: groeck, pmalani; +Cc: chrome-platform, linux-kernel, dtor, Rob Barnes

Currently the OS ignores EC panics when they occur.
After reporting a panic, the EC will force a hard reset,
possibly after a short delay. This may cause loss of data.

These patches add a handler for CrOS EC panics. When
a panic is detected the OS will attempt to flush critical
data for debugging purposes and attempt an orderly shutdown.

Changelog since v2:
- Minor updates to commit messages

Changelog since v1:
- Updated commit messages
- Split into two patches
- Moved panic handle before mkbp loop
- Switched to dev_emerg


Rob Barnes (2):
  platform/chrome: cros_ec: Poll EC log on EC panic
  platform/chrome: cros_ec: Shutdown on EC Panic

 drivers/platform/chrome/cros_ec_debugfs.c   | 23 +++++++++++++++++++++
 drivers/platform/chrome/cros_ec_lpc.c       | 10 +++++++++
 include/linux/platform_data/cros_ec_proto.h |  9 ++++++++
 3 files changed, 42 insertions(+)

-- 
2.39.0.314.g84b9a713c41-goog


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

end of thread, other threads:[~2023-01-10 22:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-04  1:15 [PATCH v3 0/2] Handle CrOS EC Panics Rob Barnes
2023-01-04  1:15 ` [PATCH v3 1/2] platform/chrome: cros_ec: Poll EC log on EC panic Rob Barnes
2023-01-05  4:40   ` Prashant Malani
2023-01-10 22:09   ` Marek Szyprowski
2023-01-04  1:15 ` [PATCH v3 2/2] platform/chrome: cros_ec: Shutdown on EC Panic Rob Barnes
2023-01-04 18:41   ` Prashant Malani
2023-01-06  3:50 ` [PATCH v3 0/2] Handle CrOS EC Panics patchwork-bot+chrome-platform
2023-01-09  5:30 ` patchwork-bot+chrome-platform

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