freebsd-nq/sys
Kenneth D. Merry aa6e8dfdd5 Fix a problem that was causing the mpt(4) driver to attach to MegaRAID
cards that should be handled by the mfi(4) driver.

The root of the problem is that the mpt(4) driver was masking off the
bottom bit of the PCI device ID when deciding which cards to attach to.

It appears that a number of the mpt(4) Fibre Channel cards had a LAN
variant whose PCI device ID was just one bit off from the FC card's device
ID.  The FC cards were even and the LAN cards were odd.

The problem was that this pattern wasn't carried over on the SAS and
parallel SCSI mpt(4) cards.  Luckily the SAS and parallel SCSI PCI device
IDs were either even numbers, or they would get masked to a supported
adjacent PCI device ID, and everything worked well.

Now LSI is using some of the odd-numbered PCI device IDs between the 3Gb
SAS device IDs for their new MegaRAID cards.  This is causing the mpt(4)
driver to attach to the RAID cards instead of the mfi(4) driver.

The solution is to stop masking off the bottom bit of the device ID, and
explicitly list the PCI device IDs of all supported cards.

This change should be a no-op for mpt(4) hardware.  The only intended
functional change is that for the 929X, the is_fc variable gets set.  It
wasn't being set previously, but needs to be because the 929X is a Fibre
Channel card.

Reported by:	Kashyap Desai <Kashyap.Desai@lsi.com>
MFC After:	3 days
2012-03-02 22:00:40 +00:00
..
amd64 Copy amd64 stdarg.h to x86 and replace amd64/i386/pc98 stdarg.h with stubs. 2012-02-28 22:30:58 +00:00
arm - Change contigmalloc() to use the vm_paddr_t type instead of an unsigned 2012-03-01 19:58:34 +00:00
boot Fix a long standing bug. The caller expects a non-zero value for success. 2012-02-29 18:11:33 +00:00
bsm
cam Use a better way to silence unneeded internal declaration warnings in 2012-02-23 21:34:14 +00:00
cddl Analogous to r232059, add a parameter for the ZFS file system: 2012-02-26 16:30:39 +00:00
compat Add procfs to jail-mountable filesystems. 2012-02-29 00:30:18 +00:00
conf Add driver for the RME HDSPe AIO/RayDAT sound cards -- snd_hdspe(4). 2012-03-01 13:10:18 +00:00
contrib IFC @231845 2012-02-17 00:27:48 +00:00
crypto Add support for the extended FPU states on amd64, both for native 2012-01-21 17:45:27 +00:00
ddb
dev Fix a problem that was causing the mpt(4) driver to attach to MegaRAID 2012-03-02 22:00:40 +00:00
fs Similar to the fixes in 226967 and 226987, purge any name cache entries 2012-03-02 18:55:19 +00:00
gdb
geom If nested scheme allows dump kernel to its partition, we may allow 2012-02-20 06:35:52 +00:00
gnu/fs Use new OSS-based BSD-licensed header for cs sound driver. 2012-02-01 21:38:01 +00:00
i386 Copy amd64 stdarg.h to x86 and replace amd64/i386/pc98 stdarg.h with stubs. 2012-02-28 22:30:58 +00:00
ia64 - Change contigmalloc() to use the vm_paddr_t type instead of an unsigned 2012-03-01 19:58:34 +00:00
isa
kern - Change contigmalloc() to use the vm_paddr_t type instead of an unsigned 2012-03-01 19:58:34 +00:00
kgssapi
libkern
mips When creating a handle for a subregion, be sure to actually math out the new 2012-03-02 21:46:31 +00:00
modules Add driver for the RME HDSPe AIO/RayDAT sound cards -- snd_hdspe(4). 2012-03-01 13:10:18 +00:00
net Use a more appropriate default for the maximum number of addresses in the 2012-02-29 20:58:21 +00:00
net80211 Attempt to catch scan cancellations at exactly the wrong time from occuring. 2012-03-02 02:53:43 +00:00
netatalk Fix typos 2012-02-28 15:07:05 +00:00
netgraph Revert r231829, that was my braino. 2012-02-22 09:08:51 +00:00
netinet - Refresh dynamic tcp rule only if both sides answered keepalive packets. 2012-02-28 22:00:41 +00:00
netinet6 Allow to configure net.inet6.ip6.{accept_rtadv,no_radr} by the loader tunables 2012-03-02 07:23:28 +00:00
netipsec Add multi-FIB IPv6 support to the core network stack supplementing 2012-02-03 13:08:44 +00:00
netipx
netnatm
netncp
netsmb
nfs Add multi-FIB IPv6 support to the core network stack supplementing 2012-02-03 13:08:44 +00:00
nfsclient Fix the NFS clients so that they use copyin() instead of bcopy(), 2012-03-01 03:53:07 +00:00
nfsserver
nlm jwd@ reported a problem via email to freebsd-fs@ on Aug 25, 2011 2012-01-31 02:11:05 +00:00
ofed
opencrypto
pc98 Copy amd64 stdarg.h to x86 and replace amd64/i386/pc98 stdarg.h with stubs. 2012-02-28 22:30:58 +00:00
pci Use correct Config registers for RTL8139 family. Unlike RTL8168 and 2012-02-25 04:54:51 +00:00
powerpc - Add a bus_dma tag to each PCI bus that is a child of a Host-PCI bridge. 2012-03-02 20:38:04 +00:00
rpc
security Remove direct access to si_name. 2012-02-10 12:35:57 +00:00
sparc64 - Add a bus_dma tag to each PCI bus that is a child of a Host-PCI bridge. 2012-03-02 20:38:04 +00:00
sys - Add support for the Intel Sandy Bridge microarchitecture (both core and uncore counting events) 2012-03-01 21:23:26 +00:00
teken
tools Make vnode_if.awk parse vnode operations with underscores, like VOP_FOO_BAR. 2012-02-21 19:35:59 +00:00
ufs Similar to the fixes in 226967 and 226987, purge any name cache entries 2012-03-02 18:55:19 +00:00
vm Eliminate stale incorrect ARGSUSED comments. 2012-03-02 17:33:51 +00:00
x86 - Change contigmalloc() to use the vm_paddr_t type instead of an unsigned 2012-03-01 19:58:34 +00:00
xdr
xen blkif interface comment cleanups. No functional changes 2012-02-29 17:47:01 +00:00
Makefile