Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 1 | /* provide some functions which dump the trace buffer, in a nice way for people |
| 2 | * to read it, and understand what is going on |
| 3 | * |
| 4 | * Copyright 2004-2010 Analog Devices Inc. |
| 5 | * |
| 6 | * Licensed under the GPL-2 or later |
| 7 | */ |
| 8 | |
| 9 | #include <linux/kernel.h> |
| 10 | #include <linux/hardirq.h> |
| 11 | #include <linux/thread_info.h> |
| 12 | #include <linux/mm.h> |
| 13 | #include <linux/uaccess.h> |
| 14 | #include <linux/module.h> |
| 15 | #include <linux/kallsyms.h> |
| 16 | #include <linux/err.h> |
| 17 | #include <linux/fs.h> |
| 18 | #include <asm/dma.h> |
| 19 | #include <asm/trace.h> |
| 20 | #include <asm/fixed_code.h> |
| 21 | #include <asm/traps.h> |
Robin Getz | d60805a | 2010-03-12 21:17:44 +0000 | [diff] [blame^] | 22 | #include <asm/irq_handler.h> |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 23 | |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 24 | void decode_address(char *buf, unsigned long address) |
| 25 | { |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 26 | struct task_struct *p; |
| 27 | struct mm_struct *mm; |
| 28 | unsigned long flags, offset; |
| 29 | unsigned char in_atomic = (bfin_read_IPEND() & 0x10) || in_atomic(); |
| 30 | struct rb_node *n; |
| 31 | |
| 32 | #ifdef CONFIG_KALLSYMS |
| 33 | unsigned long symsize; |
| 34 | const char *symname; |
| 35 | char *modname; |
| 36 | char *delim = ":"; |
| 37 | char namebuf[128]; |
| 38 | #endif |
| 39 | |
| 40 | buf += sprintf(buf, "<0x%08lx> ", address); |
| 41 | |
| 42 | #ifdef CONFIG_KALLSYMS |
| 43 | /* look up the address and see if we are in kernel space */ |
| 44 | symname = kallsyms_lookup(address, &symsize, &offset, &modname, namebuf); |
| 45 | |
| 46 | if (symname) { |
| 47 | /* yeah! kernel space! */ |
| 48 | if (!modname) |
| 49 | modname = delim = ""; |
| 50 | sprintf(buf, "{ %s%s%s%s + 0x%lx }", |
| 51 | delim, modname, delim, symname, |
| 52 | (unsigned long)offset); |
| 53 | return; |
| 54 | } |
| 55 | #endif |
| 56 | |
| 57 | if (address >= FIXED_CODE_START && address < FIXED_CODE_END) { |
| 58 | /* Problem in fixed code section? */ |
| 59 | strcat(buf, "/* Maybe fixed code section */"); |
| 60 | return; |
| 61 | |
| 62 | } else if (address < CONFIG_BOOT_LOAD) { |
| 63 | /* Problem somewhere before the kernel start address */ |
| 64 | strcat(buf, "/* Maybe null pointer? */"); |
| 65 | return; |
| 66 | |
| 67 | } else if (address >= COREMMR_BASE) { |
| 68 | strcat(buf, "/* core mmrs */"); |
| 69 | return; |
| 70 | |
| 71 | } else if (address >= SYSMMR_BASE) { |
| 72 | strcat(buf, "/* system mmrs */"); |
| 73 | return; |
| 74 | |
| 75 | } else if (address >= L1_ROM_START && address < L1_ROM_START + L1_ROM_LENGTH) { |
| 76 | strcat(buf, "/* on-chip L1 ROM */"); |
| 77 | return; |
| 78 | } |
| 79 | |
| 80 | /* |
| 81 | * Don't walk any of the vmas if we are oopsing, it has been known |
| 82 | * to cause problems - corrupt vmas (kernel crashes) cause double faults |
| 83 | */ |
| 84 | if (oops_in_progress) { |
| 85 | strcat(buf, "/* kernel dynamic memory (maybe user-space) */"); |
| 86 | return; |
| 87 | } |
| 88 | |
| 89 | /* looks like we're off in user-land, so let's walk all the |
| 90 | * mappings of all our processes and see if we can't be a whee |
| 91 | * bit more specific |
| 92 | */ |
| 93 | write_lock_irqsave(&tasklist_lock, flags); |
| 94 | for_each_process(p) { |
| 95 | mm = (in_atomic ? p->mm : get_task_mm(p)); |
| 96 | if (!mm) |
| 97 | continue; |
| 98 | |
| 99 | if (!down_read_trylock(&mm->mmap_sem)) { |
| 100 | if (!in_atomic) |
| 101 | mmput(mm); |
| 102 | continue; |
| 103 | } |
| 104 | |
| 105 | for (n = rb_first(&mm->mm_rb); n; n = rb_next(n)) { |
| 106 | struct vm_area_struct *vma; |
| 107 | |
| 108 | vma = rb_entry(n, struct vm_area_struct, vm_rb); |
| 109 | |
| 110 | if (address >= vma->vm_start && address < vma->vm_end) { |
| 111 | char _tmpbuf[256]; |
| 112 | char *name = p->comm; |
| 113 | struct file *file = vma->vm_file; |
| 114 | |
| 115 | if (file) { |
| 116 | char *d_name = d_path(&file->f_path, _tmpbuf, |
| 117 | sizeof(_tmpbuf)); |
| 118 | if (!IS_ERR(d_name)) |
| 119 | name = d_name; |
| 120 | } |
| 121 | |
| 122 | /* FLAT does not have its text aligned to the start of |
| 123 | * the map while FDPIC ELF does ... |
| 124 | */ |
| 125 | |
| 126 | /* before we can check flat/fdpic, we need to |
| 127 | * make sure current is valid |
| 128 | */ |
| 129 | if ((unsigned long)current >= FIXED_CODE_START && |
| 130 | !((unsigned long)current & 0x3)) { |
| 131 | if (current->mm && |
| 132 | (address > current->mm->start_code) && |
| 133 | (address < current->mm->end_code)) |
| 134 | offset = address - current->mm->start_code; |
| 135 | else |
| 136 | offset = (address - vma->vm_start) + |
| 137 | (vma->vm_pgoff << PAGE_SHIFT); |
| 138 | |
| 139 | sprintf(buf, "[ %s + 0x%lx ]", name, offset); |
| 140 | } else |
| 141 | sprintf(buf, "[ %s vma:0x%lx-0x%lx]", |
| 142 | name, vma->vm_start, vma->vm_end); |
| 143 | |
| 144 | up_read(&mm->mmap_sem); |
| 145 | if (!in_atomic) |
| 146 | mmput(mm); |
| 147 | |
| 148 | if (buf[0] == '\0') |
| 149 | sprintf(buf, "[ %s ] dynamic memory", name); |
| 150 | |
| 151 | goto done; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | up_read(&mm->mmap_sem); |
| 156 | if (!in_atomic) |
| 157 | mmput(mm); |
| 158 | } |
| 159 | |
| 160 | /* |
| 161 | * we were unable to find this address anywhere, |
| 162 | * or some MMs were skipped because they were in use. |
| 163 | */ |
| 164 | sprintf(buf, "/* kernel dynamic memory */"); |
| 165 | |
| 166 | done: |
| 167 | write_unlock_irqrestore(&tasklist_lock, flags); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 168 | } |
| 169 | |
| 170 | #define EXPAND_LEN ((1 << CONFIG_DEBUG_BFIN_HWTRACE_EXPAND_LEN) * 256 - 1) |
| 171 | |
| 172 | /* |
| 173 | * Similar to get_user, do some address checking, then dereference |
| 174 | * Return true on success, false on bad address |
| 175 | */ |
| 176 | bool get_instruction(unsigned short *val, unsigned short *address) |
| 177 | { |
| 178 | unsigned long addr = (unsigned long)address; |
| 179 | |
| 180 | /* Check for odd addresses */ |
| 181 | if (addr & 0x1) |
| 182 | return false; |
| 183 | |
| 184 | /* MMR region will never have instructions */ |
| 185 | if (addr >= SYSMMR_BASE) |
| 186 | return false; |
| 187 | |
| 188 | switch (bfin_mem_access_type(addr, 2)) { |
| 189 | case BFIN_MEM_ACCESS_CORE: |
| 190 | case BFIN_MEM_ACCESS_CORE_ONLY: |
| 191 | *val = *address; |
| 192 | return true; |
| 193 | case BFIN_MEM_ACCESS_DMA: |
| 194 | dma_memcpy(val, address, 2); |
| 195 | return true; |
| 196 | case BFIN_MEM_ACCESS_ITEST: |
| 197 | isram_memcpy(val, address, 2); |
| 198 | return true; |
| 199 | default: /* invalid access */ |
| 200 | return false; |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | /* |
| 205 | * decode the instruction if we are printing out the trace, as it |
| 206 | * makes things easier to follow, without running it through objdump |
| 207 | * These are the normal instructions which cause change of flow, which |
| 208 | * would be at the source of the trace buffer |
| 209 | */ |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 210 | #if defined(CONFIG_DEBUG_BFIN_HWTRACE_ON) |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 211 | static void decode_instruction(unsigned short *address) |
| 212 | { |
| 213 | unsigned short opcode; |
| 214 | |
| 215 | if (get_instruction(&opcode, address)) { |
| 216 | if (opcode == 0x0010) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 217 | pr_cont("RTS"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 218 | else if (opcode == 0x0011) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 219 | pr_cont("RTI"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 220 | else if (opcode == 0x0012) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 221 | pr_cont("RTX"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 222 | else if (opcode == 0x0013) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 223 | pr_cont("RTN"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 224 | else if (opcode == 0x0014) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 225 | pr_cont("RTE"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 226 | else if (opcode == 0x0025) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 227 | pr_cont("EMUEXCPT"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 228 | else if (opcode >= 0x0040 && opcode <= 0x0047) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 229 | pr_cont("STI R%i", opcode & 7); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 230 | else if (opcode >= 0x0050 && opcode <= 0x0057) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 231 | pr_cont("JUMP (P%i)", opcode & 7); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 232 | else if (opcode >= 0x0060 && opcode <= 0x0067) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 233 | pr_cont("CALL (P%i)", opcode & 7); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 234 | else if (opcode >= 0x0070 && opcode <= 0x0077) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 235 | pr_cont("CALL (PC+P%i)", opcode & 7); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 236 | else if (opcode >= 0x0080 && opcode <= 0x0087) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 237 | pr_cont("JUMP (PC+P%i)", opcode & 7); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 238 | else if (opcode >= 0x0090 && opcode <= 0x009F) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 239 | pr_cont("RAISE 0x%x", opcode & 0xF); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 240 | else if (opcode >= 0x00A0 && opcode <= 0x00AF) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 241 | pr_cont("EXCPT 0x%x", opcode & 0xF); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 242 | else if ((opcode >= 0x1000 && opcode <= 0x13FF) || (opcode >= 0x1800 && opcode <= 0x1BFF)) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 243 | pr_cont("IF !CC JUMP"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 244 | else if ((opcode >= 0x1400 && opcode <= 0x17ff) || (opcode >= 0x1c00 && opcode <= 0x1fff)) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 245 | pr_cont("IF CC JUMP"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 246 | else if (opcode >= 0x2000 && opcode <= 0x2fff) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 247 | pr_cont("JUMP.S"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 248 | else if (opcode >= 0xe080 && opcode <= 0xe0ff) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 249 | pr_cont("LSETUP"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 250 | else if (opcode >= 0xe200 && opcode <= 0xe2ff) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 251 | pr_cont("JUMP.L"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 252 | else if (opcode >= 0xe300 && opcode <= 0xe3ff) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 253 | pr_cont("CALL pcrel"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 254 | else |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 255 | pr_cont("0x%04x", opcode); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 256 | } |
| 257 | |
| 258 | } |
| 259 | #endif |
| 260 | |
| 261 | void dump_bfin_trace_buffer(void) |
| 262 | { |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 263 | #ifdef CONFIG_DEBUG_BFIN_HWTRACE_ON |
Robin Getz | d60805a | 2010-03-12 21:17:44 +0000 | [diff] [blame^] | 264 | int tflags, i = 0, fault = 0; |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 265 | char buf[150]; |
| 266 | unsigned short *addr; |
Robin Getz | d60805a | 2010-03-12 21:17:44 +0000 | [diff] [blame^] | 267 | unsigned int cpu = raw_smp_processor_id(); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 268 | #ifdef CONFIG_DEBUG_BFIN_HWTRACE_EXPAND |
| 269 | int j, index; |
| 270 | #endif |
| 271 | |
| 272 | trace_buffer_save(tflags); |
| 273 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 274 | pr_notice("Hardware Trace:\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 275 | |
| 276 | #ifdef CONFIG_DEBUG_BFIN_HWTRACE_EXPAND |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 277 | pr_notice("WARNING: Expanded trace turned on - can not trace exceptions\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 278 | #endif |
| 279 | |
| 280 | if (likely(bfin_read_TBUFSTAT() & TBUFCNT)) { |
| 281 | for (; bfin_read_TBUFSTAT() & TBUFCNT; i++) { |
Robin Getz | d60805a | 2010-03-12 21:17:44 +0000 | [diff] [blame^] | 282 | addr = (unsigned short *)bfin_read_TBUF(); |
| 283 | decode_address(buf, (unsigned long)addr); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 284 | pr_notice("%4i Target : %s\n", i, buf); |
Robin Getz | d60805a | 2010-03-12 21:17:44 +0000 | [diff] [blame^] | 285 | /* Normally, the faulting instruction doesn't go into |
| 286 | * the trace buffer, (since it doesn't commit), so |
| 287 | * we print out the fault address here |
| 288 | */ |
| 289 | if (!fault && addr == (unsigned short *)trap && |
| 290 | (cpu_pda[cpu].seqstat & SEQSTAT_EXCAUSE) > VEC_EXCPT15) { |
| 291 | decode_address(buf, cpu_pda[cpu].icplb_fault_addr); |
| 292 | pr_notice(" FAULT : %s ", buf); |
| 293 | decode_instruction((unsigned short *)cpu_pda[cpu].icplb_fault_addr); |
| 294 | pr_cont("\n"); |
| 295 | fault = 1; |
| 296 | } |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 297 | addr = (unsigned short *)bfin_read_TBUF(); |
| 298 | decode_address(buf, (unsigned long)addr); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 299 | pr_notice(" Source : %s ", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 300 | decode_instruction(addr); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 301 | pr_cont("\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 302 | } |
| 303 | } |
| 304 | |
| 305 | #ifdef CONFIG_DEBUG_BFIN_HWTRACE_EXPAND |
| 306 | if (trace_buff_offset) |
| 307 | index = trace_buff_offset / 4; |
| 308 | else |
| 309 | index = EXPAND_LEN; |
| 310 | |
| 311 | j = (1 << CONFIG_DEBUG_BFIN_HWTRACE_EXPAND_LEN) * 128; |
| 312 | while (j) { |
| 313 | decode_address(buf, software_trace_buff[index]); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 314 | pr_notice("%4i Target : %s\n", i, buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 315 | index -= 1; |
| 316 | if (index < 0) |
| 317 | index = EXPAND_LEN; |
| 318 | decode_address(buf, software_trace_buff[index]); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 319 | pr_notice(" Source : %s ", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 320 | decode_instruction((unsigned short *)software_trace_buff[index]); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 321 | pr_cont("\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 322 | index -= 1; |
| 323 | if (index < 0) |
| 324 | index = EXPAND_LEN; |
| 325 | j--; |
| 326 | i++; |
| 327 | } |
| 328 | #endif |
| 329 | |
| 330 | trace_buffer_restore(tflags); |
| 331 | #endif |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 332 | } |
| 333 | EXPORT_SYMBOL(dump_bfin_trace_buffer); |
| 334 | |
| 335 | void dump_bfin_process(struct pt_regs *fp) |
| 336 | { |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 337 | /* We should be able to look at fp->ipend, but we don't push it on the |
| 338 | * stack all the time, so do this until we fix that */ |
| 339 | unsigned int context = bfin_read_IPEND(); |
| 340 | |
| 341 | if (oops_in_progress) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 342 | pr_emerg("Kernel OOPS in progress\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 343 | |
| 344 | if (context & 0x0020 && (fp->seqstat & SEQSTAT_EXCAUSE) == VEC_HWERR) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 345 | pr_notice("HW Error context\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 346 | else if (context & 0x0020) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 347 | pr_notice("Deferred Exception context\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 348 | else if (context & 0x3FC0) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 349 | pr_notice("Interrupt context\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 350 | else if (context & 0x4000) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 351 | pr_notice("Deferred Interrupt context\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 352 | else if (context & 0x8000) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 353 | pr_notice("Kernel process context\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 354 | |
| 355 | /* Because we are crashing, and pointers could be bad, we check things |
| 356 | * pretty closely before we use them |
| 357 | */ |
| 358 | if ((unsigned long)current >= FIXED_CODE_START && |
| 359 | !((unsigned long)current & 0x3) && current->pid) { |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 360 | pr_notice("CURRENT PROCESS:\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 361 | if (current->comm >= (char *)FIXED_CODE_START) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 362 | pr_notice("COMM=%s PID=%d", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 363 | current->comm, current->pid); |
| 364 | else |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 365 | pr_notice("COMM= invalid"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 366 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 367 | pr_cont(" CPU=%d\n", current_thread_info()->cpu); |
| 368 | if (!((unsigned long)current->mm & 0x3) && |
| 369 | (unsigned long)current->mm >= FIXED_CODE_START) { |
| 370 | pr_notice("TEXT = 0x%p-0x%p DATA = 0x%p-0x%p\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 371 | (void *)current->mm->start_code, |
| 372 | (void *)current->mm->end_code, |
| 373 | (void *)current->mm->start_data, |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 374 | (void *)current->mm->end_data); |
| 375 | pr_notice(" BSS = 0x%p-0x%p USER-STACK = 0x%p\n\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 376 | (void *)current->mm->end_data, |
| 377 | (void *)current->mm->brk, |
| 378 | (void *)current->mm->start_stack); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 379 | } else |
| 380 | pr_notice("invalid mm\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 381 | } else |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 382 | pr_notice("No Valid process in current context\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 383 | } |
| 384 | |
| 385 | void dump_bfin_mem(struct pt_regs *fp) |
| 386 | { |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 387 | unsigned short *addr, *erraddr, val = 0, err = 0; |
| 388 | char sti = 0, buf[6]; |
| 389 | |
| 390 | erraddr = (void *)fp->pc; |
| 391 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 392 | pr_notice("return address: [0x%p]; contents of:", erraddr); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 393 | |
| 394 | for (addr = (unsigned short *)((unsigned long)erraddr & ~0xF) - 0x10; |
| 395 | addr < (unsigned short *)((unsigned long)erraddr & ~0xF) + 0x10; |
| 396 | addr++) { |
| 397 | if (!((unsigned long)addr & 0xF)) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 398 | pr_notice("0x%p: ", addr); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 399 | |
| 400 | if (!get_instruction(&val, addr)) { |
| 401 | val = 0; |
| 402 | sprintf(buf, "????"); |
| 403 | } else |
| 404 | sprintf(buf, "%04x", val); |
| 405 | |
| 406 | if (addr == erraddr) { |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 407 | pr_cont("[%s]", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 408 | err = val; |
| 409 | } else |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 410 | pr_cont(" %s ", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 411 | |
| 412 | /* Do any previous instructions turn on interrupts? */ |
| 413 | if (addr <= erraddr && /* in the past */ |
| 414 | ((val >= 0x0040 && val <= 0x0047) || /* STI instruction */ |
| 415 | val == 0x017b)) /* [SP++] = RETI */ |
| 416 | sti = 1; |
| 417 | } |
| 418 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 419 | pr_cont("\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 420 | |
| 421 | /* Hardware error interrupts can be deferred */ |
| 422 | if (unlikely(sti && (fp->seqstat & SEQSTAT_EXCAUSE) == VEC_HWERR && |
| 423 | oops_in_progress)){ |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 424 | pr_notice("Looks like this was a deferred error - sorry\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 425 | #ifndef CONFIG_DEBUG_HWERR |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 426 | pr_notice("The remaining message may be meaningless\n"); |
| 427 | pr_notice("You should enable CONFIG_DEBUG_HWERR to get a better idea where it came from\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 428 | #else |
| 429 | /* If we are handling only one peripheral interrupt |
| 430 | * and current mm and pid are valid, and the last error |
| 431 | * was in that user space process's text area |
| 432 | * print it out - because that is where the problem exists |
| 433 | */ |
| 434 | if ((!(((fp)->ipend & ~0x30) & (((fp)->ipend & ~0x30) - 1))) && |
| 435 | (current->pid && current->mm)) { |
| 436 | /* And the last RETI points to the current userspace context */ |
| 437 | if ((fp + 1)->pc >= current->mm->start_code && |
| 438 | (fp + 1)->pc <= current->mm->end_code) { |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 439 | pr_notice("It might be better to look around here :\n"); |
| 440 | pr_notice("-------------------------------------------\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 441 | show_regs(fp + 1); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 442 | pr_notice("-------------------------------------------\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 443 | } |
| 444 | } |
| 445 | #endif |
| 446 | } |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 447 | } |
| 448 | |
| 449 | void show_regs(struct pt_regs *fp) |
| 450 | { |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 451 | char buf[150]; |
| 452 | struct irqaction *action; |
| 453 | unsigned int i; |
| 454 | unsigned long flags = 0; |
| 455 | unsigned int cpu = raw_smp_processor_id(); |
| 456 | unsigned char in_atomic = (bfin_read_IPEND() & 0x10) || in_atomic(); |
| 457 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 458 | pr_notice("\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 459 | if (CPUID != bfin_cpuid()) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 460 | pr_notice("Compiled for cpu family 0x%04x (Rev %d), " |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 461 | "but running on:0x%04x (Rev %d)\n", |
| 462 | CPUID, bfin_compiled_revid(), bfin_cpuid(), bfin_revid()); |
| 463 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 464 | pr_notice("ADSP-%s-0.%d", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 465 | CPU, bfin_compiled_revid()); |
| 466 | |
| 467 | if (bfin_compiled_revid() != bfin_revid()) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 468 | pr_cont("(Detected 0.%d)", bfin_revid()); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 469 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 470 | pr_cont(" %lu(MHz CCLK) %lu(MHz SCLK) (%s)\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 471 | get_cclk()/1000000, get_sclk()/1000000, |
| 472 | #ifdef CONFIG_MPU |
| 473 | "mpu on" |
| 474 | #else |
| 475 | "mpu off" |
| 476 | #endif |
| 477 | ); |
| 478 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 479 | pr_notice("%s", linux_banner); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 480 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 481 | pr_notice("\nSEQUENCER STATUS:\t\t%s\n", print_tainted()); |
| 482 | pr_notice(" SEQSTAT: %08lx IPEND: %04lx IMASK: %04lx SYSCFG: %04lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 483 | (long)fp->seqstat, fp->ipend, cpu_pda[raw_smp_processor_id()].ex_imask, fp->syscfg); |
| 484 | if (fp->ipend & EVT_IRPTEN) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 485 | pr_notice(" Global Interrupts Disabled (IPEND[4])\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 486 | if (!(cpu_pda[raw_smp_processor_id()].ex_imask & (EVT_IVG13 | EVT_IVG12 | EVT_IVG11 | |
| 487 | EVT_IVG10 | EVT_IVG9 | EVT_IVG8 | EVT_IVG7 | EVT_IVTMR))) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 488 | pr_notice(" Peripheral interrupts masked off\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 489 | if (!(cpu_pda[raw_smp_processor_id()].ex_imask & (EVT_IVG15 | EVT_IVG14))) |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 490 | pr_notice(" Kernel interrupts masked off\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 491 | if ((fp->seqstat & SEQSTAT_EXCAUSE) == VEC_HWERR) { |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 492 | pr_notice(" HWERRCAUSE: 0x%lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 493 | (fp->seqstat & SEQSTAT_HWERRCAUSE) >> 14); |
| 494 | #ifdef EBIU_ERRMST |
| 495 | /* If the error was from the EBIU, print it out */ |
| 496 | if (bfin_read_EBIU_ERRMST() & CORE_ERROR) { |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 497 | pr_notice(" EBIU Error Reason : 0x%04x\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 498 | bfin_read_EBIU_ERRMST()); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 499 | pr_notice(" EBIU Error Address : 0x%08x\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 500 | bfin_read_EBIU_ERRADD()); |
| 501 | } |
| 502 | #endif |
| 503 | } |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 504 | pr_notice(" EXCAUSE : 0x%lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 505 | fp->seqstat & SEQSTAT_EXCAUSE); |
| 506 | for (i = 2; i <= 15 ; i++) { |
| 507 | if (fp->ipend & (1 << i)) { |
| 508 | if (i != 4) { |
| 509 | decode_address(buf, bfin_read32(EVT0 + 4*i)); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 510 | pr_notice(" physical IVG%i asserted : %s\n", i, buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 511 | } else |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 512 | pr_notice(" interrupts disabled\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 513 | } |
| 514 | } |
| 515 | |
| 516 | /* if no interrupts are going off, don't print this out */ |
| 517 | if (fp->ipend & ~0x3F) { |
| 518 | for (i = 0; i < (NR_IRQS - 1); i++) { |
| 519 | if (!in_atomic) |
| 520 | raw_spin_lock_irqsave(&irq_desc[i].lock, flags); |
| 521 | |
| 522 | action = irq_desc[i].action; |
| 523 | if (!action) |
| 524 | goto unlock; |
| 525 | |
| 526 | decode_address(buf, (unsigned int)action->handler); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 527 | pr_notice(" logical irq %3d mapped : %s", i, buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 528 | for (action = action->next; action; action = action->next) { |
| 529 | decode_address(buf, (unsigned int)action->handler); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 530 | pr_cont(", %s", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 531 | } |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 532 | pr_cont("\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 533 | unlock: |
| 534 | if (!in_atomic) |
| 535 | raw_spin_unlock_irqrestore(&irq_desc[i].lock, flags); |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | decode_address(buf, fp->rete); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 540 | pr_notice(" RETE: %s\n", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 541 | decode_address(buf, fp->retn); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 542 | pr_notice(" RETN: %s\n", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 543 | decode_address(buf, fp->retx); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 544 | pr_notice(" RETX: %s\n", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 545 | decode_address(buf, fp->rets); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 546 | pr_notice(" RETS: %s\n", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 547 | decode_address(buf, fp->pc); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 548 | pr_notice(" PC : %s\n", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 549 | |
| 550 | if (((long)fp->seqstat & SEQSTAT_EXCAUSE) && |
| 551 | (((long)fp->seqstat & SEQSTAT_EXCAUSE) != VEC_HWERR)) { |
| 552 | decode_address(buf, cpu_pda[cpu].dcplb_fault_addr); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 553 | pr_notice("DCPLB_FAULT_ADDR: %s\n", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 554 | decode_address(buf, cpu_pda[cpu].icplb_fault_addr); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 555 | pr_notice("ICPLB_FAULT_ADDR: %s\n", buf); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 556 | } |
| 557 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 558 | pr_notice("PROCESSOR STATE:\n"); |
| 559 | pr_notice(" R0 : %08lx R1 : %08lx R2 : %08lx R3 : %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 560 | fp->r0, fp->r1, fp->r2, fp->r3); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 561 | pr_notice(" R4 : %08lx R5 : %08lx R6 : %08lx R7 : %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 562 | fp->r4, fp->r5, fp->r6, fp->r7); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 563 | pr_notice(" P0 : %08lx P1 : %08lx P2 : %08lx P3 : %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 564 | fp->p0, fp->p1, fp->p2, fp->p3); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 565 | pr_notice(" P4 : %08lx P5 : %08lx FP : %08lx SP : %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 566 | fp->p4, fp->p5, fp->fp, (long)fp); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 567 | pr_notice(" LB0: %08lx LT0: %08lx LC0: %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 568 | fp->lb0, fp->lt0, fp->lc0); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 569 | pr_notice(" LB1: %08lx LT1: %08lx LC1: %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 570 | fp->lb1, fp->lt1, fp->lc1); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 571 | pr_notice(" B0 : %08lx L0 : %08lx M0 : %08lx I0 : %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 572 | fp->b0, fp->l0, fp->m0, fp->i0); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 573 | pr_notice(" B1 : %08lx L1 : %08lx M1 : %08lx I1 : %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 574 | fp->b1, fp->l1, fp->m1, fp->i1); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 575 | pr_notice(" B2 : %08lx L2 : %08lx M2 : %08lx I2 : %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 576 | fp->b2, fp->l2, fp->m2, fp->i2); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 577 | pr_notice(" B3 : %08lx L3 : %08lx M3 : %08lx I3 : %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 578 | fp->b3, fp->l3, fp->m3, fp->i3); |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 579 | pr_notice("A0.w: %08lx A0.x: %08lx A1.w: %08lx A1.x: %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 580 | fp->a0w, fp->a0x, fp->a1w, fp->a1x); |
| 581 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 582 | pr_notice("USP : %08lx ASTAT: %08lx\n", |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 583 | rdusp(), fp->astat); |
| 584 | |
Robin Getz | d28cff4 | 2010-03-11 19:26:38 +0000 | [diff] [blame] | 585 | pr_notice("\n"); |
Robin Getz | 2a12c46 | 2010-03-11 16:24:18 +0000 | [diff] [blame] | 586 | } |