Skip to content
  • Dave Liu's avatar
    mpc83xx: Fix the incorrect dcbz operation · 90f30a71
    Dave Liu authored
    
    
    The 834x rev1.x silicon has one CPU5 errata.
    
    The issue is when the data cache locked with
    HID0[DLOCK], the dcbz instruction looks like no-op inst.
    
    The right behavior of the data cache is when the data cache
    Locked with HID0[DLOCK], the dcbz instruction allocates
    new tags in cache.
    
    The 834x rev3.0 and later and 8360 have not this bug inside.
    
    So, when 834x rev3.0/8360 are working with ECC, the dcbz
    instruction will corrupt the stack in cache, the processor will
    checkstop reset.
    
    However, the 834x rev1.x can work with ECC with these code,
    because the sillicon has this cache bug. The dcbz will not
    corrupt the stack in cache.
    Really, it is the fault code running on fault sillicon.
    
    This patch fix the incorrect dcbz operation. Instead of
    CPU FP writing to initialise the ECC.
    
    CHANGELOG:
    * Fix the incorrect dcbz operation instead of CPU FP
    writing to initialise the ECC memory. Otherwise, it
    will corrupt the stack in cache, The processor will checkstop
    reset.
    
    Signed-off-by: default avatarDave Liu <daveliu@freescale.com>
    90f30a71