Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 11:47:37 -0600 (MDT)
From:      Heath Nielson <heath@cs.byu.edu>
To:        <stable@FreeBSD.org>
Cc:        <sos@FreeBSD.org>
Subject:   Panic on DVD read
Message-ID:  <Pine.LNX.4.33.0110101116240.10043-200000@organ.cs.byu.edu>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hello-

I've been trying recently to get the DVD player ogle/libdvdread/libdvdcss
working on my computer.  When I run the command,
ogle -u cli /dev/dvd

the computer panics after cracking a few of the keys on the DVD.  The
panic occurs at the same place each time.  I narrowed the problem down to
a read(2) call being made on the DVD by libdvdcss, when the panic occurs.
The panic (transcribed) is as follows:

Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x3a
fault code            = supervisor write, page not present
instruction pointer   = 0x8:0xc021e20f
stack pointer         = 0x10:0xc02b3d3c
frame pointer         = 0x10:0xc02b3ddc
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       = Idle
interrupt mask        = bio
trap number           = 12
panic: page fault

syncing disks ...

Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x30
fault code            = supervisor read, page not present
instruction pointer   = 0x8:0xc020cd04
stack pointer         = 0x10:0xc02b3b60
frame pointer         = 0x10:0xc02b3b68
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       = Idle
interrupt mask        = bio
trap number           = 12

dump ata0: resetting devices .. done

dumping to dev #ad/0x20001, offset 16512
511

At this point the dump stops so I can't get a kernel core, all the while
the DVD drive's read light remains on solid.

I noticed in the log after rebooting the message:
ata1-master: too many segments in DMA table

Thinking this might have something to do with the DVD-ROM not supporting
DMA well, I forced it into pio mode, reran the test and received the exact
same panic without the "too many segments in DMA table" message.

Does anyone have any clue what might be occurring here?  I've cc'ed Søren
Schmidt since this seems to be related to the ata driver.  I've also included
a dmesg of my system if it can help.

Any help in diagnosing this problem would be appreciated.

Heath

[-- Attachment #2 --]
Copyright (c) 1992-2001 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.4-STABLE #0: Wed Oct 10 01:28:04 MDT 2001
    heath@hershey.dyn.bar.net:/usr/src/sys/compile/HERSHEY
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD-K7(tm) Processor (704.94-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x612  Stepping = 2
  Features=0x81f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,MMX>
  AMD Features=0xc0400000<AMIE,DSP,3DNow!>
real memory  = 536805376 (524224K bytes)
avail memory = 519147520 (506980K bytes)
Preloaded elf kernel "kernel" at 0xc0382000.
Preloaded elf module "if_vr.ko" at 0xc038209c.
Preloaded elf module "miibus.ko" at 0xc038213c.
Preloaded elf module "snd_es137x.ko" at 0xc03821dc.
Preloaded elf module "snd_pcm.ko" at 0xc0382280.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 7 entries at 0xc00f8110
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <AMD-751 host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <AMD-751 PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <NVidia Riva TNT graphics accelerator> at 5.0 irq 11
isab0: <VIA 82C686 PCI-ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA66 controller> port 0xffa0-0xffaf at device 4.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 9 at device 4.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ukbd0: Microsoft Natural Keyboard Elite, rev 1.00/1.04, addr 2, iclass 3/1
kbd0 at ukbd0
uhub1: Philips Semiconductors hub, class 9/0, rev 1.10/1.10, addr 3
uhub1: 5 ports with 5 removable, self powered
ugen0: Hewlett Packard HP USB CD-Writer Plus, rev 1.00/0.01, addr 4
usbd_transfer_cb: short transfer 0<8
usbd_new_device: addr=5, getting first desc failed
uhub_explore: usb_new_device failed, error=IOERROR
uhub1: device problem, disabling port 5
uhci1: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 9 at device 4.3 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
chip1: <VIA 82C686 ACPI interface> at device 4.4 on pci0
pcm0: <AudioPCI ES1370> port 0xcc00-0xcc3f irq 11 at device 13.0 on pci0
ahc0: <Adaptec 2902/04/10/15/20/30C SCSI adapter> port 0xdc00-0xdcff mem 0xeffff000-0xefffffff irq 10 at device 14.0 on pci0
aic7850: Single Channel A, SCSI Id=7, 3/255 SCBs
vr0: <VIA VT3043 Rhine I 10/100BaseTX> port 0xc800-0xc87f mem 0xefffef80-0xefffefff irq 9 at device 16.0 on pci0
vr0: Ethernet address: 00:50:ba:04:cc:81
miibus0: <MII bus> on vr0
amphy0: <DM9101 10/100 media interface> on miibus0
amphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: <Option ROM> at iomem 0xc0000-0xcbfff 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
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
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: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: IEEE1284 device found /NIBBLE/ECP
Probing for PnP devices on ppbus0:
ppbus0: <HEWLETT-PACKARD DESKJET 990C> PRINTER MLC,PCL,PML
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ad0: 29333MB <WDC WD307AA> [59598/16/63] at ata0-master UDMA66
acd0: DVD-ROM <DVD-ROM DDU220E> at ata1-master using WDMA2
Waiting 5 seconds for SCSI devices to settle
pass0 at ahc0 bus 0 target 5 lun 0
pass0: <UMAX Astra 1220S V1.2> Fixed Scanner SCSI-2 device 
pass0: 3.300MB/s transfers
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.33.0110101116240.10043-200000>