aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Reese <kreese@caviumnetworks.com>2015-01-15 08:11:16 -0500
committerRalf Baechle <ralf@linux-mips.org>2015-02-20 09:32:22 -0500
commit920cda3870557a50105f0c5eb783059b3aced86e (patch)
tree3fc43dbdb7608c78f5ff7de1aa9be3fe8239faff
parent726da2f82a1659da5d4d3473427fdb198ffde370 (diff)
MIPS: OCTEON: Remove setting of processor specific CVMCTL icache bits.
CN38XX pass 1 required icache prefetching to be turned off. This chip never reached production and is long dead. Other processor specific icache settings are done by the bootloader. Remove these bits from the kernel. Signed-off-by: Chad Reese <kreese@caviumnetworks.com> Signed-off-by: Aleksey Makarov <aleksey.makarov@auriga.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Cc: David Daney <david.daney@cavium.com> Patchwork: https://patchwork.linux-mips.org/patch/8944/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h b/arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h
index c7ce0811657d..4bef539e1f07 100644
--- a/arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h
+++ b/arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h
@@ -37,26 +37,6 @@
37 # Needed for octeon specific memcpy 37 # Needed for octeon specific memcpy
38 or v0, v0, 0x5001 38 or v0, v0, 0x5001
39 xor v0, v0, 0x1001 39 xor v0, v0, 0x1001
40 # Read the processor ID register
41 mfc0 v1, CP0_PRID_REG
42 # Disable instruction prefetching (Octeon Pass1 errata)
43 or v0, v0, 0x2000
44 # Skip reenable of prefetching for Octeon Pass1
45 beq v1, CP0_PRID_OCTEON_PASS1, skip
46 nop
47 # Reenable instruction prefetching, not on Pass1
48 xor v0, v0, 0x2000
49 # Strip off pass number off of processor id
50 srl v1, 8
51 sll v1, 8
52 # CN30XX needs some extra stuff turned off for better performance
53 bne v1, CP0_PRID_OCTEON_CN30XX, skip
54 nop
55 # CN30XX Use random Icache replacement
56 or v0, v0, 0x400
57 # CN30XX Disable instruction prefetching
58 or v0, v0, 0x2000
59skip:
60 # First clear off CvmCtl[IPPCI] bit and move the performance 40 # First clear off CvmCtl[IPPCI] bit and move the performance
61 # counters interrupt to IRQ 6 41 # counters interrupt to IRQ 6
62 dli v1, ~(7 << 7) 42 dli v1, ~(7 << 7)