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 connected
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 operating
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 = "GenuineIntel"  Id = 0x651  Stepping = 1
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 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 = 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 device 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=0x300>
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


GNU gdb 4.18

Copyright 1998 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "i386-unknown-freebsd"...

IdlePTD at phsyical address 0x003b8000

initial pcb at physical address 0x003191e0

panicstr: from debugger

panic messages:

---

Fatal trap 12: page fault while in kernel mode

fault virtual address	= 0x1c

fault code		= supervisor read, page not present

instruction pointer	= 0x8:0xc019f838

stack pointer	        = 0x10:0xc85e5d3c

frame pointer	        = 0x10:0xc85e5d4c

code segment		= base 0x0, limit 0xfffff, type 0x1b

			= DPL 0, pres 1, def32 1, gran 1

processor eflags	= interrupt enabled, resume, IOPL = 0

current process		= 201 (cp)

interrupt mask		= none

panic: from debugger

panic: from debugger

Uptime: 3m27s



dumping to dev #ad/0x30001, offset 269872

dump ata0: resetting devices .. done

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 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 

---

#0  dumpsys () at ../../kern/kern_shutdown.c:487

487		if (dumping++) {

(kgdb) whre

Undefined command: "whre".  Try "help".

(kgdb) whre  ere

#0  dumpsys () at ../../kern/kern_shutdown.c:487

#1  0xc0165fe0 in boot (howto=260) at ../../kern/kern_shutdown.c:316

#2  0xc016642d in panic (fmt=0xc02a2c44 "from debugger")

    at ../../kern/kern_shutdown.c:595

#3  0xc012ed69 in db_panic (addr=-1072039880, have_addr=0, count=-1, 

    modif=0xc85e5ba8 "") at ../../ddb/db_command.c:435

#4  0xc012ed07 in db_command (last_cmdp=0xc02dcb04, cmd_table=0xc02dc944, 

    aux_cmd_tablep=0xc03143b8) at ../../ddb/db_command.c:333

#5  0xc012edce in db_command_loop () at ../../ddb/db_command.c:457

#6  0xc0130f9f in db_trap (type=12, code=0) at ../../ddb/db_trap.c:71

#7  0xc0279598 in kdb_trap (type=12, code=0, regs=0xc85e5cfc)

    at ../../i386/i386/db_interface.c:158

#8  0xc0286d74 in trap_fatal (frame=0xc85e5cfc, eva=28)

    at ../../i386/i386/trap.c:961

#9  0xc0286a35 in trap_pfault (frame=0xc85e5cfc, usermode=0, eva=28)

    at ../../i386/i386/trap.c:859

#10 0xc02865c7 in trap (frame={tf_fs = -1070792688, tf_es = -934936560, 

      tf_ds = -933363696, tf_edi = -1061748480, tf_esi = -934902144, 

      tf_ebp = -933339828, tf_isp = -933339864, tf_ebx = -1020068036, 

      tf_edx = -933339780, tf_ecx = 30, tf_eax = 0, tf_trapno = 12, 

      tf_err = 0, tf_eip = -1072039880, tf_cs = 8, tf_eflags = 66195, 

      tf_esp = -1020068036, tf_ss = -1062572288}) at ../../i386/i386/trap.c:458

#11 0xc019f838 in spec_strategy (ap=0xc85e5d7c)

    at ../../miscfs/specfs/spec_vnops.c:479

---Type <return> to continue, or q <return> to quit---

#12 0xc019f239 in spec_vnoperate (ap=0xc85e5d7c)

    at ../../miscfs/specfs/spec_vnops.c:119

#13 0xc021ca01 in ufs_vnoperatespec (ap=0xc85e5d7c)

    at ../../ufs/ufs/ufs_vnops.c:2440

#14 0xc0153131 in cd9660_strategy (ap=0xc85e5dd4) at vnode_if.h:944

#15 0xc019004b in cluster_read (vp=0xc8468500, filesize=683933696, 

    lblkno=1408, size=2048, cred=0x0, totread=63488, seqcount=127, 

    bpp=0xc85e5e50) at vnode_if.h:944

#16 0xc01527c6 in cd9660_read (ap=0xc85e5e74)

    at ../../isofs/cd9660/cd9660_vnops.c:330

#17 0xc019b47c in vn_read (fp=0xc0bc5b40, uio=0xc85e5ee0, cred=0xc0c4ba80, 

    flags=0, p=0xc77cc6c0) at vnode_if.h:334

#18 0xc017515b in dofileread (p=0xc77cc6c0, fp=0xc0bc5b40, fd=3, 

    buf=0x80591c0, nbyte=65536, offset=-1, flags=0) at ../../sys/file.h:146

#19 0xc017501f in read (p=0xc77cc6c0, uap=0xc85e5f80)

    at ../../kern/sys_generic.c:117

#20 0xc0287025 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, 

      tf_edi = 65536, tf_esi = 134582720, tf_ebp = -1077937604, 

      tf_isp = -933339180, tf_ebx = 65536, tf_edx = 3, tf_ecx = 2, tf_eax = 3, 

      tf_trapno = 7, tf_err = 2, tf_eip = 134562728, tf_cs = 31, 

      tf_eflags = 659, tf_esp = -1077937664, tf_ss = 47})

    at ../../i386/i386/trap.c:1167

#21 0xc027a4a5 in Xint0x80_syscall ()

#22 0x8048a35 in ?? ()

---Type <return> to continue, or q <return> to quit---

#23 0x804851a in ?? ()

#24 0x8048135 in ?? ()

(kgdb) 

(kgdb) quit

freedaemon# ^Dexit


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>