Re: curiousities in 6.0beta1 dmesg

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 27 Jul 2005 11:04:17 -0400
On Friday 22 July 2005 08:54 pm, Ben Kaduk wrote:
> On 7/22/05, John Baldwin <jhb_at_freebsd.org> 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_at_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_at_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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA
> > >,CMO V,PAT, PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
> > >   Features2=0x4400<CNTX-ID,<b14>>
> > > real memory  = 1073405952 (1023 MB)
> > > avail memory = 1037340672 (989 MB)
> > > npx0: [FAST]
> > > npx0: <math processor> on motherboard
> > > npx0: INT 16 interface
> > > acpi0: <DELL CPi R  > on motherboard
> > > pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0
> > > pci_link1: <ACPI PCI Link LNKB> irq 11 on acpi0
> > >
> > >
> > > [ pci_link1 seems to have an irq here. . . ]
> > >
> > >
> > > pci_link2: <ACPI PCI Link LNKC> irq 11 on acpi0
> > > pci_link3: <ACPI PCI Link LNKD> irq 11 on acpi0
> > > pci_link4: <ACPI PCI Link LNKE> on acpi0
> > > pci_link5: <ACPI PCI Link LNKH> 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: <ACPI CPU> on acpi0
> > > acpi_throttle0: <ACPI CPU Throttling> on cpu0
> > > acpi_acad0: <AC Adapter> on acpi0
> > > acpi_cmbat0: <Control Method Battery> on acpi0
> > > acpi_cmbat1: <Control Method Battery> on acpi0
> > > acpi_lid0: <Control Method Lid Switch> on acpi0
> > > acpi_button0: <Power Button> on acpi0
> > > acpi_button1: <Sleep Button> on acpi0
> > > pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> > > pci0: <ACPI PCI bus> 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 <jhb_at_FreeBSD.org>  <><  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_at_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 <jhb_at_FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Received on Wed Jul 27 2005 - 16:21:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:39 UTC