Fwd: cvs commit: src/sys/dev/pci pci.c

Mike Tancsa mike at sentex.net
Mon Jan 30 14:37:23 PST 2006


I have one of the boxes hooked up to the serial console and can break 
to debugger

db> bt
Tracing pid 12 tid 100004 td 0xc63db900
kdb_enter(c07975c3) at kdb_enter+0x2b
siointr1(c65e3c00) at siointr1+0xce
siointr(c65e3c00) at siointr+0x5e
intr_execute_handlers(c63d1490,e4f4dc94,4,e4f4dcd8,c07160b3) at 
intr_execute_handlers+0x85
lapic_handle_intr(34) at lapic_handle_intr+0x2e
Xapic_isr1() at Xapic_isr1+0x33
--- interrupt, eip = 0xc0901bcd, esp = 0xe4f4dcd8, ebp = 0xe4f4dcd8 ---
acpi_cpu_c1(0,0,e4f4dcf8,c63db900,1) at acpi_cpu_c1+0x5
acpi_cpu_idle(e4f4dd10,c0590ef5,c63da830,c0590e60,e4f4dd24) at 
acpi_cpu_idle+0x152
cpu_idle(c63da830,c0590e60,e4f4dd24,c0590be1,0) at cpu_idle+0x28
idle_proc(0,e4f4dd38) at idle_proc+0x95
fork_exit(c0590e60,0,e4f4dd38) at fork_exit+0x71
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xe4f4dd6c, ebp = 0 ---
db>


db> ps
   pid   proc     uid  ppid  pgrp  flag   stat  wmesg    wchan  cmd
    48 c645ca3c    0     0     0 0000204 [IWAIT] swi0: sio
    47 c645cc48    0     0     0 0000204 [SLPQ cooling 
0xc65198d4][SLP] acpi_cooling0
    46 c64d6000    0     0     0 0000204 [SLPQ tzpoll 
0xc090ecd4][SLP] acpi_thermal
    45 c64d620c    0     0     0 0000204 [SLPQ - 0xc646f280][SLP] thread taskq
    44 c64d6418    0     0     0 0000204 [IWAIT] swi6:+
    43 c64d6624    0     0     0 0000204 [SLPQ - 0xc646f400][SLP] acpi_task2
     9 c64d6830    0     0     0 0000204 [SLPQ - 0xc646f400][SLP] acpi_task1
     8 c64d6a3c    0     0     0 0000204 [SLPQ - 0xc646f400][SLP] acpi_task0
    42 c64d6c48    0     0     0 0000204 [IWAIT] swi6: task queue
     7 c64d7000    0     0     0 0000204 [SLPQ - 0xc646f600][SLP] kqueue taskq
    41 c644ec48    0     0     0 0000204 [IWAIT] swi2: cambio
    40 c645b000    0     0     0 0000204 [IWAIT] swi5:+
    39 c645b20c    0     0     0 0000204 [SLPQ - 0xc07e4b00][SLP] yarrow
     6 c645b418    0     0     0 0000204 [SLPQ crypto_ret_wait 
0xc07fb304][SLP] crypto returns
     5 c645b624    0     0     0 0000204 [SLPQ crypto_wait 
0xc07fb2c4][SLP] crypto
     4 c645b830    0     0     0 0000204 [SLPQ - 0xc07e7348][SLP] g_down
     3 c645ba3c    0     0     0 0000204 [SLPQ - 0xc07e7344][SLP] g_up
     2 c645bc48    0     0     0 0000204 [SLPQ - 0xc07e733c][SLP] g_event
    38 c645c000    0     0     0 0000204 [IWAIT] swi3: vm
    37 c645c20c    0     0     0 000020c [IWAIT] swi4: clock sio
    36 c645c418    0     0     0 0000204 [IWAIT] swi1: net
    35 c643d624    0     0     0 0000204 [IWAIT] irq23:
    34 c643d830    0     0     0 0000204 [IWAIT] irq22:
    33 c643da3c    0     0     0 0000204 [IWAIT] irq21:
    32 c643dc48    0     0     0 0000204 [IWAIT] irq20:
    31 c644e000    0     0     0 0000204 [IWAIT] irq19:
    30 c644e20c    0     0     0 0000204 [IWAIT] irq18:
    29 c644e418    0     0     0 0000204 [IWAIT] irq17:
    28 c644e624    0     0     0 0000204 [IWAIT] irq16:
    27 c644e830    0     0     0 0000204 [IWAIT] irq15: ata1
    26 c644ea3c    0     0     0 0000204 [IWAIT] irq14: ata0
    25 c63df20c    0     0     0 0000204 [IWAIT] irq13:
    24 c63df418    0     0     0 0000204 [IWAIT] irq12: bge0 arcmsr0
    23 c63df624    0     0     0 0000204 [IWAIT] irq11: nve0 atapci1
    22 c63df830    0     0     0 0000204 [IWAIT] irq10: ubsec0
    21 c63dfa3c    0     0     0 0000204 [IWAIT] irq9: acpi0
    20 c63dfc48    0     0     0 0000204 [IWAIT] irq8:
    19 c643d000    0     0     0 0000204 [IWAIT] irq7: ppc0
    18 c643d20c    0     0     0 0000204 [IWAIT] irq6:
    17 c643d418    0     0     0 0000204 [IWAIT] irq5: bge1 atapci2
    16 c63da000    0     0     0 0000204 [IWAIT] irq4: sio0
    15 c63da20c    0     0     0 0000204 [IWAIT] irq3:
    14 c63da418    0     0     0 0000204 [IWAIT] irq0:
    13 c63da624    0     0     0 0000204 [IWAIT] irq1: atkbd0
    12 c63da830    0     0     0 000020c [CPU 0] idle: cpu0
    11 c63daa3c    0     0     0 000020c [Can run] idle: cpu1
     1 c63dac48    0     0     0 0000200 [INACTIVE] swapper
    10 c63df000    0     0     0 0000204 [SLPQ ktrace 0xc07e7db8][SLP] ktrace
     0 c07e7440    0     0     0 0000200 [SLPQ conifhk 0xc07c4c0c][SLP] swapper
db>
db> show pciregs
none0 at pci0:0:0: class=0x058000 card=0x815a1043 chip=0x005e10de 
rev=0xa3 hdr=0x00
isab0 at pci0:1:0: class=0x060100 card=0x815a1043 chip=0x005010de 
rev=0xa3 hdr=0x00
none1 at pci0:1:1: class=0x0c0500 card=0x815a1043 chip=0x005210de 
rev=0xa2 hdr=0x00
atapci0 at pci0:6:0:       class=0x01018a card=0x815a1043 
chip=0x005310de rev=0xf2 hdr=0x00
atapci1 at pci0:7:0:       class=0x010185 card=0x815a1043 
chip=0x005410de rev=0xf3 hdr=0x00
atapci2 at pci0:8:0:       class=0x010185 card=0x815a1043 
chip=0x005510de rev=0xf3 hdr=0x00
pcib1 at pci0:9:0: class=0x060401 card=0x00000000 chip=0x005c10de 
rev=0xa2 hdr=0x01
nve0 at pci0:10:0: class=0x068000 card=0x81411043 chip=0x005710de 
rev=0xa3 hdr=0x00
pcib2 at pci0:11:0:        class=0x060400 card=0x00000040 
chip=0x005d10de rev=0xa3 hdr=0x01
pcib3 at pci0:12:0:        class=0x060400 card=0x00000040 
chip=0x005d10de rev=0xa3 hdr=0x01
pcib4 at pci0:13:0:        class=0x060400 card=0x00000040 
chip=0x005d10de rev=0xa3 hdr=0x01
pcib5 at pci0:14:0:        class=0x060400 card=0x00000040 
chip=0x005d10de rev=0xa3 hdr=0x01
hostb0 at pci0:24:0:       class=0x060000 card=0x00000000 
chip=0x11001022 rev=0x00 hdr=0x00
hostb1 at pci0:24:1:       class=0x060000 card=0x00000000 
chip=0x11011022 rev=0x00 hdr=0x00
hostb2 at pci0:24:2:       class=0x060000 card=0x00000000 
chip=0x11021022 rev=0x00 hdr=0x00
hostb3 at pci0:24:3:       class=0x060000 card=0x00000000 
chip=0x11031022 rev=0x00 hdr=0x00
ubsec0 at pci7:7:0:        class=0x0b4000 card=0x00000000 
chip=0x580514e4 rev=0x01 hdr=0x00
none2 at pci7:8:0: class=0x030000 card=0x00081002 chip=0x474d1002 
rev=0x65 hdr=0x00
bge0 at pci5:0:0:  class=0x020000 card=0x167714e4 chip=0x167714e4 
rev=0x01 hdr=0x00
bge1 at pci4:0:0:  class=0x020000 card=0x167714e4 chip=0x167714e4 
rev=0x01 hdr=0x00
pcib6 at pci1:0:0: class=0x060400 card=0x00000044 chip=0x03308086 
rev=0x07 hdr=0x01
pcib7 at pci1:0:2: class=0x060400 card=0x00000044 chip=0x03328086 
rev=0x07 hdr=0x01
arcmsr0 at pci2:14:0:      class=0x010400 card=0x121017d3 
chip=0x121017d3 rev=0x00 hdr=0x00
db>

db> continue

telnet> send break
KDB: enter: Line break on console
[thread pid 12 tid 100004 ]
Stopped at      kdb_enter+0x2b: nop
db> bt
Tracing pid 12 tid 100004 td 0xc63db900
kdb_enter(c07975c3) at kdb_enter+0x2b
siointr1(c65e3c00) at siointr1+0xce
siointr(c65e3c00) at siointr+0x5e
intr_execute_handlers(c63d1490,e4f4dc94,4,e4f4dcd8,c07160b3) at 
intr_execute_handlers+0x85
lapic_handle_intr(34) at lapic_handle_intr+0x2e
Xapic_isr1() at Xapic_isr1+0x33
--- interrupt, eip = 0xc0901bcd, esp = 0xe4f4dcd8, ebp = 0xe4f4dcd8 ---
acpi_cpu_c1(0,0,e4f4dcf8,c63db900,1) at acpi_cpu_c1+0x5
acpi_cpu_idle(e4f4dd10,c0590ef5,c63da830,c0590e60,e4f4dd24) at 
acpi_cpu_idle+0x152
cpu_idle(c63da830,c0590e60,e4f4dd24,c0590be1,0) at cpu_idle+0x28
idle_proc(0,e4f4dd38) at idle_proc+0x95
fork_exit(c0590e60,0,e4f4dd38) at fork_exit+0x71
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xe4f4dd6c, ebp = 0 ---
db>

         ---Mike

At 05:15 PM 30/01/2006, Mike Tancsa wrote:

>Hi,
>         Sometime after the commit below, two of my AMD dual core 
> boxes (i386) no longer boot. One of them with just a 3ware 
> controller and the other, and areca and a few extra nics and drives.
>
>The one with just the 3ware freezes at
>
>SMP: AP CPU #1 Launched!
>
>and the other freezes after probing the first ide drive
>
>
>Timecounters tick every 1.000 msec
>ad0: 76319MB <Seagate ST380011A 3.76> at ata0-master UDMA100
>twed0: <Unit 0, TwinStor, Normal> on twe0
>twed0: 152626MB (312579760 sectors)
>SMP: AP CPU #1 Launched!
><freezes here>
>Trying to mount root from ufs:/dev/twed0s1a
>bge0: link state changed to UP
>bge0: link state changed to DOWN
>
>
>
>Timecounters tick every 1.000 msec
>Waiting 5 seconds for SCSI devices to settle
>ad0: 38166MB <Seagate ST340014A 3.04> at ata0-master UDMA100
><freezes here>
>ad4: 238475MB <Seagate ST3250823AS 3.03> at ata2-master SATA150
>ad6: 238475MB <Seagate ST3250823AS 3.03> at ata3-master SATA150
>ad8: 238475MB <Seagate ST3250823AS 3.03> at ata4-master SATA150
>ad10: 238475MB <Seagate ST3250823AS 3.03> at ata5-master SATA150
>da0 at arcmsr0 bus 0 target 0 lun 0
>da0: <Areca ARC-1210-VOL#00 R001> Fixed Direct Access SCSI-3 device
>da0: 166.666MB/s transfers (83.333MHz, offset 32, 16bit), Tagged 
>Queueing Enabled
>da0: 858306MB (1757812224 512 byte sectors: 255H 63S/T 109418C)
>SMP: AP CPU #1 Launched!
>Trying to mount root from ufs:/dev/ad0s1a
>
>Full dmesgs of both boxes attached
>
>
>
>
>
>>X-Original-To: cvs-all at FreeBSD.org
>>Delivered-To: cvs-all at FreeBSD.org
>>From: Warner Losh <imp at freebsd.org>
>>Date: Mon, 30 Jan 2006 18:42:10 +0000 (UTC)
>>To: src-committers at freebsd.org, cvs-src at freebsd.org, cvs-all at freebsd.org
>>
>>imp         2006-01-30 18:42:10 UTC
>>
>>   FreeBSD src repository
>>
>>   Modified files:        (Branch: RELENG_6)
>>     sys/dev/pci          pci.c
>>   Log:
>>   MFC:
>>           1.308, 1.307, 1.306: expose pci_add_resources to the outside
>>           world.  Implement force in pci_add_map.  Write values of allocated
>>           resources to the BARs.
>>           1.304: Improve diagnostic messages
>>           1.303: Improved resource allocation.
>>           1.302: Use symbolic names
>>           1.301: Minor style(9) nitage
>>           1.296: Allow code to access cached values for CMDREG, 
>> CACHLNSZ, MINGNT,
>>           MAXLAT and LATTIMER.
>>
>>   Revision   Changes    Path
>>   1.292.2.6  +93 -49    src/sys/dev/pci/pci.c
>>_______________________________________________
>>cvs-all at freebsd.org mailing list
>>http://lists.freebsd.org/mailman/listinfo/cvs-all
>>To unsubscribe, send any mail to "cvs-all-unsubscribe at freebsd.org"
>
>--------------------------------------------------------------------
>Mike Tancsa,                                      tel +1 519 651 3400
>Sentex Communications,                            mike at sentex.net
>Providing Internet since 1994                    www.sentex.net
>Cambridge, Ontario Canada                         www.sentex.net/mike



More information about the freebsd-stable mailing list