Pstore : Query on using ramoops driver for DDR
Hi All,
Can we use existing backend pstore ram driver (fs/pstore/ram.c) for DDR instead of SRAM ? Was the current driver written only to support persistant RAM like SRAM or it can accept further change to support DDR, If we have a mechanism to copy stored data from DDR to external device after the crash.
Thanks,
Mukesh
Quoted 2 lines
Can we use existing backend pstore ram driver (
fs/pstore/ram.c) for DDR instead of SRAM ?
The expectation for pstore is that the system will go through a reset when it crashes. Most systems do not preserve DDR contents across reset.
Quoted 2 lines
Was the current driver written only to support persistant RAM like SRAM or it can accept further change
Linux is in a constant state of change :-)
Quoted 2 lines
to support DDR, If we have a mechanism to copy stored data from DDR to external device after the crash.
See above about DDR contents. But if you have a platform that does preserve
DDR contents until your "mechanism" can copy the pstore buffer, then post a patch.
-Tony
Quoted 7 lines · Tony
Quoted 2 lines
Can we use existing backend pstore ram driver (
fs/pstore/ram.c) for DDR instead of SRAM ?The expectation for pstore is that the system will go through a reset when it crashes. Most systems do not preserve DDR contents across reset.
to support DDR, If we have a mechanism to copy stored data from DDR to external device after the crash.
Quoted 7 lines
Quoted 2 lines
Was the current driver written only to support persistant RAM like SRAM or it can accept further change
Linux is in a constant state of change :-)
See above about DDR contents. But if you have a platform that does preserve
DDR contents until your "mechanism" can copy the pstore buffer, then post a patch.
Thanks for the reply
I have posted the patch.
https://lore.kernel.org/patchwork/patch/1378949/
-Mukesh
Quoted 3 lines
-Tony