From owner-freebsd-current Tue Sep 4 6:48:48 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id D0E1437B403 for ; Tue, 4 Sep 2001 06:48:39 -0700 (PDT) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.8.8/8.8.8) with ESMTP id PAA07828; Tue, 4 Sep 2001 15:48:15 +0200 (MET DST) Date: Tue, 4 Sep 2001 15:48:14 +0200 (CEST) From: Harti Brandt To: Kazutaka YOKOTA Cc: "Ilmar S. Habibulin" , Subject: Re: my psm0 doesn't work with new acpi :( (fwd) Message-ID: <20010904154107.U494-100000@beagle.fokus.gmd.de> 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 > ISH>On Tue, 4 Sep 2001, Kazutaka YOKOTA wrote: > ISH> > ISH>> Please apply the attached patch in /sys/isa and see what it does. > ISH>It does panic with a smiling face ;-))) > ISH> > ISH>panic message was "bad ivar read request" > > it fails in acpi_read_ivar with an index (3rd argument) of 12. And that > looks like the IRQ, so probably there is something really wrong. No. This is in psm.c:790. psmidentify is trying to get the ISA vendor ID. But it seems, that the read_ivar request to which this evaluates end in acpi_read_ivar instead of isa_read_ivar. If I comment out these two lines, the kernel boots as before, but the psm is still not attached. (the message from psm1 is new, this is probably because of the commented out line). harti Copyright (c) 1992-2001 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 #5: Tue Sep 4 15:44:25 CEST 2001 hbb@beagle.fokus.gmd.de:/opt/obj/usr/src/sys/BEAGLE Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 908095602 Hz CPU: AMD Athlon(tm) Processor (908.10-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x642 Stepping = 2 Features=0x183f9ff AMD Features=0xc0440000<,AMIE,DSP,3DNow!> real memory = 536788992 (524208K bytes) avail memory = 518848512 (506688K bytes) Preloaded elf kernel "kernel" at 0xc0394000. Preloaded elf module "random.ko" at 0xc039409c. Preloaded elf module "acpi.ko" at 0xc039413c. Pentium Pro MTRR support enabled Using $PIR table, 9 entries at 0xc00f16c0 npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 atkbdc_probe,110 acpi_cpu0: on acpi0 atkbdc_probe,110 acpi_button0: on acpi0 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 acpi_pcib0: port 0xcf8-0xcff on acpi0 pci0: on acpi_pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 4.0 on pci0 isa0: on isab0 pci0: at device 4.1 (no driver attached) pci0: at device 4.2 (no driver attached) pci0: at device 4.3 (no driver attached) pci0: at device 9.0 (no driver attached) pcm0: port 0xa400-0xa41f irq 5 at device 10.0 on pci0 pci0: at device 11.0 (no driver attached) ahc0: port 0x9400-0x94ff mem 0xd4800000-0xd4800fff irq 11 at device 12.0 on pci0 aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/255 SCBs pci0: at device 13.0 (no driver attached) pci0: at device 17.0 (no driver attached) atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atkbdc_probe,110 atspeaker0 port 0x61 on acpi0 atkbdc_probe,110 fdc0: port 0x3f7,0x3f2-0x3f5 irq 6 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc_probe,110 ppc0 port 0x378-0x37f irq 7 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold lpt0: on ppbus0 lpt0: Interrupt-driven port atkbdc_probe,110 ppc1: cannot reserve I/O port range atkbdc_probe,110 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A atkbdc_probe,110 sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: unable to allocate the IRQ resource (12). psm1: unable to allocate the IRQ resource (-1). ppc1: cannot reserve I/O port range orm0: