Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Need help iterpreting reg-dump
@ 2009-03-20 23:45 Nils Faerber
  2009-03-21 10:37 ` Kevin D. Kissell
  0 siblings, 1 reply; 5+ messages in thread
From: Nils Faerber @ 2009-03-20 23:45 UTC (permalink / raw)
  To: linux-mips

Hello all!
By some (unlucky :) coincidence I recently came into posession of a
Ingenic JZ4730 based subnotebook and am since trying to get a more
recent kernel to boot. The only base I have at hand is 2.6.24.3 - sorry
for that. I already described most of the details in an earlier post
"Ingenic JZ4730 - illegal instruction".
Anyway I chased the issue further an now found at lteast a single point
in the kernel where the SIGILL for the applicaiton is generated, it is
arch/mips/kernel/unaligned.c

When I set the action to UNALIGNED_ACTION_SHOW I get the following dump
whenever an application causes the fault to happen:

[42949562.570000] Cpu 0
[42949562.570000] $ 0   : 00000000 10000400 ffffff93 00000020
[42949562.580000] $ 4   : 00000001 0000006d 000000c0 2aad225d
[42949562.580000] $ 8   : 00000040 fffffffe 0000000c 0000000c
[42949562.590000] $12   : 0000006d 00000003 00000003 00000000
[42949562.590000] $16   : 2aad2ee8 2aad2ef0 005ab1d8 005ab1e0
[42949562.600000] $20   : 7f8faae0 2b2a6340 7f8faa40 2aad2ee8
[42949562.610000] $24   : 00000000 2b283010
[42949562.610000] $28   : 2b2ae420 7f8faa08 00000001 2b27bda0
[42949562.620000] Hi    : 00000002
[42949562.620000] Lo    : 0f02cdc0
[42949562.620000] epc   : 7f8faa00 0x7f8faa00     Not tainted
[42949562.630000] ra    : 2b27bda0 0x2b27bda0
[42949562.630000] Status: 00000413    USER EXL IE
[42949562.640000] Cause : 00800010
[42949562.640000] BadVA : 00000001
[42949562.640000] PrId  : 02d0024f (Ingenic JZRISC)
[42949562.650000] Modules linked in:
[42949562.650000] Process gpe-info (pid: 1476, threadinfo=87cac000,
task=87dc29d
8)
[42949562.660000] Stack : 2b2ae420 7f8faa58 00000000 2b665794 2b2ae420
2b665794
2b27b8a0 2b27b8d8
[42949562.670000]         2b750950 004b6ab8 2b74a75c 00000010 2b2ae420
2aad2e30
00000003 00000005
[42949562.680000]         2aad2250 005a27d0 a2879f2e 547d42ae 2aad2e40
00000001
00598ad0 2aad2e30
[42949562.680000]         005a27d0 7f8faae0 7f8faad8 2b27b72c 7f8faaf0
2b27c8ec
00000000 40237200
[42949562.690000]         eb851eb8 401c0051 7ff80000 7ff80000 7ff80000
7ff80000
7ff80000 7ff80000
[42949562.700000]         ...
[42949562.710000] Call Trace:
[42949562.710000]
[42949562.710000]
[42949562.710000] Code: 2aad2ef0  8fbc0010  8c000001 <0000bd36> 2b27bd7c
 2b2ae4
20  7f8faa58  00000000  2b665794


The interesting point for me is now that I always end up in the
unaligned handler and never in some other random handler. This tells me
that the cache is probably not the faulty part (since then different
illegal instrcustion should occur) but rather the unalignement handling.
I am not familiar enough with MIPS to decipher the dump into something
useful.
So could someone maybe give me at least a hint in which direction to
look? A little bit more specific than just "CPU manual" would be great ;)

Many thanks in advance!

Cheers
  nils faerber

-- 
kernel concepts GbR      Tel: +49-271-771091-12
Sieghuetter Hauptweg 48  Fax: +49-271-771091-19
D-57072 Siegen           Mob: +49-176-21024535
--

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need help iterpreting reg-dump
  2009-03-20 23:45 Need help iterpreting reg-dump Nils Faerber
@ 2009-03-21 10:37 ` Kevin D. Kissell
  2009-03-23  1:30   ` Nils Faerber
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin D. Kissell @ 2009-03-21 10:37 UTC (permalink / raw)
  To: Nils Faerber; +Cc: linux-mips

Do the programs that are failing contain floating point code?  The most 
interesting thing about your dump is that the EPC address, which should 
point to the instruction generating the fault, looks to be a user stack 
address, which suggests a trampoline function.  It just so happens that 
the FPU emulator logic sets up a sort of trampoline to deal with 
instructions in the delay slots of FP branches, and this trampoline 
deliberately causes an unaligned access trap as a way of transferring 
control back to the kernel.  Furthermore, the unaligned access trap is a 
"lw $0,1($0)", which would cause the BadVA value to be 0x00000001 - 
which is what your dump is reporting.  Unfortunately, the trampoline is 
set just *above* the top of the user stack, so the stack dump in the 
diagnostic output below won't show it, nor the "cookie" (0x0000bd36) 
that should have followed it in memory to confirm that it's a deliberate 
trap (the stack needs to be aligned anyway, so we put in a sort of 
signature).

So, while I can't prove anything conclusive based on the dump below, it 
suggests that the processor took a CP1 exception on an instruction that 
was emulated as an FP branch, so that the branch delay slot instruction 
had to be executed off the top of the stack in the delay slot emulation 
code, but that something was screwed up so that the call to 
do_dsemulret() in do_ade() returned zero, so the unaligned access 
handling threw a signal instead of ignoring it.

The diagnostic code probably hasn't been armed in years, but if you 
#define DSEMUL_TRACE when the code in arch/mips/math-emu is built (or 
just hack it into dsemul.h or dsemul.c), it would help confirm or deny 
the hypothesis.

          Regards,

          Kevin K.

Nils Faerber wrote:
> Hello all!
> By some (unlucky :) coincidence I recently came into posession of a
> Ingenic JZ4730 based subnotebook and am since trying to get a more
> recent kernel to boot. The only base I have at hand is 2.6.24.3 - sorry
> for that. I already described most of the details in an earlier post
> "Ingenic JZ4730 - illegal instruction".
> Anyway I chased the issue further an now found at lteast a single point
> in the kernel where the SIGILL for the applicaiton is generated, it is
> arch/mips/kernel/unaligned.c
>
> When I set the action to UNALIGNED_ACTION_SHOW I get the following dump
> whenever an application causes the fault to happen:
>
> [42949562.570000] Cpu 0
> [42949562.570000] $ 0   : 00000000 10000400 ffffff93 00000020
> [42949562.580000] $ 4   : 00000001 0000006d 000000c0 2aad225d
> [42949562.580000] $ 8   : 00000040 fffffffe 0000000c 0000000c
> [42949562.590000] $12   : 0000006d 00000003 00000003 00000000
> [42949562.590000] $16   : 2aad2ee8 2aad2ef0 005ab1d8 005ab1e0
> [42949562.600000] $20   : 7f8faae0 2b2a6340 7f8faa40 2aad2ee8
> [42949562.610000] $24   : 00000000 2b283010
> [42949562.610000] $28   : 2b2ae420 7f8faa08 00000001 2b27bda0
> [42949562.620000] Hi    : 00000002
> [42949562.620000] Lo    : 0f02cdc0
> [42949562.620000] epc   : 7f8faa00 0x7f8faa00     Not tainted
> [42949562.630000] ra    : 2b27bda0 0x2b27bda0
> [42949562.630000] Status: 00000413    USER EXL IE
> [42949562.640000] Cause : 00800010
> [42949562.640000] BadVA : 00000001
> [42949562.640000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949562.650000] Modules linked in:
> [42949562.650000] Process gpe-info (pid: 1476, threadinfo=87cac000,
> task=87dc29d
> 8)
> [42949562.660000] Stack : 2b2ae420 7f8faa58 00000000 2b665794 2b2ae420
> 2b665794
> 2b27b8a0 2b27b8d8
> [42949562.670000]         2b750950 004b6ab8 2b74a75c 00000010 2b2ae420
> 2aad2e30
> 00000003 00000005
> [42949562.680000]         2aad2250 005a27d0 a2879f2e 547d42ae 2aad2e40
> 00000001
> 00598ad0 2aad2e30
> [42949562.680000]         005a27d0 7f8faae0 7f8faad8 2b27b72c 7f8faaf0
> 2b27c8ec
> 00000000 40237200
> [42949562.690000]         eb851eb8 401c0051 7ff80000 7ff80000 7ff80000
> 7ff80000
> 7ff80000 7ff80000
> [42949562.700000]         ...
> [42949562.710000] Call Trace:
> [42949562.710000]
> [42949562.710000]
> [42949562.710000] Code: 2aad2ef0  8fbc0010  8c000001 <0000bd36> 2b27bd7c
>  2b2ae4
> 20  7f8faa58  00000000  2b665794
>
>
> The interesting point for me is now that I always end up in the
> unaligned handler and never in some other random handler. This tells me
> that the cache is probably not the faulty part (since then different
> illegal instrcustion should occur) but rather the unalignement handling.
> I am not familiar enough with MIPS to decipher the dump into something
> useful.
> So could someone maybe give me at least a hint in which direction to
> look? A little bit more specific than just "CPU manual" would be great ;)
>
> Many thanks in advance!
>
> Cheers
>   nils faerber
>
>   

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need help iterpreting reg-dump
  2009-03-21 10:37 ` Kevin D. Kissell
@ 2009-03-23  1:30   ` Nils Faerber
  2009-03-23  1:46     ` Markus Gothe
  2009-03-23  7:25     ` Kevin D. Kissell
  0 siblings, 2 replies; 5+ messages in thread
From: Nils Faerber @ 2009-03-23  1:30 UTC (permalink / raw)
  To: Kevin D. Kissell; +Cc: linux-mips

Hallo Kevin!

First of all many thanks for your thoughts and especially your
explanations of some of the kernel's internals!

Kevin D. Kissell schrieb:
[...]
> So, while I can't prove anything conclusive based on the dump below, it
> suggests that the processor took a CP1 exception on an instruction that
> was emulated as an FP branch, so that the branch delay slot instruction
> had to be executed off the top of the stack in the delay slot emulation
> code, but that something was screwed up so that the call to
> do_dsemulret() in do_ade() returned zero, so the unaligned access
> handling threw a signal instead of ignoring it.
> 
> The diagnostic code probably hasn't been armed in years, but if you
> #define DSEMUL_TRACE when the code in arch/mips/math-emu is built (or
> just hack it into dsemul.h or dsemul.c), it would help confirm or deny
> the hypothesis.

I have added some more debug outputs to the code. I can confirm now
defnitely that the dsemul path is run and the the SIGILL is the result
of a dsemul_ret returning 0, also see the below extended dumps.

The strange thing is the fault does not always occur and if it occurs it
does not always happen in the same place of the application. So I assume
that this is not a problem of the application itself deliberatley
executing a certain instruction but rather a side effect of something
different - like wrong caches. On the other hand again it is strange
that only the dsemul path seems to be triggered.

Could it be that the exception that is used for math emulation can also
have other causes in different CPU implementations? The JZ4730 has some
DSP alike SIMD instructions... but then again why can't it be traced to
a single instruction inside the application (i.e. rather seems to happen
randomly)?

>          Regards,
>          Kevin K.
Cheers
  nils faerber

[42949414.060000] do_dsemulret: bad magics, insn=0x8c830004
[42949414.080000] do_dsemulret: cannot access emuframe
[42949414.080000] Cpu 0
[42949414.090000] $ 0   : 00000000 10000400 00000000 00000000
[42949414.090000] $ 4   : 8033e528 80000000 00000024 0041469c
[42949414.100000] $ 8   : 10000401 1000001e 00000003 00000022
[42949414.100000] $12   : 2ac9a200 2aca0000 ffffffff 00401820
[42949414.110000] $16   : 14400022 87d45f30 ffffffff 00414660
[42949414.110000] $20   : 00000000 00000000 00000000 2ac0fa18
[42949414.120000] $24   : 00000047 00000000
[42949414.130000] $28   : 87d44000 87d45ee8 00000000 80020bf0
[42949414.130000] Hi    : 0000002c
[42949414.130000] Lo    : 0003aac9
[42949414.140000] epc   : 80034098 do_dsemulret+0x3c/0xf4     Not tainted
[42949414.140000] ra    : 80020bf0 do_ade+0x20/0x3c0
[42949414.150000] Status: 10000403    KERNEL EXL IE
[42949414.150000] Cause : 10800010
[42949414.160000] BadVA : 14400026
[42949414.160000] PrId  : 02d0024f (Ingenic JZRISC)
[42949414.160000] Modules linked in:
[42949414.170000] Process keylaunch (pid: 1222, threadinfo=87d44000,
task=87d6e1
78)
[42949414.180000] Stack : 87d6e178 802dca50 8c830004 30620002 87d45f30
0041bbe1
80020bf0 00414660
[42949414.180000]         00414660 0041bbe1 ffffffff 00414660 00414660
0041bbe1
ffffffff 00414660
[42949414.190000]         80018fa0 80019120 004d8474 004d843c 004d844c
004d8a02
ffffffff 00000000
[42949414.200000]         00000000 10000400 2ae66754 00418690 0041bbd9
0041bbe1
00000024 0041469c
[42949414.210000]         00000023 00414690 00000003 00000022 2ac9a200
2aca0000
ffffffff 00401820
[42949414.220000]         ...
[42949414.220000] Call Trace:
[42949414.230000] [<80034098>] do_dsemulret+0x3c/0xf4
[42949414.230000] [<80020bf0>] do_ade+0x20/0x3c0
[42949414.230000] [<80018fa0>] ret_from_exception+0x0/0x24
[42949414.240000]
[42949414.240000]
[42949414.240000] Code: 1460002b  2484e528  00601021 <8e060004> 8e070008
 3c0480
34  00431025  2484e550  10400013
[42949414.290000] do_dsemulret: cannot access emuframe
[42949414.290000] Cpu 0
[42949414.300000] $ 0   : 00000000 10000400 fffffff2 00000000
[42949414.300000] $ 4   : 8033e528 80000000 00000024 0041469c
[42949414.310000] $ 8   : 10000401 1000001e 00000003 00000022
[42949414.310000] $12   : 2ac9a200 2aca0000 ffffffff 00401820
[42949414.320000] $16   : 14400022 87d45f30 ffffffff 00414660
[42949414.320000] $20   : 00000000 00000000 00000000 2ac0fa18
[42949414.330000] $24   : 00000047 00000000
[42949414.330000] $28   : 87d44000 87d45ee8 00000000 80020bf0
[42949414.340000] Hi    : 0000002c
[42949414.340000] Lo    : 0003aac9
[42949414.350000] epc   : 8003409c do_dsemulret+0x40/0xf4     Not tainted
[42949414.350000] ra    : 80020bf0 do_ade+0x20/0x3c0
[42949414.360000] Status: 10000403    KERNEL EXL IE
[42949414.360000] Cause : 00800010
[42949414.370000] BadVA : 1440002a
[42949414.370000] PrId  : 02d0024f (Ingenic JZRISC)
[42949414.370000] Modules linked in:
[42949414.380000] Process keylaunch (pid: 1222, threadinfo=87d44000,
task=87d6e1
78)
[42949414.380000] Stack : 87d6e178 802dca50 8c830004 30620002 87d45f30
0041bbe1
80020bf0 00414660
[42949414.390000]         00414660 0041bbe1 ffffffff 00414660 00414660
0041bbe1
ffffffff 00414660
[42949414.400000]         80018fa0 80019120 004d8474 004d843c 004d844c
004d8a02
ffffffff 00000000
[42949414.410000]         00000000 10000400 2ae66754 00418690 0041bbd9
0041bbe1
00000024 0041469c
[42949414.420000]         00000023 00414690 00000003 00000022 2ac9a200
2aca0000
ffffffff 00401820
[42949414.430000]         ...
[42949414.430000] Call Trace:
[42949414.430000] [<8003409c>] do_dsemulret+0x40/0xf4
[42949414.440000] [<80020bf0>] do_ade+0x20/0x3c0
[42949414.440000] [<80018fa0>] ret_from_exception+0x0/0x24
[42949414.450000]
[42949414.450000]
[42949414.450000] Code: 2484e528  00601021  8e060004 <8e070008> 3c048034
 004310
25  2484e550  10400013  00c02821
[42949414.550000] do_dsemulret: bad magics, insn=0x00000024
[42949414.560000] do_dsemulret: cannot access emuframe
[42949414.560000] Cpu 0
[42949414.560000] $ 0   : 00000000 10000400 00000000 803bf8d0
[42949414.570000] $ 4   : 8037c3d0 87d9fefc 00000005 00000005
[42949414.570000] $ 8   : ebd8a1cf 00000005 feced300 ffffffff
[42949414.580000] $12   : ec71384f 00000005 ffffffff 803bfd88
[42949414.590000] $16   : 14400022 87d45f30 ffffffff 00414660
[42949414.590000] $20   : 00000000 00000000 00000000 2ac0fa18
[42949414.600000] $24   : 00000001 803bfda8
[42949414.600000] $28   : 87d44000 87d45ee8 00000000 800340bc
[42949414.610000] Hi    : 00989643
[42949414.610000] Lo    : d5905180
[42949414.610000] epc   : 800340d4 do_dsemulret+0x78/0xf4     Not tainted
[42949414.620000] ra    : 800340bc do_dsemulret+0x60/0xf4
[42949414.630000] Status: 10000403    KERNEL EXL IE
[42949414.630000] Cause : 20800010
[42949414.630000] BadVA : 1440002e
[42949414.640000] PrId  : 02d0024f (Ingenic JZRISC)
[42949414.640000] Modules linked in:
[42949414.650000] Process keylaunch (pid: 1222, threadinfo=87d44000,
task=87d6e1
78)
[42949414.650000] Stack : 87d6e178 00000024 00000024 0041469c 87d45f30
0041bbe1
80020bf0 00414660
[42949414.660000]         00414660 0041bbe1 ffffffff 00414660 00414660
0041bbe1
ffffffff 00414660
[42949414.670000]         80018fa0 80019120 004d8474 004d843c 004d844c
004d8a02
ffffffff 00000000
[42949414.680000]         00000000 10000400 2ae66754 00418690 0041bbd9
0041bbe1
00000024 0041469c
[42949414.690000]         00000023 00414690 00000003 00000022 2ac9a200
2aca0000
ffffffff 00401820
[42949414.700000]         ...
[42949414.700000] Call Trace:
[42949414.700000] [<800340d4>] do_dsemulret+0x78/0xf4
[42949414.710000] [<80020bf0>] do_ade+0x20/0x3c0
[42949414.710000] [<80018fa0>] ret_from_exception+0x0/0x24
[42949414.720000]
[42949414.720000]
[42949414.720000] Code: 24420001  ac620014  00001021 <8e03000c> 14400010
 240400
0a  ae2300ac  24020001  8fbf0018
[42949416.460000] do_dsemulret: bad magics, insn=0x8c830004
[42949416.460000] do_dsemulret: cannot access emuframe
[42949416.470000] Cpu 0
[42949416.470000] $ 0   : 00000000 10000400 00000000 00000000
[42949416.480000] $ 4   : 8033e528 80000000 00425c90 00000019
[42949416.480000] $ 8   : 10000401 1000001e 36384658 72617453
[42949416.490000] $12   : 87d744c0 00000000 87d744c0 00000000
[42949416.490000] $16   : 14400022 87b0bf30 00414008 0000003f
[42949416.500000] $20   : 00425c90 00400000 00400000 00000000
[42949416.500000] $24   : 00000003 00000000
[42949416.510000] $28   : 87b0a000 87b0bee8 2ae64858 80020bf0
[42949416.520000] Hi    : 307e68e8
[42949416.520000] Lo    : e1cb4540
[42949416.520000] epc   : 80034098 do_dsemulret+0x3c/0xf4     Not tainted
[42949416.530000] ra    : 80020bf0 do_ade+0x20/0x3c0
[42949416.530000] Status: 10000403    KERNEL EXL IE
[42949416.540000] Cause : 10800010
[42949416.540000] BadVA : 14400026
[42949416.540000] PrId  : 02d0024f (Ingenic JZRISC)
[42949416.550000] Modules linked in:
[42949416.550000] Process keylaunch (pid: 1274, threadinfo=87b0a000,
task=87daed
f8)
[42949416.560000] Stack : 87daedf8 802dca50 8c830004 30620002 87b0bf30
0041bbd9
80020bf0 0000003f
[42949416.570000]         00425c94 0041bbd9 00414008 0000003f 00425c94
0041bbd9
00414008 0000003f
[42949416.580000]         80018fa0 80019120 004d928c 004d8e44 004d9254
004daa9c
ffffffff 00000000
[42949416.590000]         00000000 10000400 2ae66754 00000001 0041bbd1
00000001
00425c90 00000019
[42949416.600000]         ffffffff ffffffff 36384658 72617453 87d744c0
00000000
87d744c0 00000000
[42949416.600000]         ...
[42949416.610000] Call Trace:
[42949416.610000] [<80034098>] do_dsemulret+0x3c/0xf4
[42949416.610000] [<80020bf0>] do_ade+0x20/0x3c0
[42949416.620000] [<80018fa0>] ret_from_exception+0x0/0x24
[42949416.620000]
[42949416.630000]
[42949416.630000] Code: 1460002b  2484e528  00601021 <8e060004> 8e070008
 3c0480
34  00431025  2484e550  10400013
[42949417.210000] do_dsemulret: bad magics, insn=0xaca20000
[42949417.970000] do_dsemulret: cannot access emuframe
[42949417.970000] Cpu 0
[42949417.980000] $ 0   : 00000000 10000400 fffffff2 00000000
[42949417.980000] $ 4   : 8033e528 80000000 00425c90 00000019
[42949417.990000] $ 8   : 10000401 1000001e 36384658 72617453
[42949417.990000] $12   : 87d744c0 00000000 87d744c0 00000000
[42949418.000000] $16   : 14400022 87b0bf30 00414008 0000003f
[42949418.000000] $20   : 00425c90 00400000 00400000 00000000
[42949418.010000] $24   : 00000003 00000000
[42949418.020000] $28   : 87b0a000 87b0bee8 2ae64858 80020bf0
[42949418.020000] Hi    : 307e68e8
[42949418.020000] Lo    : e1cb4540
[42949418.030000] epc   : 8003409c do_dsemulret+0x40/0xf4     Not tainted
[42949418.030000] ra    : 80020bf0 do_ade+0x20/0x3c0
[42949418.040000] Status: 10000403    KERNEL EXL IE
[42949418.040000] Cause : 00800010
[42949418.050000] BadVA : 1440002a
[42949418.050000] PrId  : 02d0024f (Ingenic JZRISC)
[42949418.060000] Modules linked in:
[42949418.060000] Process keylaunch (pid: 1274, threadinfo=87b0a000,
task=87daed
f8)
[42949418.070000] Stack : 87daedf8 802dca50 8c830004 30620002 87b0bf30
0041bbd9
80020bf0 0000003f
[42949418.070000]         00425c94 0041bbd9 00414008 0000003f 00425c94
0041bbd9
00414008 0000003f
[42949418.080000]         80018fa0 80019120 004d928c 004d8e44 004d9254
004daa9c
ffffffff 00000000
[42949418.090000]         00000000 10000400 2ae66754 00000001 0041bbd1
00000001
00425c90 00000019
[42949418.100000]         ffffffff ffffffff 36384658 72617453 87d744c0
00000000
87d744c0 00000000
[42949418.110000]         ...
[42949418.110000] Call Trace:
[42949418.120000] [<8003409c>] do_dsemulret+0x40/0xf4
[42949418.120000] [<80020bf0>] do_ade+0x20/0x3c0
[42949418.120000] [<80018fa0>] ret_from_exception+0x0/0x24
[42949418.130000]
[42949418.130000]
[42949418.130000] Code: 2484e528  00601021  8e060004 <8e070008> 3c048034
 004310
25  2484e550  10400013  00c02821
[42949419.210000] do_dsemulret: bad magics, insn=0x00425c90
[42949419.210000] do_dsemulret: cannot access emuframe
[42949419.220000] Cpu 0
[42949419.220000] $ 0   : 00000000 10000400 00000000 803bf8d0
[42949419.220000] $ 4   : 8037c3d0 87d9fefc 00000006 00000000
[42949419.230000] $ 8   : 3c317acd 00000006 feced300 ffffffff
[42949419.230000] $12   : 3cca114d 00000006 ffffffff 803bfd88
[42949419.240000] $16   : 14400022 87b0bf30 00414008 0000003f
[42949419.250000] $20   : 00425c90 00400000 00400000 00000000
[42949419.250000] $24   : 00000001 803bfda8
[42949419.260000] $28   : 87b0a000 87b0bee8 2ae64858 800340bc
[42949419.260000] Hi    : 00989644
[42949419.270000] Lo    : eb524680
[42949419.270000] epc   : 800340d4 do_dsemulret+0x78/0xf4     Not tainted
[42949419.280000] ra    : 800340bc do_dsemulret+0x60/0xf4
[42949419.280000] Status: 10000403    KERNEL EXL IE
[42949419.290000] Cause : 20800010
[42949419.290000] BadVA : 1440002e
[42949419.290000] PrId  : 02d0024f (Ingenic JZRISC)
[42949419.300000] Modules linked in:
[42949419.300000] Process keylaunch (pid: 1274, threadinfo=87b0a000,
task=87daed
f8)
[42949419.310000] Stack : 87daedf8 00425c90 00425c90 00000019 87b0bf30
0041bbd9
80020bf0 0000003f
[42949419.320000]         00425c94 0041bbd9 00414008 0000003f 00425c94
0041bbd9
00414008 0000003f
[42949419.320000]         80018fa0 80019120 004d928c 004d8e44 004d9254
004daa9c
ffffffff 00000000
[42949419.330000]         00000000 10000400 2ae66754 00000001 0041bbd1
00000001
00425c90 00000019
[42949419.340000]         ffffffff ffffffff 36384658 72617453 87d744c0
00000000
87d744c0 00000000
[42949419.350000]         ...
[42949419.350000] Call Trace:
[42949419.360000] [<800340d4>] do_dsemulret+0x78/0xf4
[42949419.360000] [<80020bf0>] do_ade+0x20/0x3c0
[42949419.370000] [<80018fa0>] ret_from_exception+0x0/0x24
[42949419.370000]
[42949419.370000]
[42949419.370000] Code: 24420001  ac620014  00001021 <8e03000c> 14400010
 240400
0a  ae2300ac  24020001  8fbf0018

-- 
kernel concepts GbR      Tel: +49-271-771091-12
Sieghuetter Hauptweg 48  Fax: +49-271-771091-19
D-57072 Siegen           Mob: +49-176-21024535
--

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need help iterpreting reg-dump
  2009-03-23  1:30   ` Nils Faerber
@ 2009-03-23  1:46     ` Markus Gothe
  2009-03-23  7:25     ` Kevin D. Kissell
  1 sibling, 0 replies; 5+ messages in thread
From: Markus Gothe @ 2009-03-23  1:46 UTC (permalink / raw)
  To: Nils Faerber; +Cc: Kevin D. Kissell, linux-mips

[-- Attachment #1: Type: text/plain, Size: 14700 bytes --]

As you can se the Read-Address (ra) is within do_ade(...). Try running  
a cross-gdb on the host and list the ra for pinpointing...

//Markus
On 23 Mar 2009, at 02:30, Nils Faerber wrote:

> Hallo Kevin!
>
> First of all many thanks for your thoughts and especially your
> explanations of some of the kernel's internals!
>
> Kevin D. Kissell schrieb:
> [...]
>> So, while I can't prove anything conclusive based on the dump  
>> below, it
>> suggests that the processor took a CP1 exception on an instruction  
>> that
>> was emulated as an FP branch, so that the branch delay slot  
>> instruction
>> had to be executed off the top of the stack in the delay slot  
>> emulation
>> code, but that something was screwed up so that the call to
>> do_dsemulret() in do_ade() returned zero, so the unaligned access
>> handling threw a signal instead of ignoring it.
>>
>> The diagnostic code probably hasn't been armed in years, but if you
>> #define DSEMUL_TRACE when the code in arch/mips/math-emu is built (or
>> just hack it into dsemul.h or dsemul.c), it would help confirm or  
>> deny
>> the hypothesis.
>
> I have added some more debug outputs to the code. I can confirm now
> defnitely that the dsemul path is run and the the SIGILL is the result
> of a dsemul_ret returning 0, also see the below extended dumps.
>
> The strange thing is the fault does not always occur and if it  
> occurs it
> does not always happen in the same place of the application. So I  
> assume
> that this is not a problem of the application itself deliberatley
> executing a certain instruction but rather a side effect of something
> different - like wrong caches. On the other hand again it is strange
> that only the dsemul path seems to be triggered.
>
> Could it be that the exception that is used for math emulation can  
> also
> have other causes in different CPU implementations? The JZ4730 has  
> some
> DSP alike SIMD instructions... but then again why can't it be traced  
> to
> a single instruction inside the application (i.e. rather seems to  
> happen
> randomly)?
>
>>         Regards,
>>         Kevin K.
> Cheers
>  nils faerber
>
> [42949414.060000] do_dsemulret: bad magics, insn=0x8c830004
> [42949414.080000] do_dsemulret: cannot access emuframe
> [42949414.080000] Cpu 0
> [42949414.090000] $ 0   : 00000000 10000400 00000000 00000000
> [42949414.090000] $ 4   : 8033e528 80000000 00000024 0041469c
> [42949414.100000] $ 8   : 10000401 1000001e 00000003 00000022
> [42949414.100000] $12   : 2ac9a200 2aca0000 ffffffff 00401820
> [42949414.110000] $16   : 14400022 87d45f30 ffffffff 00414660
> [42949414.110000] $20   : 00000000 00000000 00000000 2ac0fa18
> [42949414.120000] $24   : 00000047 00000000
> [42949414.130000] $28   : 87d44000 87d45ee8 00000000 80020bf0
> [42949414.130000] Hi    : 0000002c
> [42949414.130000] Lo    : 0003aac9
> [42949414.140000] epc   : 80034098 do_dsemulret+0x3c/0xf4     Not  
> tainted
> [42949414.140000] ra    : 80020bf0 do_ade+0x20/0x3c0
> [42949414.150000] Status: 10000403    KERNEL EXL IE
> [42949414.150000] Cause : 10800010
> [42949414.160000] BadVA : 14400026
> [42949414.160000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949414.160000] Modules linked in:
> [42949414.170000] Process keylaunch (pid: 1222, threadinfo=87d44000,
> task=87d6e1
> 78)
> [42949414.180000] Stack : 87d6e178 802dca50 8c830004 30620002 87d45f30
> 0041bbe1
> 80020bf0 00414660
> [42949414.180000]         00414660 0041bbe1 ffffffff 00414660 00414660
> 0041bbe1
> ffffffff 00414660
> [42949414.190000]         80018fa0 80019120 004d8474 004d843c 004d844c
> 004d8a02
> ffffffff 00000000
> [42949414.200000]         00000000 10000400 2ae66754 00418690 0041bbd9
> 0041bbe1
> 00000024 0041469c
> [42949414.210000]         00000023 00414690 00000003 00000022 2ac9a200
> 2aca0000
> ffffffff 00401820
> [42949414.220000]         ...
> [42949414.220000] Call Trace:
> [42949414.230000] [<80034098>] do_dsemulret+0x3c/0xf4
> [42949414.230000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949414.230000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949414.240000]
> [42949414.240000]
> [42949414.240000] Code: 1460002b  2484e528  00601021 <8e060004>  
> 8e070008
> 3c0480
> 34  00431025  2484e550  10400013
> [42949414.290000] do_dsemulret: cannot access emuframe
> [42949414.290000] Cpu 0
> [42949414.300000] $ 0   : 00000000 10000400 fffffff2 00000000
> [42949414.300000] $ 4   : 8033e528 80000000 00000024 0041469c
> [42949414.310000] $ 8   : 10000401 1000001e 00000003 00000022
> [42949414.310000] $12   : 2ac9a200 2aca0000 ffffffff 00401820
> [42949414.320000] $16   : 14400022 87d45f30 ffffffff 00414660
> [42949414.320000] $20   : 00000000 00000000 00000000 2ac0fa18
> [42949414.330000] $24   : 00000047 00000000
> [42949414.330000] $28   : 87d44000 87d45ee8 00000000 80020bf0
> [42949414.340000] Hi    : 0000002c
> [42949414.340000] Lo    : 0003aac9
> [42949414.350000] epc   : 8003409c do_dsemulret+0x40/0xf4     Not  
> tainted
> [42949414.350000] ra    : 80020bf0 do_ade+0x20/0x3c0
> [42949414.360000] Status: 10000403    KERNEL EXL IE
> [42949414.360000] Cause : 00800010
> [42949414.370000] BadVA : 1440002a
> [42949414.370000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949414.370000] Modules linked in:
> [42949414.380000] Process keylaunch (pid: 1222, threadinfo=87d44000,
> task=87d6e1
> 78)
> [42949414.380000] Stack : 87d6e178 802dca50 8c830004 30620002 87d45f30
> 0041bbe1
> 80020bf0 00414660
> [42949414.390000]         00414660 0041bbe1 ffffffff 00414660 00414660
> 0041bbe1
> ffffffff 00414660
> [42949414.400000]         80018fa0 80019120 004d8474 004d843c 004d844c
> 004d8a02
> ffffffff 00000000
> [42949414.410000]         00000000 10000400 2ae66754 00418690 0041bbd9
> 0041bbe1
> 00000024 0041469c
> [42949414.420000]         00000023 00414690 00000003 00000022 2ac9a200
> 2aca0000
> ffffffff 00401820
> [42949414.430000]         ...
> [42949414.430000] Call Trace:
> [42949414.430000] [<8003409c>] do_dsemulret+0x40/0xf4
> [42949414.440000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949414.440000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949414.450000]
> [42949414.450000]
> [42949414.450000] Code: 2484e528  00601021  8e060004 <8e070008>  
> 3c048034
> 004310
> 25  2484e550  10400013  00c02821
> [42949414.550000] do_dsemulret: bad magics, insn=0x00000024
> [42949414.560000] do_dsemulret: cannot access emuframe
> [42949414.560000] Cpu 0
> [42949414.560000] $ 0   : 00000000 10000400 00000000 803bf8d0
> [42949414.570000] $ 4   : 8037c3d0 87d9fefc 00000005 00000005
> [42949414.570000] $ 8   : ebd8a1cf 00000005 feced300 ffffffff
> [42949414.580000] $12   : ec71384f 00000005 ffffffff 803bfd88
> [42949414.590000] $16   : 14400022 87d45f30 ffffffff 00414660
> [42949414.590000] $20   : 00000000 00000000 00000000 2ac0fa18
> [42949414.600000] $24   : 00000001 803bfda8
> [42949414.600000] $28   : 87d44000 87d45ee8 00000000 800340bc
> [42949414.610000] Hi    : 00989643
> [42949414.610000] Lo    : d5905180
> [42949414.610000] epc   : 800340d4 do_dsemulret+0x78/0xf4     Not  
> tainted
> [42949414.620000] ra    : 800340bc do_dsemulret+0x60/0xf4
> [42949414.630000] Status: 10000403    KERNEL EXL IE
> [42949414.630000] Cause : 20800010
> [42949414.630000] BadVA : 1440002e
> [42949414.640000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949414.640000] Modules linked in:
> [42949414.650000] Process keylaunch (pid: 1222, threadinfo=87d44000,
> task=87d6e1
> 78)
> [42949414.650000] Stack : 87d6e178 00000024 00000024 0041469c 87d45f30
> 0041bbe1
> 80020bf0 00414660
> [42949414.660000]         00414660 0041bbe1 ffffffff 00414660 00414660
> 0041bbe1
> ffffffff 00414660
> [42949414.670000]         80018fa0 80019120 004d8474 004d843c 004d844c
> 004d8a02
> ffffffff 00000000
> [42949414.680000]         00000000 10000400 2ae66754 00418690 0041bbd9
> 0041bbe1
> 00000024 0041469c
> [42949414.690000]         00000023 00414690 00000003 00000022 2ac9a200
> 2aca0000
> ffffffff 00401820
> [42949414.700000]         ...
> [42949414.700000] Call Trace:
> [42949414.700000] [<800340d4>] do_dsemulret+0x78/0xf4
> [42949414.710000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949414.710000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949414.720000]
> [42949414.720000]
> [42949414.720000] Code: 24420001  ac620014  00001021 <8e03000c>  
> 14400010
> 240400
> 0a  ae2300ac  24020001  8fbf0018
> [42949416.460000] do_dsemulret: bad magics, insn=0x8c830004
> [42949416.460000] do_dsemulret: cannot access emuframe
> [42949416.470000] Cpu 0
> [42949416.470000] $ 0   : 00000000 10000400 00000000 00000000
> [42949416.480000] $ 4   : 8033e528 80000000 00425c90 00000019
> [42949416.480000] $ 8   : 10000401 1000001e 36384658 72617453
> [42949416.490000] $12   : 87d744c0 00000000 87d744c0 00000000
> [42949416.490000] $16   : 14400022 87b0bf30 00414008 0000003f
> [42949416.500000] $20   : 00425c90 00400000 00400000 00000000
> [42949416.500000] $24   : 00000003 00000000
> [42949416.510000] $28   : 87b0a000 87b0bee8 2ae64858 80020bf0
> [42949416.520000] Hi    : 307e68e8
> [42949416.520000] Lo    : e1cb4540
> [42949416.520000] epc   : 80034098 do_dsemulret+0x3c/0xf4     Not  
> tainted
> [42949416.530000] ra    : 80020bf0 do_ade+0x20/0x3c0
> [42949416.530000] Status: 10000403    KERNEL EXL IE
> [42949416.540000] Cause : 10800010
> [42949416.540000] BadVA : 14400026
> [42949416.540000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949416.550000] Modules linked in:
> [42949416.550000] Process keylaunch (pid: 1274, threadinfo=87b0a000,
> task=87daed
> f8)
> [42949416.560000] Stack : 87daedf8 802dca50 8c830004 30620002 87b0bf30
> 0041bbd9
> 80020bf0 0000003f
> [42949416.570000]         00425c94 0041bbd9 00414008 0000003f 00425c94
> 0041bbd9
> 00414008 0000003f
> [42949416.580000]         80018fa0 80019120 004d928c 004d8e44 004d9254
> 004daa9c
> ffffffff 00000000
> [42949416.590000]         00000000 10000400 2ae66754 00000001 0041bbd1
> 00000001
> 00425c90 00000019
> [42949416.600000]         ffffffff ffffffff 36384658 72617453 87d744c0
> 00000000
> 87d744c0 00000000
> [42949416.600000]         ...
> [42949416.610000] Call Trace:
> [42949416.610000] [<80034098>] do_dsemulret+0x3c/0xf4
> [42949416.610000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949416.620000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949416.620000]
> [42949416.630000]
> [42949416.630000] Code: 1460002b  2484e528  00601021 <8e060004>  
> 8e070008
> 3c0480
> 34  00431025  2484e550  10400013
> [42949417.210000] do_dsemulret: bad magics, insn=0xaca20000
> [42949417.970000] do_dsemulret: cannot access emuframe
> [42949417.970000] Cpu 0
> [42949417.980000] $ 0   : 00000000 10000400 fffffff2 00000000
> [42949417.980000] $ 4   : 8033e528 80000000 00425c90 00000019
> [42949417.990000] $ 8   : 10000401 1000001e 36384658 72617453
> [42949417.990000] $12   : 87d744c0 00000000 87d744c0 00000000
> [42949418.000000] $16   : 14400022 87b0bf30 00414008 0000003f
> [42949418.000000] $20   : 00425c90 00400000 00400000 00000000
> [42949418.010000] $24   : 00000003 00000000
> [42949418.020000] $28   : 87b0a000 87b0bee8 2ae64858 80020bf0
> [42949418.020000] Hi    : 307e68e8
> [42949418.020000] Lo    : e1cb4540
> [42949418.030000] epc   : 8003409c do_dsemulret+0x40/0xf4     Not  
> tainted
> [42949418.030000] ra    : 80020bf0 do_ade+0x20/0x3c0
> [42949418.040000] Status: 10000403    KERNEL EXL IE
> [42949418.040000] Cause : 00800010
> [42949418.050000] BadVA : 1440002a
> [42949418.050000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949418.060000] Modules linked in:
> [42949418.060000] Process keylaunch (pid: 1274, threadinfo=87b0a000,
> task=87daed
> f8)
> [42949418.070000] Stack : 87daedf8 802dca50 8c830004 30620002 87b0bf30
> 0041bbd9
> 80020bf0 0000003f
> [42949418.070000]         00425c94 0041bbd9 00414008 0000003f 00425c94
> 0041bbd9
> 00414008 0000003f
> [42949418.080000]         80018fa0 80019120 004d928c 004d8e44 004d9254
> 004daa9c
> ffffffff 00000000
> [42949418.090000]         00000000 10000400 2ae66754 00000001 0041bbd1
> 00000001
> 00425c90 00000019
> [42949418.100000]         ffffffff ffffffff 36384658 72617453 87d744c0
> 00000000
> 87d744c0 00000000
> [42949418.110000]         ...
> [42949418.110000] Call Trace:
> [42949418.120000] [<8003409c>] do_dsemulret+0x40/0xf4
> [42949418.120000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949418.120000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949418.130000]
> [42949418.130000]
> [42949418.130000] Code: 2484e528  00601021  8e060004 <8e070008>  
> 3c048034
> 004310
> 25  2484e550  10400013  00c02821
> [42949419.210000] do_dsemulret: bad magics, insn=0x00425c90
> [42949419.210000] do_dsemulret: cannot access emuframe
> [42949419.220000] Cpu 0
> [42949419.220000] $ 0   : 00000000 10000400 00000000 803bf8d0
> [42949419.220000] $ 4   : 8037c3d0 87d9fefc 00000006 00000000
> [42949419.230000] $ 8   : 3c317acd 00000006 feced300 ffffffff
> [42949419.230000] $12   : 3cca114d 00000006 ffffffff 803bfd88
> [42949419.240000] $16   : 14400022 87b0bf30 00414008 0000003f
> [42949419.250000] $20   : 00425c90 00400000 00400000 00000000
> [42949419.250000] $24   : 00000001 803bfda8
> [42949419.260000] $28   : 87b0a000 87b0bee8 2ae64858 800340bc
> [42949419.260000] Hi    : 00989644
> [42949419.270000] Lo    : eb524680
> [42949419.270000] epc   : 800340d4 do_dsemulret+0x78/0xf4     Not  
> tainted
> [42949419.280000] ra    : 800340bc do_dsemulret+0x60/0xf4
> [42949419.280000] Status: 10000403    KERNEL EXL IE
> [42949419.290000] Cause : 20800010
> [42949419.290000] BadVA : 1440002e
> [42949419.290000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949419.300000] Modules linked in:
> [42949419.300000] Process keylaunch (pid: 1274, threadinfo=87b0a000,
> task=87daed
> f8)
> [42949419.310000] Stack : 87daedf8 00425c90 00425c90 00000019 87b0bf30
> 0041bbd9
> 80020bf0 0000003f
> [42949419.320000]         00425c94 0041bbd9 00414008 0000003f 00425c94
> 0041bbd9
> 00414008 0000003f
> [42949419.320000]         80018fa0 80019120 004d928c 004d8e44 004d9254
> 004daa9c
> ffffffff 00000000
> [42949419.330000]         00000000 10000400 2ae66754 00000001 0041bbd1
> 00000001
> 00425c90 00000019
> [42949419.340000]         ffffffff ffffffff 36384658 72617453 87d744c0
> 00000000
> 87d744c0 00000000
> [42949419.350000]         ...
> [42949419.350000] Call Trace:
> [42949419.360000] [<800340d4>] do_dsemulret+0x78/0xf4
> [42949419.360000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949419.370000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949419.370000]
> [42949419.370000]
> [42949419.370000] Code: 24420001  ac620014  00001021 <8e03000c>  
> 14400010
> 240400
> 0a  ae2300ac  24020001  8fbf0018
>
> -- 
> kernel concepts GbR      Tel: +49-271-771091-12
> Sieghuetter Hauptweg 48  Fax: +49-271-771091-19
> D-57072 Siegen           Mob: +49-176-21024535
> --
>


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need help iterpreting reg-dump
  2009-03-23  1:30   ` Nils Faerber
  2009-03-23  1:46     ` Markus Gothe
@ 2009-03-23  7:25     ` Kevin D. Kissell
  1 sibling, 0 replies; 5+ messages in thread
From: Kevin D. Kissell @ 2009-03-23  7:25 UTC (permalink / raw)
  To: Nils Faerber; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 14881 bytes --]

Nils Faerber wrote:
>  
> I have added some more debug outputs to the code. I can confirm now
> defnitely that the dsemul path is run and the the SIGILL is the result
> of a dsemul_ret returning 0, also see the below extended dumps.
>   
Careful what you infer.  do_dsemulret() is *always* called on a 
misaligned address trap,
and *almost always* returns zero.  I suggested turning on DSEMUL_TRACE 
because
it would indicate whether the traps were those deliberately set, as I 
suspected they might be
based on the BadVA and EPC values in your initial crashdump.  Your 
diagnostic output
below simply shows that there were a number of misaligned accesses 
performed that
do *not* seem to have been associated with FPU emulator activity.

> The strange thing is the fault does not always occur and if it occurs it
> does not always happen in the same place of the application. So I assume
> that this is not a problem of the application itself deliberatley
> executing a certain instruction but rather a side effect of something
> different - like wrong caches. On the other hand again it is strange
> that only the dsemul path seems to be triggered.
>   
See the above.  Don't confuse dsemul with dsemulret.
> Could it be that the exception that is used for math emulation can also
> have other causes in different CPU implementations? The JZ4730 has some
> DSP alike SIMD instructions... but then again why can't it be traced to
> a single instruction inside the application (i.e. rather seems to happen
> randomly)?
>   
I suppose that's possible, but the trace information below suggests that 
there's something
else a bit funky going on.

It's an annoying property of the standard MIPS Linux configurations that 
misaligned accesses
by user mode code, which should never actually happen in correctly 
written and compiled code,
are silently worked-around by the kernel.  If DEBUG_FS is configured, 
then one at least gets
a count of how many times this has been done, but in general one just 
gets silently degraded
performance.  The dump below seems to indicate that the kernel silently 
(or, what would have
been silently) dealt with some misaligned operations on a data structure 
in the program data
segment (not on the stack).  But I'm not 100% sure how you generated it, 
so I can't be sure
what parts of it are valid and what are instrumentation noise.  These 
bad accesses *might*
have nothing whatsoever to do with your later SIGILLs.

          Regards,

          Kevin K.
> Cheers
>   nils faerber
>
> [42949414.060000] do_dsemulret: bad magics, insn=0x8c830004
> [42949414.080000] do_dsemulret: cannot access emuframe
> [42949414.080000] Cpu 0
> [42949414.090000] $ 0   : 00000000 10000400 00000000 00000000
> [42949414.090000] $ 4   : 8033e528 80000000 00000024 0041469c
> [42949414.100000] $ 8   : 10000401 1000001e 00000003 00000022
> [42949414.100000] $12   : 2ac9a200 2aca0000 ffffffff 00401820
> [42949414.110000] $16   : 14400022 87d45f30 ffffffff 00414660
> [42949414.110000] $20   : 00000000 00000000 00000000 2ac0fa18
> [42949414.120000] $24   : 00000047 00000000
> [42949414.130000] $28   : 87d44000 87d45ee8 00000000 80020bf0
> [42949414.130000] Hi    : 0000002c
> [42949414.130000] Lo    : 0003aac9
> [42949414.140000] epc   : 80034098 do_dsemulret+0x3c/0xf4     Not tainted
> [42949414.140000] ra    : 80020bf0 do_ade+0x20/0x3c0
> [42949414.150000] Status: 10000403    KERNEL EXL IE
> [42949414.150000] Cause : 10800010
> [42949414.160000] BadVA : 14400026
> [42949414.160000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949414.160000] Modules linked in:
> [42949414.170000] Process keylaunch (pid: 1222, threadinfo=87d44000,
> task=87d6e1
> 78)
> [42949414.180000] Stack : 87d6e178 802dca50 8c830004 30620002 87d45f30
> 0041bbe1
> 80020bf0 00414660
> [42949414.180000]         00414660 0041bbe1 ffffffff 00414660 00414660
> 0041bbe1
> ffffffff 00414660
> [42949414.190000]         80018fa0 80019120 004d8474 004d843c 004d844c
> 004d8a02
> ffffffff 00000000
> [42949414.200000]         00000000 10000400 2ae66754 00418690 0041bbd9
> 0041bbe1
> 00000024 0041469c
> [42949414.210000]         00000023 00414690 00000003 00000022 2ac9a200
> 2aca0000
> ffffffff 00401820
> [42949414.220000]         ...
> [42949414.220000] Call Trace:
> [42949414.230000] [<80034098>] do_dsemulret+0x3c/0xf4
> [42949414.230000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949414.230000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949414.240000]
> [42949414.240000]
> [42949414.240000] Code: 1460002b  2484e528  00601021 <8e060004> 8e070008
>  3c0480
> 34  00431025  2484e550  10400013
> [42949414.290000] do_dsemulret: cannot access emuframe
> [42949414.290000] Cpu 0
> [42949414.300000] $ 0   : 00000000 10000400 fffffff2 00000000
> [42949414.300000] $ 4   : 8033e528 80000000 00000024 0041469c
> [42949414.310000] $ 8   : 10000401 1000001e 00000003 00000022
> [42949414.310000] $12   : 2ac9a200 2aca0000 ffffffff 00401820
> [42949414.320000] $16   : 14400022 87d45f30 ffffffff 00414660
> [42949414.320000] $20   : 00000000 00000000 00000000 2ac0fa18
> [42949414.330000] $24   : 00000047 00000000
> [42949414.330000] $28   : 87d44000 87d45ee8 00000000 80020bf0
> [42949414.340000] Hi    : 0000002c
> [42949414.340000] Lo    : 0003aac9
> [42949414.350000] epc   : 8003409c do_dsemulret+0x40/0xf4     Not tainted
> [42949414.350000] ra    : 80020bf0 do_ade+0x20/0x3c0
> [42949414.360000] Status: 10000403    KERNEL EXL IE
> [42949414.360000] Cause : 00800010
> [42949414.370000] BadVA : 1440002a
> [42949414.370000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949414.370000] Modules linked in:
> [42949414.380000] Process keylaunch (pid: 1222, threadinfo=87d44000,
> task=87d6e1
> 78)
> [42949414.380000] Stack : 87d6e178 802dca50 8c830004 30620002 87d45f30
> 0041bbe1
> 80020bf0 00414660
> [42949414.390000]         00414660 0041bbe1 ffffffff 00414660 00414660
> 0041bbe1
> ffffffff 00414660
> [42949414.400000]         80018fa0 80019120 004d8474 004d843c 004d844c
> 004d8a02
> ffffffff 00000000
> [42949414.410000]         00000000 10000400 2ae66754 00418690 0041bbd9
> 0041bbe1
> 00000024 0041469c
> [42949414.420000]         00000023 00414690 00000003 00000022 2ac9a200
> 2aca0000
> ffffffff 00401820
> [42949414.430000]         ...
> [42949414.430000] Call Trace:
> [42949414.430000] [<8003409c>] do_dsemulret+0x40/0xf4
> [42949414.440000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949414.440000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949414.450000]
> [42949414.450000]
> [42949414.450000] Code: 2484e528  00601021  8e060004 <8e070008> 3c048034
>  004310
> 25  2484e550  10400013  00c02821
> [42949414.550000] do_dsemulret: bad magics, insn=0x00000024
> [42949414.560000] do_dsemulret: cannot access emuframe
> [42949414.560000] Cpu 0
> [42949414.560000] $ 0   : 00000000 10000400 00000000 803bf8d0
> [42949414.570000] $ 4   : 8037c3d0 87d9fefc 00000005 00000005
> [42949414.570000] $ 8   : ebd8a1cf 00000005 feced300 ffffffff
> [42949414.580000] $12   : ec71384f 00000005 ffffffff 803bfd88
> [42949414.590000] $16   : 14400022 87d45f30 ffffffff 00414660
> [42949414.590000] $20   : 00000000 00000000 00000000 2ac0fa18
> [42949414.600000] $24   : 00000001 803bfda8
> [42949414.600000] $28   : 87d44000 87d45ee8 00000000 800340bc
> [42949414.610000] Hi    : 00989643
> [42949414.610000] Lo    : d5905180
> [42949414.610000] epc   : 800340d4 do_dsemulret+0x78/0xf4     Not tainted
> [42949414.620000] ra    : 800340bc do_dsemulret+0x60/0xf4
> [42949414.630000] Status: 10000403    KERNEL EXL IE
> [42949414.630000] Cause : 20800010
> [42949414.630000] BadVA : 1440002e
> [42949414.640000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949414.640000] Modules linked in:
> [42949414.650000] Process keylaunch (pid: 1222, threadinfo=87d44000,
> task=87d6e1
> 78)
> [42949414.650000] Stack : 87d6e178 00000024 00000024 0041469c 87d45f30
> 0041bbe1
> 80020bf0 00414660
> [42949414.660000]         00414660 0041bbe1 ffffffff 00414660 00414660
> 0041bbe1
> ffffffff 00414660
> [42949414.670000]         80018fa0 80019120 004d8474 004d843c 004d844c
> 004d8a02
> ffffffff 00000000
> [42949414.680000]         00000000 10000400 2ae66754 00418690 0041bbd9
> 0041bbe1
> 00000024 0041469c
> [42949414.690000]         00000023 00414690 00000003 00000022 2ac9a200
> 2aca0000
> ffffffff 00401820
> [42949414.700000]         ...
> [42949414.700000] Call Trace:
> [42949414.700000] [<800340d4>] do_dsemulret+0x78/0xf4
> [42949414.710000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949414.710000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949414.720000]
> [42949414.720000]
> [42949414.720000] Code: 24420001  ac620014  00001021 <8e03000c> 14400010
>  240400
> 0a  ae2300ac  24020001  8fbf0018
> [42949416.460000] do_dsemulret: bad magics, insn=0x8c830004
> [42949416.460000] do_dsemulret: cannot access emuframe
> [42949416.470000] Cpu 0
> [42949416.470000] $ 0   : 00000000 10000400 00000000 00000000
> [42949416.480000] $ 4   : 8033e528 80000000 00425c90 00000019
> [42949416.480000] $ 8   : 10000401 1000001e 36384658 72617453
> [42949416.490000] $12   : 87d744c0 00000000 87d744c0 00000000
> [42949416.490000] $16   : 14400022 87b0bf30 00414008 0000003f
> [42949416.500000] $20   : 00425c90 00400000 00400000 00000000
> [42949416.500000] $24   : 00000003 00000000
> [42949416.510000] $28   : 87b0a000 87b0bee8 2ae64858 80020bf0
> [42949416.520000] Hi    : 307e68e8
> [42949416.520000] Lo    : e1cb4540
> [42949416.520000] epc   : 80034098 do_dsemulret+0x3c/0xf4     Not tainted
> [42949416.530000] ra    : 80020bf0 do_ade+0x20/0x3c0
> [42949416.530000] Status: 10000403    KERNEL EXL IE
> [42949416.540000] Cause : 10800010
> [42949416.540000] BadVA : 14400026
> [42949416.540000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949416.550000] Modules linked in:
> [42949416.550000] Process keylaunch (pid: 1274, threadinfo=87b0a000,
> task=87daed
> f8)
> [42949416.560000] Stack : 87daedf8 802dca50 8c830004 30620002 87b0bf30
> 0041bbd9
> 80020bf0 0000003f
> [42949416.570000]         00425c94 0041bbd9 00414008 0000003f 00425c94
> 0041bbd9
> 00414008 0000003f
> [42949416.580000]         80018fa0 80019120 004d928c 004d8e44 004d9254
> 004daa9c
> ffffffff 00000000
> [42949416.590000]         00000000 10000400 2ae66754 00000001 0041bbd1
> 00000001
> 00425c90 00000019
> [42949416.600000]         ffffffff ffffffff 36384658 72617453 87d744c0
> 00000000
> 87d744c0 00000000
> [42949416.600000]         ...
> [42949416.610000] Call Trace:
> [42949416.610000] [<80034098>] do_dsemulret+0x3c/0xf4
> [42949416.610000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949416.620000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949416.620000]
> [42949416.630000]
> [42949416.630000] Code: 1460002b  2484e528  00601021 <8e060004> 8e070008
>  3c0480
> 34  00431025  2484e550  10400013
> [42949417.210000] do_dsemulret: bad magics, insn=0xaca20000
> [42949417.970000] do_dsemulret: cannot access emuframe
> [42949417.970000] Cpu 0
> [42949417.980000] $ 0   : 00000000 10000400 fffffff2 00000000
> [42949417.980000] $ 4   : 8033e528 80000000 00425c90 00000019
> [42949417.990000] $ 8   : 10000401 1000001e 36384658 72617453
> [42949417.990000] $12   : 87d744c0 00000000 87d744c0 00000000
> [42949418.000000] $16   : 14400022 87b0bf30 00414008 0000003f
> [42949418.000000] $20   : 00425c90 00400000 00400000 00000000
> [42949418.010000] $24   : 00000003 00000000
> [42949418.020000] $28   : 87b0a000 87b0bee8 2ae64858 80020bf0
> [42949418.020000] Hi    : 307e68e8
> [42949418.020000] Lo    : e1cb4540
> [42949418.030000] epc   : 8003409c do_dsemulret+0x40/0xf4     Not tainted
> [42949418.030000] ra    : 80020bf0 do_ade+0x20/0x3c0
> [42949418.040000] Status: 10000403    KERNEL EXL IE
> [42949418.040000] Cause : 00800010
> [42949418.050000] BadVA : 1440002a
> [42949418.050000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949418.060000] Modules linked in:
> [42949418.060000] Process keylaunch (pid: 1274, threadinfo=87b0a000,
> task=87daed
> f8)
> [42949418.070000] Stack : 87daedf8 802dca50 8c830004 30620002 87b0bf30
> 0041bbd9
> 80020bf0 0000003f
> [42949418.070000]         00425c94 0041bbd9 00414008 0000003f 00425c94
> 0041bbd9
> 00414008 0000003f
> [42949418.080000]         80018fa0 80019120 004d928c 004d8e44 004d9254
> 004daa9c
> ffffffff 00000000
> [42949418.090000]         00000000 10000400 2ae66754 00000001 0041bbd1
> 00000001
> 00425c90 00000019
> [42949418.100000]         ffffffff ffffffff 36384658 72617453 87d744c0
> 00000000
> 87d744c0 00000000
> [42949418.110000]         ...
> [42949418.110000] Call Trace:
> [42949418.120000] [<8003409c>] do_dsemulret+0x40/0xf4
> [42949418.120000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949418.120000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949418.130000]
> [42949418.130000]
> [42949418.130000] Code: 2484e528  00601021  8e060004 <8e070008> 3c048034
>  004310
> 25  2484e550  10400013  00c02821
> [42949419.210000] do_dsemulret: bad magics, insn=0x00425c90
> [42949419.210000] do_dsemulret: cannot access emuframe
> [42949419.220000] Cpu 0
> [42949419.220000] $ 0   : 00000000 10000400 00000000 803bf8d0
> [42949419.220000] $ 4   : 8037c3d0 87d9fefc 00000006 00000000
> [42949419.230000] $ 8   : 3c317acd 00000006 feced300 ffffffff
> [42949419.230000] $12   : 3cca114d 00000006 ffffffff 803bfd88
> [42949419.240000] $16   : 14400022 87b0bf30 00414008 0000003f
> [42949419.250000] $20   : 00425c90 00400000 00400000 00000000
> [42949419.250000] $24   : 00000001 803bfda8
> [42949419.260000] $28   : 87b0a000 87b0bee8 2ae64858 800340bc
> [42949419.260000] Hi    : 00989644
> [42949419.270000] Lo    : eb524680
> [42949419.270000] epc   : 800340d4 do_dsemulret+0x78/0xf4     Not tainted
> [42949419.280000] ra    : 800340bc do_dsemulret+0x60/0xf4
> [42949419.280000] Status: 10000403    KERNEL EXL IE
> [42949419.290000] Cause : 20800010
> [42949419.290000] BadVA : 1440002e
> [42949419.290000] PrId  : 02d0024f (Ingenic JZRISC)
> [42949419.300000] Modules linked in:
> [42949419.300000] Process keylaunch (pid: 1274, threadinfo=87b0a000,
> task=87daed
> f8)
> [42949419.310000] Stack : 87daedf8 00425c90 00425c90 00000019 87b0bf30
> 0041bbd9
> 80020bf0 0000003f
> [42949419.320000]         00425c94 0041bbd9 00414008 0000003f 00425c94
> 0041bbd9
> 00414008 0000003f
> [42949419.320000]         80018fa0 80019120 004d928c 004d8e44 004d9254
> 004daa9c
> ffffffff 00000000
> [42949419.330000]         00000000 10000400 2ae66754 00000001 0041bbd1
> 00000001
> 00425c90 00000019
> [42949419.340000]         ffffffff ffffffff 36384658 72617453 87d744c0
> 00000000
> 87d744c0 00000000
> [42949419.350000]         ...
> [42949419.350000] Call Trace:
> [42949419.360000] [<800340d4>] do_dsemulret+0x78/0xf4
> [42949419.360000] [<80020bf0>] do_ade+0x20/0x3c0
> [42949419.370000] [<80018fa0>] ret_from_exception+0x0/0x24
> [42949419.370000]
> [42949419.370000]
> [42949419.370000] Code: 24420001  ac620014  00001021 <8e03000c> 14400010
>  240400
> 0a  ae2300ac  24020001  8fbf0018
>
>   


[-- Attachment #2: Type: text/html, Size: 15162 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-23  7:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-20 23:45 Need help iterpreting reg-dump Nils Faerber
2009-03-21 10:37 ` Kevin D. Kissell
2009-03-23  1:30   ` Nils Faerber
2009-03-23  1:46     ` Markus Gothe
2009-03-23  7:25     ` Kevin D. Kissell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox