Skip to contentSkip to conversation

pstore/ram: Update module parameters from platform data

PATCH RESEND Applied Tzung-Bi Shih 2 participants 2 messages Oct 23, 2025 Pstore filesystem

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 pstore/ram: Update module parameters from platform data

Update module parameters mem_type and ramoops_ecc from platform data so that they are available through /sys/module/ramoops/parameters/.

ramoops_dump_oops isn't included as it has been deprecated.

---
 fs/pstore/ram.c | 2 ++
 1 file changed, 2 insertions(+)
fs/pstore/ram.c +2 -0
index bc68b4de5287..39936d6da0dd 100644
@@ -864,6 +864,8 @@ static int ramoops_probe(struct platform_device *pdev)
 	ramoops_console_size = pdata->console_size;
 	ramoops_pmsg_size = pdata->pmsg_size;
 	ramoops_ftrace_size = pdata->ftrace_size;
+	mem_type = pdata->mem_type;
+	ramoops_ecc = pdata->ecc_info.ecc_size;
 
 	pr_info("using 0x%lx@0x%llx, ecc: %d\n",
 		cxt->size, (unsigned long long)cxt->phys_addr,
Signature · 1 line
2.48.1
maintainer Applied
#1 lore raw
Quoted 6 lines · Tzung-Bi Shih

Update module parameters mem_type and ramoops_ecc from platform data so that they are available through /sys/module/ramoops/parameters/.

ramoops_dump_oops isn't included as it has been deprecated.

Applied to for-next/pstore, thanks, nice catch!

[1/1] pstore/ram: Update module parameters from platform data

      https://git.kernel.org/kees/c/b69255357368

Take care,

Signature · 1 line
Kees Cook