Skip to content

Commit

Permalink
Blackfin arch: Random read/write errors are a bad thing
Browse files Browse the repository at this point in the history
Random read/write errors are a bad thing - so don't let anyone
(including the test bench) run on something we know is bad.

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Robin Getz authored and Bryan Wu committed Mar 5, 2009
1 parent 5047607 commit 0004952
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,10 @@ void __init setup_arch(char **cmdline_p)
CPU, bfin_revid());
}

/* We can't run on BF548-0.1 due to ANOMALY 05000448 */
if (bfin_cpuid() == 0x27de && bfin_revid() == 1)
panic("You can't run on this processor due to 05000448\n");

printk(KERN_INFO "Blackfin Linux support by http://blackfin.uclinux.org/\n");

printk(KERN_INFO "Processor Speed: %lu MHz core clock and %lu MHz System Clock\n",
Expand Down
6 changes: 6 additions & 0 deletions arch/blackfin/mach-common/arch_checks.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,9 @@
#if ((0xffffffff - L1_CODE_START + 1) + CONFIG_BOOT_LOAD) > 0x1000000
# error "The kernel load address is too high; keep it below 10meg for safety"
#endif

#ifdef ANOMALY_05000448
# if ANOMALY_05000448
# error You are using a part with anomaly 05000448, this issue causes random memory read/write failures - that means random crashes.
# endif
#endif

0 comments on commit 0004952

Please sign in to comment.