Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Feb 2007 22:01:39 +0300 (MSK)
From:      Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>
To:        current@freebsd.org
Subject:   asr0 (Adpatec 2100S) panic on load
Message-ID:  <20070223215738.B930@free.home.local>

next in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-1566391693-1172257299=:930
Content-Type: TEXT/PLAIN; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

HW is Adaptec 2100S with 32 MB ECC DIMM:

pcib2@pci0:9:0:=09class=3D0x060400 card=3D0x00000000 chip=3D0xa5001044 rev=
=3D0x02 hdr=3D0x01
     vendor     =3D 'Adaptec (Formerly: Distributed Processing Technology (=
DPT))'
     device     =3D 'PCI Bridge'
     class      =3D bridge
     subclass   =3D PCI-PCI
none0@pci0:9:1:=09class=3D0x0e0001 card=3D0xc03c1044 chip=3D0xa5011044 rev=
=3D0x02 hdr=3D0x00
     vendor     =3D 'Adaptec (Formerly: Distributed Processing Technology (=
DPT))'
     device     =3D 'I2O SmartRAID V Controller'
     class      =3D intelligent I/O controller
     subclass   =3D I2O

Once I managed to load it (kernel crashed a minute later with
  kmem_malloc(4096): kmem_map too small: 171311104 total allocated):

asr0: <Adaptec Caching SCSI RAID> mem 0xe8000000-0xe9ffffff irq 17 at devic=
e 9.1 on pci0
asr0: Reserved 0x2000000 bytes for rid 0x10 type 3 at 0xe8000000
asr0: [GIANT-LOCKED]
asr0: [ITHREAD]
asr0:   ADAPTEC 2100S FW Rev. 370F, 1 channel, 256 CCBs, Protocol I2O

kgdb backtrace:

GNU gdb 6.1.1 [FreeBSD]
[...]
Unread portion of the kernel message buffer:
asr0: <Adaptec Caching SCSI RAID> mem 0xe8000000-0xe9ffffff irq 17 at devic=
e 9.1 on pci0
Memory modified after free 0xc4142540(12) val=3D20202020 @ 0xc4142540
panic: Most recently used by none

cpuid =3D 0
KDB: stack backtrace:
db_trace_self_wrapper(c0920035) at db_trace_self_wrapper+0x25
kdb_backtrace(100,c326e510,c4142540,c414254c,c4142540,...) at kdb_backtrace=
+0x29
panic(c092b60a,c091c2ba,c096d48c,c4142540,c,...) at panic+0x109
mtrash_ctor(c4142540,10,0,101) at mtrash_ctor+0x4d
uma_zalloc_arg(c1472960,0,101) at uma_zalloc_arg+0xc3
malloc(4,c09f9ca0,101,c06d4bf3,ffffffff,...) at malloc+0xb2
rman_reserve_resource_bound(c0ac46c0,11,11,1,0,...) at rman_reserve_resourc=
e_bound+0x5f5
rman_reserve_resource(c0ac46c0,11,11,1,4,c2e9d500) at rman_reserve_resource=
+0x1c
nexus_alloc_resource(c2df6c00,c2e9d500,1,d61caa54,11,...) at nexus_alloc_re=
source+0xcf
acpi_alloc_resource(c2df6480,c2e9d500,1,d61caa54,11,11,1,6) at acpi_alloc_r=
esource+0xf8
bus_generic_alloc_resource(c2e9a480,c2e9d500,1,d61caa54,11,...) at bus_gene=
ric_alloc_resource+0x7f
acpi_pcib_acpi_alloc_resource(c2e9a480,c2e9d500,1,d61caa54,11,11,1,6) at ac=
pi_pcib_acpi_alloc_resource+0x4b
resource_list_alloc(c2dfdd04,c2e9d780,c2e9d500,1,d61caa54,...) at resource_=
list_alloc+0x180
pci_alloc_resource(c2e9d780,c2e9d500,1,d61caa54,0,ffffffff,1,6) at pci_allo=
c_resource+0x1e0
bus_alloc_resource(c2e9d500,1,d61caa54,0,ffffffff,...) at bus_alloc_resourc=
e+0x7c
asr_pci_map_int(c2e9d500,c386f600,d61caaa8,48,4,...) at asr_pci_map_int+0x2=
a
asr_attach(c2e9d500) at asr_attach+0x321
device_attach(c2e9d500,c2e9d500,c2e9d500,3,c2dfdd00,...) at device_attach+0=
x58
device_probe_and_attach(c2e9d500,c2e9d500,c2dfdd00) at device_probe_and_att=
ach+0xe0
pci_driver_added(c2e9d780,c429f06c) at pci_driver_added+0xd1
devclass_add_driver(c2dcf580,c429f06c) at devclass_add_driver+0xd5
driver_module_handler(c336fe40,0,c429f084,c0a4cf00,c095ba70,7b) at driver_m=
odule_handler+0x59
module_register_init(c429f098) at module_register_init+0x66
linker_file_sysinit(c3515000,c3515000,1,c3515000,c33a8420,...) at linker_fi=
le_sysinit+0x9d
linker_load_file(c33a8420,d61cac14) at linker_load_file+0xee
linker_load_module(0,c3933c00,0,0,d61cac4c,c0a4ca20,c095aee0,36a) at linker=
_load_module+0xdb
kern_kldload(c326e510,c3933c00,d61cac70) at kern_kldload+0x92
kldload(c326e510,d61cad00) at kldload+0x4f
syscall(d61cad38) at syscall+0x256
Xint0x80_syscall() at Xint0x80_syscall+0x20
--- syscall (304, FreeBSD ELF32, kldload), eip =3D 0x280c0b53, esp =3D 0xbf=
bfecec, ebp =3D 0xbfbfed28 ---
Uptime: 15m9s
Physical memory: 499 MB
Dumping 77 MB: 62 46 30 14

#0  doadump () at pcpu.h:147
147=09pcpu.h: No such file or directory.
 =09in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:147
#1  0xc06be85c in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:4=
11
#2  0xc06beb66 in panic (fmt=3D0xc092b60a "Most recently used by %s\n")
     at /usr/src/sys/kern/kern_shutdown.c:567
#3  0xc081af05 in mtrash_ctor (mem=3D0xc4142540, size=3D0, arg=3D0x0, flags=
=3D257)
     at /usr/src/sys/vm/uma_dbg.c:137
#4  0xc08190df in uma_zalloc_arg (zone=3D0xc1472960, udata=3D0x0, flags=3D2=
57)
     at /usr/src/sys/vm/uma_core.c:1835
#5  0xc06b3e12 in malloc (size=3D16, mtp=3D0xc09f9ca0, flags=3D257) at uma.=
h:277
#6  0xc06e1651 in rman_reserve_resource_bound (rm=3D0xc0ac46c0, start=3D17,
     end=3D17, count=3D1, bound=3D0, flags=3D4, dev=3D0xc2e9d500)
     at /usr/src/sys/kern/subr_rman.c:442
#7  0xc06e177c in rman_reserve_resource (rm=3D0xc0ac46c0, start=3D17, end=
=3D17,
     count=3D1, flags=3D4, dev=3D0xc2e9d500) at /usr/src/sys/kern/subr_rman=
=2Ec:488
#8  0xc08b66df in nexus_alloc_resource (bus=3D0xc2df6c00, child=3D0xc2e9d50=
0,
     type=3D1, rid=3D0xd61caa54, start=3D17, end=3D17, count=3D1, flags=3D4=
)
     at /usr/src/sys/i386/i386/nexus.c:366
#9  0xc0c0864c in acpi_alloc_resource (bus=3D0xc2df6480, child=3D0xc2e9d500=
,
     type=3D1, rid=3D0xd61caa54, start=3D1, end=3D17, count=3D1, flags=3D6)=
 at bus_if.h:262
#10 0xc06d9b23 in bus_generic_alloc_resource (dev=3D0x0, child=3D0xc2e9d500=
,
     type=3D1, rid=3D0xd61caa54, start=3D17, end=3D17, count=3D1, flags=3D6=
)
     at bus_if.h:262
#11 0xc0c0cea7 in acpi_pcib_acpi_alloc_resource (dev=3D0xc2e9a480,
     child=3D0xc2e9d500, type=3D0, rid=3D0xd61caa54, start=3D0, end=3D0, co=
unt=3D1,
     flags=3D6)
     at /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/acpi_pcib_acpi.c=
:354
#12 0xc06d9410 in resource_list_alloc (rl=3D0xc2dfdd04, bus=3D0xc2e9d780,
     child=3D0xc2e9d500, type=3D1, rid=3D0xd61caa54, start=3D6, end=3D1, co=
unt=3D1,
     flags=3D6) at bus_if.h:262
#13 0xc05da798 in pci_alloc_resource (dev=3D0xc2e9d780, child=3D0xc2e9d500,
     type=3D1, rid=3D0xd61caa54, start=3D0, end=3D4294967295, count=3D1, fl=
ags=3D6)
     at /usr/src/sys/dev/pci/pci.c:3077
#14 0xc06da11c in bus_alloc_resource (dev=3D0x0, type=3D1, rid=3D0xd61caa54=
,
     start=3D0, end=3D4294967295, count=3D1, flags=3D6) at bus_if.h:262
#15 0xc429ceee in asr_pci_map_int (dev=3D0xc2e9d500, sc=3D0xc386f600) at bu=
s.h:375
#16 0xc429d425 in asr_attach (dev=3D0xc2e9d500)
     at /usr/src/sys/modules/asr/../../dev/asr/asr.c:2465
#17 0xc06d8e48 in device_attach (dev=3D0xc2e9d500) at device_if.h:177
#18 0xc06d8de8 in device_probe_and_attach (dev=3D0xc2e9d500)
     at /usr/src/sys/kern/subr_bus.c:2347
#19 0xc05d97b5 in pci_driver_added (dev=3D0xc2dfdd00, driver=3D0xc429f06c)
     at /usr/src/sys/dev/pci/pci.c:2463
#20 0xc06d7ac9 in devclass_add_driver (dc=3D0xc2dcf580, driver=3D0xc429f06c=
)
     at bus_if.h:183
#21 0xc06da989 in driver_module_handler (mod=3D0xc336fe40, what=3D-10038844=
36,
     arg=3D0xc429f084) at /usr/src/sys/kern/subr_bus.c:3799
#22 0xc06b5472 in module_register_init (arg=3D0xc429f098)
     at /usr/src/sys/kern/kern_module.c:124
#23 0xc06af855 in linker_file_sysinit (lf=3D0xc3515000)
     at /usr/src/sys/kern/kern_linker.c:226
#24 0xc06afbda in linker_load_file (
     filename=3D0xc09f82a0 "\232=CB\221=C0@\202\237=C0=C8", result=3D0xd61c=
ac14)
     at /usr/src/sys/kern/kern_linker.c:407
#25 0xc06b2093 in linker_load_module (
     kldname=3D0xc33a8420 "/boot/kernel/asr.ko", modname=3D0xc3933c00 "asr"=
,
     parent=3D0x0, verinfo=3D0x0, lfpp=3D0xd61cac4c)
     at /usr/src/sys/kern/kern_linker.c:1871
#26 0xc06b080e in kern_kldload (td=3D0xc3933c00, file=3D0xc3933c00 "asr",
     fileid=3D0xd61cac70) at /usr/src/sys/kern/kern_linker.c:875
#27 0xc06b089b in kldload (td=3D0xc326e510, uap=3D0x0)
     at /usr/src/sys/kern/kern_linker.c:902
#28 0xc08bdb2a in syscall (frame=3D0xd61cad38)
     at /usr/src/sys/i386/i386/trap.c:1008
#29 0xc08a7520 in Xint0x80_syscall ()
     at /usr/src/sys/i386/i386/exception.s:196
#30 0x280c0b53 in ?? ()
Previous frame inner to this frame (corrupt stack?)

Yuriy.

--0-1566391693-1172257299=:930--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070223215738.B930>