Skip to contentSkip to conversation

kernel panic

parisc-linux Ryan Bradetich 1 participant 1 message May 22, 2001

lore
Share & tools
lore
#0 lore raw

Hello parisc-linux hackers,

Ok ... I have been beating my head against the wall on this problem for a while now, so I am going to post the problem to the list and see if it generates some thoughts on how to debug/fix this problem.

Currently there is a problem with the cpio cdrom -> disk under ccio. I reverted the ccio-dma driver back to a previous version (before the coleascing of the scatter/gather lists) and re-tested the cpio cdrom -> disk. This works ... so I'm fairly certian the bug is in the ccio code :(

The start debugging the code I added in the debugging routines to allow me to see the output of the scatter/gather support and it
panic with a code 15 or code 26 pretty consistently. I have
traced the problem down simpily adding printk's into the ccio_map_sg and/or ccio_unmap_sg functions. If I add any printk (with or without variables) .... it will crash .... if I remove the printk's the mke2fs will finish and work fine. [NOTE: this is what I have reduced the test case to. I have not tested if printk's in other portions of the code also cause the kernel to panic or not.]

I have been applying my limited knowledge on how to track down these crashes, but my limited knowledge does not appear to be enough :(

Here is what I have have/know so far...

1. Every time the kernel crashes .... GR2 and IAOQ appear to be in a signal type function. In this crash:
GR2: rm_sig_from_queue
IAOQ: rm_from_queue

in a previous crash (code 15):
GR2: send_signal
IAOQ: send_signal

in another previous crash (code 26):
GR2: ignored_signal
IAOQ: signal_type

etc, etc.....

2. The kernel is pretty much CVS head with a few, slight modifications.

3. Here is the ccio_map_sg function:
static int
ccio_map_sg(struct pci_dev *dev, struct scatterlist *sglist, int nents, int direction)

{
	int tmp = nents;
	int filled = 0;

	printk("%s() START %d entries\n", __FUNCTION__, nents);

        /* KISS: map each buffer seperately. */
	while(nents) {
		sg_dma_address(sglist) = ccio_map_single(dev, sglist->address, sglist->length, direction);
		sg_dma_len(sglist) = sglist->length;
		nents--;
		sglist++;
		++filled;
	}

	printk("%s() DONE %d mappings\n", __FUNCTION__, filled);
	return tmp;
}

4. Here is the console output from the latest crash. (I have attached the System.map for anyone interested in looking at that also).

Last login: Thu May 17 18:05:32 2001 on ttyS0
Linux vega 2.4.0 #1 Mon May 21 19:51:17 MDT 2001 parisc unknown

vega:~# mke2fs /dev/sdb3
mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
505920 inodes, 1011165 blocks
50558 blocks (5.00%) reserved for the super user
First data block=0
31 block groups
32768 blocks per group, 32768 fragments per group
16320 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done
Writing superblocks and filesystem accounting ccio_map_sg() START 64 entries ccio_map_sg() DONE 64 mappings
information: ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 56 entries
ccio_map_sg() DONE 56 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings
ccio_map_sg() START 64 entries
ccio_map_sg() DONE 64 mappings

Dumping Stack from 3f2b0000 to 3f2b0840:
0000 100ef3c0 10fe8380 3feb3e40 3fbf0c00 00000060 b0ea9875 00a0cc7b c94a0800 0020 450005dc b7f06000 0000ffff 101adcf0 00000000 100ef3c0 10fe8380 3feb3e40 0040 0004ff0f 1029a810 101adcf0 0000000f 100ef3c0 3fbf0c00 00000000 00000000 0060 1029b6d0 0000ffff 10fe8398 00000001 3f2af980 001e8480 00027630 00058260 0080 3f2af980 0000ffff 00000001 00000000 00000000 100e5298 98090009 100e3800 00a0 fffffb10 f2ffd014 100e6000 10274010 00000000 00000040 3f2b0280 101184dc 00c0 08000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00e0 0000000a fe4917e0 2c760000 84cda718 00000001 bc9c0000 f9abb0d5 f309b5b9 0100 0000000a c0b4e852 102dc000 00000000 1028e064 102f9010 102fc010 10274010 0120 102f8810 00000001 10292010 1013848c 102f8810 102d98a8 102d98a8 102d9820 0140 3fbb5000 1028e60c 00000000 00000002 00000000 102a46c0 0004000e 0000004d 0160 102f9010 3fbb5000 1028e60c 10149de4 00000000 00001000 00000000 00000000 0180 00000000 00000000 3fe00000 00000000 412e8480 00000000 00000000 0000004d 01a0 ffffffff 102fc010 10274010 101385f4 3fbed400 1028cee0 10292010 102f9010 01c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 01e0 00000000 00000000 101adcf4 101adcf8 7f2bb706 00000000 34140002 0cf41240 0200 e81f1ccd 0000001f e81f1f7d 0b04041a 00000011 00000040 10252004 10252028 0220 e85d14b1 34423ee9 0806025a 1011113c e85f147d 34180000 081c0243 84603f15 0240 3f2af980 00058260 00027630 001e8480 3f2af980 1029a810 100e3cc0 10fe9800 0260 10252000 00000001 00000040 101064f8 00000000 100eeb00 4b590030 0aa4041a 0280 3f2af980 00000001 10fe8398 0000ffff 1029b6d0 00000000 00000000 3fbf0c00 02a0 100ef3c0 0000000f 6bc43f19 10118518 6bc33f21 84802018 6bd33fc1 48b40028 02c0 00000000 10289534 10289534 0000000e 0000001f 0000003c 0000003e 10289010 02e0 00000001 102e3622 00000004 10102f60 0000001e 102e3622 0814025c 0ca8109a 0300 80000000 00000000 00000001 00000020 889483aa e85d1401 08040258 341c0000 0320 87802150 08060253 0ca8109a 10102e50 8895a010 08130243 0f581094 889480fa 0340 34190002 e85d13a1 34360258 0cb0109a 87402088 08030253 0f501098 8898a050 0360 08130243 0f581094 8094803a 10102850 e85d11a9 0b04041a 08030253 84e0219a 0380 0ce01240 e81f1e8d 341c0000 08040258 00000020 00000000 10273904 3f2b0349 03a0 00000001 0000ffff 3f2af980 1011edb0 0000000e 001e8480 3f2af980 1029a810 03c0 102f9010 3f2b0040 00000020 10276060 ffffffff 3f2b0214 102e3616 1025200f 03e0 08130243 0f581094 889481da 1011e938 e85d1249 08040258 341c0000 87803d8d 0400 00000000 00000001 3f2b0000 e85f10c5 34180000 081c0243 84603d55 08060253 0420 0c681055 86a03d3d d69f1810 1011e880 0c741248 d2941bf0 868220c2 0c681054 0440 86802022 84e0200a 0c681054 0cf41240 e81f1cf5 341c0000 0c30109a 87403fc5 0460 08000240 0f501098 8898a010 10120104 0f581094 88948022 08040258 e85d1131 0480 00000001 00000001 00000000 3f2b0000 01c5cbe9 0b04041a e81f1f4d 08050253 04a0 0ca8109a 0f501095 8895a010 34190000 0f581094 8894801a e85d10b9 08040258 04c0 e81f1eed 08060253 4b590030 e85d0e89 0aa4041a e81f1ec5 08060253 4b590030 04e0 0aa4041a e85d0f29 34423e21 1011fd44 0aa4041a e85d0f09 34423c49 08000240 0500 00000009 6fc60080 081a0246 6bc53f89 08130245 6bc43f91 d3041bf0 6bc33f99 0520 08190243 84602018 6bd33fc1 1011fa88 88748040 229dafe4 239dafe4 379c0e8e 0540 4bc23f59 4bc53f89 4bc43f91 4bc33f99 e840c000 4fc63f81 0cc01095 36940e1a 0560 8ab43fb5 0814025c 8482221a 1011f7f4 e85f0dfd 34180002 878020e0 08050253 0580 00000001 0000000e 00000000 3f2b0000 3f2b0000 0f581094 88748082 e85d0ef1 05a0 08030258 0cd0109a 87402240 08050253 0f501098 8878a010 08130244 0f581094 05c0 88748012 08030258 e80001e8 34190000 4b590030 0b03041a e85d0c71 344201d8 05e0 4b590030 0aa3041a e85d0cb9 34423f69 239dafe4 e81f1e8d 379c0e8c 25c07537 0600 0006fe0e 102f9010 1011f7f4 3f2b0450 102f95d4 3f2b0450 00000018 102e9010 0620 10276384 00000002 10276360 a0000000 3f2b0040 001e8480 00027630 00058260 0640 3f2b0040 0000ffff 00000001 0c30109a e81f1cf5 3f2b0458 00000017 3f2b0100 0660 3f2b0000 3f2b0450 00000018 10274010 00000000 00000014 3f2b0840 1011e860 0680 08000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 06a0 0000000a fe4917e0 2c760000 84cda717 00000001 bc9c0000 f9abb0d5 f309b5b9 06c0 00000009 c0b4e852 102dc000 00000000 1028e064 102f9010 102fc010 10274010 06e0 102f8810 00000001 10292010 1013848c 102f8810 102d98a8 102d98a8 102d9820 0700 3fbb5000 1028e60c 00000000 00000002 00000000 102a46c0 0004000e 0000004d 0720 102f9010 3fbb5000 1028e60c 10149de4 00000000 00001000 00000000 00000000 0740 00000000 00000000 3fe00000 00000000 412e8480 00000000 00000000 0000004d 0760 ffffffff 102fc010 10274010 101385f4 3fbed400 1028cee0 10292010 102f9010 0780 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 07a0 00000000 00000000 1011f76c 1011f770 7f2bb706 00000000 a2e30d26 51164c0d 07c0 45c61a4c 00000008 0e881093 00000000 e81f1cf9 885f0ace 2f9cb27a 10c8a0cf 07e0 5f3964f4 2191419e be72c9e8 4322833c 7ce593d0 86450678 f9bd92f2 0cfcb9a3 0800 9da75c88 00000000 00000002 000186a3 00000060 b0ea9875 00a0cc7b c94a0800 0820 450005dc baf06000 4011461a 10106744 0a000005 08010320 106ce28c 9da75c92

Kernel Fault: Code=15 regs=3f2b0600 (Addr=e81f1cf9)

YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00000000000001101111111000001110
r0-3 00000000 102f9010 1011f7f4 3f2b0450
r4-7 102f95d4 3f2b0450 00000018 102e9010
r8-11 10276384 00000002 10276360 a0000000
r12-15 3f2b0040 001e8480 00027630 00058260
r16-19 3f2b0040 0000ffff 00000001 0c30109a
r20-23 e81f1cf5 3f2b0458 00000017 3f2b0100
r24-27 3f2b0000 3f2b0450 00000018 10274010
r28-31 00000000 00000014 3f2b0840 1011e860
sr0-3 00000000 00000000 00000000 00000000
sr4-7 00000000 00000000 00000000 00000000

IASQ: 00000000 00000000 IAOQ: 1011f76c 1011f770
IIR: 0e881093 ISR: 00000000 IOR: e81f1cf9
ORIG_R28: a2e30d26

What I am really interested in is learning what I need to do to debug this type of crash further ... and of course finding the problem causing the crash :)

Thanks for your help....

- Ryan

22,597 lines not shown · raw message

Part of this message is not shown here. View the raw message.