Subject: Re: strange high interrupt load and other problems.
To: None <current-users@netbsd.org>
From: Eric Auge <eau@phear.org>
List: current-users
Date: 06/11/2006 02:04:39
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigEADB7851B6B7248D42539089
Content-Type: multipart/mixed;
 boundary="------------080908090805000502070001"

This is a multi-part message in MIME format.
--------------080908090805000502070001
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


Christos Zoulas wrote:
> In article <e6cdjf$k62$1@sea.gmane.org>, Eric Auge  <eau@phear.org> wro=
te:
>> -=3D-=3D-=3D-=3D-=3D-
>>
>> Hello,
>>
>> I'm currently using my recently bought laptop.
>> a brand new x60 running NetBSD-current.
>>
>> the ethernet card is not working out of the box, little hacking needed=
=2E
>> (I've ported em(4) from openbsd -> netbsd, I will post the  work when
>> a bit of code cleaning is done, but it works _now_)

ok my em(4) port is already obsolete :)
latest -current has wm(4) updated and it actually detect my
gigabit (i82573L iirc and according to pcictl), but no traffic
goes in or out of the wm0 interface.. (dhclient fails etc.. ):/

no errors reported...

>>
>> the wifi card is not yet supported but apparently somebody has finishe=
d
>> some work done on wpi(4) from openbsd, so it's coming..

wpi0 seems detected i just need to firmload (currently doing
=2E/build.sh distribution to update the whole system to the latest -curre=
nt.)
to test it.

>>
>> core duo doesn't seem supported or I don't know the trick,
>> so only 1 CPU is seen and available for job to be done.
>=20
> You probably need an MPACPI kernel for this to work. Or there might
> be an option in your bios.=20

I already tried that at first but still only ONE cpu detected,
same with the latest -current kernel...

>=20
>> the SATA drive seems awfuly slow for some (to me) unknown reasons
>> I keep getting a _lot_ of interrupts (systat 1, :iostat)
>> when doing like a cvs update -PAd on pkgsrc and the load of the box
>> is going up to 3 or 4, nothing is running except xorg (from pkgsrc)
>> using the vesa driver (since i810 doesnt seems to support i950GM)
>> and a very light window manager (wmii) + 3 xterms.
>>

this is solved.

>> firewire is not supported.
>>
>> SD card reader is not supported.
>>
>> sound (azalia(4)) make the system go to db>
>=20
> Send a trace please.

latest -current kernel doesn't dump anymore, the card seems to be detecte=
d but
no sound out of it and aumix show only speaker and mic controls for sound=
=2E.

btw how to save the db> trace from the machine that dump ?
(if it's the one i m working on)

>=20
>> at least frame buffer works nicely, but I cant compile with MULTIPROCE=
SSOR
>> and other MPACPI options when using framebuffered console.
>>
>> any idea why the box is running so slowly, it is slower than
>> my old laptop, running netbsd 3-stable (and working perfectly) ?
>=20
> Look systat vm and vmstat..

as said above, pci id was missing, now solved w/ latest -current which in=
cludes
this changes, the disk seems to run perfectly, is AHCI supported ?!

>=20
>> x60 1.5 Go of RAM, 60Go SATA Disk (working in compatible mode and not =
in AHCI
>> mode since AHCI doesnt seems to be supported), attached a dmesg of the=

>> currently running kernel.
>>
>> tell me how I can do/help to improve this situation, since I still wan=
t my
>> prefered OS (guess what! :) to run on this laptop even if it require t=
o hack,
>> change, debug to make it work nicely.

another problems comes out when trying to use atheros external pcmcia car=
d,
i keep getting the following message in the logs and the card cannot atta=
ch :

ath0 at cardbus0 function 0
ath0: unable to attach hardware; HAL status 13

any idea ?

it works fine on netbsd-3.0-stable and previous "older"  -current (like
the first 3.99.20 i had).

what information can I provide to help you ?

>=20
> Thanks!

Thanks for your help

Eric.
>=20
> christos

NB: Attached the latest dmesg.




--------------080908090805000502070001
Content-Type: text/plain;
 name="x60.dmesg.new2"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline;
 filename="x60.dmesg.new2"

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,=
 2006
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 3.99.21 (KameHouse) #1: Sun Jun 11 01:30:41 CES 2006
	root@kamehouse.no.phear.org:/usr/src/sys/arch/i386/compile/KAMEHOUSE
total memory =3D 1526 MB
avail memory =3D 1491 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
timecounter: selected timecounter "i8254" frequency 1193182 Hz quality 10=
0
BIOS32 rev. 0 found at 0xfd690
PCI BIOS rev. 2.1 found at 0xfd82b
pcibios: config mechanism [1][x], special cycles [x][x], last bus 24
PCI IRQ Routing Table rev. 1.0 found at 0xfdea0, size 272 bytes (15 entri=
es)
PCI Interrupt Router at 000:31:0 (vendor 0x8086 product 0x122e compatible=
)
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:02:0 0x8086 0x27a2   A  0x00  11  0    already assigned
000:27:0 0x8086 0x27d8   B  0x01  11  0    already assigned
000:28:0 0x8086 0x27d0   A  0x04  11  0    already assigned
000:28:1 0x8086 0x27d2   B  0x05  11  0    already assigned
000:28:2 0x8086 0x27d4   C  0x06  11  0    already assigned
000:28:3 0x8086 0x27d6   D  0x07  11  0    already assigned
000:29:0 0x8086 0x27c8   A  0x00  11  0    already assigned
000:29:1 0x8086 0x27c9   B  0x01  11  0    already assigned
000:29:2 0x8086 0x27ca   C  0x02  11  0    already assigned
000:29:3 0x8086 0x27cb   D  0x03  11  0    already assigned
000:29:7 0x8086 0x27cc   D  0x03  11  0    already assigned
000:31:2 0x8086 0x27c4   B  0x00  11  0    fixed up
000:31:3 0x8086 0x27da   A  0x07  11  0    already assigned
002:00:0 0x8086 0x109a   A  0x04  11  0    already assigned
003:00:0 0x8086 0x4227   A  0x05  11  0    already assigned
021:00:0 0x1180 0x0476   A  0x00  11  0    already assigned
021:00:1 0x1180 0x0552   B  0x01  11  0    already assigned
021:00:2 0x1180 0x0822   C  0x02  11  0    already assigned
------------------------------------------
mainbus0 (root)
pci_addr_fixup: 000:31:2 0x8086 0x27c4 new address 0x00005800
pci_addr_fixup: 000:31:2 0x8086 0x27c4 new address 0x00005808
pci_addr_fixup: 000:31:2 0x8086 0x27c4 new address 0x00005810
pci_addr_fixup: 000:31:2 0x8086 0x27c4 new address 0x0000580c
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium Pro, II or III (686-class), 1828.85 MHz, id 0x6e8
cpu0: features bfe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>=

cpu0: features bfe9fbff<PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX>
cpu0: features bfe9fbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 c1a9<SSE3,MONITOR,VMX,EST,TM2,xTPR>
cpu0: "Genuine Intel(R) CPU           T2400  @ 1.83GHz"
cpu0: I-cache 32 KB 64B/line 8-way, D-cache 32 KB 64B/line 8-way
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: using thermal monitor 1
cpu0: Enhanced SpeedStep (1404 mV)  - unknown CPU or operating point.
cpu0: calibrating local timer
cpu0: apic clock running at 166 MHz
cpu0: 64 page colors
cpu at mainbus0: not configured
ioapic0 at mainbus0 apid 1 (I/O APIC)
ioapic0: pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 2
ioapic0: remapped to apic 1
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20060217
acpi0: X/RSDT: OemId <LENOVO,TP-7B   ,00001030>, AslId < LTP,00000000>
acpi0: found ECDT, GPE 28
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
acpi_allocate_resources: res=3D1
acpi: activate failed for IBM0071
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C01 at acpi0 not configured
acpilid0 at acpi0 (PNP0C0D): ACPI Lid Switch
acpibut0 at acpi0 (PNP0C0E): ACPI Sleep Button
PNP0A08 at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0000 at acpi0 not configured
attimer1 at acpi0 (PNP0100): AT Timer
attimer1: io 0x40-0x43 irq 0
PNP0103 at acpi0 not configured
PNP0200 at acpi0 not configured
pcppi1 at acpi0 (PNP0800)
pcppi1: io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
npx1 at acpi0 (PNP0C04)
npx1: io 0xf0 irq 13
npx1: using exception 16
PNP0B00 at acpi0 not configured
pckbc1 at acpi0 (PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
pckbc2 at acpi0 (IBM3780): aux port
pckbc2: irq 12
ATM1200 at acpi0 not configured
acpiec0 at acpi0 (PNP0C09-0): ACPI Embedded Controller
acpiec0: io 0x62,0x66
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
acpibat0 at acpi0 (PNP0C0A-0): ACPI Battery (Control Method)
acpiacad0 at acpi0 (ACPI0003-0): ACPI AC Adapter
IBM0068 at acpi0 not configured
acpitz0 at acpi0: ACPI Thermal Zone
acpitz0: unable to get polling interval; using default of 30.0s
acpitz0: passive cooling mode only
acpitz0: critical 127.0C
acpitz1 at acpi0: ACPI Thermal Zone
acpitz1: unable to get polling interval; using default of 30.0s
acpitz1: critical 97.0C passive 61.0C
pcppi1: attached to attimer1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x27a0 (rev. 0x03)
vga1 at pci0 dev 2 function 0: vendor 0x8086 product 0x27a2 (rev. 0x03)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskb=
d0
wsmux1: connecting to wsdisplay0
vendor 0x8086 product 0x27a6 (miscellaneous display, revision 0x03) at pc=
i0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controll=
er
azalia0: interrupting at ioapic0 pin 17 (irq 11)
azalia0: host: 0x8086/0x27d8 (rev. 2)
azalia0: host: High Definition Audio rev. 1.0
ppb0 at pci0 dev 28 function 0: vendor 0x8086 product 0x27d0 (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
wm0 at pci1 dev 0 function 0: Intel i82573L Gigabit Ethernet, rev. 0
wm0: interrupting at ioapic0 pin 16 (irq 11)
wm0: PCI-Express bus
wm0: 256 word (8 address bits) SPI EEPROM
wm0: Ethernet address 00:16:d3:20:ce:0e
makphy0 at wm0 phy 1: Marvell 88E1111 Gigabit PHY, rev. 2
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000b=
aseT-FDX, auto
ppb1 at pci0 dev 28 function 1: vendor 0x8086 product 0x27d2 (rev. 0x02)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
wpi0 at pci2 dev 0 function 0: vendor 0x8086 product 0x4227 (rev. 0x02)
wpi0: interrupting at ioapic0 pin 17 (irq 11)
wpi0: 802.11 address 00:13:02:29:c8:c3
wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24M=
bps 36Mbps 48Mbps 54Mbps
ppb2 at pci0 dev 28 function 2: vendor 0x8086 product 0x27d4 (rev. 0x02)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
ppb3 at pci0 dev 28 function 3: vendor 0x8086 product 0x27d6 (rev. 0x02)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x27c8 (rev. 0x02)=

uhci0: interrupting at ioapic0 pin 16 (irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x27c9 (rev. 0x02)=

uhci1: interrupting at ioapic0 pin 17 (irq 11)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x27ca (rev. 0x02)=

uhci2: interrupting at ioapic0 pin 18 (irq 11)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3: vendor 0x8086 product 0x27cb (rev. 0x02)=

uhci3: interrupting at ioapic0 pin 19 (irq 11)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7: vendor 0x8086 product 0x27cc (rev. 0x02)=

ehci0: interrupting at ioapic0 pin 19 (irq 11)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb4 at pci0 dev 30 function 0: vendor 0x8086 product 0x2448 (rev. 0xe2)
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled
cbb0 at pci5 dev 0 function 0: vendor 0x1180 product 0x0476 (rev. 0xb4)
cbb0: using ioapic for interrupt
vendor 0x1180 product 0x0552 (Firewire serial bus, interface 0x10, revisi=
on 0x09) at pci5 dev 0 function 1 not configured
vendor 0x1180 product 0x0822 (SD Host Controller system, revision 0x18) a=
t pci5 dev 0 function 2 not configured
cbb0: interrupting at ioapic0 pin 16 (irq 11)
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 6
pcmcia0 at cardslot0
pcib0 at pci0 dev 31 function 0
pcib0: vendor 0x8086 product 0x27b9 (rev. 0x02)
piixide0 at pci0 dev 31 function 2
piixide0: Intel 82801GBM/GHM Serial ATA Controller (ICH7) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at piixide0 channel 1
vendor 0x8086 product 0x27da (SMBus serial bus, revision 0x02) at pci0 de=
v 31 function 3 not configured
isa0 at pcib0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
isapnp0: no ISA Plug 'n Play devices found
ioapic0: enabling
timecounter: Timecounter "TSC" frequency 1828942720 Hz quality 800
timecounter: selected timecounter "TSC" frequency 1828942720 Hz quality 8=
00
WARNING: Callback scheduled before sysmon task queue thread present.
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
azalia0: codec: Analog Devices AD1981HD (rev. 2.0)
azalia0: codec: High Definition Audio rev. 1.0
azalia0: playback: max channels=3D2, encodings=3D1<PCM>
azalia0: playback: PCM formats=3De007f<24bit,20bit,16bit,48kHz,44.1kHz,32=
kHz,22.05kHz,16kHz,11.025kHz,8kHz>
azalia0: recording: max channels=3D2, encodings=3D1<PCM>
azalia0: recording: PCM formats=3D6007f<20bit,16bit,48kHz,44.1kHz,32kHz,2=
2.05kHz,16kHz,11.025kHz,8kHz>
azalia0: codec: 0x14f1/0x2bfa (rev. 0.0)
azalia0: codec: High Definition Audio rev. 0.9
azalia0: codec[1]: No audio functions
audio0 at azalia0: full duplex, independent
Kernelized RAIDframe activated
ugen0 at uhub3 port 1
ugen0: Broadcom Corp BCM2045B, rev 2.00/1.00, addr 2
wd0 at atabus0 drive 0: <HTS541080G9SA00>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 se=
ctors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using =
DMA)
ugen1 at uhub3 port 2
ugen1: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 3
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
Accounting started

--------------080908090805000502070001--

--------------enigEADB7851B6B7248D42539089
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFEi14vSdZNA80H8MYRArO8AJ4nVQEa9Awbs29RR1E6Q0K1Qg1K0QCfVfOo
NYDBT8rYdpSAvjyZzwQUAa4=
=8Mem
-----END PGP SIGNATURE-----

--------------enigEADB7851B6B7248D42539089--