Hi experts,
When I test EDAC on nxp-ls1028ardb board with LSDK20.04 v4.19 kernel opening EDAC_DEBUG, the dmesg shows followings:
root@localhost:~# uname -a
Linux localhost 4.19.90 #4 SMP PREEMPT Tue Jul 21 19:22:26 CST 2020 aarch64 aarch64 aarch64 GNU/Linux
root@localhost:~#
root@localhost:~# dmesg | grep EDAC
[ 1.768901] EDAC MC: Ver: 3.0.0
[ 1.772125] EDAC DEBUG: edac_mc_sysfs_init: device mc created
[ 3.658749] EDAC DEBUG: edac_mc_alloc: allocating 1928 bytes for mci data (4 ranks, 4 csrows/channels)
[ 3.663852] EDAC DEBUG: edac_mc_free:
root@localhost:~#
root@localhost:~# dmesg | grep ECC
[ 3.658776] fsl_mc_err_probe: No ECC DIMMs discovered
[ 9.880553] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID )
root@localhost:~#
root@localhost:~#
But I see the U-boot shows
DRAM: 3.9 GiB
DDR 3.9 GiB (DDR4, 32-bit, CL=11, ECC on)
And the user manual of ls1028 board says that it supports ECC.
So I want to query if there any known issue about ECC and EDAC?
Thanks,
Zhantao
Hi Yiping,
I have add all the following configs:
root@nxp-ls1028:~# zcat /proc/config.gz | grep EDAC
CONFIG_EDAC_SUPPORT=y
CONFIG_EDAC=y
CONFIG_EDAC_LEGACY_SYSFS=y
CONFIG_EDAC_DEBUG=y
CONFIG_EDAC_LAYERSCAPE=y
And the result is as what I stated.
Thanks,
Zhantao
Hi Yiping,
Thanks for your reply.
It seems even set hwconfig fsl_ddr:ecc=on in U-boot, the EDAC still not work.
Welcome to NXP LSDK 2004 main (GNU/Linux 4.19.90 aarch64)
* Support: https://www.nxp.com/lsdk
* Documentation: https://lsdk.github.io/document
* Licensing: https://lsdk.github.io/eula
root@localhost:~# dmesg | grep EDAC
[ 1.764898] EDAC MC: Ver: 3.0.0
[ 1.768120] EDAC DEBUG: edac_mc_sysfs_init: device mc created
[ 3.654712] EDAC DEBUG: edac_mc_alloc: allocating 1928 bytes for mci data (4 ranks, 4 csrows/channels)
[ 3.659814] EDAC DEBUG: edac_mc_free:
root@localhost:~#
root@localhost:~# dmesg | grep ECC
[ 3.654738] fsl_mc_err_probe: No ECC DIMMs discovered
[ 9.954633] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID )
root@localhost:~#
root@localhost:~# uname -a
Linux localhost 4.19.90 #4 SMP PREEMPT Tue Jul 21 19:22:26 CST 2020 aarch64 aarch64 aarch64 GNU/Linux
root@localhost:~#
Thanks,
Zhantao
Hello Zhantao,
I didn't reproduce this issue on LS1046ARDB and LS1088ARDB, this problem should be caused by EDAC driver not compatible with LS1028ARDB platform. I have reported this issue to the development team to do more investigation.
Thanks,
Yiping