linux_dsm_epyc7002/arch/mips
Maciej W. Rozycki 619b6e18fc [MIPS] R4000/R4400 daddiu erratum workaround
This complements the generic R4000/R4400 errata workaround code and adds 
bits for the daddiu problem.  In most places it just modifies handwritten 
assembly code so that the assembler is allowed to use a temporary register 
as daddiu may now be treated as a macro that expands to a sequence of li 
and daddu.  It is the AT register or, where AT is unavailable or used 
explicitly for another purpose, an explicitly-named register is selected, 
using the .set at=<reg> feature added recently to gas.  This feature is 
only used if CONFIG_CPU_DADDI_WORKAROUNDS has been set, so if the 
workaround remains disabled, the required version of binutils stays 
unchanged.

 Similarly, daddiu instructions put in branch delay slots in noreorder 
fragments are now taken out of them and the assembler is allowed to 
reorder them itself as possible (which it does making the whole idea of 
scheduling them into delay slots manually questionable).

 Also in the very few places where such a simple conversion was not 
possible, a handcoded longer sequence is implemented.

 Other than that there are changes to code responsible for building the 
TLB fault and page clear/copy handlers to avoid daddiu as appropriate.  
These are only effective if the erratum is verified to be present at the 
run time.

 Finally there is a trivial update to __delay(), because it uses daddiu in 
a branch delay slot.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2008-01-29 10:14:55 +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 daddiu erratum workaround 2008-01-29 10:14:55 +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] R4000/R4400 daddiu erratum workaround 2008-01-29 10:14:55 +00: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] R4000/R4400 daddiu erratum workaround 2008-01-29 10:14:55 +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