Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Apr 2002 23:58:53 +0200
From:      Chris Pockele <chrisp@belgacom.net>
To:        stable@freebsd.org
Subject:   ata (cd) troubles
Message-ID:  <20020429235853.A363@freedaemon.home.lan>

next in thread | raw e-mail | index | archive | help
Hi,
I'm running FreeBSD 4-STABLE and since a week or so, I've been experiencing
troubles using atapi cd drives.
The system has a Chaintech motherboard with Intel 82440LX chipset.
The primary IDE channel has a Western Digital 30 GB hard disk drive connect=
ed
to it, on the secondary channel are a CD-writer (master) and reader (slave).

When reading a file (using dd, cp, another application) from a CD, I get
a few messages from the kernel:

acd1: READ_BIG command timeout - resetting
ata1: resetting devices ..

(sometimes these messages appear more than once),
followed by a kernel panic (traceback follows...).  It happens with both
acd0 and acd1.  The hardware and the CD's work perfectly in another operati=
ng
system.
The currently running system is built from 2002/04/28 sources.

dmesg:

Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.5-STABLE #1: Mon Apr 29 22:37:52 CEST 2002
    supc@freedaemon.home.lan:/usr/obj/usr/src/sys/CUSTOM
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (334.09-MHz 686-class CPU)
  Origin =3D "GenuineIntel"  Id =3D 0x651  Stepping =3D 1
  Features=3D0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,=
CMOV,PAT,PSE36,MMX,FXSR>
real memory  =3D 134217728 (131072K bytes)
config> en ed0
config> po ed0 0x240
config> ir ed0 9
config> iom ed0 0xd8000
config> f ed0 0
config> q
avail memory =3D 127029248 (124052K bytes)
Preloaded elf kernel "kernel" at 0xc0399000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc039909c.
VESA: v3.0, 4096k memory, flags:0x1, mode table:0xc032f382 (1000022)
VESA: NVidia
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 6 entries at 0xc00fd1b0
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443LX (440 LX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443LX (440 LX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <NVidia Riva TNT2 graphics accelerator> at 0.0 irq 11
isab0: <Intel 82371AB PCI to ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 2.1 on=
 pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xe000-0xe01f irq 10 =
at device 2.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
chip1: <Intel 82371AB Power management controller> port 0x5000-0x500f at de=
vice 2.3 on pci0
de0: <Digital 21041 Ethernet> port 0xe400-0xe47f mem 0xe9000000-0xe900007f =
irq 5 at device 14.0 on pci0
de0: 21041 [10Mb/s] pass 2.1
de0: address 00:40:05:42:9c:72
pcm0: <Creative CT5880-C> port 0xe800-0xe83f irq 10 at device 16.0 on pci0
orm0: <Option ROM> at iomem 0xc0000-0xca7ff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ad0: 28629MB <WDC WD300BB-00AUA1> [58168/16/63] at ata0-master UDMA33
acd0: CD-RW <R/RW 12x8x32> at ata1-master PIO4
acd1: CDROM <CD-ROM 52X/AKH> at ata1-slave PIO4
Mounting root from ufs:/dev/ad0s2a
WARNING: / was not properly dismounted
de0: enabling BNC port


traceback:

Script started on Mon Apr 29 23:37:19 2002
freedaemon# gdb -k kernel.debug.0 vmcore.0=0D=0D
GNU gdb 4.18=0D
Copyright 1998 Free Software Foundation, Inc.=0D
GDB is free software, covered by the GNU General Public License, and you ar=
e=0D
welcome to change it and/or distribute copies of it under certain condition=
s.=0D
Type "show copying" to see the conditions.=0D
There is absolutely no warranty for GDB.  Type "show warranty" for details.=
=0D
This GDB was configured as "i386-unknown-freebsd"...=0D
IdlePTD at phsyical address 0x003b8000=0D
initial pcb at physical address 0x003191e0=0D
panicstr: from debugger=0D
panic messages:=0D
---=0D
Fatal trap 12: page fault while in kernel mode=0D
fault virtual address	=3D 0x1c=0D
fault code		=3D supervisor read, page not present=0D
instruction pointer	=3D 0x8:0xc019f838=0D
stack pointer	        =3D 0x10:0xc85e5d3c=0D
frame pointer	        =3D 0x10:0xc85e5d4c=0D
code segment		=3D base 0x0, limit 0xfffff, type 0x1b=0D
			=3D DPL 0, pres 1, def32 1, gran 1=0D
processor eflags	=3D interrupt enabled, resume, IOPL =3D 0=0D
current process		=3D 201 (cp)=0D
interrupt mask		=3D none=0D
panic: from debugger=0D
panic: from debugger=0D
Uptime: 3m27s=0D
=0D
dumping to dev #ad/0x30001, offset 269872=0D
dump ata0: resetting devices .. done=0D
128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110=
 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 8=
8 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 6=
3 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 3=
8 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 1=
3 12 11 10 9 8 7 6 5 4 3 2 1 =0D
---=0D
#0  dumpsys () at ../../kern/kern_shutdown.c:487=0D
487		if (dumping++) {=0D
(kgdb) whre=0D
Undefined command: "whre".  Try "help".=0D
(kgdb) whre=08 =08=08 =08ere=0D
#0  dumpsys () at ../../kern/kern_shutdown.c:487=0D
#1  0xc0165fe0 in boot (howto=3D260) at ../../kern/kern_shutdown.c:316=0D
#2  0xc016642d in panic (fmt=3D0xc02a2c44 "from debugger")=0D
    at ../../kern/kern_shutdown.c:595=0D
#3  0xc012ed69 in db_panic (addr=3D-1072039880, have_addr=3D0, count=3D-1, =
=0D
    modif=3D0xc85e5ba8 "") at ../../ddb/db_command.c:435=0D
#4  0xc012ed07 in db_command (last_cmdp=3D0xc02dcb04, cmd_table=3D0xc02dc94=
4, =0D
    aux_cmd_tablep=3D0xc03143b8) at ../../ddb/db_command.c:333=0D
#5  0xc012edce in db_command_loop () at ../../ddb/db_command.c:457=0D
#6  0xc0130f9f in db_trap (type=3D12, code=3D0) at ../../ddb/db_trap.c:71=0D
#7  0xc0279598 in kdb_trap (type=3D12, code=3D0, regs=3D0xc85e5cfc)=0D
    at ../../i386/i386/db_interface.c:158=0D
#8  0xc0286d74 in trap_fatal (frame=3D0xc85e5cfc, eva=3D28)=0D
    at ../../i386/i386/trap.c:961=0D
#9  0xc0286a35 in trap_pfault (frame=3D0xc85e5cfc, usermode=3D0, eva=3D28)=
=0D
    at ../../i386/i386/trap.c:859=0D
#10 0xc02865c7 in trap (frame=3D{tf_fs =3D -1070792688, tf_es =3D -93493656=
0, =0D
      tf_ds =3D -933363696, tf_edi =3D -1061748480, tf_esi =3D -934902144, =
=0D
      tf_ebp =3D -933339828, tf_isp =3D -933339864, tf_ebx =3D -1020068036,=
 =0D
      tf_edx =3D -933339780, tf_ecx =3D 30, tf_eax =3D 0, tf_trapno =3D 12,=
 =0D
      tf_err =3D 0, tf_eip =3D -1072039880, tf_cs =3D 8, tf_eflags =3D 6619=
5, =0D
      tf_esp =3D -1020068036, tf_ss =3D -1062572288}) at ../../i386/i386/tr=
ap.c:458=0D
#11 0xc019f838 in spec_strategy (ap=3D0xc85e5d7c)=0D
    at ../../miscfs/specfs/spec_vnops.c:479=0D
---Type <return> to continue, or q <return> to quit---=0D
#12 0xc019f239 in spec_vnoperate (ap=3D0xc85e5d7c)=0D
    at ../../miscfs/specfs/spec_vnops.c:119=0D
#13 0xc021ca01 in ufs_vnoperatespec (ap=3D0xc85e5d7c)=0D
    at ../../ufs/ufs/ufs_vnops.c:2440=0D
#14 0xc0153131 in cd9660_strategy (ap=3D0xc85e5dd4) at vnode_if.h:944=0D
#15 0xc019004b in cluster_read (vp=3D0xc8468500, filesize=3D683933696, =0D
    lblkno=3D1408, size=3D2048, cred=3D0x0, totread=3D63488, seqcount=3D127=
, =0D
    bpp=3D0xc85e5e50) at vnode_if.h:944=0D
#16 0xc01527c6 in cd9660_read (ap=3D0xc85e5e74)=0D
    at ../../isofs/cd9660/cd9660_vnops.c:330=0D
#17 0xc019b47c in vn_read (fp=3D0xc0bc5b40, uio=3D0xc85e5ee0, cred=3D0xc0c4=
ba80, =0D
    flags=3D0, p=3D0xc77cc6c0) at vnode_if.h:334=0D
#18 0xc017515b in dofileread (p=3D0xc77cc6c0, fp=3D0xc0bc5b40, fd=3D3, =0D
    buf=3D0x80591c0, nbyte=3D65536, offset=3D-1, flags=3D0) at ../../sys/fi=
le.h:146=0D
#19 0xc017501f in read (p=3D0xc77cc6c0, uap=3D0xc85e5f80)=0D
    at ../../kern/sys_generic.c:117=0D
#20 0xc0287025 in syscall2 (frame=3D{tf_fs =3D 47, tf_es =3D 47, tf_ds =3D =
47, =0D
      tf_edi =3D 65536, tf_esi =3D 134582720, tf_ebp =3D -1077937604, =0D
      tf_isp =3D -933339180, tf_ebx =3D 65536, tf_edx =3D 3, tf_ecx =3D 2, =
tf_eax =3D 3, =0D
      tf_trapno =3D 7, tf_err =3D 2, tf_eip =3D 134562728, tf_cs =3D 31, =0D
      tf_eflags =3D 659, tf_esp =3D -1077937664, tf_ss =3D 47})=0D
    at ../../i386/i386/trap.c:1167=0D
#21 0xc027a4a5 in Xint0x80_syscall ()=0D
#22 0x8048a35 in ?? ()=0D
---Type <return> to continue, or q <return> to quit---=0D
#23 0x804851a in ?? ()=0D
#24 0x8048135 in ?? ()=0D
(kgdb) =0D
(kgdb) quit=0D
freedaemon# ^D=08=08exit=0D

Script done on Mon Apr 29 23:42:28 2002

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020429235853.A363>