Wind River Support Network

HomeDefectsLIN4-5036
Fixed

LIN4-5036 : wrlinux4.2 have no EDAC function based on p1021 BSP

Created: Jun 7, 2012    Updated: May 18, 2015
Resolved Date: Jul 26, 2012
Found In Version: 4.2
Fix Version: 4.2,4.3.0.6
Severity: Critical
Applicable for: Wind River Linux 4
Component/s: BSP

Description

wrlinux4.2 + p1021 BSP, configure kernel with EDAC, then in /sys/devices/system/edac
, cannot find edac's files such as ce_count

Steps to Reproduce

1.wrlinux4.2 + p1021 BSP
2. make -C build linux.menuconfig  to enable
     CONFIG_EDAC=Y
            CONFIG_EDAC_MM_EDAC=Y
            CONFIG_EDAC_MPC85XX=Y    
3.  then in /sys/devices/system/edac, cannot find edac's files such as ce_count
=======================================================
WR side testing:
1. l2-cache EDAC was tested on p1021mds:
root@p1021mds:/root> cd /sys/devices/system/edac/cpu/
root@p1021mds:/sys/devices/system/edac/cpu> ls -l
total 0
drwxr-xr-x 3 root root    0 1970-01-01 00:04 cpu0
lrwxrwxrwx 1 root root    0 1970-01-01 00:04 device -> ../../../soc.0/ffe20000.l2-cache-controller
-rw-r--r-- 1 root root 4096 1970-01-01 00:04 inject_ctrl
-rw-r--r-- 1 root root 4096 1970-01-01 00:04 inject_data_hi
-rw-r--r-- 1 root root 4096 1970-01-01 00:04 inject_data_lo
-rw-r--r-- 1 root root 4096 1970-01-01 00:04 log_ce
-rw-r--r-- 1 root root 4096 1970-01-01 00:04 log_ue
-rw-r--r-- 1 root root 4096 1970-01-01 00:04 panic_on_ue
-rw-r--r-- 1 root root 4096 1970-01-01 00:04 poll_msec
root@p1021mds:/sys/devices/system/edac/cpu> echo 0x00000100 > inject_ctrl
root@p1021mds:/sys/devices/system/edac/cpu> echo 1 > inject_data_lo
root@p1021mds:/sys/devices/system/edac/cpu> dmesg
EDAC DEVICE0: CE: mpc85xx_l2_err instance: cpu0 block: L2 'mpc85xx_l2_err'
ECC Error in CPU L2 cache
L2 Error Detect Register: 0x00000004
L2 Error Capture Data High Register: 0x8169000c
L2 Error Capture Data Lo Register: 0x813f0051
L2 Error Syndrome Register: 0xce0000b1
L2 Error Attributes Capture Register: 0x02902001
L2 Error Address Capture Register: 0x0038c2a0

2. memory controller EDAC was tested on p4080ds:
1). Insert two DIMMs with ECC into p4080ds target.
2). In u-boot commandline, enable ECC through hwconfig:
   => setenv hwconfig 'serdes:fsl_srds_lpd_b2=0xf;fsl_ddr:ctlr_intlv=cacheline,bank_intlv=cs0_cs1,ecc=on'
   => saveenv
   => reset
Then see if ECC is enabled for DDR:
   8 GiB (DDR3, 64-bit, CL=9, ECC on)
3). After board booted, run:
root@localhost:/root> cd /sys/devices/system/edac/mc/
root@localhost:/sys/devices/system/edac/mc> ls
mc0  mc1
root@localhost:/sys/devices/system/edac/mc> cd mc0
root@localhost:/sys/devices/system/edac/mc/mc0> ls -l
total 0
-r--r--r-- 1 root root 4096 1970-01-01 00:01 ce_count
-r--r--r-- 1 root root 4096 1970-01-01 00:01 ce_noinfo_count
drwxr-xr-x 2 root root    0 1970-01-01 00:01 csrow0
drwxr-xr-x 2 root root    0 1970-01-01 00:01 csrow2
drwxr-xr-x 2 root root    0 1970-01-01 00:01 csrow3
lrwxrwxrwx 1 root root    0 1970-01-01 00:01 device -> ../../../../ffe000000.soc/ffe008000.memory-controller
-rw-r--r-- 1 root root 4096 1970-01-01 00:01 inject_ctrl
-rw-r--r-- 1 root root 4096 1970-01-01 00:01 inject_data_hi
-rw-r--r-- 1 root root 4096 1970-01-01 00:01 inject_data_lo
-r--r--r-- 1 root root 4096 1970-01-01 00:01 mc_name
--w------- 1 root root 4096 1970-01-01 00:01 reset_counters
-rw-r--r-- 1 root root 4096 1970-01-01 00:01 sdram_scrub_rate
-r--r--r-- 1 root root 4096 1970-01-01 00:01 seconds_since_reset
-r--r--r-- 1 root root 4096 1970-01-01 00:01 size_mb
-r--r--r-- 1 root root 4096 1970-01-01 00:01 ue_count
-r--r--r-- 1 root root 4096 1970-01-01 00:01 ue_noinfo_count
root@localhost:/sys/devices/system/edac/mc/mc0> echo 0x00000100 > inject_ctrl
root@localhost:/sys/devices/system/edac/mc/mc0> echo 1 > inject_data_lo
root@localhost:/sys/devices/system/edac/mc/mc0> cat ce_count
854781
root@localhost:/sys/devices/system/edac/mc/mc0> dmesg
EDAC MC0: CE page 0x2ac5c, offset 0x0, grain 8, syndrome 0x8b, row 0, channel 0, label "": mpc85xx_mc_err
EDAC MPC85xx MC0: Err Detect Register: 0x80000004
EDAC MPC85xx MC0: Faulty Data bit: 0
EDAC MPC85xx MC0: Expected Data / ECC:  0x0800a3ca_00000000 / 0x75
EDAC MPC85xx MC0: Captured Data / ECC:  0x0800a3ca_00000001 / 0x75
EDAC MPC85xx MC0: Err addr: 0x007f1320
EDAC MPC85xx MC0: PFN: 0x000007f1

Other Downloads


Live chat
Online