diff options
author | Himanshu Madhani <himanshu.madhani@cavium.com> | 2018-06-04 08:09:53 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-06-06 04:21:18 +0300 |
commit | 413c2f33489b134e3cc65d9c3ff7861e8fdfe899 (patch) | |
tree | 1244382cb89f6e556031f37f790b8f9685b9f4e3 /drivers/scsi/mpt3sas | |
parent | 0d98ba8d70b0070ac117452ea0b663e26bbf46bf (diff) | |
download | linux-413c2f33489b134e3cc65d9c3ff7861e8fdfe899.tar.xz |
scsi: qla2xxx: Fix setting lower transfer speed if GPSC fails
This patch prevents driver from setting lower default speed of 1 GB/sec,
if the switch does not support Get Port Speed Capabilities (GPSC)
command. Setting this default speed results into much lower write
performance for large sequential WRITE. This patch modifies driver to
check for gpsc_supported flags and prevents driver from issuing
MBC_SET_PORT_PARAM (001Ah) to set default speed of 1 GB/sec. If driver
does not send this mailbox command, firmware assumes maximum supported
link speed and will operate at the max speed.
Cc: stable@vger.kernel.org
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Reported-by: Eda Zhou <ezhou@redhat.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Tested-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mpt3sas')
0 files changed, 0 insertions, 0 deletions