From owner-freebsd-current@FreeBSD.ORG Wed Jul 27 18:21:37 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5269616A41F for ; Wed, 27 Jul 2005 18:21:37 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id E767043D48 for ; Wed, 27 Jul 2005 18:21:36 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.40.201] (Not Verified[65.202.103.25]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Wed, 27 Jul 2005 14:36:03 -0400 From: John Baldwin To: Ben Kaduk Date: Wed, 27 Jul 2005 11:04:17 -0400 User-Agent: KMail/1.8 References: <47d0403c05071713131a0689ee@mail.gmail.com> <200507221544.35384.jhb@FreeBSD.org> <47d0403c0507221754dceab60@mail.gmail.com> In-Reply-To: <47d0403c0507221754dceab60@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507271104.17692.jhb@FreeBSD.org> Cc: freebsd-current@freebsd.org Subject: Re: curiousities in 6.0beta1 dmesg X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2005 18:21:37 -0000 On Friday 22 July 2005 08:54 pm, Ben Kaduk wrote: > On 7/22/05, John Baldwin wrote: > > On Sunday 17 July 2005 04:13 pm, Ben Kaduk wrote: > > > Hi all, > > > > > > I recently upgraded to: > > > bash-2.05b$ uname -a > > > FreeBSD prolepsis.math.uiuc.edu 6.0-BETA1 FreeBSD 6.0-BETA1 #2: Sat > > > Jul 16 21:34:06 UTC 2005 > > > kaduk@prolepsis.math.uiuc.edu:/usr/obj/usr/src/sys/PROLEPSIS i386 > > > > > > from 5.4-Release using a source upgrade, and I noticed a few things in > > > the dmesg whilst it was booting that struck me as a bit odd. > > > 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-BETA1 #2: Sat Jul 16 21:34:06 UTC 2005 > > > kaduk@prolepsis.math.uiuc.edu:/usr/obj/usr/src/sys/PROLEPSIS > > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > > CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.50GHz (2492.65-MHz > > > 686-class CPU) Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 > > > > > > Features=0xbfebf9ff > >,CMO V,PAT, PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > > > Features2=0x4400> > > > real memory = 1073405952 (1023 MB) > > > avail memory = 1037340672 (989 MB) > > > npx0: [FAST] > > > npx0: on motherboard > > > npx0: INT 16 interface > > > acpi0: on motherboard > > > pci_link0: irq 11 on acpi0 > > > pci_link1: irq 11 on acpi0 > > > > > > > > > [ pci_link1 seems to have an irq here. . . ] > > > > > > > > > pci_link2: irq 11 on acpi0 > > > pci_link3: irq 11 on acpi0 > > > pci_link4: on acpi0 > > > pci_link5: irq 11 on acpi0 > > > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > > > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 > > > cpu0: on acpi0 > > > acpi_throttle0: on cpu0 > > > acpi_acad0: on acpi0 > > > acpi_cmbat0: on acpi0 > > > acpi_cmbat1: on acpi0 > > > acpi_lid0: on acpi0 > > > acpi_button0: on acpi0 > > > acpi_button1: on acpi0 > > > pcib0: port 0xcf8-0xcff on acpi0 > > > pci0: on pcib0 > > > pci_link1: Unable to choose an IRQ > > > > > > > > > [ so why does it need to choose an irq here? ] > > > > It's not quite that simple. :( It may be that the link says that irq 11 > > is not valid. Can you provide a verbose dmesg? > > > > -- > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > > "Power Users Use the Power to Serve" = http://www.FreeBSD.org > > John, > Thanks for the insight. Not only can i provide a verbose dmesg, but I > can do so for both the beta and for HEAD > > prolepsis# uname -a > FreeBSD prolepsis.math.uiuc.edu 7.0-CURRENT FreeBSD 7.0-CURRENT #4: > Fri Jul 22 23:53:40 UTC 2005 > kaduk@prolepsis.math.uiuc.edu:/usr/obj/usr/src/sys/PROLEPSIS i386 > > as well as a regular dmesg from HEAD, since there are even more > curiousities, namely, in the verbose boots, pci_link1 is assigned an > IRQ, > but apparently not in the regular boots. > > I hope the attached dmesgs are meaningful, Hmm, well, your BIOS says that IRQ 11 is indeed not valid for LNKB (which is probably a bug in your BIOS), so we end up using 9 in the verbose case which probably works fine. bootverbose just turns on log messages, so it's really odd that it would change behavior. Oh, the printf is just wrong. It picked IRQ 9 but printed the wrong message: if (bootverbose) { if (PCI_INTERRUPT_VALID(best_irq)) device_printf(dev, "Picked IRQ %u with weight %d\n", best_irq, best_weight); } else device_printf(dev, "Unable to choose an IRQ\n"); I'll fix that, thanks. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org