From owner-freebsd-current Sat Nov 23 8:14: 0 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DDE737B401 for ; Sat, 23 Nov 2002 08:13:51 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2A3143EB3 for ; Sat, 23 Nov 2002 08:13:42 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id gANGDWBF019256; Sat, 23 Nov 2002 11:13:33 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Sat, 23 Nov 2002 11:13:32 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Ertan Kucukoglu Cc: current@freebsd.org Subject: Re: ACPI problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 23 Nov 2002, Ertan Kucukoglu wrote: > First of all, I do not know much about backtracing, debugging etc. First advice: we shipped DP2 with two different kernels, the normal kernel without high debugging features, and then a special debugging kernel called DEBUG. My first advice when starting to debug problems of this sort is to boot the debug kernel rather than the regular kernel, since it will allow you to exercise debugging features more easily. > I want to use the power key to shutdown the system. It is compaq evo > 300, P4 1.6ghz, 368MB RAM > > Yesterday OS was 5.0DP2. I can not power it off. It comes to a point > when it should cut the power off 'System is shutting down using ACPI' > like message is displayed and after a while. It just panics at free(). In general, if you get a panic and drop to ddb, you can type in "trace" to get a backtrace -- this is usually the single must useful piece of information for debugging a panic. The print-out can often be 20 lines long, and is full of hex numbers. If you have access to a second machine, you can use a serial console to make it easier to copy and paste the ddb output. If you don't, and are concerned about typographical errors, you can skip the function "arguments", but make sure you do get the function+0xoffset bits right. Serial console is really best because we can look at the argument pointers and make sure they make sense. Also, when reporting panics, please do include the exactly language of the panic message. > This morning I cvsuped and buildworld the machine. This time it do not > panic, but 'Timeout' error message comes and system reset itself leading > a new boot.' Is this problem because of my hardware or something else? Not clear. We really need the exact messages here, if you can arrange it. Given the problems that you're experiencing, if a serial console is available, it would probably make a big different in debugging the problems, and save you a lot of hand-typing. You can set up a serial console by linking it and an adjacent machine using a null modem cable on the first serial port, and then using a terminal program on the adjacent box at 9600bps -- all console I/O can be sent to the box by typing: set console="comconsole" in the boot loader. When you're using the debug kernel, you'll also be able to interact with the debugger using the serial console. > > My dmesg output is below. My hand written uname -a is: > test# uname -a > FreeBSD test.ozlerplastik.com 5.0-CURRENT FreeBSD > 5.0-CURRENT #3: Sat > Nov 23 10:57:36 EET 2002 > root@test.ozlerplastik.com:/usr/src/sys/i386/compile/OPTIMIZED_KERNEL > i386 > > Regards, > > --Ertan > > P.S. Unproper dismount messages are because I wanted to > test the system background filesystem check. I just pluged > the cable of when the X is running. There seems to be no > problem at all. > > dmesg: > Copyright (c) 1992-2002 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.0-CURRENT #3: Sat Nov 23 10:57:36 EET 2002 > root@test.ozlerplastik.com:/usr/src/sys/i386/compile/OPTIMIZED_KERNEL > Preloaded elf kernel "/boot/kernel/kernel" at 0xc0415000. > Timecounter "i8254" frequency 1193182 Hz > Timecounter "TSC" frequency 1594833756 Hz > CPU: Pentium 4 (1594.83-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf12 Stepping = 2 > Features=0x3febfbff > real memory = 402653184 (384 MB) > avail memory = 386703360 (368 MB) > Initializing GEOMetry subsystem > Pentium Pro MTRR support enabled > acpi0: on motherboard > Using $PIR table, 9 entries at 0xc00ebfd0 > acpi0: power button is handled as a fixed feature > programming model. > Timecounter "ACPI-fast" frequency 3579545 Hz > acpi_timer0: <24-bit timer at 3.579545MHz> port > 0xf808-0xf80b on acpi0 > acpi_cpu0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > ---- initial configuration ------------------------ > \\_SB_.LNKA irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.31.0 > \\_SB_.LNKB irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.31.1 > \\_SB_.LNKH irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.31.2 > \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.31.3 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.1.0 > \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.1.1 > ---- before setting priority for links ------------ > \\_SB_.LNKA: > interrupts: 3 4 5 6 7 > 10 11 14 15 > penalty: 1220 1220 220 1220 1220 > 420 420 10220 10220 > references: 1 > priority: 0 > \\_SB_.LNKH: > interrupts: 3 4 5 6 7 > 10 11 14 15 > penalty: 1220 1220 220 1220 1220 > 420 420 10220 10220 > references: 1 > priority: 0 > ---- before fixup boot-disabled links ------------- > \\_SB_.LNKA: > interrupts: 3 4 5 6 7 > 10 11 14 15 > penalty: 1220 1220 220 1220 1220 > 420 420 10220 10220 > references: 1 > priority: 2931 > \\_SB_.LNKH: > interrupts: 3 4 5 6 7 > 10 11 14 15 > penalty: 1220 1220 220 1220 1220 > 420 420 10220 10220 > references: 1 > priority: 2931 > ---- after fixup boot-disabled links -------------- > ---- arbitrated configuration --------------------- > \\_SB_.LNKA irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.31.0 > \\_SB_.LNKB irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.31.1 > \\_SB_.LNKH irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.31.2 > \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.31.3 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.1.0 > \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 0.1.1 > pci0: on pcib0 > agp0: mem > 0xf8000000-0xfbffffff at device 0.0 on pci0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > pci1: at device 0.0 (no driver attached) > pcib2: at device 30.0 on pci0 > ---- initial configuration ------------------------ > \\_SB_.LNKA irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.4.0 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.4.1 > \\_SB_.LNKF irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.4.2 > \\_SB_.LNKG irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.4.3 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.9.0 > \\_SB_.LNKF irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.9.1 > \\_SB_.LNKG irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.9.2 > \\_SB_.LNKA irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.9.3 > \\_SB_.LNKF irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.10.0 > \\_SB_.LNKG irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.10.1 > \\_SB_.LNKA irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.10.2 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.10.3 > \\_SB_.LNKG irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.11.0 > \\_SB_.LNKA irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.11.1 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.11.2 > \\_SB_.LNKF irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.11.3 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.13.0 > \\_SB_.LNKF irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.13.1 > \\_SB_.LNKG irq 0: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.13.2 > \\_SB_.LNKA irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.13.3 > \\_SB_.LNKE irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.8.0 > \\_SB_.LNKE irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.6.0 > ---- before setting priority for links ------------ > \\_SB_.LNKF: > interrupts: 3 4 5 6 7 > 10 11 14 15 > penalty: 2320 2320 2220 2320 2320 > 2020 1520 11320 11320 > references: 5 > priority: 0 > \\_SB_.LNKG: > interrupts: 3 4 5 6 7 > 10 11 14 15 > penalty: 2320 2320 2220 2320 2320 > 2020 1520 11320 11320 > references: 5 > priority: 0 > ---- before fixup boot-disabled links ------------- > \\_SB_.LNKF: > interrupts: 3 4 5 6 7 > 10 11 14 15 > penalty: 2320 2320 2220 2320 2320 > 2020 1520 11320 11320 > references: 5 > priority: 20933 > \\_SB_.LNKG: > interrupts: 3 4 5 6 7 > 10 11 14 15 > penalty: 2320 2320 2220 2320 2320 > 2020 1520 11320 11320 > references: 5 > priority: 20933 > ---- after fixup boot-disabled links -------------- > ---- arbitrated configuration --------------------- > \\_SB_.LNKA irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.4.0 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.4.1 > \\_SB_.LNKF irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.4.2 > \\_SB_.LNKG irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.4.3 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.9.0 > \\_SB_.LNKF irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.9.1 > \\_SB_.LNKG irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.9.2 > \\_SB_.LNKA irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.9.3 > \\_SB_.LNKF irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.10.0 > \\_SB_.LNKG irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.10.1 > \\_SB_.LNKA irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.10.2 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.10.3 > \\_SB_.LNKG irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.11.0 > \\_SB_.LNKA irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.11.1 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.11.2 > \\_SB_.LNKF irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.11.3 > \\_SB_.LNKC irq 10: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.13.0 > \\_SB_.LNKF irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.13.1 > \\_SB_.LNKG irq 11: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.13.2 > \\_SB_.LNKA irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.13.3 > \\_SB_.LNKE irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.8.0 > \\_SB_.LNKE irq 5: [ 3 4 5 6 7 10 11 14 15] > low,level,sharable 2.6.0 > pci2: on pcib2 > fxp0: port 0x1000-0x103f mem > 0xfc400000-0xfc400fff irq 5 at device 8.0 on > pci2 > fxp0: Ethernet address 00:08:02:16:d9:0e > inphy0: on miibus0 > inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > auto > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port 0x2460-0x246f > at device 31.1 on pci0 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > uhci0: port > 0x2440-0x245f irq 11 at device 31.2 on > pci0 > 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 31.5 (no driver > attached) > acpi_button0: on acpi0 > atkbdc0: port 0x64,0x60 irq 1 > on acpi0 > atkbd0: flags 0x1 irq 1 on atkbdc0 > kbd0 at atkbd0 > psm0: irq 12 on atkbdc0 > psm0: model 4D Mouse, device ID 6 > ppc0 port 0x778-0x77d,0x378-0x37f irq 7 drq 3 on acpi0 > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE > mode > ppc0: FIFO with 16/16/13 bytes threshold > plip0: on ppbus0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > sio0 port 0x3f8-0x3ff irq 4 on acpi0 > sio0: type 16550A > sio1 port 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > fdc0: clone)> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on > acpi0 > fdc0: FIFO enabled, 8 bytes threshold > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > npx0: on motherboard > npx0: INT 16 interface > pmtimer0 on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem > 0xa0000-0xbffff on isa0 > Timecounters tick every 10.000 msec > acpi_cpu: CPU throttling enabled, 8 steps from 100% to > 12.5% > ad0: 19092MB [38792/16/63] at > ata0-master UDMA100 > acd0: CDROM at ata1-master PIO4 > Mounting root from ufs:/dev/ad0s2a > WARNING: / was not properly dismounted > WARNING: /tmp was not properly dismounted > /tmp: superblock summary recomputed > WARNING: /usr was not properly dismounted > /usr: mount pending error: blocks 16 files 1 > /usr: superblock summary recomputed > WARNING: /var was not properly dismounted > /var: superblock summary recomputed > handle_workitem_freeblocks: block count > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message