RFC mmc: Add mmc pstore backend support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 RFC Latest1 patch 0 repliesNew
- v1 RFC1 patch 3 repliesSuperseded
Changes in v2 from the cover letter
- Fixed rebase with upstream linux master
- Fixed build warnings
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | mmc: Add mmc pstore backend supportdrivers/ drivers/ drivers/ +4 more | +642 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [RFC v2 0/1] mmc: Add mmc pstore backend support
v2 changes:
- Fixed rebase with upstream linux master
- Fixed build warnings
Have been trying to provide mmc backend support for fs/pstore feature to be able to capture panic and dmesg logs to a emmc partition. The code is based on mtdpstore and used kernel mmctest also as reference to be able to send mmc rw requests. This code is work in progress and does not succssfully write to the mmc partition as expected when a magic sysrq panic is induced.
Needed help from original authors and mmc core and host driver experts to comment on missing peices. To that end I am sending an RFC patch. I have confirmed by enabling dynamic debug that mmcpstore read and panic_write routines do get called by the fs/pstore/zone driver, however I do not see expected results mounted /sys/fs/pstore after a reboot.
Kamal Dasu (1):
mmc: Add mmc pstore backend support
drivers/mmc/core/Kconfig | 13 + drivers/mmc/core/Makefile | 1 + drivers/mmc/core/block.c | 4 + drivers/mmc/core/block.h | 9 + drivers/mmc/core/mmcpstore.c | 592 +++++++++++++++++++++++++++++++++++ drivers/mmc/host/sdhci.c | 20 ++ include/linux/mmc/host.h | 3 + 7 files changed, 642 insertions(+) create mode 100644 drivers/mmc/core/mmcpstore.c
Signature · 1 line
2.17.1