[#5991] trap test on bf518 would make kernel panic at case of Stack set to L1 instruction
Submitted By: Mingquan Pan
Open Date
2010-03-26 03:43:02 Close Date
2010-04-18 23:36:01
Priority:
Medium Assignee:
Sonic Zhang
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Category:
N/A Board:
N/A
Processor:
BF518 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Out of Date
Uboot version or rev.:
Toolchain version or rev.:
4.3.4 (ADI-trunk/svn-3815)
App binary format:
N/A
Summary: trap test on bf518 would make kernel panic at case of Stack set to L1 instruction
Details:
trap test on bf518 would make kernel panic at case of of Stack set to L1 instruction now.
kernel: Linux release 2.6.33.1-ADI-2010R1-pre-svn8542, build #36 Wed Mar 24 11:39:07 CST 2010
toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3815)
user-dist: release svn-9527, build #617 Wed Mar 24 11:38:27 CST 2010
root:/> successful boot attempt
************** STEP 3: Start testing.
uname -a
Linux blackfin 2.6.33.1-ADI-2010R1-pre-svn8542 #36 Wed Mar 24 11:39:07 CST 2010 blackfin GNU/Linux
root:/>
It's not a SMP kernel.
cd /bin
root:/bin> ./traps_test #
87
rootTotal case num is 88.
:/bin> ./traps_test -1
Running test 0 for exception 0x00: flush scratch pad
... PASS (test completed 1/1 times, as expected by signal 0: Unknown signal 0)
...
Running test 81 for exception 0x3f: Read non-existant L1
... PASS (test completed 1/1 times, as expected by signal 7: Bus error)
Running test 82 for exception 0x3f: Write non-existant L1
... PASS (test completed 1/1 times, as expected by signal 7: Bus error)
Running test 83 for exception 0x3f: Write non-existant L1, then system call
... PASS (test completed 1/1 times, as expected by signal 7: Bus error)
Running test 84 for exception 0x3f: Return to non-existant L1
... PASS (test completed 1/1 times, as expected by signal 7: Bus error)
Running test 85 for exception 0x3f: Stack set to L1 instruction
... External Memory Addressing Error
Kernel OOPS in progress
HW Error context
CURRENT PROCESS:
COMM=traps_test PID=251 CPU=0
TEXT = 0x02980040-0x029888a0 DATA = 0x029888c0-0x0298bf24
BSS = 0x0298bf24-0x0298c3b0 USER-STACK = 0x0298df40
return address: [0xffa00aaa]; contents of:
0xffa00a80: 0162 0163 0170 0173 0171 0174 0172 0175
0xffa00a90: 0166 0140 0167 31c3 0140 017c 017d 017e
0xffa00aa0: 0179 0140 017b 6000 3620 [3628] 3630 3638
0xffa00ab0: e108 203c e148 ffe0 e109 0ef8 e149 ffa0
Looks like this was a deferred error - sorry
It might be better to look around here :
-------------------------------------------
ADSP-BF518-0.1 400(MHz CCLK) 80(MHz SCLK) (mpu off)
Linux version 2.6.33.1-ADI-2010R1-pre-svn8542 (test@uclinux80-bf518f) (gcc version 4.3.4 (ADI-trunk/svn-3815) ) #36 Wed Mar 24 11:39:07 CST 2010
SEQUENCER STATUS: Not tainted
SEQSTAT: 0000e000 IPEND: 2980f00 IMASK: ffff SYSCFG: 0006
EXCAUSE : 0x0
physical IVG8 asserted : <0xffa00d90> { _evt_evt8 + 0x0 }
physical IVG9 asserted : <0xffa00dcc> { _evt_evt9 + 0x0 }
physical IVG10 asserted : <0xffa00e08> { _evt_evt10 + 0x0 }
physical IVG11 asserted : <0xffa00e44> { _evt_evt11 + 0x0 }
logical irq 6 mapped : <0xffa00354> { _bfin_coretmr_interrupt + 0x0 }
logical irq 21 mapped : <0x000b5c18> { _bfin_rtc_interrupt + 0x0 }
logical irq 27 mapped : <0x000b848c> { _bfin_twi_interrupt_entry + 0x0 }
logical irq 29 mapped : <0x000a28b8> { _bfin_serial_dma_rx_int + 0x0 }
logical irq 30 mapped : <0x000a262c> { _bfin_serial_dma_tx_int + 0x0 }
logical irq 35 mapped : <0x000b1574> { _bfin_mac_interrupt + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x02972000> /* kernel dynamic memory (maybe user-space) */
RETX: <0x0298198c> /* kernel dynamic memory (maybe user-space) */
RETS: <0x029817a4> /* kernel dynamic memory (maybe user-space) */
PC : <0x02980f00> /* kernel dynamic memory (maybe user-space) */
PROCESSOR STATE:
R0 : 00000001 R1 : 00000055 R2 : 00000001 R3 : 00000100
R4 : 00000006 R5 : 00000001 R6 : 0298a660 R7 : 0298decc
P0 : 00000550 P1 : 02988a00 P2 : 02988a00 P3 : 00000001
P4 : 0298df44 P5 : 0298bd3c FP : ffa10000 SP : 02971f24
LB0: 0298182d LT0: 02981820 LC0: 00000000
LB1: 02902759 LT1: 02902758 LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000004 I0 : 0298dc11
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 029888e0
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : ffa10000 ASTAT: 02003004
-------------------------------------------
ADSP-BF518-0.1 400(MHz CCLK) 80(MHz SCLK) (mpu off)
Linux version 2.6.33.1-ADI-2010R1-pre-svn8542 (test@uclinux80-bf518f) (gcc version 4.3.4 (ADI-trunk/svn-3815) ) #36 Wed Mar 24 11:39:07 CST 2010
SEQUENCER STATUS: Not tainted
SEQSTAT: 0000e03f IPEND: 8030 IMASK: ffff SYSCFG: 0006
Global Interrupts Disabled (IPEND[4])
HWERRCAUSE: 0x3
EXCAUSE : 0x3f
interrupts disabled
physical IVG5 asserted : <0xffa00c08> { _evt_ivhw + 0x0 }
physical IVG15 asserted : <0xffa00a50> { _schedule_and_signal + 0x0 }
logical irq 6 mapped : <0xffa00354> { _bfin_coretmr_interrupt + 0x0 }
logical irq 21 mapped : <0x000b5c18> { _bfin_rtc_interrupt + 0x0 }
logical irq 27 mapped : <0x000b848c> { _bfin_twi_interrupt_entry + 0x0 }
logical irq 29 mapped : <0x000a28b8> { _bfin_serial_dma_rx_int + 0x0 }
logical irq 30 mapped : <0x000a262c> { _bfin_serial_dma_tx_int + 0x0 }
logical irq 35 mapped : <0x000b1574> { _bfin_mac_interrupt + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x02972000> /* kernel dynamic memory (maybe user-space) */
RETX: <0x0298198c> /* kernel dynamic memory (maybe user-space) */
RETS: <0x029817a4> /* kernel dynamic memory (maybe user-space) */
PC : <0xffa00aaa> { _schedule_and_signal + 0x5a }
PROCESSOR STATE:
R0 : 00000000 R1 : 00000055 R2 : 00000001 R3 : 00000100
R4 : 00000006 R5 : 00000001 R6 : 0298a660 R7 : 0298decc
P0 : 00000550 P1 : 02988a00 P2 : 02988a00 P3 : 00000001
P4 : 0298df44 P5 : 0298bd3c FP : ffa10000 SP : 02971e48
LB0: 0298182d LT0: 02981820 LC0: 00000000
LB1: 02902759 LT1: 02902758 LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000004 I0 : 0298dc11
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 029888e0
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : ffa10000 ASTAT: 02003004
Hardware Trace:
0 Target : <0x00003f88> { _trap_c + 0x0 }
Source : <0xffa00cb2> { _evt_ivhw + 0xaa } CALL pcrel
1 Target : <0xffa00c94> { _evt_ivhw + 0x8c }
Source : <0xffa00c86> { _evt_ivhw + 0x7e } IF !CC JUMP pcrel
2 Target : <0xffa00c08> { _evt_ivhw + 0x0 }
Source : <0xffa00aa8> { _schedule_and_signal + 0x58 } 0x3620
3 Target : <0xffa00a50> { _schedule_and_signal + 0x0 }
Source : <0xffa00d10> { _evt_ivhw + 0x108 } RTI
4 Target : <0xffa00cbc> { _evt_ivhw + 0xb4 }
Source : <0xffa00992> { _ret_from_exception + 0x66 } RTS
5 Target : <0xffa0092c> { _ret_from_exception + 0x0 }
Source : <0xffa00cb8> { _evt_ivhw + 0xb0 } JUMP.L
6 Target : <0xffa00cb6> { _evt_ivhw + 0xae }
Source : <0x000040b6> { _trap_c + 0x12e } RTS
Kernel Stack
Stack info:
SP: [0x02971dec] <0x02971dec> /* kernel dynamic memory (maybe user-space) */
Memory from 0x02971de0 to 02972000
02971de0: 00044b83 00000000 0000e340 [00000006] 00000007 ffa10000 0000003f ffa10000
02971e00: 00019914 02858918 02068304 02971e80 00000000 00000007 02980f20 02980f00
02971e20: 00000000 ffa00cb6 0298bd3c 0298decc 0298a660 00000001 00000006 00000007
02971e40: 02971e80 00000013 0298198c 00008030 0000e03f 00000000 02972000 0298198c
02971e60: ffa00aaa <029817a4> 00000000 02003004 02902759 0298182d 02902758 02981820
02971e80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02971ea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02971ec0: 00000000 00000004 00000000 00000000 029888e0 0298dc11 ffa10000 ffa10000
02971ee0: 0298bd3c 0298df44 00000001 02988a00 02988a00 00000550 0298decc 0298a660
02971f00: 00000001 00000006 00000100 00000001 00000055 00000000 00000000 00000550
02971f20: 00000006 02980f00 02980f00 <0000e000> 00000000 02972000 0298198c 02980f00
02971f40:<029817a4> 00000001 02003004 02902759 0298182d 02902758 02981820 00000000
02971f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02971f80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02971fa0: 00000004 00000000 00000000 029888e0 0298dc11 ffa10000 ffa10000 0298bd3c
02971fc0: 0298df44 00000001 02988a00 02988a00 00000550 0298decc 0298a660 00000001
02971fe0: 00000006 00000100 00000001 00000055 00000001 00000001 00000550 00000006
Return addresses in stack:
address : <0x029817a4> /* kernel dynamic memory (maybe user-space) */
address : <0x0000e000> { _do_sched_setscheduler + 0x38 }
address : <0x029817a4> /* kernel dynamic memory (maybe user-space) */
Modules linked in:
Kernel panic - not syncing: Kernel exception
Hardware Trace:
Stack info:
SP: [0x02971d64] <0x02971d64> /* kernel dynamic memory (maybe user-space) */
Memory from 0x02971d60 to 02972000
02971d60: 00000013 [0013c2d4] 0010f6be 02971e48 0013c2d4 0016d4be 0016d4be 0016d4be
02971d80: 02971d9c 000043c4 02971e48 0298df44 00000001 0298decc 02971e48 0000ffff
02971da0: 0000003f 00006460 00010886 00030002 0000003f 6678303c 30316166 3e303030
02971dc0: 202a2f20 6e72656b 64206c65 6d616e79 6d206369 726f6d65 00000000 00019764
02971de0: 00044b83 00000000 0000e340 00000006 00000007 ffa10000 0000003f ffa10000
02971e00: 00019914 02858918 02068304 02971e80 00000000 00000007 02980f20 02980f00
02971e20: 00000000 ffa00cb6 0298bd3c 0298decc 0298a660 00000001 00000006 00000007
02971e40: 02971e80 00000013 0298198c 00008030 0000e03f 00000000 02972000 0298198c
02971e60: ffa00aaa <029817a4> 00000000 02003004 02902759 0298182d 02902758 02981820
02971e80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02971ea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02971ec0: 00000000 00000004 00000000 00000000 029888e0 0298dc11 ffa10000 ffa10000
02971ee0: 0298bd3c 0298df44 00000001 02988a00 02988a00 00000550 0298decc 0298a660
02971f00: 00000001 00000006 00000100 00000001 00000055 00000000 00000000 00000550
02971f20: 00000006 02980f00 02980f00 <0000e000> 00000000 02972000 0298198c 02980f00
02971f40:<029817a4> 00000001 02003004 02902759 0298182d 02902758 02981820 00000000
02971f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02971f80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02971fa0: 00000004 00000000 00000000 029888e0 0298dc11 ffa10000 ffa10000 0298bd3c
02971fc0: 0298df44 00000001 02988a00 02988a00 00000550 0298decc 0298a660 00000001
02971fe0: 00000006 00000100 00000001 00000055 00000001 00000001 00000550 00000006
Return addresses in stack:
address : <0x029817a4> /* kernel dynamic memory (maybe user-space) */
address : <0x0000e000> { _do_sched_setscheduler + 0x38 }
address : <0x029817a4> /* kernel dynamic memory (maybe user-space) */
U-Boot 2009.11.1-svn2233 (ADI-2010R1-pre) (Feb 08 2010 - 04:07:02)
CPU: ADSP bf518-0.0 (Detected Rev: 0.1) (parallel flash boot)
Board: ADI BF518F EZ-Board board
Support: http://blackfin.uclinux.org/
Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz
RAM: 64 MB
Flash: 4 MB
MMC: Blackfin SDH: 0
In: serial
Out: serial
Err: serial
KGDB: [on serial] ready
Net: Blackfin EMAC
Hit any key to stop autoboot: 0
Using Blackfin EMAC device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'uImage'.
Load address: 0x1000000
...
root:/> PHY: 0:01 - Link is Up - 100/Full
Last passed time: 2010_Mar_23_02_22, ucdist ver: 9525, kernel ver: 8531
Follow-ups
--- Sonic Zhang 2010-03-29 06:14:27
Can't replicate on svn head and bf518 ezbrd v0.1.
uClinux-dist rev. 9537
kernel rev. 8566
--- Vivi Li 2010-04-18 23:34:19
This bug is out of date now.
Close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found