[parisc-linux] Interesting problem concerning 7100LC vs 7100

Christoph Plattner christoph.plattner@dot.at
Tue, 17 Apr 2001 23:36:34 +0200


Hello !

After successful usage of the E55, I recompiled the linux kernel for the
7100LC instead of 7100 CPU.

At the second boot, I triggered an error in my pdc_drv.c (device driver
for
PDC console). After I fixed that, I saw following error output:

Sending BOOTP requests.... OK
IP-Config: Got BOOTP answer from 196.1.1.20, my address is 196.1.1.100
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 100003/2 on 196.1.1.20
Looking up port of RPC 100005/2 on 196.1.1.20
VFS: Mounted root (nfs filesystem) readonly.
command /sbin/init
modprobe: modprobe: Can't open dependencies file
/lib/modules/2.4.0/modules.dep (No such file or directory)
INIT: version 2.78 booting

Dumping Stack from 13f34000 to 13f34e00:
4000 00000000 00000040 00000000 00000001 102673e0 00000000 00000000
ffffffff
4020 00000005 00000000 00000000 100d3120 00000000 00000000 ffffffff
102672e0
4040 102672e0 000000e5 102b4000 100e4000 100d3120 1026a1e0 00000000
00000012
4060 00000000 00000000 80000000 00000009 00000000 00000000 00000000
00000009
4080 00000000 1007c000 1007c000 00000000 00000000 100e4000 13f34098
13f34098
40a0 00000000 102ce898 13f340a8 13f340a8 00000000 00000000 00000000
00000000
40c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
13f34000
40e0 1011baac 00000000 00000001 00000000 00000000 000000e5 00000002
0000004e
4100 00000001 00000000 00000000 00000000 00000000 00000000 80000000
00000000
4120 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
4140 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
4160 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
4180 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
41a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
41c0 fffffeff 00000000 ffffffff 00000000 1026802c ffffffff ffffffff
ffffffff
41e0 ffffffff ffffffff ffffffff 00800000 05000000 00000000 ffffffff
ffffffff
4200 ffffffff 000003ce 000003ce 00000400 00000400 ffffffff ffffffff
ffffffff
4220 ffffffff ffffffff ffffffff 0000696e 69740065 72000000 00000000
00000000
4240 00000000 00000000 00000000 00000000 00000000 00000000 0004000f
40147654
4260 400ef13f faf007d0 00000000 0000b268 faf00850 faf008d8 00000065
00000078
4280 0000b294 00000040 faf008d0 00000001 00000063 faf007b0 00000020
0000b270
42a0 faf00790 4014eb18 00000006 400474b8 00000000 00000008 00000000
faf00850
42c0 00000009 00009af8 40147654 0000b1a8 faf00a80 400ef127 00000000
00000000
42e0 00000000 00000000 00000000 00000000 00000000 00000000 10267010
00000001
4300 102bba96 00000004 102bba83 00000000 00000012 1026740c 10267010
00000000
4320 00000000 000000ff 00000040 00000180 00000000 000003a8 00000000
296b229a
4340 002bb4c0 10252010 00000000 00003fff 1007c7c0 00000040 000d081f
00000000
4360 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
4380 00000000 00000000 cccccccd 00000030 00000000 cccccccd 7fffffff
7fffffff
43a0 7f7fffff ffffffff 7f7fffff ffffffff 00000000 00000000 00000000
00000000
43c0 41800000 00000000 00000010 00000010 00000000 00000000 00000004
00000000
43e0 00000000 00000004 00000004 00000004 00000004 00000004 00000004
00000004
4400 400ef14b 400ef14f 00000006 13f34000 00000000 13f34540 10106cc8
0000000e
4420 0f9a1280 00000004 40147654 00000000 0026e000 00000000 100e91e0
100ea040
4440 100e2880 00020000 00000000 00000000 13f3444c 00000000 00000000
00000000
4460 00000000 00000000 00000000 00000000 00000001 00000001 00000000
00000000
4480 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
44a0 00000000 00000000 00000000 10106720 00000000 00000000 00000000
00000000
44c0 faf01558 00000020 400ef11c 00000000 00028148 00000020 4014eb18
faf01558
44e0 00028148 1007c000 1007c840 10106efc 00000000 00000000 00000000
00000000
4500 faf004d8 4013aa40 00000000 00000000 00000000 00000000 4001d000
00000003
4520 4014eb18 faf00548 00000000 1011b558 00000000 4014eb18 faf003c0
00000000
4540 1007ca00 00023b52 faf00850 0000b268 00000000 faf007d0 4014ba54
00000000
4560 faf00298 00000014 00000000 101223c0 4001d000 00001000 100d3120
00000000
4580 ffffffea 100ea040 00000000 100e1360 100ea040 00000000 100e1360
0000006d
45a0 ffffffea 100e1360 00000000 101026b8 100e1360 10073420 00000000
4014eb18
45c0 100e91e0 1022e000 102d1010 1022e000 1022e000 1022e000 13f34000
00000000
45e0 00000000 102d1010 4001d000 10120b00 100d15a0 00000000 100d3120
00000000
4600 1022e000 13f34000 13f34000 1022e000 1022e000 1022e000 13f34000
100d3120
4620 00000000 00000000 00000000 101153e4 0000006d 4001d000 100e0bf8
100e1360
4640 13f345c0 100d30a0 100d1520 100d3120 0000b294 00000078 00000065
faf008d8
4660 00000004 40147654 0000001a 13f34258 00000000 13f34000 00000003
100e91e0
4680 100d30a0 100d3120 00000000 100d3120 0000a000 faf00000 faf0a000
00000000
46a0 00000000 00000000 00000000 10101460 102d1010 0007ffff 00000000
100d3120
46c0 0000a000 faf00000 1007c000 100d1420 13f34258 13f34000 100d3120
100d313c
46e0 100d1360 00000020 0003aca0 101343a8 0000000f 00000011 13f348c0
00000000
4700 00000000 00000000 00000000 03fd4725 101399c8 00000000 0000ff00
102ce010
4720 1007c000 100d3120 13f34000 1012700c 100d3120 00000000 00000000
00000000
4740 00000040 0000001a 100d313c 40147654 00000001 100d1360 100d3120
ffffffff
4760 40147654 0000ff00 102b3810 102b4000 00000012 13f34000 1007c000
00000000
4780 00000000 00000000 00000000 00000000 101399c8 00000323 1022e800
1022e800
47a0 10000000 00000015 13f30fac 10126224 13f30fac 00000230 00000001
9999999a
47c0 0004e70f 00000027 101262bc 103ee500 13f30000 40147654 103ebc00
100d1360
47e0 03fd4725 102d1010 100d3120 13ed551c faf008d0 00000001 00000063
faf007b0
4800 13f34258 0000b270 faf00790 00000001 00000000 00000000 00000000
100203f0
4820 0000000e 13fd4640 13f30640 10252010 ffffffff 00000002 13f34a00
10132c94
4840 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
4860 10267010 00000001 102bba96 00000004 102bba83 00000000 00000012
1026740c
4880 10267010 00000000 00000000 000000ff 00000040 00000180 00000000
000003a8
48a0 00000000 296b229a 002bb4c0 10252010 00000000 00003fff 1007c7c0
00000040
48c0 000d081f 00000000 00000000 00000000 00000000 00000000 00000000
00000000
48e0 00000000 00000000 00000000 00000000 cccccccd 00000030 00000000
cccccccd
4900 7fffffff 7fffffff 7f7fffff ffffffff 7f7fffff ffffffff 00000000
00000000
4920 00000000 00000000 41800000 00000000 00000010 00000010 00000000
00000000
4940 00000004 00000000 00000000 00000004 00000000 00000000 00000000
00000000
4960 00000000 00000000 10101b18 10101b1c 00000006 00000000 00000000
00000000
4980 00000021 0000001f 6b560078 100d3120 100e4000 102ce010 00000133
100dded4
49a0 1003e624 102d1010 102d1010 1011cb6c 100dde40 00000000 00000003
100e91e0
49c0 00000000 101399c8 102d1010 0007ffff 100d1660 102bf810 102ce010
102ce820
49e0 102ce010 00000000 1026866c 1010624c 00000000 100dad38 13f34bc0
10219b1c
4a00 100d1360 103ebc00 40147654 13f30000 103ee500 103ebc00 40147654
13f30000
4a20 103ee500 00000000 00000000 10120210 00000000 00000000 00000000
00000000
4a40 00000001 00000001 13f34000 1004e4e0 1004e4e0 100ddfc0 100dde40
103ea1c0
4a60 13f349c8 00000001 00000000 1011c820 00000000 00000000 00000000
00000000
4a80 0000000c 102bfea0 00000001 00000001 13f30000 0000000f 102ce010
102bf810
4aa0 03fd4725 102d1010 100d3120 1011c9f4 faf008d0 00000001 00000063
faf007b0
4ac0 00000000 0000b270 faf00790 00000000 fffffffd 102ce7e0 101dbea4
00000001
4ae0 00050bfc 00000017 100251a0 1011cb6c 00000100 000003c0 13f34cc0
10103404
4b00 1004e800 00000000 00000000 00000000 00000000 00000000 00000000
00000000
4b20 10267010 00000001 102bba96 1011fb18 102bba83 00000000 00000012
1026740c
4b40 1004f640 1004e800 100df130 100df130 102ce010 102ce46c 00000000
000003a8
4b60 00000000 296b229a 002bb4c0 10252010 00000000 00003fff 1007c7c0
00000040
4b80 000d081f 00000000 00000000 00000000 00000000 00000000 00000000
00000000
4ba0 00000000 00000000 00000000 00000000 cccccccd 00000030 00000000
cccccccd
4bc0 0006000f 10267ff8 1011cc38 13f34b48 13f34b48 102ce820 102ce010
102bf810
4be0 03fd4725 102d1010 100d3120 13ed551c faf008d0 00000001 00000063
faf007b0
4c00 13f347c0 0000b270 faf00790 100df130 6f64652e 0000000f 6f64652e
102ce010
4c20 ffffffff 1004e800 0a7e7e3a 10252010 0000000f 0000000b 13f34e00
1011cc38
4c40 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
4c60 10267010 00000001 102bba96 00000004 102bba83 00000000 00000012
1026740c
4c80 10267010 00000000 00000000 000000ff 00000040 00000180 00000000
000003a8
4ca0 00000000 296b229a 002bb4c0 10252010 00000000 00003fff 1007c7c0
00000040
4cc0 000d081f 00000000 00000000 00000000 00000000 00000000 00000000
00000000
4ce0 00000000 00000000 00000000 00000000 cccccccd 00000030 00000000
cccccccd
4d00 7fffffff 7fffffff 7f7fffff ffffffff 7f7fffff ffffffff 00000000
00000000
4d20 00000000 00000000 41800000 00000000 00000010 00000010 00000000
00000000
4d40 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
4d60 00000000 00000000 6f64652e 6f646532 00000006 00000000 00000000
00000000
4d80 100e91e0 00000001 08190254 100dde40 100d15e0 102d1010 102d1010
13f34980
4da0 100251e0 00000002 10254380 10102ce8 102ce010 13f34980 00000057
10076228
4dc0 13f34a80 00000020 1025405c 00000000 00000000 10268694 03200801
007805fe
4de0 c4010164 c4010114 100f0080 10106720 c4010114 00000000 00000000
00000000

Bad Address (null pointer deref?): Code=6 regs=13f34bc0 (Addr=6f64652e)

     YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00000000000001100000000000001111
r0-3     00000000 10267ff8 1011cc38 13f34b48
r4-7     13f34b48 102ce820 102ce010 102bf810
r8-11    03fd4725 102d1010 100d3120 13ed551c
r12-15   faf008d0 00000001 00000063 faf007b0
r16-19   13f347c0 0000b270 faf00790 100df130
r20-23   6f64652e 0000000f 6f64652e 102ce010
r24-27   ffffffff 1004e800 0a7e7e3a 10252010
r28-31   0000000f 0000000b 13f34e00 1011cc38
sr0-3    00000000 00000000 00000000 00000000
sr4-7    00000000 00000000 00000000 00000000

IASQ: 00000000 00000000 IAOQ: 6f64652e 6f646532
 IIR: 08190254    ISR: 100dde40  IOR: 100d15e0
ORIG_R28: 00000000


In `arch/parisc/mm/fault.c' a memory fault has occured. But how can
analyse
where. I am new to HP PA RISC (since Christmas...), but I have skills on
Intel
for such problems.

First of all the address in IAOQ is NOT one of the linux kernel, but how
can
I find out, from which process. We also do not fall in the

	if (!user_mode (...)) {
		:	
	}

branch, so it does not come from the kernel.

Is this correct in this code, that we fall through in the part ...

	bad_area:
		if (user_mode (...)) {
			:
			return;
		}

... if it is NOT user_mode to `no_context:' label ?

How can I read the stack dump. I think the current stack pointer
position is the
"last line" of the dump, and I guess `r30' is the stack pointer ?!?
In the disassemble code the register `sp' is used for the stack, is this
equal 
to `r30' ?

Where can the address 6f646532 or so can from. What address have the
processes
started on the command line or per kernel init, for example INIT with
pid=1.
I think, those addresses are generated at loading and not located fix,
correct ?

I hope, any can give me some hints to continue HP PARISC hacking.

----

I recompiled the kernel for the CPU 7100 again, and the problem was
gone....
Has the E55 (9000/856) a special bug, or do I trigger a special error
case
here, a race, an error in my console driver, or ......


With friendly regards

	Christoph Plattner



-------------------------------------------------------------------------
private:	christoph.plattner@dot.at
company:	christoph.plattner@alcatel.at