Date: Thu, 18 Sep 2003 17:51:25 +0200 From: Jan Srzednicki <winfried@student.agh.edu.pl> To: Soren Schmidt <sos@spider.deepcore.dk> Cc: freebsd-current@freebsd.org Subject: Re: ATAng still problematic Message-ID: <20030918155125.GC22643@student.agh.edu.pl> In-Reply-To: <200309181354.h8IDsa0F023908@spider.deepcore.dk> References: <20030918134850.GA22643@student.agh.edu.pl> <200309181354.h8IDsa0F023908@spider.deepcore.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
--xXmbgvnjoT4axfJE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --- -- w@dream.vg --- w@303.krakow.pl --===-- 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 -- --xXmbgvnjoT4axfJE Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=backtrace Content-Transfer-Encoding: quoted-printable Script started on Thu Sep 18 17:43:10 2003 =0D=1B[m=0F=1B[27m=1B[24m=1B[J[17:43] stronghold:/usr/tmp/crash(608)# =1B[K= g=08gdb -k kernel.debug0=08 =08.0 vmcore.0 =08=0D=0D GNU gdb 5.2.1 (FreeBSD)=0D Copyright 2002 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-undermydesk-freebsd"...=0D panic: vm_fault_copy_wired: page missing=0D panic messages:=0D ---=0D panic: vm_fault_copy_wired: page missing=0D =0D 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 =0D giving up on 2440 buffers=0D Uptime: 4m54s=0D Dumping 511 MB=0D [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 2= 72 288 304 320 336 352 368 384 400 416 432 448Copyright (c) 1992-2003 The F= reeBSD Project.=0D Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994=0D The Regents of the University of California. All rights reserved.=0D FreeBSD 5.1-CURRENT #12: Thu Sep 18 16:36:35 CEST 2003=0D root@stronghold:/usr/obj/usr/src/sys/MOONDANCE=0D Preloaded elf kernel "/boot/kernel/kernel" at 0xc04e7000.=0D Preloaded elf module "/boot/kernel/if_rl.ko" at 0xc04e71f4.=0D Preloaded elf module "/boot/kernel/miibus.ko" at 0xc04e72a0.=0D Preloaded elf module "/boot/kernel/snd_via82c686.ko" at 0xc04e734c.=0D Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc04e7400.=0D Preloaded elf module "/boot/kernel/mga.ko" at 0xc04e74ac.=0D Preloaded elf module "/boot/kernel/acpi.ko" at 0xc04e7554.=0D Timecounter "i8254" frequency 1193182 Hz quality 0=0D CPU: AMD Duron(tm) Processor (600.03-MHz 686-class CPU)=0D Origin =3D "AuthenticAMD" Id =3D 0x630 Stepping =3D 0=0D Features=3D0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,= CMOV,PAT,PSE36,MMX,FXSR>=0D AMD Features=3D0xc0440000<RSVD,AMIE,DSP,3DNow!>=0D real memory =3D 536805376 (511 MB)=0D avail memory =3D 515792896 (491 MB)=0D Pentium Pro MTRR support enabled=0D npx0: [FAST]=0D npx0: <math processor> on motherboard=0D npx0: INT 16 interface=0D acpi0: <VIA694 AWRDACPI> on motherboard=0D pcibios: BIOS version 2.10=0D Using $PIR table, 7 entries at 0xc00fdd00=0D acpi0: power button is handled as a fixed feature programming model.=0D Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000=0D acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0=0D acpi_cpu0: <CPU> on acpi0=0D acpi_button0: <Power Button> on acpi0=0D pcib0: <ACPI Host-PCI bridge> port 0x6000-0x607f,0x5000-0x500f,0x4080-0x40f= f,0x4000-0x407f,0xcf8-0xcff on acpi0=0D pci0: <ACPI PCI bus> on pcib0=0D pcib0: slot 7 INTC is routed to irq 11=0D pcib0: slot 9 INTA is routed to irq 5=0D pcib0: slot 10 INTA is routed to irq 11=0D agp0: <VIA 82C8363 (Apollo KT133A) host to PCI bridge> mem 0xd5000000-0xd5f= fffff at device 0.0 on pci0=0D pcib1: <PCI-PCI bridge> at device 1.0 on pci0=0D pci1: <PCI bus> on pcib1=0D pcib0: slot 1 INTA is routed to irq 10=0D pcib1: slot 0 INTA is routed to irq 10=0D drm0: <Matrox G400/G450 (AGP)> mem 0xd3000000-0xd37fffff,0xd2000000-0xd2003= fff,0xd0000000-0xd1ffffff irq 10 at device 0.0 on pci1=0D info: [drm] AGP at 0xd5000000 16MB=0D info: [drm] Initialized mga 3.1.0 20021029 on minor 0=0D isab0: <PCI-ISA bridge> at device 7.0 on pci0=0D isa0: <ISA bus> on isab0=0D atapci0: <VIA 82C686A UDMA66 controller> port 0xd000-0xd00f at device 7.1 o= n pci0=0D ata0: at 0x1f0 irq 14 on atapci0=0D ata0: [MPSAFE]=0D ata1: at 0x170 irq 15 on atapci0=0D ata1: [MPSAFE]=0D pcm0: <VIA VT82C686A> port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq 11= at device 7.5 on pci0=0D pcm0: <ICEnsemble ICE1232 AC97 Codec>=0D pci0: <multimedia, audio> at device 9.0 (no driver attached)=0D rl0: <RealTek 8139 10/100BaseTX> port 0xec00-0xecff mem 0xd6000000-0xd60000= ff irq 11 at device 10.0 on pci0=0D rl0: Ethernet address: 00:e0:7d:b4:33:16=0D miibus0: <MII bus> on rl0=0D rlphy0: <RealTek internal media interface> on miibus0=0D rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto=0D fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x= 3f0-0x3f5 irq 6 drq 2 on acpi0=0D fdc0: FIFO enabled, 8 bytes threshold=0D fd0: <1440-KB 3.5" drive> on fdc0 drive 0=0D sio0 port 0x3f8-0x3ff irq 4 on acpi0=0D sio0: type 16550A=0D atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0=0D atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0=0D kbd0 at atkbd0=0D psm0: <PS/2 Mouse> irq 12 on atkbdc0=0D psm0: model IntelliMouse Explorer, device ID 4=0D pmtimer0 on isa0=0D orm0: <Option ROM> at iomem 0xc0000-0xc87ff on isa0=0D sc0: <System console> on isa0=0D sc0: VGA <16 virtual consoles, flags=3D0x200>=0D vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0=0D sio1: configured irq 3 not in bitmap of probed irqs 0=0D sio1: port may not be enabled=0D Timecounter "TSC" frequency 600026424 Hz quality 800=0D Timecounters tick every 10.000 msec=0D acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%=0D GEOM: create disk ad0 dp=3D0xc4191a70=0D ad0: 19546MB <FUJITSU MPF3204AT> [39714/16/63] at ata0-master UDMA66=0D GEOM: create disk ad1 dp=3D0xc4191970=0D ad1: 39093MB <FUJITSU MPG3409AH EF> [79428/16/63] at ata0-slave UDMA66=0D acd0: CDROM <CD-540E> at ata1-master UDMA33=0D cd0 at ata1 bus 0 target 0 lun 0=0D cd0: <TEAC CD-540E 1.0A> Removable CD-ROM SCSI-0 device =0D cd0: 33.000MB/s transfers=0D cd0: cd present [1 x 0 byte records]=0D Mounting root from ufs:/dev/ad0s2a=0D WARNING: / was not properly dismounted=0D WARNING: /usr was not properly dismounted=0D WARNING: /home2 was not properly dismounted=0D WARNING: /home was not properly dismounted=0D drm0: [MPSAFE]=0D Warning: pid 575 used static ldt allocation.=0D See the i386_set_ldt man page for more info=0D Warning: pid 575 used static ldt allocation.=0D See the i386_set_ldt man page for more info=0D Warning: pid 575 used static ldt allocation.=0D See the i386_set_ldt man page for more info=0D Warning: pid 575 used static ldt allocation.=0D See the i386_set_ldt man page for more info=0D acd0: WARNING - removed from configuration=0D (cd0:ata1:0:0:0): lost device=0D (cd0:ata1:0:0:0): removing device entry=0D ata1: [MPSAFE]=0D acd0: CDROM <CD-540E> at ata1-master UDMA33=0D cd0 at ata1 bus 0 target 0 lun 0=0D cd0: <TEAC CD-540E 1.0A> Removable CD-ROM SCSI-0 device =0D cd0: 33.000MB/s transfers=0D cd0: cd present [604110849 x 503447552 byte records]=0D acd0: WARNING - removed from configuration=0D (cd0:ata1:0:0:0): lost device=0D (cd0:ata1:0:0:0): removing device entry=0D ata1: [MPSAFE]=0D acd0: CDROM <CD-540E> at ata1-master UDMA33=0D acd1: CDRW <CD-W540E> at ata1-slave UDMA33=0D cd0 at ata1 bus 0 target 0 lun 0=0D cd0: <TEAC CD-540E 1.0A> Removable CD-ROM SCSI-0 device =0D cd0: 33.000MB/s transfers=0D cd0: cd present [3092035525 x 838991872 byte records]=0D cd1 at ata1 bus 0 target 1 lun 0=0D cd1: <TEAC CD-W540E 1.0C> Removable CD-ROM SCSI-0 device =0D cd1: 33.000MB/s transfers=0D cd1: cd present [1 x 2048 byte records]=0D panic: vm_fault_copy_wired: page missing=0D =0D 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 =0D giving up on 339 buffers=0D Uptime: 19m14s=0D Dumping 511 MB=0D 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=0D ---=0D Reading symbols from /boot/kernel/if_rl.ko...done.=0D Loaded symbols for /boot/kernel/if_rl.ko=0D Reading symbols from /boot/kernel/miibus.ko...done.=0D Loaded symbols for /boot/kernel/miibus.ko=0D Reading symbols from /boot/kernel/snd_via82c686.ko...done.=0D Loaded symbols for /boot/kernel/snd_via82c686.ko=0D Reading symbols from /boot/kernel/snd_pcm.ko...done.=0D Loaded symbols for /boot/kernel/snd_pcm.ko=0D Reading symbols from /boot/kernel/mga.ko...done.=0D Loaded symbols for /boot/kernel/mga.ko=0D Reading symbols from /usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/mod= ules/acpi/acpi.ko.debug...done.=0D Loaded symbols for /usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/modul= es/acpi/acpi.ko.debug=0D Reading symbols from /usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/mod= ules/linprocfs/linprocfs.ko.debug...done.=0D Loaded symbols for /usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/modul= es/linprocfs/linprocfs.ko.debug=0D Reading symbols from /usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/mod= ules/linux/linux.ko.debug...done.=0D Loaded symbols for /usr/obj/usr/src/sys/MOONDANCE/modules/usr/src/sys/modul= es/linux/linux.ko.debug=0D Reading symbols from /boot/kernel/daemon_saver.ko...done.=0D Loaded symbols for /boot/kernel/daemon_saver.ko=0D #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240=0D 240 dumping++;=0D (kgdb) where=0D #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240=0D #1 0xc01c30a4 in boot (howto=3D256) at /usr/src/sys/kern/kern_shutdown.c:3= 72=0D #2 0xc01c3448 in panic () at /usr/src/sys/kern/kern_shutdown.c:550=0D #3 0xc02cb639 in vm_fault_copy_entry (dst_map=3D0xc1561300, src_map=3D0xc4= a52a00, =0D dst_entry=3D0xc4a023fc, src_entry=3D0x0) at /usr/src/sys/vm/vm_fault.c:= 1090=0D #4 0xc02d24e1 in vm_map_copy_entry (src_map=3D0xc4a52a00, dst_map=3D0xc156= 1300, =0D src_entry=3D0xc4abfce4, dst_entry=3D0xc4a023fc)=0D at /usr/src/sys/vm/vm_map.c:2376=0D #5 0xc02d2819 in vmspace_fork (vm1=3D0xc4a52a00)=0D at /usr/src/sys/vm/vm_map.c:2491=0D #6 0xc02ccfce in vm_forkproc (td=3D0xc4b62ab0, p2=3D0xc4976790, td2=3D0xc4= 977390, =0D flags=3D20) at /usr/src/sys/vm/vm_glue.c:624=0D #7 0xc01ac809 in fork1 (td=3D0xc4b62ab0, flags=3D20, pages=3D0, procp=3D0x= dc031cdc)=0D at /usr/src/sys/kern/kern_fork.c:654=0D #8 0xc01ab2eb in fork (td=3D0xc4b62ab0, uap=3D0xdc031d14)=0D at /usr/src/sys/kern/kern_fork.c:102=0D #9 0xc03162c0 in syscall (frame=3D=0D {tf_fs =3D 47, tf_es =3D 47, tf_ds =3D 47, tf_edi =3D 4096, tf_esi = =3D 65536, tf_ebp =3D -1077946584, tf_isp =3D -603775628, tf_ebx =3D 64, tf= _edx =3D 1307, tf_ecx =3D 672818432, tf_eax =3D 2, tf_trapno =3D 0, tf_err = =3D 2, tf_eip =3D 672226895, tf_cs =3D 31, tf_eflags =3D 582, tf_esp =3D -1= 077946628, tf_ss =3D 47})=0D at /usr/src/sys/i386/i386/trap.c:1005=0D #10 0xc030621d in Xint0x80_syscall () at {standard input}:144=0D ---Can't read userspace from dump, or kernel process---=0D =0D (kgdb) up 3=0D #3 0xc02cb639 in vm_fault_copy_entry (dst_map=3D0xc1561300, src_map=3D0xc4= a52a00, =0D dst_entry=3D0xc4a023fc, src_entry=3D0x0) at /usr/src/sys/vm/vm_fault.c:= 1090=0D 1090 panic("vm_fault_copy_wired: page missing");=0D (kgdb) =0D=1B[m=0F=1B[27m=1B[24m=1B[J[17:49] stronghold:/usr/tmp/crash(609)= # =1B[K=0D=0D Script done on Thu Sep 18 17:49:23 2003 --xXmbgvnjoT4axfJE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030918155125.GC22643>