From owner-freebsd-stable Thu Nov 30 9:34:20 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id 95B1437B401 for ; Thu, 30 Nov 2000 09:34:15 -0800 (PST) Received: (qmail 25515 invoked by uid 0); 30 Nov 2000 17:34:13 -0000 Received: from muedi6-212-144-152-168.arcor-ip.net (HELO ) (212.144.152.168) by mail.gmx.net (mail01) with SMTP; 30 Nov 2000 17:34:13 -0000 Received: (qmail 505 invoked by uid 500); 30 Nov 2000 17:46:28 -0000 Date: Thu, 30 Nov 2000 18:46:28 +0100 From: Johannes Hofmann To: freebsd-stable@freebsd.org Subject: ata + apm problem? Message-ID: <20001130184628.A478@blob.holzstrasse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, since I upgraded from 4.1-STABLE to 4.2-STABLE, my laptop (Extensa 367T) occasionally locks up hard. One can force a freeze by suspending (apm -Z) the laptop twice. The first time it works OK, the second time it locks up. I played around a bit and found that applying the following patch to ata-all.c "solves" the problem. Can anyone tell me, if it is safe to disable the ata_reinit routine? thanks in advance, Johannes Hofmann --- ata-all.c.orig Wed Nov 29 22:43:24 2000 +++ ata-all.c Thu Nov 30 18:28:16 2000 @@ -1348,6 +1348,7 @@ int ata_reinit(struct ata_softc *scp) { +#if 0 int mask = 0, omask; scp->active = ATA_REINITING; @@ -1379,6 +1380,7 @@ } scp->active = ATA_IDLE; ata_start(scp); +#endif return 0; } Output of dmesg: Copyright (c) 1992-2000 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.2-STABLE #5: Thu Nov 30 17:23:25 CET 2000 root@blob.holzstrasse.com:/mnt/usr/src/sys/compile/CUSTOM Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P55C (quarter-micron) (199.96-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x581 Stepping = 1 Features=0x8001bf real memory = 50331648 (49152K bytes) config> enable apm0 avail memory = 45989888 (44912K bytes) Preloaded elf kernel "kernel" at 0xc0312000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc031209c. Intel Pentium detected, installing workaround for F00F bug md0: Malloc disk apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 isab0: at device 2.0 on pci0 isa0: on isab0 chip1: at device 5.0 on pci0 chip2: at device 5.1 on pci0 pci0: at 6.0 irq 9 atapci0: port 0xf000-0xf00f irq 15 at device 11.0 on pci0 atapci0: Busmastering DMA not supported ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 chip3: port 0xf140-0xf15f,0xf100-0xf13f at device 12.0 on pci0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> pcic0: at port 0x3e0 iomem 0xd0000 irq 10 on isa0 pcic0: management irq 10 pccard0: on pcic0 pccard1: on pcic0 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: IEEE1284 device found /NIBBLE/ECP Probing for PnP devices on ppbus0: ppbus0: PJL,MLC,PCL,PCLXL plip0: on ppbus0 ppi0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port pccard: card inserted, slot 1 ata1-slave: ata_command: timeout waiting for intr ata1-slave: identify failed ad0: 2061MB [4188/16/63] at ata0-master BIOSPIO acd0: CDROM at ata1-master using BIOSPIO Mounting root from ufs:/dev/ad0s2a WARNING: / was not properly dismounted ed1 at port 0x240-0x25f irq 3 slot 1 on pccard1 ed1: address 00:00:e8:19:ce:f5, type NE2000 (16 bit) bash-2.03$ sysctl hw.atamodes hw.atamodes: pio,---,pio,---, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message