freebsd-src/sys/dev/mpt
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
..
mpilib Change some headers such that lang/gcc* ports no longer patch them. 2012-02-14 12:50:20 +00:00
mpt.c Flesh out support for SAS1078 and SAS1078DE (which are said to actually 2012-02-11 12:03:44 +00:00
mpt.h Flesh out support for SAS1078 and SAS1078DE (which are said to actually 2012-02-11 12:03:44 +00:00
mpt_cam.c Flesh out support for SAS1078 and SAS1078DE (which are said to actually 2012-02-11 12:03:44 +00:00
mpt_cam.h MFp4: Large set of CAM inprovements. 2010-01-28 08:41:30 +00:00
mpt_debug.c - Staticize functions as appropriate and comment out unused ones. 2011-07-29 18:35:10 +00:00
mpt_pci.c Fix a problem that was causing the mpt(4) driver to attach to MegaRAID 2012-03-02 22:00:40 +00:00
mpt_raid.c - Send the RELSIM_ADJUST_OPENINGS in response to a MPI_EVENT_QUEUE_FULL using 2011-07-29 18:38:31 +00:00
mpt_raid.h - Send the RELSIM_ADJUST_OPENINGS in response to a MPI_EVENT_QUEUE_FULL using 2011-07-29 18:38:31 +00:00
mpt_reg.h Flesh out support for SAS1078 and SAS1078DE (which are said to actually 2012-02-11 12:03:44 +00:00
mpt_user.c - Staticize functions as appropriate and comment out unused ones. 2011-07-29 18:35:10 +00:00