On Thu, Sep 18, 2003 at 03:54:36PM +0200, Soren Schmidt wrote:
> It seems Jan Srzednicki wrote:
> > First of all, the drive still does not get detected properly. Funny
> > thing is that after some playing with atacontrol attach/detach, it
> > finally gets detected. And later on, it is normally detected, before.
> > Same scenario happened like 3 times with ATAng and newer and newer
> > kernels. I don't know whether some device hints or anything are just
> > updated; yet, I didn't have _any_ drive detection problems with ATAold.
> > 
> > The problem is with the second drive. There's still some randomness in
> > it, as it gets undetected from time to time.
> 
> Try the below patch and let me know if that changes anything..

It seems that things have changed a bit (the drive gets detected more
often), but still, it's not perfect.

Anyway, here's backtrace for atapicam panic I've mentioned. It's
triggered by:

cdrecord dev=1,1,0 /some/track

greetings,
-- 
  -- wrzask --= v =-- Winfried --===-- GG# 3838383 ---
-- [EMAIL PROTECTED] --- [EMAIL PROTECTED] --===-- http://violent.dream.vg/ ---
--=< Ride the wild wind - push the envelope, don't sit on the fence, ---
  -- Ride the wild wind - live life on the razor's edge! >=-- Queen --
Script started on Thu Sep 18 17:43:10 2003

[17:43] stronghold:/usr/tmp/crash(608)# ggdb -k kernel.debug0 
.0 vmcore.0 

GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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-undermydesk-freebsd"...
panic: vm_fault_copy_wired: page missing
panic messages:
---
panic: vm_fault_copy_wired: page missing

syncing disks, buffers remaining... 3428 3428 3426 3426 3426 3426 3426 3426 3426 3426 
3426 3426 3426 3426 3426 3426 3426 3426 3426 3426 3426 3426 
giving up on 2440 buffers
Uptime: 4m54s
Dumping 511 MB
[CTRL-C to abort] [CTRL-C to abort]  16 32 48 64 80 96 112 128 144 160 176 192 208 
224[CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort]  240 256 272 288 304 320 336 
352 368 384 400 416 432 448Copyright (c) 1992-2003 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 5.1-CURRENT #12: Thu Sep 18 16:36:35 CEST 2003
    [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MOONDANCE
Preloaded elf kernel "/boot/kernel/kernel" at 0xc04e7000.
Preloaded elf module "/boot/kernel/if_rl.ko" at 0xc04e71f4.
Preloaded elf module "/boot/kernel/miibus.ko" at 0xc04e72a0.
Preloaded elf module "/boot/kernel/snd_via82c686.ko" at 0xc04e734c.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc04e7400.
Preloaded elf module "/boot/kernel/mga.ko" at 0xc04e74ac.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc04e7554.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Duron(tm) Processor (600.03-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x630  Stepping = 0
  
Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0440000<RSVD,AMIE,DSP,3DNow!>
real memory  = 536805376 (511 MB)
avail memory = 515792896 (491 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <VIA694 AWRDACPI> on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 7 entries at 0xc00fdd00
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 
0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 7 INTC is routed to irq 11
pcib0: slot 9 INTA is routed to irq 5
pcib0: slot 10 INTA is routed to irq 11
agp0: <VIA 82C8363 (Apollo KT133A) host to PCI bridge> mem 0xd5000000-0xd5ffffff at 
device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib0: slot 1 INTA is routed to irq 10
pcib1: slot 0 INTA is routed to irq 10
drm0: <Matrox G400/G450 (AGP)> mem 
0xd3000000-0xd37fffff,0xd2000000-0xd2003fff,0xd0000000-0xd1ffffff irq 10 at device 0.0 
on pci1
info: [drm] AGP at 0xd5000000 16MB
info: [drm] Initialized mga 3.1.0 20021029 on minor 0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686A UDMA66 controller> port 0xd000-0xd00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pcm0: <VIA VT82C686A> port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq 11 at device 
7.5 on pci0
pcm0: <ICEnsemble ICE1232 AC97 Codec>
pci0: <multimedia, audio> at device 9.0 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0xec00-0xecff mem 0xd6000000-0xd60000ff irq 11 
at device 10.0 on pci0
rl0: Ethernet address: 00:e0:7d:b4:33:16
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f0-0x3f5 
irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
pmtimer0 on isa0
orm0: <Option ROM> at iomem 0xc0000-0xc87ff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
Timecounter "TSC" frequency 600026424 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%
GEOM: create disk ad0 dp=0xc4191a70
ad0: 19546MB <FUJITSU MPF3204AT> [39714/16/63] at ata0-master UDMA66
GEOM: create disk ad1 dp=0xc4191970
ad1: 39093MB <FUJITSU MPG3409AH EF> [79428/16/63] at ata0-slave UDMA66
acd0: CDROM <CD-540E> at ata1-master UDMA33
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TEAC CD-540E 1.0A> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: cd present [1 x 0 byte records]
Mounting root from ufs:/dev/ad0s2a
WARNING: / was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /home2 was not properly dismounted
WARNING: /home was not properly dismounted
drm0: [MPSAFE]
Warning: pid 575 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 575 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 575 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 575 used static ldt allocation.
See the i386_set_ldt man page for more info
acd0: WARNING - removed from configuration
(cd0:ata1:0:0:0): lost device
(cd0:ata1:0:0:0): removing device entry
ata1: [MPSAFE]
acd0: CDROM <CD-540E> at ata1-master UDMA33
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TEAC CD-540E 1.0A> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: cd present [604110849 x 503447552 byte records]
acd0: WARNING - removed from configuration
(cd0:ata1:0:0:0): lost device
(cd0:ata1:0:0:0): removing device entry
ata1: [MPSAFE]
acd0: CDROM <CD-540E> at ata1-master UDMA33
acd1: CDRW <CD-W540E> at ata1-slave UDMA33
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TEAC CD-540E 1.0A> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: cd present [3092035525 x 838991872 byte records]
cd1 at ata1 bus 0 target 1 lun 0
cd1: <TEAC CD-W540E 1.0C> Removable CD-ROM SCSI-0 device 
cd1: 33.000MB/s transfers
cd1: cd present [1 x 2048 byte records]
panic: vm_fault_copy_wired: page missing

syncing disks, buffers remaining... 645 645 643 643 643 643 643 643 643 643 643 643 
643 643 643 643 643 643 643 643 643 643 
giving up on 339 buffers
Uptime: 19m14s
Dumping 511 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 
384 400 416 432 448 464 480 496
---
Reading symbols from /boot/kernel/if_rl.ko...done.
Loaded symbols for /boot/kernel/if_rl.ko
Reading symbols from /boot/kernel/miibus.ko...done.
Loaded symbols for /boot/kernel/miibus.ko
Reading symbols from /boot/kernel/snd_via82c686.ko...done.
Loaded symbols for /boot/kernel/snd_via82c686.ko
Reading symbols from /boot/kernel/snd_pcm.ko...done.
Loaded symbols for /boot/kernel/snd_pcm.ko
Reading symbols from /boot/kernel/mga.ko...done.
Loaded symbols for /boot/kernel/mga.ko
Reading symbols from 
/usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/modules/acpi/acpi.ko.debug...done.
Loaded symbols for 
/usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/modules/acpi/acpi.ko.debug
Reading symbols from 
/usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/modules/linprocfs/linprocfs.ko.debug...done.
Loaded symbols for 
/usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/modules/linprocfs/linprocfs.ko.debug
Reading symbols from 
/usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/modules/linux/linux.ko.debug...done.
Loaded symbols for 
/usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/modules/linux/linux.ko.debug
Reading symbols from /boot/kernel/daemon_saver.ko...done.
Loaded symbols for /boot/kernel/daemon_saver.ko
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
240             dumping++;
(kgdb) where
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc01c30a4 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:372
#2  0xc01c3448 in panic () at /usr/src/sys/kern/kern_shutdown.c:550
#3  0xc02cb639 in vm_fault_copy_entry (dst_map=0xc1561300, src_map=0xc4a52a00, 
    dst_entry=0xc4a023fc, src_entry=0x0) at /usr/src/sys/vm/vm_fault.c:1090
#4  0xc02d24e1 in vm_map_copy_entry (src_map=0xc4a52a00, dst_map=0xc1561300, 
    src_entry=0xc4abfce4, dst_entry=0xc4a023fc)
    at /usr/src/sys/vm/vm_map.c:2376
#5  0xc02d2819 in vmspace_fork (vm1=0xc4a52a00)
    at /usr/src/sys/vm/vm_map.c:2491
#6  0xc02ccfce in vm_forkproc (td=0xc4b62ab0, p2=0xc4976790, td2=0xc4977390, 
    flags=20) at /usr/src/sys/vm/vm_glue.c:624
#7  0xc01ac809 in fork1 (td=0xc4b62ab0, flags=20, pages=0, procp=0xdc031cdc)
    at /usr/src/sys/kern/kern_fork.c:654
#8  0xc01ab2eb in fork (td=0xc4b62ab0, uap=0xdc031d14)
    at /usr/src/sys/kern/kern_fork.c:102
#9  0xc03162c0 in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 4096, tf_esi = 65536, tf_ebp = 
-1077946584, tf_isp = -603775628, tf_ebx = 64, tf_edx = 1307, tf_ecx = 672818432, 
tf_eax = 2, tf_trapno = 0, tf_err = 2, tf_eip = 672226895, tf_cs = 31, tf_eflags = 
582, tf_esp = -1077946628, tf_ss = 47})
    at /usr/src/sys/i386/i386/trap.c:1005
#10 0xc030621d in Xint0x80_syscall () at {standard input}:144
---Can't read userspace from dump, or kernel process---

(kgdb) up 3
#3  0xc02cb639 in vm_fault_copy_entry (dst_map=0xc1561300, src_map=0xc4a52a00, 
    dst_entry=0xc4a023fc, src_entry=0x0) at /usr/src/sys/vm/vm_fault.c:1090
1090                            panic("vm_fault_copy_wired: page missing");
(kgdb) 
[17:49] stronghold:/usr/tmp/crash(609)# 


Script done on Thu Sep 18 17:49:23 2003
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to