linux/arch/mips
Maciej W. Rozycki 20d60d9973 [MIPS] R4000/R4400 errata workarounds
This is the gereric part of R4000/R4400 errata workarounds.  They include 
compiler and assembler support as well as some source code modifications 
to address the problems with some combinations of multiply/divide+shift 
instructions as well as the daddi and daddiu instructions.

 Changes included are as follows:

1. New Kconfig options to select workarounds by platforms as necessary.

2. Arch top-level Makefile to pass necessary options to the compiler; also 
   incompatible configurations are detected (-mno-sym32 unsupported as 
   horribly intrusive for little gain).

3. Bug detection updated and shuffled -- the multiply/divide+shift problem 
   is lethal enough that if not worked around it makes the kernel crash in 
   time_init() because of a division by zero; the daddiu erratum might 
   also trigger early potentially, though I have not observed it.  On the 
   other hand the daddi detection code requires the exception subsystem to 
   have been initialised (and is there mainly for information).

4. r4k_daddiu_bug() added so that the existence of the erratum can be 
   queried by code at the run time as necessary; useful for generated code 
   like TLB fault and copy/clear page handlers.

5. __udelay() updated as it uses multiplication in inline assembly.

 Note that -mdaddi requires modified toolchain (which has been maintained 
by myself and available from my site for ~4years now -- versions covered 
are GCC 2.95.4 - 4.1.2 and binutils from 2.13 onwards).  The -mfix-r4000 
and -mfix-r4400 have been standard for a while though.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2008-01-29 10:14:54 +00:00
..
au1000 [MIPS] Converting most array size calculations to use ARRAY_SIZE(). 2008-01-29 10:14:54 +00:00
basler/excite [MIPS] Excite: Fix build error. 2007-11-02 16:13:47 +00:00
bcm47xx [MIPS] Kill duplicated setup_irq() for cp0 timer 2007-10-19 18:15:58 +01:00
boot [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
cobalt [MIPS] Cobalt: Qube1 has no serial port so don't use it 2008-01-15 01:04:42 +00:00
configs [MIPS] Malta: Enable tickless and highres timers. 2007-12-09 04:51:10 +00:00
dec [MIPS] Allow hardwiring of the CPU type to a single type for optimization. 2007-10-11 23:46:15 +01:00
emma2rh [MIPS] Kill duplicated setup_irq() for cp0 timer 2007-10-19 18:15:58 +01:00
fw [MIPS] Fix "no space between function name and open parenthesis" warnings. 2007-10-11 23:46:15 +01:00
gt64120/wrppmc [MIPS] time: Remove wrppmc's definition of plat_timer_setup. 2007-10-29 19:35:34 +00:00
jazz [MIPS] Jazz: disable PIT; cleanup R4030 clockevent 2007-11-02 16:13:49 +00:00
jmr3927 [MIPS] txx9tmr clockevent/clocksource driver 2007-10-29 19:35:35 +00:00
kernel [MIPS] R4000/R4400 errata workarounds 2008-01-29 10:14:54 +00:00
lasat [MIPS] Lasat: Fix built in separate object directory. 2008-01-11 17:05:42 +00:00
lemote/lm2e [MIPS] Kill duplicated setup_irq() for cp0 timer 2007-10-19 18:15:58 +01:00
lib [MIPS] Fix "no space between function name and open parenthesis" warnings. 2007-10-11 23:46:15 +01:00
math-emu [MIPS] Compliment va_start() with va_end(). 2007-11-26 17:26:15 +00:00
mips-boards [MIPS] Malta: Fix reading the PCI clock frequency on big-endian 2008-01-22 00:35:23 +00:00
mipssim [MIPS] time: MIPSsim's plat_time_init doesn't need to be irq safe. 2007-11-26 17:26:13 +00:00
mm [MIPS] tlbex: Cleanup handling of R2 hazards in TLB handlers. 2008-01-29 10:14:54 +00:00
oprofile [MIPS] Oprofile: Fix computation of number of counters. 2007-12-06 17:15:58 +00:00
pci [MIPS] Cobalt: Fix ethernet interrupts for RaQ1 2008-01-15 01:04:42 +00:00
philips/pnx8550 [MIPS] Converting most array size calculations to use ARRAY_SIZE(). 2008-01-29 10:14:54 +00:00
pmc-sierra [MIPS] Only build r4k clocksource for systems that work ok with it. 2007-11-26 17:26:14 +00:00
qemu qemu: do not enable IP7 blindly 2007-12-09 04:51:10 +00:00
sgi-ip22 IP22ZILOG: fix lockup and sysrq 2007-11-29 09:24:53 -08:00
sgi-ip27 [MIPS] IP27: Fix build error. 2007-11-02 16:13:47 +00:00
sgi-ip32 [MIPS] Fix IP32 breakage 2008-01-07 15:32:03 +00:00
sibyte [MIPS] Sibyte: Replace use of removed IO_SPACE_BASE with IOADDR. 2007-11-15 23:21:49 +00:00
sni [MIPS] SNI: s/achknowledge/acknowledge/ 2007-11-15 23:21:51 +00:00
tx4927 [MIPS] txx9tmr clockevent/clocksource driver 2007-10-29 19:35:35 +00:00
tx4938 tc35815: Use irq number for tc35815-mac platform device id 2008-01-22 00:35:23 +00:00
vr41xx [MIPS] Converting most array size calculations to use ARRAY_SIZE(). 2008-01-29 10:14:54 +00:00
defconfig [MIPS] Update a few defconfigs. 2007-08-27 02:16:55 +01:00
Kconfig [MIPS] R4000/R4400 errata workarounds 2008-01-29 10:14:54 +00:00
Kconfig.debug [MIPS] Kbuild: Use the new cc-cross-prefix feature. 2007-10-22 22:09:01 +01:00
Makefile [MIPS] R4000/R4400 errata workarounds 2008-01-29 10:14:54 +00:00