From owner-freebsd-acpi@FreeBSD.ORG Wed Nov 23 10:21:17 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 C021F16A41F; Wed, 23 Nov 2005 10:21:17 +0000 (GMT) (envelope-from bsdhack@club-internet.fr) Received: from relay-av.club-internet.fr (relay-av.club-internet.fr [194.158.96.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49BF043D62; Wed, 23 Nov 2005 10:21:16 +0000 (GMT) (envelope-from bsdhack@club-internet.fr) Received: from [192.168.0.5] (l07m-213-44-104-116.d4.club-internet.fr [213.44.104.116]) by relay-av.club-internet.fr (Postfix) with ESMTP id A69BB2561B; Wed, 23 Nov 2005 11:21:14 +0100 (CET) In-Reply-To: <200511221719.47787.jhb@freebsd.org> References: <200511171725.27877.jhb@freebsd.org> <200511221543.18043.jhb@freebsd.org> <93F83148-4868-4158-80B7-FB4DCE87E1A5@club-internet.fr> <200511221719.47787.jhb@freebsd.org> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Mathieu Prevot Date: Wed, 23 Nov 2005 11:21:22 +0100 To: John Baldwin 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: Wed, 23 Nov 2005 10:21:17 -0000 Le 22 nov. 05 =E0 23:19, John Baldwin a =E9crit : > On Tuesday 22 November 2005 05:03 pm, Mathieu Prevot wrote: >> Le 22 nov. 05 =E0 21:43, John Baldwin a =E9crit : >>> On Tuesday 22 November 2005 03:03 pm, Mathieu Prevot wrote: >>>> Weird addresses disappeared. But I don't why I have invalid IRQ ... >>>> >>>> ... >>>> ACPI APIC Table: >>>> ioapic0 irqs 0-23 on motherboard >>>> ... >>>> 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 >>>> ... >>>> uhci0: port 0xd400-0xd41f irq 21 at >>>> device 16.0 on pci0 >>> >>> You are using an I/O APIC. In your ASL, your pci link resources >>> get different >>> IRQs when using APIC than when not using APIC. The BIOS never uses >>> APIC >>> mode, so it programs IRQs for each PCI device according to the non- >>> APIC (aka >>> PIC) mode. The messages above mean that we found out during the >>> boot that >>> the interrupt for 0.16.INTA (PCI bus 0, device (slot) 16, pin A#) >>> is routed >>> via the pci_link9 device, and that the BIOS had set the IRQ for >>> that device >>> to 11. However, when we switch over to APIC mode, then the list of >>> valid >>> IRQs for that link device are something like 20, 21, 22, and 23. >>> The IRQ the >>> BIOS used (11) isn't in that list, so we ignore it and pick an IRQ >>> out of the >>> list (21 in this case). You don't need to worry about these >>> messages. I'll >>> see if I can't shut them up in this case (BIOS uses an ISA IRQ but >>> this link >>> device only has non-ISA IRQs). >>> >>> In fact, I've just whipped up a patch to shut these warnings up. =20= >>> It's >>> attached. >> >> Thanks very much for the explanation and the patch. > > Ah, you got it. Did you test it and did it work ok? It works (it was attached). In fact there is no warning anymore (dmesg). Maybe there is something more clean ;-) to do (changing "invalid" to =20 something less alarmistic ?) for the repository ... ... ACPI APIC Table: ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) 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 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 1607409798 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