From owner-freebsd-questions@FreeBSD.ORG Wed Nov 17 12:22:07 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACDE816A4CE for ; Wed, 17 Nov 2004 12:22:07 +0000 (GMT) Received: from daedalus.desk.pl (daedalus.desk.pl [62.233.238.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8FED43D53 for ; Wed, 17 Nov 2004 12:22:06 +0000 (GMT) (envelope-from creep@daedalus.desk.pl) Received: from localhost (localhost [127.0.0.1]) by daedalus.desk.pl (Postfix) with ESMTP id 340BF366E14 for ; Wed, 17 Nov 2004 13:13:30 +0100 (CET) Received: from daedalus.desk.pl ([127.0.0.1]) by localhost (daedalus [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23381-07 for ; Wed, 17 Nov 2004 13:13:27 +0100 (CET) Received: by daedalus.desk.pl (Postfix, from userid 1023) id B3CAE366E13; Wed, 17 Nov 2004 13:13:27 +0100 (CET) Date: Wed, 17 Nov 2004 13:13:27 +0100 From: Marcin To: freebsd-questions@freebsd.org Message-ID: <20041117121327.GA21322@daedalus.desk.pl> References: <20041116163329.BCA4916A5BE@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <20041116163329.BCA4916A5BE@hub.freebsd.org> User-Agent: Mutt/1.4.1i X-Antivirus: Skaner Antywirusowy DESK.pl Subject: 5.3 on Compaq AP400 hangs on reboot. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2004 12:22:07 -0000 Hello FreeBSD users! I've installed FreeBSD 5.3 on two-cpu Compaq 'Professional Desktop AP400' and have got a problem: When i reboot the mashine, it hangs instead of resetting the system. (that was reported in kern/27834 back with 4.3-STABLE, but in my case there is a new interesting fact) I use non-smp GENERIC kernel [dmesg/mptable below] The kernel just prints "Rebooting...", screen goes blank, nothing happens until i manually reset the mashine. I tried ACPI, but it complains about APIC, with: "ACPI disabled by blacklist. Contact your BIOS vendor." (from sys/dev/acpica/acpi.c acpi_Startup returning AE_ERROR) called by: MADT: ACPI Startup failed with (the above) Try disabling either ACPI or apic support. panic("Using MADT but ACPI doesn't work"); (from sys/i386/acpica/madt.c madt_setup_io()) I disabled APIC with hints.apic.0.disabled="1" and indeed system started without any problems [attached dmesg is from that boot], but that didn't fix anything - system still didn't restart after reboot. Apart from that, i read that this disables smp, so it isn't a solution anyway. I also disabled acpi leaving apic; again, without results. I thought that there is nothing i could do except installing linux back [there was a linux system there before, the person using it said he had no problem with rebooting] but when the ACPI panic happes (the one listed above) and the user is prompted to press any key [or wait 15 secs] system prints Rebooting... and really restarts the machine the way i want! I searched for 'Rebooting' code in the kernel. found sys/kern/kern_shutdown.c shutdown_reset which calles cpu_reset(), then, checked what shutdown(1)/reboot(1) do and found they call the same func... so what happens in cpu_reset() what is different at panic and normal shutdown is still a mystery to me, but may be a hint for someone knowing the subject. Hints? Ideas? Pointers? I'm not very good at ACPI; seems a huge topic from 'layers and levels' one can apply to debugging it ;) I'm also not very familiar with compaq's hardware; I'll try to google out if a some bios upgrade is possible (?). -- Best regards, m. DMESG: [with apic disabled, unfortunately i can't catch messages on panic] Copyright (c) 1992-2004 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.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium II/Pentium II Xeon/Celeron (399.06-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183fbff real memory = 335544320 (320 MB) avail memory = 318705664 (303 MB) ACPI disabled by blacklist. Contact your BIOS vendor. npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 $PIR: No matching entry for 0.11.INTA agp0: mem 0x54000000-0x57ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 sym0: <875> port 0x5000-0x50ff mem 0x50a00000-0x50a00fff,0x50b00000-0x50b000ff irq 11 at device 11.0 on pci0 sym0: No NVRAM, ID 7, Fast-20, SE, parity checking sym0: [GIANT-LOCKED] fxp0: port 0x5400-0x541f mem 0x50800000-0x508fffff,0x50c00000-0x50c00fff irq 11 at device 12.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:08:c7:5c:cc:38 pci0: at device 15.0 (no driver attached) isab0: at device 20.0 on pci0 isa0: on isab0 atapci0: port 0x5440-0x544f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 20.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 uhci0: port 0x5420-0x543f irq 11 at device 20.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 20.3 (no driver attached) cpu0 on motherboard orm0: at iomem 0xec000-0xeffff,0xc8000-0xcbfff,0xc0000-0xc7fff on isa0 pmtimer0 on isa0 atkbdc0: at port 0x64,0x60 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] fdc0: at port 0x3f0-0x3f5 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) Timecounter "TSC" frequency 399062929 Hz quality 800 Timecounters tick every 10.000 msec acd0: CDROM at ata0-master PIO4 Waiting 15 seconds for SCSI devices to settle da0 at sym0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queueing Enabled da0: 4067MB (8330543 512 byte sectors: 255H 63S/T 518C) Mounting root from ufs:/dev/da0s1a MPTables [with blank lines truncated] =============================================================================== MPTable, version 2.0.15 ------------------------------------------------------------------------------- MP Floating Pointer Structure: location: BIOS physical address: 0x000f6420 signature: '_MP_' length: 16 bytes version: 1.4 checksum: 0xfd mode: Virtual Wire ------------------------------------------------------------------------------- MP Config Table Header: physical address: 0x000f6430 signature: 'PCMP' base table length: 396 version: 1.4 checksum: 0x75 OEM ID: 'COMPAQ ' Product ID: 'Workstation ' OEM table pointer: 0x00000000 OEM table size: 0 entry count: 40 local APIC address: 0xfee00000 extended table length: 0 extended table checksum: 0 ------------------------------------------------------------------------------- MP Config Base Table Entries: -- Processors: APIC ID Version State Family Model Step Flags 1 0x10 BSP, usable 6 5 2 0x183fbff 0 0x10 AP, usable 6 5 2 0x183fbff -- Bus: Bus ID Type 0 PCI 1 PCI 9 ISA -- I/O APICs: APIC ID Version State Address 8 0x11 usable 0xfec00000 -- I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# INT active-lo level 0 12:A 8 20 INT active-lo level 0 11:A 8 21 INT active-lo level 0 1:A 8 22 INT active-lo level 0 1:B 8 23 INT active-lo level 0 16:A 8 16 INT active-lo level 0 16:B 8 17 INT active-lo level 0 16:C 8 18 INT active-lo level 0 16:D 8 19 INT active-lo level 0 15:A 8 18 INT active-lo level 0 15:B 8 19 INT active-lo level 0 15:C 8 16 INT active-lo level 0 15:D 8 17 INT active-lo level 0 14:A 8 19 INT active-lo level 0 14:B 8 16 INT active-lo level 0 14:C 8 17 INT active-lo level 0 14:D 8 18 INT active-lo level 0 13:A 8 17 INT active-lo level 0 13:B 8 18 INT active-lo level 0 13:C 8 19 INT active-lo level 0 13:D 8 16 INT conforms conforms 9 0 8 2 INT conforms conforms 9 1 8 1 INT conforms conforms 9 3 8 3 INT conforms conforms 9 4 8 4 INT conforms conforms 9 5 8 5 INT conforms conforms 9 6 8 6 INT conforms conforms 9 7 8 7 INT conforms conforms 9 8 8 8 INT conforms conforms 9 9 8 9 INT conforms conforms 9 10 8 10 INT conforms conforms 9 12 8 12 INT conforms conforms 9 13 8 13 INT conforms conforms 9 14 8 14 INT conforms conforms 9 15 8 15 ===============================================================================