mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 01:34:00 +08:00
[SCSI] mptfusion: Support SAS2.0 Devices with SAS1.0 Controllers
SAS1.0 Controller was not able to detect SAS2.0 Expanders due to Link RATE detection was limited to 1.5 Gbps and 3.0 Gbps for SAS1 controllers. Added detection for 6.0 Gbps link. Now, user can mix-up 6.0 Gpbs links with SAS1.0 controller. e.g SAS1.0 HBA <----> SAS2.0 Expander <------> SAS2.0 Expander <--------> SAS1.0 Drive. Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
8597ae8bfe
commit
d75733d51f
@ -2593,6 +2593,7 @@ typedef struct _CONFIG_PAGE_SAS_IO_UNIT_0
|
||||
#define MPI_SAS_IOUNIT0_RATE_SATA_OOB_COMPLETE (0x03)
|
||||
#define MPI_SAS_IOUNIT0_RATE_1_5 (0x08)
|
||||
#define MPI_SAS_IOUNIT0_RATE_3_0 (0x09)
|
||||
#define MPI_SAS_IOUNIT0_RATE_6_0 (0x0A)
|
||||
|
||||
/* see mpi_sas.h for values for SAS IO Unit Page 0 ControllerPhyDeviceInfo values */
|
||||
|
||||
|
@ -841,6 +841,7 @@ typedef struct _EVENT_DATA_SAS_PHY_LINK_STATUS
|
||||
#define MPI_EVENT_SAS_PLS_LR_RATE_SATA_OOB_COMPLETE (0x03)
|
||||
#define MPI_EVENT_SAS_PLS_LR_RATE_1_5 (0x08)
|
||||
#define MPI_EVENT_SAS_PLS_LR_RATE_3_0 (0x09)
|
||||
#define MPI_EVENT_SAS_PLS_LR_RATE_6_0 (0x0A)
|
||||
|
||||
/* SAS Discovery Event data */
|
||||
|
||||
|
@ -7418,7 +7418,12 @@ mpt_display_event_info(MPT_ADAPTER *ioc, EventNotificationReply_t *pEventReply)
|
||||
case MPI_EVENT_SAS_PLS_LR_RATE_3_0:
|
||||
snprintf(evStr, EVENT_DESCR_STR_SZ,
|
||||
"SAS PHY Link Status: Phy=%d:"
|
||||
" Rate 3.0 Gpbs",PhyNumber);
|
||||
" Rate 3.0 Gbps", PhyNumber);
|
||||
break;
|
||||
case MPI_EVENT_SAS_PLS_LR_RATE_6_0:
|
||||
snprintf(evStr, EVENT_DESCR_STR_SZ,
|
||||
"SAS PHY Link Status: Phy=%d:"
|
||||
" Rate 6.0 Gbps", PhyNumber);
|
||||
break;
|
||||
default:
|
||||
snprintf(evStr, EVENT_DESCR_STR_SZ,
|
||||
|
@ -3063,6 +3063,9 @@ static int mptsas_probe_one_phy(struct device *dev,
|
||||
case MPI_SAS_IOUNIT0_RATE_3_0:
|
||||
phy->negotiated_linkrate = SAS_LINK_RATE_3_0_GBPS;
|
||||
break;
|
||||
case MPI_SAS_IOUNIT0_RATE_6_0:
|
||||
phy->negotiated_linkrate = SAS_LINK_RATE_6_0_GBPS;
|
||||
break;
|
||||
case MPI_SAS_IOUNIT0_RATE_SATA_OOB_COMPLETE:
|
||||
case MPI_SAS_IOUNIT0_RATE_UNKNOWN:
|
||||
default:
|
||||
@ -3691,7 +3694,8 @@ mptsas_send_link_status_event(struct fw_event_work *fw_event)
|
||||
}
|
||||
|
||||
if (link_rate == MPI_SAS_IOUNIT0_RATE_1_5 ||
|
||||
link_rate == MPI_SAS_IOUNIT0_RATE_3_0) {
|
||||
link_rate == MPI_SAS_IOUNIT0_RATE_3_0 ||
|
||||
link_rate == MPI_SAS_IOUNIT0_RATE_6_0) {
|
||||
|
||||
if (!port_info) {
|
||||
if (ioc->old_sas_discovery_protocal) {
|
||||
|
Loading…
Reference in New Issue
Block a user