Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * arch/ppc64/kernel/cputable.c |
| 3 | * |
| 4 | * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) |
| 5 | * |
| 6 | * Modifications for ppc64: |
| 7 | * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com> |
Stephen Rothwell | 8d15a3e | 2005-08-03 14:40:16 +1000 | [diff] [blame] | 8 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | * This program is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License |
| 11 | * as published by the Free Software Foundation; either version |
| 12 | * 2 of the License, or (at your option) any later version. |
| 13 | */ |
| 14 | |
| 15 | #include <linux/config.h> |
| 16 | #include <linux/string.h> |
| 17 | #include <linux/sched.h> |
| 18 | #include <linux/threads.h> |
| 19 | #include <linux/init.h> |
| 20 | #include <linux/module.h> |
| 21 | |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 22 | #include <asm/oprofile_impl.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | #include <asm/cputable.h> |
| 24 | |
| 25 | struct cpu_spec* cur_cpu_spec = NULL; |
| 26 | EXPORT_SYMBOL(cur_cpu_spec); |
| 27 | |
| 28 | /* NOTE: |
| 29 | * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's |
| 30 | * the responsibility of the appropriate CPU save/restore functions to |
| 31 | * eventually copy these settings over. Those save/restore aren't yet |
| 32 | * part of the cputable though. That has to be fixed for both ppc32 |
| 33 | * and ppc64 |
| 34 | */ |
| 35 | extern void __setup_cpu_power3(unsigned long offset, struct cpu_spec* spec); |
| 36 | extern void __setup_cpu_power4(unsigned long offset, struct cpu_spec* spec); |
| 37 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); |
Arnd Bergmann | fef1c77 | 2005-06-23 09:43:37 +1000 | [diff] [blame] | 38 | extern void __setup_cpu_be(unsigned long offset, struct cpu_spec* spec); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | |
| 40 | |
| 41 | /* We only set the altivec features if the kernel was compiled with altivec |
| 42 | * support |
| 43 | */ |
| 44 | #ifdef CONFIG_ALTIVEC |
| 45 | #define CPU_FTR_ALTIVEC_COMP CPU_FTR_ALTIVEC |
| 46 | #define PPC_FEATURE_HAS_ALTIVEC_COMP PPC_FEATURE_HAS_ALTIVEC |
| 47 | #else |
| 48 | #define CPU_FTR_ALTIVEC_COMP 0 |
| 49 | #define PPC_FEATURE_HAS_ALTIVEC_COMP 0 |
| 50 | #endif |
| 51 | |
| 52 | struct cpu_spec cpu_specs[] = { |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 53 | { /* Power3 */ |
| 54 | .pvr_mask = 0xffff0000, |
| 55 | .pvr_value = 0x00400000, |
| 56 | .cpu_name = "POWER3 (630)", |
| 57 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
Anton Blanchard | 8530935 | 2005-09-06 14:50:48 +1000 | [diff] [blame] | 58 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | CPU_FTR_IABR, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 59 | .cpu_user_features = COMMON_USER_PPC64, |
| 60 | .icache_bsize = 128, |
| 61 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 62 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 63 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 64 | .oprofile_cpu_type = "ppc64/power3", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 65 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 66 | }, |
| 67 | { /* Power3+ */ |
| 68 | .pvr_mask = 0xffff0000, |
| 69 | .pvr_value = 0x00410000, |
| 70 | .cpu_name = "POWER3 (630+)", |
| 71 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
Anton Blanchard | 8530935 | 2005-09-06 14:50:48 +1000 | [diff] [blame] | 72 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | CPU_FTR_IABR, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 73 | .cpu_user_features = COMMON_USER_PPC64, |
| 74 | .icache_bsize = 128, |
| 75 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 76 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 77 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 78 | .oprofile_cpu_type = "ppc64/power3", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 79 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 80 | }, |
| 81 | { /* Northstar */ |
| 82 | .pvr_mask = 0xffff0000, |
| 83 | .pvr_value = 0x00330000, |
| 84 | .cpu_name = "RS64-II (northstar)", |
| 85 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 86 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | CPU_FTR_IABR | |
Anton Blanchard | 8530935 | 2005-09-06 14:50:48 +1000 | [diff] [blame] | 87 | CPU_FTR_MMCRA | CPU_FTR_CTRL, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 88 | .cpu_user_features = COMMON_USER_PPC64, |
| 89 | .icache_bsize = 128, |
| 90 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 91 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 92 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 93 | .oprofile_cpu_type = "ppc64/rs64", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 94 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 95 | }, |
| 96 | { /* Pulsar */ |
| 97 | .pvr_mask = 0xffff0000, |
| 98 | .pvr_value = 0x00340000, |
| 99 | .cpu_name = "RS64-III (pulsar)", |
| 100 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 101 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | CPU_FTR_IABR | |
Anton Blanchard | 8530935 | 2005-09-06 14:50:48 +1000 | [diff] [blame] | 102 | CPU_FTR_MMCRA | CPU_FTR_CTRL, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 103 | .cpu_user_features = COMMON_USER_PPC64, |
| 104 | .icache_bsize = 128, |
| 105 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 106 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 107 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 108 | .oprofile_cpu_type = "ppc64/rs64", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 109 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 110 | }, |
| 111 | { /* I-star */ |
| 112 | .pvr_mask = 0xffff0000, |
| 113 | .pvr_value = 0x00360000, |
| 114 | .cpu_name = "RS64-III (icestar)", |
| 115 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 116 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | CPU_FTR_IABR | |
Anton Blanchard | 8530935 | 2005-09-06 14:50:48 +1000 | [diff] [blame] | 117 | CPU_FTR_MMCRA | CPU_FTR_CTRL, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 118 | .cpu_user_features = COMMON_USER_PPC64, |
| 119 | .icache_bsize = 128, |
| 120 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 121 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 122 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 123 | .oprofile_cpu_type = "ppc64/rs64", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 124 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 125 | }, |
| 126 | { /* S-star */ |
| 127 | .pvr_mask = 0xffff0000, |
| 128 | .pvr_value = 0x00370000, |
| 129 | .cpu_name = "RS64-IV (sstar)", |
| 130 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 131 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | CPU_FTR_IABR | |
Anton Blanchard | 8530935 | 2005-09-06 14:50:48 +1000 | [diff] [blame] | 132 | CPU_FTR_MMCRA | CPU_FTR_CTRL, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 133 | .cpu_user_features = COMMON_USER_PPC64, |
| 134 | .icache_bsize = 128, |
| 135 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 136 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 137 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 138 | .oprofile_cpu_type = "ppc64/rs64", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 139 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 140 | }, |
| 141 | { /* Power4 */ |
| 142 | .pvr_mask = 0xffff0000, |
| 143 | .pvr_value = 0x00350000, |
| 144 | .cpu_name = "POWER4 (gp)", |
| 145 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 146 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | |
Anton Blanchard | 8530935 | 2005-09-06 14:50:48 +1000 | [diff] [blame] | 147 | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_MMCRA, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 148 | .cpu_user_features = COMMON_USER_PPC64, |
| 149 | .icache_bsize = 128, |
| 150 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 151 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 152 | .cpu_setup = __setup_cpu_power4, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 153 | .oprofile_cpu_type = "ppc64/power4", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 154 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 155 | }, |
| 156 | { /* Power4+ */ |
| 157 | .pvr_mask = 0xffff0000, |
| 158 | .pvr_value = 0x00380000, |
| 159 | .cpu_name = "POWER4+ (gq)", |
| 160 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 161 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | |
Anton Blanchard | 8530935 | 2005-09-06 14:50:48 +1000 | [diff] [blame] | 162 | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_MMCRA, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 163 | .cpu_user_features = COMMON_USER_PPC64, |
| 164 | .icache_bsize = 128, |
| 165 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 166 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 167 | .cpu_setup = __setup_cpu_power4, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 168 | .oprofile_cpu_type = "ppc64/power4", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 169 | .oprofile_model = &op_model_power4, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 170 | }, |
| 171 | { /* PPC970 */ |
| 172 | .pvr_mask = 0xffff0000, |
| 173 | .pvr_value = 0x00390000, |
| 174 | .cpu_name = "PPC970", |
| 175 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 176 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | |
| 177 | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_ALTIVEC_COMP | |
Anton Blanchard | 8530935 | 2005-09-06 14:50:48 +1000 | [diff] [blame] | 178 | CPU_FTR_CAN_NAP | CPU_FTR_MMCRA, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 179 | .cpu_user_features = COMMON_USER_PPC64 | |
| 180 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
| 181 | .icache_bsize = 128, |
| 182 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 183 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 184 | .cpu_setup = __setup_cpu_ppc970, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 185 | .oprofile_cpu_type = "ppc64/970", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 186 | .oprofile_model = &op_model_power4, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 187 | }, |
| 188 | { /* PPC970FX */ |
| 189 | .pvr_mask = 0xffff0000, |
| 190 | .pvr_value = 0x003c0000, |
| 191 | .cpu_name = "PPC970FX", |
| 192 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 193 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | |
| 194 | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_ALTIVEC_COMP | |
Anton Blanchard | 8530935 | 2005-09-06 14:50:48 +1000 | [diff] [blame] | 195 | CPU_FTR_CAN_NAP | CPU_FTR_MMCRA, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 196 | .cpu_user_features = COMMON_USER_PPC64 | |
| 197 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
| 198 | .icache_bsize = 128, |
| 199 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 200 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 201 | .cpu_setup = __setup_cpu_ppc970, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 202 | .oprofile_cpu_type = "ppc64/970", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 203 | .oprofile_model = &op_model_power4, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 204 | }, |
Olof Johansson | f264cc2 | 2005-07-13 01:11:44 -0700 | [diff] [blame] | 205 | { /* PPC970MP */ |
| 206 | .pvr_mask = 0xffff0000, |
| 207 | .pvr_value = 0x00440000, |
| 208 | .cpu_name = "PPC970MP", |
| 209 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 210 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | |
| 211 | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_ALTIVEC_COMP | |
Anton Blanchard | 8530935 | 2005-09-06 14:50:48 +1000 | [diff] [blame] | 212 | CPU_FTR_CAN_NAP | CPU_FTR_MMCRA, |
Olof Johansson | f264cc2 | 2005-07-13 01:11:44 -0700 | [diff] [blame] | 213 | .cpu_user_features = COMMON_USER_PPC64 | |
| 214 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
| 215 | .icache_bsize = 128, |
| 216 | .dcache_bsize = 128, |
| 217 | .cpu_setup = __setup_cpu_ppc970, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 218 | .oprofile_cpu_type = "ppc64/970", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 219 | .oprofile_model = &op_model_power4, |
Olof Johansson | f264cc2 | 2005-07-13 01:11:44 -0700 | [diff] [blame] | 220 | }, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 221 | { /* Power5 */ |
| 222 | .pvr_mask = 0xffff0000, |
| 223 | .pvr_value = 0x003a0000, |
| 224 | .cpu_name = "POWER5 (gr)", |
| 225 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 226 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | |
| 227 | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_MMCRA | CPU_FTR_SMT | |
| 228 | CPU_FTR_COHERENT_ICACHE | CPU_FTR_LOCKLESS_TLBIE | |
| 229 | CPU_FTR_MMCRA_SIHV, |
| 230 | .cpu_user_features = COMMON_USER_PPC64, |
| 231 | .icache_bsize = 128, |
| 232 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 233 | .num_pmcs = 6, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 234 | .cpu_setup = __setup_cpu_power4, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 235 | .oprofile_cpu_type = "ppc64/power5", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 236 | .oprofile_model = &op_model_power4, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 237 | }, |
| 238 | { /* Power5 */ |
| 239 | .pvr_mask = 0xffff0000, |
| 240 | .pvr_value = 0x003b0000, |
| 241 | .cpu_name = "POWER5 (gs)", |
| 242 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 243 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | |
| 244 | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_MMCRA | CPU_FTR_SMT | |
| 245 | CPU_FTR_COHERENT_ICACHE | CPU_FTR_LOCKLESS_TLBIE | |
| 246 | CPU_FTR_MMCRA_SIHV, |
| 247 | .cpu_user_features = COMMON_USER_PPC64, |
| 248 | .icache_bsize = 128, |
| 249 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 250 | .num_pmcs = 6, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 251 | .cpu_setup = __setup_cpu_power4, |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 252 | .oprofile_cpu_type = "ppc64/power5", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame^] | 253 | .oprofile_model = &op_model_power4, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 254 | }, |
| 255 | { /* BE DD1.x */ |
| 256 | .pvr_mask = 0xffff0000, |
| 257 | .pvr_value = 0x00700000, |
| 258 | .cpu_name = "Broadband Engine", |
| 259 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 260 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | |
| 261 | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_ALTIVEC_COMP | |
| 262 | CPU_FTR_SMT, |
| 263 | .cpu_user_features = COMMON_USER_PPC64 | |
| 264 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
| 265 | .icache_bsize = 128, |
| 266 | .dcache_bsize = 128, |
| 267 | .cpu_setup = __setup_cpu_be, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 268 | }, |
| 269 | { /* default match */ |
| 270 | .pvr_mask = 0x00000000, |
| 271 | .pvr_value = 0x00000000, |
| 272 | .cpu_name = "POWER4 (compatible)", |
| 273 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 274 | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE | |
| 275 | CPU_FTR_PPCAS_ARCH_V2, |
| 276 | .cpu_user_features = COMMON_USER_PPC64, |
| 277 | .icache_bsize = 128, |
| 278 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 279 | .num_pmcs = 6, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 280 | .cpu_setup = __setup_cpu_power4, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 281 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 282 | }; |