Hello All,

I am trying to run some custom created hot swap drivers on a SSOL10.

They were working on SSOL8 and SSOL9 but not on the SSOL10.  The
system panics when it try to add/modify a property.  It seems that the
reason for this is the ddi_prop_ routines are trying to lock the
dev_info_t member 'devi_lock'.  But it is already locked.
Also the problem is happening after several correct executions in the
same path (please see below call stack).  And my drivers does not
manipulate the 'devi_lock'.

Kindly have a look at this and advice.

Following is my system configuration.

# more  /etc/release
                     Solaris 10 5/08 s10s_u5wos_10 SPARC
         Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                      Use is subject to license terms.
                           Assembled 24 March 2008
# uname -a
SunOS ssol-10-u5-engg 5.10 Generic_127127-11 sun4u sparc
SUNW,UltraSPARC-IIi-cEngine
#

The system panics with the following when I try to run an hot swap server.

Following is from '/var/adm/messages'
-------
Jun 19 23:18:46 ssol-10-u5-engg unix: [ID 926934 kern.warning]
WARNING: invalid vector intr: number 0x7d8, pil 0x0
Jun 19 23:18:46 ssol-10-u5-engg unix: [ID 836849 kern.notice]
Jun 19 23:18:46 ssol-10-u5-engg ^Mpanic[cpu0]/thread=30001083040:
Jun 19 23:18:46 ssol-10-u5-engg unix: [ID 103648 kern.notice]
mutex_enter: bad mutex, lp=3000078c480 owner=2a1007c1ca0
thread=30001083040
Jun 19 23:18:46 ssol-10-u5-engg unix: [ID 100000 kern.notice]
Jun 19 23:18:46 ssol-10-u5-engg genunix: [ID 723222 kern.notice]
000002a100b090e0 genunix:ddi_prop_search_common+40 (ffffffffffffffff,
3000078c418, 3000078c480, f01, 18ec440, 2a100b09448)
Jun 19 23:18:46 ssol-10-u5-engg genunix: [ID 179002 kern.notice]
%l0-3: 0000000000000000 0000000000000000 0000000000000000
000000000119fcc8
Jun 19 23:18:46 ssol-10-u5-engg   %l4-7: 0000000000000002
0000000000000000 000002a100b09430 000003000078c460
Jun 19 23:18:46 ssol-10-u5-engg genunix: [ID 723222 kern.notice]
000002a100b091c0 genunix:___const_seg_900000101+dc30
(ffffffffffffffff, 3000078c418, 2, 2a100b09430, 18ec440, 2a100b09448)
Jun 19 23:18:46 ssol-10-u5-engg genunix: [ID 179002 kern.notice]
%l0-3: 0000000000000000 0000030003b342e0 000000225d806b6e
0000000000008000
Jun 19 23:18:46 ssol-10-u5-engg   %l4-7: 000000002aea9fad
0000000000000f01 0000000000010000 000002a100b09430
Jun 19 23:18:47 ssol-10-u5-engg genunix: [ID 723222 kern.notice]
000002a100b09280 genunix:___const_seg_900000101+e030
(ffffffffffffffff, 3000078c418, 1, 18ec440, 2a100b09448, 2a100b09430)
Jun 19 23:18:47 ssol-10-u5-engg genunix: [ID 179002 kern.notice]
%l0-3: 0000000000000000 000000c180e4ba31 000002a10001fca0
00000300038bcf80
Jun 19 23:18:47 ssol-10-u5-engg   %l4-7: 0000000001869cc0
0000000000000000 0000000000008308 00000000018c0000
Jun 19 23:18:47 ssol-10-u5-engg genunix: [ID 723222 kern.notice]
000002a100b09340 pcipsy:pci_map+b4 (300004eb8d8, 3000078c418,
2a100b09508, 0, 0, 705788e8)
Jun 19 23:18:47 ssol-10-u5-engg genunix: [ID 179002 kern.notice]
%l0-3: 00000000a0000000 0000000080000000 fffffffffffffffe
0000000000000000
Jun 19 23:18:47 ssol-10-u5-engg   %l4-7: 03fffffffffff1cc
0000000000000002 0000000000000000 00000300004fd940
Jun 19 23:18:47 ssol-10-u5-engg genunix: [ID 723222 kern.notice]
000002a100b09450 genunix:___const_seg_900000101+c3f4 (3000078c418, 0,
705788e8, 0, 3, 1)
Jun 19 23:18:47 ssol-10-u5-engg genunix: [ID 179002 kern.notice]
%l0-3: 0000030001083040 000000000186cc00 00000300010831e8
00000300010831e6
Jun 19 23:18:47 ssol-10-u5-engg   %l4-7: 00000000010ba478
0000000000008308 3fffffffffff1cc8 00000000010ba400
Jun 19 23:18:47 ssol-10-u5-engg genunix: [ID 723222 kern.notice]
000002a100b09530 hsbios:Teardown_DDI+58 (705788b8, 0, 1, 1,0, b)
Jun 19 23:18:47 ssol-10-u5-engg genunix: [ID 179002 kern.notice]
%l0-3: 000003000078c418 000003000078c418 000003000078c418
0000000000000000
Jun 19 23:18:47 ssol-10-u5-engg   %l4-7: 0000000000000040
00000000705788d8 000003000078c418 00000000705788b8
Jun 19 23:18:48 ssol-10-u5-engg genunix: [ID 723222 kern.notice]
000002a100b095f0 hsbios:hsbiosPCIRead+3f8 (2a100b0987c, 5, 5, 3e314,
0, ff2ee308)
Jun 19 23:18:48 ssol-10-u5-engg genunix: [ID 179002 kern.notice]
%l0-3: 000000007b2feb80 000000007b2feb80 000000007b2feb80
0000000000000000
Jun 19 23:18:48 ssol-10-u5-engg   %l4-7: 0000000000000040
00000000705788b8 000000007b2feb80 00000000705788b8
Jun 19 23:18:48 ssol-10-u5-engg genunix: [ID 723222 kern.notice]
000002a100b096f0 hsbios:hsbiosDoIOCTL+dc (3ec, 2a100b0987c, 0, 0,
90000, 8)
Jun 19 23:18:48 ssol-10-u5-engg genunix: [ID 179002 kern.notice]
%l0-3: 000000007b301450 fffffffffffffe48 0000000000000020
fffffffffffffe48
Jun 19 23:18:48 ssol-10-u5-engg   %l4-7: 000000007b3015fc
fffffffffffffe48 000000007b301608 0000000000000000
Jun 19 23:18:48 ssol-10-u5-engg genunix: [ID 723222 kern.notice]
000002a100b097c0 hsbios:hsbios_ioctl+a4 (12c00000000, 3ec, ffbff6d0,
100003, 30003741770, 2a100b09adc)
Jun 19 23:18:48 ssol-10-u5-engg genunix: [ID 179002 kern.notice]
%l0-3: 0000000070578c00 00000000ffffffff 000000000000012c
000002a100b0987c
Jun 19 23:18:48 ssol-10-u5-engg   %l4-7: 00000300038659b0
0000000070578980 0000000000000000 00000300038d2880
Jun 19 23:18:48 ssol-10-u5-engg genunix: [ID 723222 kern.notice]
000002a100b098e0 genunix:fop_ioctl+20 (300038d2880, 3ec, ffbff6d0,
100003, 30003741770, 12227f8)
Jun 19 23:18:48 ssol-10-u5-engg genunix: [ID 179002 kern.notice]
%l0-3: 0000000000000003 00000300025b8480 0000000000000002
0000000000000000
Jun 19 23:18:48 ssol-10-u5-engg   %l4-7: 0000000000000000
0000000000000000 00000000018c1000 0000000000000001
Jun 19 23:18:49 ssol-10-u5-engg genunix: [ID 723222 kern.notice]
000002a100b09990 genunix:ioctl+184 (3, 30003851420, ffbff6d0, 0, 0,
3ec)
Jun 19 23:18:49 ssol-10-u5-engg genunix: [ID 179002 kern.notice]
%l0-3: 0000000000000000 0000000000000000 0000000000000004
000000000000df18
Jun 19 23:18:49 ssol-10-u5-engg   %l4-7: 0000000000000001
0000000000000000 0000000000000000 0000000000000000
Jun 19 23:18:49 ssol-10-u5-engg unix: [ID 100000 kern.notice]
Jun 19 23:18:49 ssol-10-u5-engg genunix: [ID 672855 kern.notice]
syncing file systems...
Jun 19 23:18:49 ssol-10-u5-engg genunix: [ID 733762 kern.notice]  2
Jun 19 23:18:50 ssol-10-u5-engg genunix: [ID 733762 kern.notice]  1
Jun 19 23:18:51 ssol-10-u5-engg genunix: [ID 904073 kern.notice]  done
-------

Following is call stack when the problem occured.
-------

# mdb -k /var/crash/ssol-10-u5-engg/unix.10 /var/crash/ssol-10-u5-engg/vmcore.10
Loading modules: [ unix krtld genunix specfs dtrace ufs sd pcipsy ip
hook neti sctp arp usba fctl nca zfs random ptm cpc fcip sppp crypto
nfs ]
> $C
000002a100b82831 vpanic(1086230, 181d368, 30000790480, 2a10079dca0,
30000d76a00, 0)
000002a100b828e1 ddi_prop_search_common+0x40(ffffffffffffffff,
30000790418, 30000790480, f01, 18ec440, 2a100b83448)
000002a100b829c1 ddi_prop_op+0x5c(ffffffffffffffff, 30000790418, 2,
2a100b83430, 18ec440, 2a100b83448)
000002a100b82a81 ddi_getlongprop+0x1c(ffffffffffffffff, 30000790418,
1, 18ec440, 2a100b83448, 2a100b83430)
000002a100b82b41 pci_map+0xb4(300004eb8d8, 30000790418, 2a100b83508,
0, 0, 7059cb70)
000002a100b82c51 ddi_unmap_regs+0x3c(30000790418, 0, 7059cb70, 0, 3, 1)
000002a100b82d31 Teardown_DDI+0x58(7059cb40, 0, 1, 1, 0, b)
000002a100b82df1 hsbios`hsbiosPCIRead+0x400(2a100b8387c, 5, 5, 3e314,
0, ff2ee308)
000002a100b82ef1 hsbiosDoIOCTL+0xdc(3ec, 2a100b8387c, 0, 0, 90000, 8)
000002a100b82fc1 hsbios_ioctl+0xa4(12c00000000, 3ec, ffbff6c8, 100003,
3000398ed20, 2a100b83adc)
000002a100b830e1 fop_ioctl+0x20(30003153b40, 3ec, ffbff6c8, 100003,
3000398ed20, 12227f8)
000002a100b83191 ioctl+0x184(3, 30003b6aa10, ffbff6c8, 0, 0, 3ec)
000002a100b832e1 syscall_trap32+0xcc(3, 3ec, ffbff6c8, 0, 0, ffbff6f1)
>

-------
Please help by pointing where to look to solve this.

Thanks in advance and best regards,
chandra
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to