* [parisc-linux] kernel panic using cpio from cdrom to disk.
@ 2001-04-14 6:52 Ryan Bradetich
2001-04-20 16:22 ` Richard Hirst
2001-04-20 16:57 ` Richard Hirst
0 siblings, 2 replies; 5+ messages in thread
From: Ryan Bradetich @ 2001-04-14 6:52 UTC (permalink / raw)
To: parisc-linux
Hello parisc-linux hackers,
A bug (#105) was discovered today reguarding cpio'ing an iso image from
the cdrom to the disk. This was a stupid error and I have a quick patch
for this. But this leads to my next question.... I am getting a kernel
panic when perfoming the cpio from the cdrom to the disk. I am trying
to verify if their in another problem with the ccio code, or if this is
a problem witht the scsi driver itself. Can someone else try it on a
non-ccio machine and see if fails for them also. [Note: The cdrom
content should not matter, in this case I have an i386 debian disk I
was cpio'ing over because it was handy.]
Disk to disk transfers seem to work fine under ccio...
Thanks,
- Ryan
vega:/tmp# mount /dev/sr0 /cdrom
ISO 9660 Extensions: RRIP_1991A
vega:/tmp# find /cdrom | cpio -pm /tmp
scsi1: Unexpected Illegal Instruction, script[0002]
scsi1: script[fffffffe]: 00000000 00000000 60000200 00000000 7c1bef00 00000000 41040000 00182448
scsi1: Failed to handle interrupt. Failing commands and resetting SCSI bus and chip
scsi1: istat = 00, sstat0 = 00, sstat1 = 00, dstat = 00
scsi1: dsp = 00182008 (script[0x0802]), dsps = 7b255263, target = 0
scsi1: Failing command for ID2
Dumping Stack from 1027e000 to 1027e2c0:
e000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
e020 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
e040 00000000 00000000 00000000 0028a000 00000000 00000000 00000000 00000000
e060 00000000 00000000 00000000 0010c830 00000000 00000000 00000000 00000000
e080 00000008 fffb1000 0010c830 00008000 00291000 00282000 0010c8a8 00105024
e0a0 00282000 00008000 fffa0000 e0000000 20530a40 0000006c 00000002 0000001f
e0c0 20530a40 102fc010 1012a4a0 ffd05800 00000060 00000000 00000000 00000060
e0e0 0027e548 00000003 ffd05800 f0102400 00000000 ffd05800 1027e2c0 00000007
e100 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
e120 00000001 fe4917e0 00000002 1014aee0 ef56b2f6 f9bf8075 dedbd0be f309b5b9
e140 10fec000 3fc900c0 102dc000 00000000 10290064 102f9010 102fc010 10276010
e160 102f8810 00000001 10294010 1013948c 102f8810 102d9d08 102d9d08 102d9c80
e180 3fc99000 1029060c 00000000 00000002 00000000 102a46c0 0004000e 0000004d
e1a0 102f9010 3fc99000 1029060c 1014adc4 cccccccd 00000030 00000000 cccccccd
e1c0 00000001 00000004 3fe00000 00000000 412e8480 00000000 3fc9d140 0000004d
e1e0 ffffff05 102fc010 00000001 101395f4 3fccf400 1028ecc8 00000000 00000000
e200 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
e220 00000000 00000000 0010c754 0010c758 ffffffff 00000000 00000000 00000000
e240 00000000 00000008 081a025c 10240041 4c130d44 00000000 00000000 00000000
e260 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
e280 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
e2a0 00000000 00000000 00000000 10106744 00000000 00000000 00000000 00000000
Unexpected Interruption!: Code=0 regs=1027e080 (Addr=00000000)
YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00000000000000000000000000001000
r0-3 00000000 fffb1000 0010c830 00008000
r4-7 00291000 00282000 0010c8a8 00105024
r8-11 00282000 00008000 fffa0000 e0000000
r12-15 20530a40 0000006c 00000002 0000001f
r16-19 20530a40 102fc010 1012a4a0 ffd05800
r20-23 00000060 00000000 00000000 00000060
r24-27 0027e548 00000003 ffd05800 f0102400
r28-31 00000000 ffd05800 1027e2c0 00000007
sr0-3 00000000 00000000 00000000 00000000
sr4-7 00000000 00000000 00000000 00000000
IASQ: 00000000 00000000 IAOQ: 0010c754 0010c758
IIR: 081a025c ISR: 10240041 IOR: 4c130d44
ORIG_R28: 00000000
--
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [parisc-linux] kernel panic using cpio from cdrom to disk.
2001-04-14 6:52 [parisc-linux] kernel panic using cpio from cdrom to disk Ryan Bradetich
@ 2001-04-20 16:22 ` Richard Hirst
2001-04-20 16:57 ` Richard Hirst
1 sibling, 0 replies; 5+ messages in thread
From: Richard Hirst @ 2001-04-20 16:22 UTC (permalink / raw)
To: rbradetich; +Cc: parisc-linux
On Sat, Apr 14, 2001 at 12:52:52AM -0600, Ryan Bradetich wrote:
> Hello parisc-linux hackers,
>
> A bug (#105) was discovered today reguarding cpio'ing an iso image from
> the cdrom to the disk. This was a stupid error and I have a quick patch
> for this. But this leads to my next question.... I am getting a kernel
> panic when perfoming the cpio from the cdrom to the disk. I am trying
> to verify if their in another problem with the ccio code, or if this is
> a problem witht the scsi driver itself. Can someone else try it on a
> non-ccio machine and see if fails for them also. [Note: The cdrom
> content should not matter, in this case I have an i386 debian disk I
> was cpio'ing over because it was handy.]
I just tried (with a suse install cd), on my B180, using the 53c710 i/f,
without any problems.
> Disk to disk transfers seem to work fine under ccio...
>
> Thanks,
>
> - Ryan
>
>
> vega:/tmp# mount /dev/sr0 /cdrom
> ISO 9660 Extensions: RRIP_1991A
> vega:/tmp# find /cdrom | cpio -pm /tmp
> scsi1: Unexpected Illegal Instruction, script[0002]
> scsi1: script[fffffffe]: 00000000 00000000 60000200 00000000 7c1bef00 00000000 41040000 00182448
> scsi1: Failed to handle interrupt. Failing commands and resetting SCSI bus and chip
> scsi1: istat = 00, sstat0 = 00, sstat1 = 00, dstat = 00
> scsi1: dsp = 00182008 (script[0x0802]), dsps = 7b255263, target = 0
> scsi1: Failing command for ID2
What appears to have happened here is that the driver tried to start a
command on scsi ID 2, which it does by writing 00182000 in to DSP in this
case. The scsi chip then picks up an instruction from that address and
and decides it is not a valid instruction. The memory is correct though,
reported as 60000200 00000000 above. That data is static in memory from
driver startup - it doesn't get modified on the fly. The memory is
allocated at startup via pci_alloc_consistant().
I'd guess that the iommu entry for the scsi chip to access that consistent
memory got trashed.
> Dumping Stack from 1027e000 to 1027e2c0:
Errors similar to that above from the scsi driver don't usually take the
machine out, so I'd guess something else went wrong also.
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [parisc-linux] kernel panic using cpio from cdrom to disk.
2001-04-14 6:52 [parisc-linux] kernel panic using cpio from cdrom to disk Ryan Bradetich
2001-04-20 16:22 ` Richard Hirst
@ 2001-04-20 16:57 ` Richard Hirst
2001-04-20 18:07 ` Grant Grundler
1 sibling, 1 reply; 5+ messages in thread
From: Richard Hirst @ 2001-04-20 16:57 UTC (permalink / raw)
To: rbradetich; +Cc: parisc-linux
This is interesting, my tests worked fine, but when I tried to reboot
(typed 'init 6'), it blew up:
INIT: Switching to runlevel: 6
I
Dumping Stack from 1027a000 to 1027a2c0:
a000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
a020 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
a040 00000000 00000000 00000000 00286000 00000000 00000000 00000000 00000000
a060 00000000 00000000 00000000 0010ca78 00000000 00000000 00000000 00000000
a080 00000008 00078578 0010ca78 00004800 0028d000 0027e000 fffbe000 00105824
a0a0 ffffffff 0008ab50 0008ae50 0008c030 00000000 00000000 00083f50 00000000
a0c0 00000000 0000c5f0 faf00790 ffd05800 00000060 00000000 00000000 00000060
a0e0 7efefeff 00064040 ffd05800 f0102400 00000000 ffd05800 1027a2c0 00000007
a100 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
a120 00000001 00000000 00000002 10149ab0 00000000 00000000 00000000 00000000
a140 1007c000 27eb60c0 102d8000 00000000 1028c060 102f7810 102f4010 10272010
a160 00000001 10290010 102f7810 10138610 10272010 102d6134 102d6134 00000000
a180 27ebd000 1028c600 00000000 00000002 00000000 102a0e58 0004000e 0000004d
a1a0 102f4810 27ebd000 1028c600 10149998 cccccccd 00000000 00000000 cccccccd
a1c0 0000000a 00000200 102456e0 00000007 10319cc0 1028aaa8 0004000e 27f41120
a1e0 ffffff05 00000001 10272010 10138778 102f7810 1028aaa8 00000000 00000000
a200 000001d0 000001d0 00000000 000001d0 00000000 00000000 00000000 00000000
a220 000001d0 000001d0 0010caa8 0010caa8 1007c588 00000000 00000000 0027a1c8
a240 00286000 00000004 00080e60 00000000 0027a080 f0083ae8 00008000 0027a160
a260 03b0008a 00000000 00000000 0027a1c8 000acbf8 f0083ae8 f0180fe3 0027a240
a280 ffd05000 0027a268 00000003 0027a270 00000000 f004d7cc 0027a198 0027a240
a2a0 00000014 0027a240 000012d0 10106744 03b0008a 00000001 0027e000 00008000
Unexpected Interruption!: Code=0 regs=1027a080 (Addr=00000000)
YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00000000000000000000000000001000
r0-3 00000000 00078578 0010ca78 00004800
r4-7 0028d000 0027e000 fffbe000 00105824
r8-11 ffffffff 0008ab50 0008ae50 0008c030
r12-15 00000000 00000000 00083f50 00000000
r16-19 00000000 0000c5f0 faf00790 ffd05800
r20-23 00000060 00000000 00000000 00000060
r24-27 7efefeff 00064040 ffd05800 f0102400
r28-31 00000000 ffd05800 1027a2c0 00000007
sr0-3 000001d0 000001d0 00000000 000001d0
sr4-7 00000000 00000000 00000000 00000000
IASQ: 000001d0 000001d0 IAOQ: 0010caa8 0010caa8
IIR: 00080e60 ISR: 00000000 IOR: 0027a080
ORIG_R28: 00000000
Like Ryans crash, PSW has only the Q bit set - data translation is
turned off. I guess that means the IAOQ values are real addresses, so I
added 0x10000000 before looking them up in System.map. In my case, it
died on the "rsm 8,r0" under os_hpmc_5 in arch/parisc/kernel/hpmc.S.
Richard
On Sat, Apr 14, 2001 at 12:52:52AM -0600, Ryan Bradetich wrote:
> Hello parisc-linux hackers,
>
> A bug (#105) was discovered today reguarding cpio'ing an iso image from
> the cdrom to the disk. This was a stupid error and I have a quick patch
> for this. But this leads to my next question.... I am getting a kernel
> panic when perfoming the cpio from the cdrom to the disk. I am trying
> to verify if their in another problem with the ccio code, or if this is
> a problem witht the scsi driver itself. Can someone else try it on a
> non-ccio machine and see if fails for them also. [Note: The cdrom
> content should not matter, in this case I have an i386 debian disk I
> was cpio'ing over because it was handy.]
>
> Disk to disk transfers seem to work fine under ccio...
>
> Thanks,
>
> - Ryan
>
>
> vega:/tmp# mount /dev/sr0 /cdrom
> ISO 9660 Extensions: RRIP_1991A
> vega:/tmp# find /cdrom | cpio -pm /tmp
> scsi1: Unexpected Illegal Instruction, script[0002]
> scsi1: script[fffffffe]: 00000000 00000000 60000200 00000000 7c1bef00 00000000 41040000 00182448
> scsi1: Failed to handle interrupt. Failing commands and resetting SCSI bus and chip
> scsi1: istat = 00, sstat0 = 00, sstat1 = 00, dstat = 00
> scsi1: dsp = 00182008 (script[0x0802]), dsps = 7b255263, target = 0
> scsi1: Failing command for ID2
>
>
>
> Dumping Stack from 1027e000 to 1027e2c0:
> e000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> e020 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> e040 00000000 00000000 00000000 0028a000 00000000 00000000 00000000 00000000
> e060 00000000 00000000 00000000 0010c830 00000000 00000000 00000000 00000000
> e080 00000008 fffb1000 0010c830 00008000 00291000 00282000 0010c8a8 00105024
> e0a0 00282000 00008000 fffa0000 e0000000 20530a40 0000006c 00000002 0000001f
> e0c0 20530a40 102fc010 1012a4a0 ffd05800 00000060 00000000 00000000 00000060
> e0e0 0027e548 00000003 ffd05800 f0102400 00000000 ffd05800 1027e2c0 00000007
> e100 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> e120 00000001 fe4917e0 00000002 1014aee0 ef56b2f6 f9bf8075 dedbd0be f309b5b9
> e140 10fec000 3fc900c0 102dc000 00000000 10290064 102f9010 102fc010 10276010
> e160 102f8810 00000001 10294010 1013948c 102f8810 102d9d08 102d9d08 102d9c80
> e180 3fc99000 1029060c 00000000 00000002 00000000 102a46c0 0004000e 0000004d
> e1a0 102f9010 3fc99000 1029060c 1014adc4 cccccccd 00000030 00000000 cccccccd
> e1c0 00000001 00000004 3fe00000 00000000 412e8480 00000000 3fc9d140 0000004d
> e1e0 ffffff05 102fc010 00000001 101395f4 3fccf400 1028ecc8 00000000 00000000
> e200 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> e220 00000000 00000000 0010c754 0010c758 ffffffff 00000000 00000000 00000000
> e240 00000000 00000008 081a025c 10240041 4c130d44 00000000 00000000 00000000
> e260 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> e280 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> e2a0 00000000 00000000 00000000 10106744 00000000 00000000 00000000 00000000
>
> Unexpected Interruption!: Code=0 regs=1027e080 (Addr=00000000)
>
> YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
> PSW: 00000000000000000000000000001000
> r0-3 00000000 fffb1000 0010c830 00008000
> r4-7 00291000 00282000 0010c8a8 00105024
> r8-11 00282000 00008000 fffa0000 e0000000
> r12-15 20530a40 0000006c 00000002 0000001f
> r16-19 20530a40 102fc010 1012a4a0 ffd05800
> r20-23 00000060 00000000 00000000 00000060
> r24-27 0027e548 00000003 ffd05800 f0102400
> r28-31 00000000 ffd05800 1027e2c0 00000007
> sr0-3 00000000 00000000 00000000 00000000
> sr4-7 00000000 00000000 00000000 00000000
>
> IASQ: 00000000 00000000 IAOQ: 0010c754 0010c758
> IIR: 081a025c ISR: 10240041 IOR: 4c130d44
> ORIG_R28: 00000000
>
>
> --
>
>
> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/cgi-bin/mailman/listinfo/parisc-linux
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [parisc-linux] kernel panic using cpio from cdrom to disk.
2001-04-20 16:57 ` Richard Hirst
@ 2001-04-20 18:07 ` Grant Grundler
0 siblings, 0 replies; 5+ messages in thread
From: Grant Grundler @ 2001-04-20 18:07 UTC (permalink / raw)
To: Richard Hirst; +Cc: parisc-linux
Richard Hirst wrote:
> This is interesting, my tests worked fine, but when I tried to reboot
> (typed 'init 6'), it blew up:
was in-mem data being sync'd to disk?
> Like Ryans crash, PSW has only the Q bit set - data translation is
> turned off. I guess that means the IAOQ values are real addresses, so I
> added 0x10000000 before looking them up in System.map. In my case, it
> died on the "rsm 8,r0" under os_hpmc_5 in arch/parisc/kernel/hpmc.S.
That would suggest two things:
1) the box HPMC'd in both cases - look at PIM dump for more info
2) we have a bug in our HPMC handler that PDC tries to call (in real mode).
Perhaps one of the asm gods (or even demi-gods :^) could look at
hpmc.S and the path to get there.
grant
Grant Grundler
parisc-linux {PCI|IOMMU|SMP} hacker
+1.408.447.7253
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [parisc-linux] kernel panic using cpio from cdrom to disk.
@ 2001-04-20 21:50 John Marvin
0 siblings, 0 replies; 5+ messages in thread
From: John Marvin @ 2001-04-20 21:50 UTC (permalink / raw)
To: parisc-linux
> Unexpected Interruption!: Code=0 regs=1027a080 (Addr=00000000)
Oops. It looks like you are getting an HPMC, however, when I recently
changed the interruption handlers to use shadow registers rather than
temporary control registers, I changed the convention for passing in
the trap "code". It looks like I missed changing the appropriate
code in the hpmc handler, so code got passed as 0, instead of
transferring the real hpmc trap data from pim, it reported what
was in the ipr's at the time the Q bit was last turned off.
> Like Ryans crash, PSW has only the Q bit set - data translation is
> turned off. I guess that means the IAOQ values are real addresses, so I
> added 0x10000000 before looking them up in System.map. In my case, it
> died on the "rsm 8,r0" under os_hpmc_5 in arch/parisc/kernel/hpmc.S.
It didn't die there. The Q bit was turned off there, so that was the
last place that the ipr's (iasq/iaoq/ipsw etc) tracked what was going
on. In fact the hpmc handler worked properly with the exception of
passing in a "1" for code, so you got some output. If the hpmc handler
hadn't worked, you would not have gotten anything.
Try applying the following patch to hpmc.S and you should get a little
more useful output:
--- hpmc.S.old Fri Apr 20 15:22:02 2001
+++ hpmc.S Fri Apr 20 15:24:13 2001
@@ -264,8 +264,7 @@ os_hpmc_5:
tovirt_r1 %r30 /* make sp virtual */
rsm 8,%r0 /* Clear Q bit */
- ldi 1,%r1
- mtctl %r1,%cr29 /* Set trap code to "1" for HPMC */
+ ldi 1,%r8 /* Set trap code to "1" for HPMC */
mtctl %r0,%cr30 /* Force interruptions to use hpmc stack */
ldil L%PA(intr_save), %r1
ldo R%PA(intr_save)(%r1), %r1
Let me know if the patch fixes the hpmc handler bug.
Note, your real problem is that you got an hpmc. Also note that the
hpmc handler only reports the hpmc pim information that is common to
all machines. There is a lot of machine specific hpmc information that
you can get once you reboot and type "ser pim 0 hpmc" at the boot
console prompt. Of course, decoding it can be difficult.
John
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-04-20 21:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-14 6:52 [parisc-linux] kernel panic using cpio from cdrom to disk Ryan Bradetich
2001-04-20 16:22 ` Richard Hirst
2001-04-20 16:57 ` Richard Hirst
2001-04-20 18:07 ` Grant Grundler
-- strict thread matches above, loose matches on Subject: below --
2001-04-20 21:50 John Marvin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.