Bug 51129

Summary: ACPI problem, booting from install cd fails
Product: Base System Reporter: Emanuel Haupt <haupt>
Component: i386Assignee: njl
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
dmesg.err
none
dmesg-48-stable.asc none

Description Emanuel Haupt 2003-04-18 14:00:29 UTC
if you boot from a 5.0-RELEASE (up to CURRENT) floppy/cd, the system will cause errors and system does not come up:

    ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
    ACPI-0625: *** Info: GPE Block1 defined as GPE16 to GPE31
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast"  frequency 3579545 Hz
    ACPI-1287: *** Error: Method execution failed, AE_AML_BUFFER_LIMIT
    ACPI-1287: *** Error: Method execution failed, AE_AML_BUFFER_LIMIT
    ACPI-1287: *** Error: Method execution failed, AE_AML_BUFFER_LIMIT
can't fetch resources for \\_SB_.C045 - AE_AML_OPERAND_TYPE

then it ends up in:

Root mount failed: 6

Manual root filesystem specification:
  <fstype>:<device>  Mount <device> using filesystem <fstype>
                       eg. ufs:da0s1a
  ?                  List valid disk boot devices
  <empty line>       Abort manual input

mountroot>

even if system is installed (see Fix) it will hang with the same errors.

Fix: the only thing i figured out is:

OK: set hint.acpi.0.disabled="1"

or: printf 'hint.acpi.0.disabled="1"\n' >> /boot/loader.conf

How-To-Repeat: 
insert a 5.0-RELEASE/CURRENT cd/floppy into your compaq evo n610c and try to boot from it.
Comment 1 tedm 2003-05-10 07:52:14 UTC
Does it boot and install and run properly with a FreeBSD 4.8-RELEASE CD?

Ted Mittelstaedt                                       tedm@toybox.placo.com
Comment 2 Emanuel Haupt 2003-05-10 22:07:03 UTC
On Fri, 9 May 2003 23:52:14 -0700
"Ted Mittelstaedt" <tedm@toybox.placo.com> wrote:

> Does it boot and install and run properly with a FreeBSD 4.8-RELEASE
> CD?
> 
> Ted Mittelstaedt                                      
> tedm@toybox.placo.com

yes it does. absolutely no problem. here is a 4.8-STABLE dmesg, that
might answer some questions:

<dmesg>
Copyright (c) 1992-2003 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.8-STABLE #0: Thu May  8 22:22:38 CEST 2003
    root@paramecium.home.cablecom.ch:/usr/src/sys/compile/PARAMECIUM
Timecounter "i8254"  frequency 1193182 Hz
CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz (1196.12-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
  Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
real memory  = 536674304 (524096K bytes)
avail memory = 516046848 (503952K bytes)
Preloaded elf kernel "kernel" at 0xc052a000.
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82845 Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82845 host to AGP bridge> mem 0x60000000-0x6fffffff at device 0.0 on pci0
pcib1: <Intel 82845 PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI model 4c57 graphics accelerator> at 0.0 irq 11
pcib2: <PCI to PCI bridge (vendor=8086 device=2448)> at device 30.0 on pci0
pci2: <PCI bus> on pcib2
pci2: <unknown card> (vendor=0x11c1, dev=0x0450) at 4.0 irq 11
pcic0: <TI PCI-1420 PCI-CardBus Bridge> mem 0x40000000-0x40000fff irq 11 at device 6.0 on pci2
pcic0: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa irq]
pccard0: <PC Card 16-bit bus (classic)> on pcic0
pci_cfgintr: can't route an interrupt to 2:6 INTA
pcic1: <TI PCI-1420 PCI-CardBus Bridge> mem 0x40080000-0x40080fff at device 6.1 on pci2
pci_cfgintr: can't route an interrupt to 2:6 INTA
pcic1: No PCI interrupt routed, trying ISA.
pcic1: Polling mode
pcic1: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa irq]
pccard1: <PC Card 16-bit bus (classic)> on pcic1
fxp0: <Intel 82801CAM (ICH3) Pro/100 VM Ethernet> port 0x2400-0x243f mem 0x40100000-0x40100fff irq 10 at device 8.0 on pci2
fxp0: Ethernet address 00:02:a5:c2:f4:3a
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ohci0: <NEC uPD 9210 USB controller> mem 0x40180000-0x40180fff irq 10 at device 14.0 on pci2
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <NEC uPD 9210 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <NEC uPD 9210 USB controller> mem 0x40200000-0x40200fff irq 10 at device 14.1 on pci2
usb1: OHCI version 1.0, legacy support
usb1: <NEC uPD 9210 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci2: <USB controller> at 14.2 irq 10
isab0: <PCI to ISA bridge (vendor=8086 device=248c)> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 ATA100 controller> port 0x4440-0x444f,0-0x3,0-0x7,0-0x3,0-0x7 irq 11 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pcm0: <Intel 82801CA (ICH3)> port 0x4400-0x443f,0x4000-0x40ff irq 11 at device 31.5 on pci0
pcm0: <unknown ac97 codec> (id=0x41445363)
orm0: <Option ROM> at iomem 0xc0000-0xcffff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x3 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>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/15 bytes threshold
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
IP packet filtering initialized, divert disabled, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default
ata1-slave: ATAPI identify retries exceeded
pccard: card inserted, slot 0
pccard: card removed, slot 0
ad0: 38154MB <TOSHIBA MK4019GAX> [77520/16/63] at ata0-master UDMA100
acd0: DVD-ROM <Compaq DVD-ROM GDR-8081N> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
pccard: card inserted, slot 0
wi0 at port 0x240-0x27f irq 11 slot 0 on pccard0
wi0: 802.11 address: 00:90:d1:07:b0:64
wi0: using RF:PRISM2 MAC:HFA3841 CARD:HWB3163 rev.A
wi0: Intersil Firmware: Primary 0.03.00, Station 1.04.09
ltmdm0: <Lucent Winmodem> port 0x2000-0x20ff,0x2440-0x2447 mem 0x40280000-0x402800ff irq 11 at device 4.0 on pci2
ltmdm0: type Virtual 16550A
</dmesg>
Comment 3 tedm 2003-05-11 00:33:22 UTC
Did you say you could get the system installed by turning off
acpi in /boot/loader.conf with

set hint.acpi.0.disabled="1"

If so, it may be that hint.acpi.0.disabled="1" is not being added
to /boot/loader.conf by sysinstall.  If that is the case then
once the system is installed and you reboot it, interrupt the
boot and put the set hint.acpi.0.disabled="1" a second time, then
once the system has booted, hand edit /boot/loader.conf and
add this.

ACPI has been reported to be broken on other hardware, it appears
to be like the other PC "standards" full of exceptions.
Comment 4 Kris Kennaway freebsd_committer freebsd_triage 2003-07-14 06:56:00 UTC
State Changed
From-To: open->feedback

Can you please retry with 5.1-RELEASE or 5.1-CURRENT?
Comment 5 Kris Kennaway freebsd_committer freebsd_triage 2003-07-14 09:27:48 UTC
Responsible Changed
From-To: freebsd-bugs->acpi-jp@jp.FreeBSD.org

Assign to ACPI maintainers
Comment 6 Kris Kennaway freebsd_committer freebsd_triage 2003-07-16 01:12:34 UTC
State Changed
From-To: feedback->open

Submitter reports problem persists with 5.1-RELEASE
Comment 7 Kris Kennaway 2003-07-16 01:13:17 UTC
----- Forwarded message from Emanuel Haupt <haupt@outof.ch> -----

X-Original-To: kkenn@localhost
Delivered-To: kkenn@localhost.obsecurity.org
Delivered-To: kris@freebsd.org
Date: Tue, 15 Jul 2003 18:23:49 +0200
From: Emanuel Haupt <haupt@outof.ch>
To: Kris Kennaway <kris@FreeBSD.org>
Cc: kris@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject: Re: i386/51129: ACPI problem, booting from install cd fails
In-Reply-To: <200307140556.h6E5uFfM060100@freefall.freebsd.org>
X-Mailer: Sylpheed version 0.9.3 (GTK+ 1.2.10; i386-portbld-freebsd5.1)
X-UIDL: f465697e7a76da5b5c6c05f1ae79939e
X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.13.7.2

booting with 5.1-RELEASE fails as well. the last message is:

WHITE FONT> Mounting root from ufs:/dev/ad0s1a
GREY FONT > Loading configuration files.
GREY FONT > Entropy harvesting: interrupts ethernet point_to_point.

since non of the disks can be mounted, dmesg is not able to write down
the dmesg-information.

all i can offer is a picture i took with my digicam, which can be found
here:

http://www.critical.ch/browse/freebsd/laptop.jpg

i hope it helps.


On Sun, 13 Jul 2003 22:56:15 -0700 (PDT)
Kris Kennaway <kris@FreeBSD.org> wrote:

> Synopsis: ACPI problem, booting from install cd fails
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: kris
> State-Changed-When: Sun Jul 13 22:56:00 PDT 2003
> State-Changed-Why: 
> Can you please retry with 5.1-RELEASE or 5.1-CURRENT?
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=51129

----- End forwarded message -----
Comment 8 Emanuel Haupt 2003-07-16 18:06:27 UTC
tried the following:

- power off (10 sec)
- boot from a bootable w2k and let it 
  run until it asks for user input
- cd eject
- ctrl-alt-del (no power cycling)
- boot into freebsd

same error.
Comment 9 Nate Lawson 2003-08-08 17:22:19 UTC
I didn't see you answer a previous question.  Does this work for you:
   set hint.acpi.0.disabled="1"

If so, I will close the PR and you can submit a separate one where I will
help debug the underlying problem (probably your AML).

-Nate
Comment 10 Emanuel Haupt 2003-08-08 18:07:47 UTC
On Fri, 8 Aug 2003 09:22:19 -0700 (PDT)
Nate Lawson <nate@root.org> wrote:

> I didn't see you answer a previous question.  Does this work for you:
>    set hint.acpi.0.disabled="1"

the system will come up but cardbus/pccard won't work (can be solved
with an OLDCARD kernel).

emanuel
Comment 11 Nate Lawson 2003-08-18 23:01:12 UTC
On Fri, 8 Aug 2003, Emanuel Haupt wrote:
> On Fri, 8 Aug 2003 09:22:19 -0700 (PDT)
> Nate Lawson <nate@root.org> wrote:
> > I didn't see you answer a previous question.  Does this work for you:
> >    set hint.acpi.0.disabled="1"
>
> the system will come up but cardbus/pccard won't work (can be solved
> with an OLDCARD kernel).

To enable NEWCARD cardbus slots, try this:
    set hw.cbb.start_memory=0xc0203000

That works for my T23.

-Nate
Comment 12 njl freebsd_committer freebsd_triage 2003-11-25 00:37:19 UTC
State Changed
From-To: open->closed

This is a problem with the ASL.  Please see this url for information on how 
to fix it: 
http://larve.net/people/hugo/2003/03/acpi-n410c.html 


Comment 13 njl freebsd_committer freebsd_triage 2003-11-25 00:37:19 UTC
Responsible Changed
From-To: acpi-jp@jp.FreeBSD.org->njl

This is a problem with the ASL.  Please see this url for information on how 
to fix it: 
http://larve.net/people/hugo/2003/03/acpi-n410c.html