Date: Tue, 22 Nov 2005 21:03:00 +0100 From: Mathieu Prevot <bsdhack@club-internet.fr> To: Nate Lawson <nate@root.org> Cc: acpi@freebsd.org Subject: Re: [PATCH] Fix weird PCI bus numbers with pci_linkX Message-ID: <98968A23-2F26-4A01-801D-65C8731D71A7@club-internet.fr> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,= =20 MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> Features2=3D0x1<SSE3> AMD Features=3D0xe2500800<SYSCALL,NX,MMX+,<b25>,LM,3DNow+,3DNow> real memory =3D 1006567424 (959 MB) avail memory =3D 963219456 (918 MB) ACPI APIC Table: <VIAK8 AWRDACPI> ioapic0 <Version 0.3> irqs 0-23 on motherboard acpi0: <VIAK8 AWRDACPI> on motherboard acpi0: Power Button (fixed) pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0 pci_link1: <ACPI PCI Link LNKB> irq 5 on acpi0 pci_link2: <ACPI PCI Link LNKC> irq 10 on acpi0 pci_link3: <ACPI PCI Link LNKD> on acpi0 pci_link4: <ACPI PCI Link LNKE> on acpi0 pci_link5: <ACPI PCI Link LNKF> on acpi0 pci_link6: <ACPI PCI Link LNK0> on acpi0 pci_link7: <ACPI PCI Link LNK1> on acpi0 pci_link8: <ACPI PCI Link ALKA> irq 0 on acpi0 pci_link9: <ACPI PCI Link ALKB> irq 0 on acpi0 pci_link10: <ACPI PCI Link ALKC> irq 0 on acpi0 pci_link11: <ACPI PCI Link ALKD> 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: <ACPI CPU> on acpi0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> 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: <ACPI PCI bus> on pcib0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <display, VGA> at device 0.0 (no driver attached) atapci0: <VIA 8237 UDMA133 controller> port =20 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 15.0 on pci0 ata0: <ATA channel 0> on atapci0 ata1: <ATA channel 1> on atapci0 uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 21 at =20 device 16.0 on pci0 uhci0: [GIANT-LOCKED] usb0: <VIA 83C572 USB controller> 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: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 21 at =20 device 16.1 on pci0 uhci1: [GIANT-LOCKED] usb1: <VIA 83C572 USB controller> 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: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 21 at =20 device 16.2 on pci0 uhci2: [GIANT-LOCKED] usb2: <VIA 83C572 USB controller> 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: <VIA 83C572 USB controller> port 0xe000-0xe01f irq 21 at =20 device 16.3 on pci0 uhci3: [GIANT-LOCKED] usb3: <VIA 83C572 USB controller> 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: <VIA VT6202 USB 2.0 controller> 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: <VIA VT6202 USB 2.0 controller> 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: <PCI-ISA bridge> at device 17.0 on pci0 isa0: <ISA bus> on isab0 pcm0: <VIA VT8237> port 0xe400-0xe4ff irq 22 at device 17.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: <Avance Logic ALC655 AC97 Codec> vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xe800-0xe8ff mem =20 0xea001000-0xea0010ff irq 23 at device 18.0 on pci0 miibus0: <MII bus> on vr0 ukphy0: <Generic IEEE 802.3u media interface> on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:14:85:51:39:80 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] orm0: <ISA Option ROM> at iomem 0xcc000-0xd3fff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: <Generic ISA VGA> 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 <Seagate ST3160023A 3.06> at ata0-master UDMA100 acd0: DVDR <NEC DVD RW ND-3500AG/2.16> at ata1-master UDMA33 acd1: CDRW <PLEXTOR CD-R PX-W5224A/1.03> 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: <PLEXTOR CD-R PX-W5224A 1.03> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98968A23-2F26-4A01-801D-65C8731D71A7>