Bug 172864

Summary: [mfi] mfip does not notice new drives
Product: Base System Reporter: Kevin P. Neal <kpneal>
Component: kernAssignee: Doug Ambrisko <ambrisko>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 8.2-RELEASE   
Hardware: Any   
OS: Any   

Description Kevin P. Neal 2012-10-19 02:40:01 UTC
I had mfip.ko loaded already on a machine with three drives (two on the
mfi card) when I added two more drives. The /dev/pass* devices for the two
new drives failed to appear in "/dev".

To get the new drives to appear I had to unload and reload the mfip module.

In the below cut-n-paste I have already physically added the new drives:

[root@aurora /usr/src]# ls -la /dev/pass*
crw-------  1 root  operator    0, 100 Jul 28 21:52 /dev/pass0
crw-------  1 root  operator    0, 154 Oct 15 19:42 /dev/pass1
crw-------  1 root  operator    0, 155 Oct 15 19:42 /dev/pass2
crw-------  1 root  operator    0, 157 Oct 15 19:42 /dev/pass3
[root@aurora /usr/src]# date
Tue Oct 16 22:12:56 EDT 2012
[root@aurora /usr/src]# kldstat
Id Refs Address            Size     Name
 1   22 0xffffffff80100000 e7cd20   kernel
 2    1 0xffffffff81012000 133b32   zfs.ko
 3    1 0xffffffff81146000 1f9f     opensolaris.ko
 4    1 0xffffffff81148000 21d      green_saver.ko
 5    1 0xffffffff81149000 c41      mfip.ko
 6    1 0xffffffff8114a000 b98e     geom_eli.ko
 7    1 0xffffffff81156000 1afa1    crypto.ko
 8    1 0xffffffff81171000 a4d9     zlib.ko
[root@aurora /usr/src]# kldunload mfip
[root@aurora /usr/src]# ls -la /dev/pass*
crw-------  1 root  operator    0, 100 Jul 28 21:52 /dev/pass0
[root@aurora /usr/src]# kldload mfip
[root@aurora /usr/src]# ls -la /dev/pass*
crw-------  1 root  operator    0, 100 Jul 28 21:52 /dev/pass0
crw-------  1 root  operator    0, 154 Oct 16 22:13 /dev/pass1
crw-------  1 root  operator    0, 155 Oct 16 22:13 /dev/pass2
crw-------  1 root  operator    0, 156 Oct 16 22:13 /dev/pass3
crw-------  1 root  operator    0, 157 Oct 16 22:13 /dev/pass4
crw-------  1 root  operator    0, 162 Oct 16 22:13 /dev/pass5
[root@aurora /usr/src]#

How-To-Repeat: 
Hot plug new drives into a backplane connected to an mfi card.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2012-10-19 02:54:36 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-scsi

Over to maintainer(s).
Comment 2 Mark Johnston 2012-10-19 03:48:22 UTC
This is because mfi(4) currently doesn't notify CAM when it receives a
drive insertion/removal event from the hardware. I fixed this in the
tree at work; I'll post it to freebsd-scsi when I have access to it
again, probably in a couple of months.

FWIW, running "camcontrol rescan all" should have also caused the
passthrough devices to appear, so that's another workaround.

-Mark
Comment 3 Doug Ambrisko freebsd_committer freebsd_triage 2012-11-08 00:51:09 UTC
State Changed
From-To: open->closed

Patch http://people.freebsd.org/~rstone/patches/mfi_hotplug.diff commited.
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2012-11-08 00:54:12 UTC
State Changed
From-To: closed->patched

committed, but not MFCed 


Comment 5 Eitan Adler freebsd_committer freebsd_triage 2012-11-08 00:54:12 UTC
Responsible Changed
From-To: freebsd-scsi->ambrisko

committed, but not MFCed
Comment 6 Mark Johnston freebsd_committer freebsd_triage 2013-07-06 04:05:08 UTC
State Changed
From-To: patched->closed

The fix was merged to stable/9 in r252643 and stable/8 in r252644.