From owner-freebsd-bugs Fri Apr 11 21:10:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA12093 for bugs-outgoing; Fri, 11 Apr 1997 21:10:06 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA12086; Fri, 11 Apr 1997 21:10:02 -0700 (PDT) Resent-Date: Fri, 11 Apr 1997 21:10:02 -0700 (PDT) Resent-Message-Id: <199704120410.VAA12086@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.VAA11931;Fri; (8.8.5/8.8.5);, 11 Apr 1997 21:07:01.-0700 (PDT) Message-Id: <199704120407.VAA11931@freefall.freebsd.org> Date: Fri, 11 Apr 1997 21:07:01 -0700 (PDT) From: rsm@spyder.ssw.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: kern/3260: FreeBSD 2.2.1 (and 2.2) npx0 boot problem on IBM Aptiva M71 Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 3260 >Category: kern >Synopsis: FreeBSD 2.2.1 (and 2.2) npx0 boot problem on IBM Aptiva M71 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 11 21:10:01 PDT 1997 >Last-Modified: >Originator: Robert Miles >Organization: >Release: 2.2.1 and 2.2 >Environment: Unavailable. >Description: I currently run NetBSD 1.2 on my IBM Aptiva M71, and am considering switching to FreeBSD 2.2 because of better device support, both for current and anticipated devices. However, the 2.2 and 2.2.1 boot floppies do not function properly. The machine hangs (i.e. cycling power is the only way to recover) during the autoconfig process. The last lines printed are: npx0 on motherboard npx0: INT 16 interface apm0: disabled, not probed This problem does not occur with the 2.1.7 boot floppy, i.e. that does properly run "sysinstall" after autoconfig. Using NetBSD I was able to build custom FreeBSD kernels with which to diagnose the problem. Only when I excluded the npx0 device would the kernel stop hanging the machine. Subsequently, I discovered that the boot floppy's kernel can be made to work, either by disabling the npx0 device in CLI mode, or setting npx0 flags to 7 in CLI mode. Here are all the kernel messages from a successful boot: Copyright (c) 1992-1996 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 2.2-RELEASE #2: Sun Mar 16 20:10:44 GMT 1997 jkh@time.cdrom.com:/usr/src/sys/compile/BOOTMFS CPU: Pentium (133.16-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52b Stepping=11 Features=0x1bf real memory = 16777216 (16384K bytes) FreeBSD Kernel Configuration Utility - Version 1.1 Type "help" for help or "visual" to go to the visual configuration interface (requires MGA/VGA display or serial terminal capable of displaying ANSI graphics). config> intro config> flags npx0 7 config> quit avail memory = 13131776 (12824K bytes) Probing for devices on PCI bus 0: chip0 rev 17 on pci0:0 chip1 rev 17 on pci0:1 vga0 rev 211 int a irq ?? on pci0:2 pci0:20: OPTI, device=0xc621, class=storage (ide) [no driver assigned] Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <4 virtual consoles, flags=0x0> ed0 not found at 0x280 ed1 not found at 0x300 fe0 not found at 0x300 sio0 not found at 0x3f8 sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A sio2: disabled, not probed. sio3: disabled, not probed. lpt0 at 0x3bc-0x3c3 irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface lpt1 not found at 0xffffffff mse0 not found at 0x23c psm0: disabled, not probed. fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: NEC 72065B fd0: 1.44MB 3.5in ft0: IOMega tape wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): wd0: 1628MB (3334464 sectors), 3308 cyls, 16 heads, 63 S/T, 512 B/S wdc0: unit 1 (wd1): wd1: 1222MB (2503872 sectors), 2484 cyls, 16 heads, 63 S/T, 512 B/S wdc1 at 0x170-0x177 irq 15 on isa wdc1: unit 0 (atapi): , removable, intr, iordis wcd0: 689Kb/sec, 256Kb cache, audio play, 255 volume levels, ejectable tray wcd0: 120mm data disc loaded, unlocked bt0 not found at 0x330 uha0 not found at 0x330 aha0 not found at 0x330 aic0 not found at 0x340 nca0 not found at 0x1f88 nca1 not found at 0x350 sea0 not found wt0 not found at 0x300 mcd0 not found at 0x300 matcdc0 not found at 0x230 scd0 not found at 0x230 ie0 not found at 0x360 ep0 not found at 0x300 ex0 not found at 0x300 ix0 not found at 0x300 le0 not found at 0x300 lnc0 not found at 0x280 ze0 not found at 0x300 zp0 not found at 0x300 npx0 flags 0x7 on motherboard npx0: INT 16 interface apm0: disabled, not probed. changing root device to fd0c rootfs is 1440 Kbyte compiled in MFS >How-To-Repeat: See the full problem description. Comment: I have tried the same boot floppy on a 486 class machine and a 686 class machine, without this problem. >Fix: A fix has not been identified, but the full problem description includes an effective workaround. At very least it might be worth augmenting the release notes or hardware guide with the symptom and suggested workaround. I suppose it's possible there's something wrong with my hardware, but the same machine runs a variety of NetBSD and Windows 95 applications without apparent problem. I suspect there's something not entirely correct with the floating point fast memory copy optimizations that seem to have been added to 2.2 for 586 class machines. If desired, I may be able to help diagnose this further, but only by assisting someone intimately familiar with the floating point fast memory copy optimizations. >Audit-Trail: >Unformatted: