Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2000 18:46:28 +0100
From:      Johannes Hofmann <Johannes.Hofmann@gmx.de>
To:        freebsd-stable@freebsd.org
Subject:   ata + apm problem?
Message-ID:  <20001130184628.A478@blob.holzstrasse.com>

next in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
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: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
isab0: <AcerLabs M1533 portable PCI-ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
chip1: <PCI to CardBus bridge (vendor=1217 device=6832)> at device 5.0 on pci0
chip2: <PCI to CardBus bridge (vendor=1217 device=6832)> at device 5.1 on pci0
pci0: <NeoMagic model 0083 VGA-compatible display device> at 6.0 irq 9
atapci0: <AcerLabs Aladdin ATA33 controller> 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: <AcerLabs M15x3 Power Management Unit> port 0xf140-0xf15f,0xf100-0xf13f at device 12.0 on pci0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
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>
pcic0: <Intel i82365> at port 0x3e0 iomem 0xd0000 irq 10 on isa0
pcic0: management irq 10
pccard0: <PC Card bus -- kludge version> on pcic0
pccard1: <PC Card bus -- kludge version> on pcic0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
ppc0: <Parallel port> 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: <Hewlett-Packard HP LaserJet 2100 Series> PJL,MLC,PCL,PCLXL
plip0: <PLIP network interface> on ppbus0
ppi0: <Parallel I/O> on ppbus0
lpt0: <Printer> 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 <HITACHI_DK226A-21U> [4188/16/63] at ata0-master BIOSPIO
acd0: CDROM <CD-220EA> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001130184628.A478>