This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4 J721E SR2.0 Linux 5.4 kernel "pstore" sysfs support

Other Parts Discussed in Thread: TDA4VM

Hi, 

We have enabled the "pstore" mechanism in linux kernel side.

However, there are some memory stability and configuration issues that need to be addressed, which can affect this functionality, and serious issues such as out-of-bounds memory.

Questions:

1. The current system restart process, whether can support kernel open pstore mechanism: in the case of kernel crash, the second boot, the previously saved "console-ramoops-0, demsg-ramoops-0"information can stay in the memory will not be lost. In other words, if we want to support the "pstore" mechanism in current platform, please provide guidance and instructions for RAM related configurations.

2. we now reserve a 1M size memory for restoring panic information and the dts config as follow: Please help us to check this memory address is available or not ? or tell us how to find a available reserved memory for pstore.

&reserved_memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
ramoops@9c000000 {
compatible = "ramoops";
reg = <0 0x9c000000 0 0x100000>;
record-size = <0x40000>;
console-size = <0x40000>;
ftrace-size = <0x40000>;
pmsg-size = <0x20000>;
};
};

  • Hi,

    Our SDK does NOT support pstore mechanism.

    Adding device tree alone might not suffice enabling this feature. That said this is not tried or tested on TDA4VM.

    - Keerthy

  • Please help us to check this memory address is available or not ? or tell us how to find a available reserved memory for pstore ??

  • Hi,

    Yes that 0x9c000000 looks fine. You can even try: 0xab000000

    Right after:

                    rtos_ipc_memory_region: ipc-memories@aa000000 {
                            reg = <0x00 0xaa000000 0x00 0x01c00000>;
                            alignment = <0x1000>;
                            no-map;
                    };
            };

    In the arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi

    - Keerthy