From owner-freebsd-acpi@FreeBSD.ORG Tue Nov 22 20:03:16 2005 Return-Path: X-Original-To: acpi@freebsd.org Delivered-To: freebsd-acpi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BF6916A420; Tue, 22 Nov 2005 20:03:16 +0000 (GMT) (envelope-from bsdhack@club-internet.fr) Received: from relay-cv.club-internet.fr (relay-cv.club-internet.fr [194.158.96.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE33743D58; Tue, 22 Nov 2005 20:02:53 +0000 (GMT) (envelope-from bsdhack@club-internet.fr) Received: from [192.168.0.5] (d02v-213-44-154-208.d4.club-internet.fr [213.44.154.208]) by relay-cv.club-internet.fr (Postfix) with ESMTP id D44DA25648; Tue, 22 Nov 2005 21:02:46 +0100 (CET) In-Reply-To: <4382494B.8020800@root.org> References: <200511171725.27877.jhb@freebsd.org> <437D04FC.90707@root.org> <200511171750.52720.jhb@freebsd.org> <200511211353.01664.jhb@freebsd.org> <314C3BAA-CBE8-42D8-B2F0-CEC9756F7550@club-internet.fr> <4382494B.8020800@root.org> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <98968A23-2F26-4A01-801D-65C8731D71A7@club-internet.fr> Content-Transfer-Encoding: quoted-printable From: Mathieu Prevot Date: Tue, 22 Nov 2005 21:03:00 +0100 To: Nate Lawson X-Mailer: Apple Mail (2.746.2) Cc: acpi@freebsd.org Subject: Re: [PATCH] Fix weird PCI bus numbers with pci_linkX X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2005 20:03:17 -0000 Le 21 nov. 05 =E0 23:25, Nate Lawson a =E9crit : > Mathieu Prevot wrote: >> Le 21 nov. 05 =E0 19:53, John Baldwin a =E9crit : >>> On Thursday 17 November 2005 05:50 pm, John Baldwin wrote: >>> >>>> On Thursday 17 November 2005 05:32 pm, Nate Lawson wrote: >>>> >>>>> John Baldwin wrote: >>>>> >>>>>> I think I figured out why some people get messages like: >>>>>> >>>>>> pci_linkX: BIOS IRQ 11 for -17777216.6.INTA is invalid >>>>>> >>>>>> I was not reading the bus number from the bridge device =20 >>>>>> correctly (the >>>>>> normal __BUS_ACCESSOR() macros assume that the passed in =20 >>>>>> argument is a >>>>>> child device, but at the time I'm reading the bus there is no =20 >>>>>> child >>>>>> device, so I was passing in the pcib device, the parent of the =20= >>>>>> pcib >>>>>> device probably returned an error, and the bus variable ended =20 >>>>>> up being >>>>>> some random stack garbage). The attached patch (also at URL) =20 >>>>>> should fix >>>>>> it I think. >>>>>> >>>>>> http://www.FreeBSD.org/~jhb/patches/acpi_pci_link.patch >>>>> >>>>> >>>>> Excellent, patch looks good to me except the printf/panic =20 >>>>> message could >>>>> be improved. >>>> >>>> >>>> I wanna see if it triggers first. >>> >>> >>> So did anyone test this? I can't commit it unless someone tests it. >>> >> Ok John. I'll test it. I have two motherboards with the problem. =20 >> But I am very busy so give me one or two days. > > Just cvsup, it's already tested by 1 person and in -current now. > > --=20 > Nate Weird addresses disappeared. But I don't why I have invalid IRQ ... Copyright (c) 1992-2005 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 6.0-STABLE #2: Tue Nov 22 20:16:37 CET 2005 root@hyphen.scienceclue.org:/usr/obj/usr/src/sys/HYPHEN64 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Sempron(tm) Processor 2600+ (1607.40-MHz K8-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x20fc2 Stepping =3D 2 =20 Features=3D0x78bfbff Features2=3D0x1 AMD Features=3D0xe2500800,LM,3DNow+,3DNow> real memory =3D 1006567424 (959 MB) avail memory =3D 963219456 (918 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) pci_link0: irq 11 on acpi0 pci_link1: irq 5 on acpi0 pci_link2: irq 10 on acpi0 pci_link3: on acpi0 pci_link4: on acpi0 pci_link5: on acpi0 pci_link6: on acpi0 pci_link7: on acpi0 pci_link8: irq 0 on acpi0 pci_link9: irq 0 on acpi0 pci_link10: irq 0 on acpi0 pci_link11: irq 0 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci_link9: BIOS IRQ 11 for 0.16.INTA is invalid pci_link9: BIOS IRQ 5 for 0.16.INTB is invalid pci_link9: BIOS IRQ 10 for 0.16.INTC is invalid pci_link10: BIOS IRQ 10 for 0.17.INTC is invalid pci_link11: BIOS IRQ 11 for 0.18.INTA is invalid pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) atapci0: port =20 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 15.0 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port 0xd400-0xd41f irq 21 at =20 device 16.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd800-0xd81f irq 21 at =20 device 16.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xdc00-0xdc1f irq 21 at =20 device 16.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xe000-0xe01f irq 21 at =20 device 16.3 on pci0 uhci3: [GIANT-LOCKED] usb3: on uhci3 usb3: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xea000000-0xea0000ff irq =20 21 at device 16.4 on pci0 ehci0: [GIANT-LOCKED] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered isab0: at device 17.0 on pci0 isa0: on isab0 pcm0: port 0xe400-0xe4ff irq 22 at device 17.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: vr0: port 0xe800-0xe8ff mem =20 0xea001000-0xea0010ff irq 23 at device 18.0 on pci0 miibus0: on vr0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:14:85:51:39:80 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] orm0: at iomem 0xcc000-0xd3fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on =20 isa0 ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 2, iclass =20= 3/1 ums0: 3 buttons and Z dir. Timecounter "TSC" frequency 1607404078 Hz quality 800 Timecounters tick every 1.000 msec ad0: 152626MB at ata0-master UDMA100 acd0: DVDR at ata1-master UDMA33 acd1: CDRW at ata1-slave UDMA33 Trying to mount root from ufs:/dev/ad0s1a cd0 at ata1 bus 0 target 0 lun 0 cd0: <_NEC DVD_RW ND-3500AG 2.16> Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ata1 bus 0 target 1 lun 0 cd1: Removable CD-ROM SCSI-0 device cd1: 33.000MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not =20 present - tray closed vr0: link state changed to DOWN vr0: link state changed to UP