[PATCH v2 4/9] pm80xx: add support for ATTO devices during SAS address initiailization

2015-11-02 Thread Benjamin Rood
ATTO SAS controllers retrieve the SAS address from the NVRAM in a location different from non-ATTO PMC Sierra SAS controllers. This patch makes the necessary adjustments in order to retrieve the SAS address on these types of adapters. Signed-off-by: Benjamin Rood --- Changes from v1 ->

[PATCH v2 7/9] pm80xx: wait a minimum of 500ms before issuing commands to SPCv

2015-11-02 Thread Benjamin Rood
;racy', it is called out in the chip documentation and inserting this delay makes power management function properly. Signed-off-by: Benjamin Rood --- Changes from v1 -> v2: -Used mdelay(500) instead of a loop to facilitate required delay -Added comment as to why this be

[PATCH] pm80xx: remove the SCSI host before detaching from SAS transport

2015-10-30 Thread Benjamin Rood
[2] http://marc.info/?l=linux-scsi&m=144416476406993&w=2 Signed-off-by: Benjamin Rood --- drivers/scsi/pm8001/pm8001_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index bdc624f..b1

[PATCH 2/8] pm80xx: add support for PMC Sierra 8070 and PMC Sierra 8072 SAS controllers

2015-10-30 Thread Benjamin Rood
These SAS controllers support speeds up to 12Gb. Signed-off-by: Benjamin Rood --- drivers/scsi/pm8001/pm8001_defs.h | 2 ++ drivers/scsi/pm8001/pm8001_init.c | 4 +++- drivers/scsi/pm8001/pm8001_sas.h | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/pm8001

[PATCH 4/8] pm80xx: add support for ATTO devices during SAS address initiailization

2015-10-30 Thread Benjamin Rood
ATTO SAS controllers retrieve the SAS address from the NVRAM in a location different from non-ATTO PMC Sierra SAS controllers. This patch makes the necessary adjustments in order to retrieve the SAS address on these types of adapters. Signed-off-by: Benjamin Rood --- drivers/scsi/pm8001

[PATCH 5/8] pm80xx: set PHY profiles for ATTO 12Gb SAS controllers

2015-10-30 Thread Benjamin Rood
PHY profiles are not saved in NVRAM on ATTO 12Gb SAS controllers. Therefore, in order for the controller to function in a wide range of configurations, the PHY profiles must be statically set. This patch provides the necessary functionality to do so. Signed-off-by: Benjamin Rood --- drivers

[PATCH 6/8] pm80xx: do not examine registers for iButton feature if ATTO adapter

2015-10-30 Thread Benjamin Rood
ATTO adapters do not support this feature. If the firmware fails to be ready, it should not check the examined registers in order to examine the state of the feature in order to prevent undefined behavior. Signed-off-by: Benjamin Rood --- drivers/scsi/pm8001/pm80xx_hwi.c | 2 ++ 1 file changed

[PATCH 8/8] pm80xx: avoid a panic if MSI(X) interrupts are disabled

2015-10-30 Thread Benjamin Rood
legacy interrupts are being used otherwise legacy interrupts will simply not function and result in another panic. Signed-off-by: Benjamin Rood --- drivers/scsi/pm8001/pm8001_init.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/pm8001

[PATCH 3/8] pm80xx: add ATTO PCI IDs to pm8001_pci_table

2015-10-30 Thread Benjamin Rood
These PCI IDs allow the pm8001 driver to load against ATTO 12Gb SAS controllers that use PMC Sierra 8070 and PMC Sierra 8072 SAS chips. Signed-off-by: Benjamin Rood --- drivers/scsi/pm8001/pm8001_init.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/scsi/pm8001

[PATCH 1/8] pm80xx: configure PHY settings based on subsystem vendor ID

2015-10-30 Thread Benjamin Rood
Adaptec and ATTO controllers since they do not store PHY settings in NVRAM and choose to use either custom PHY settings or chip defaults. Loading random values from NVRAM may cause the controllers to malfunction in this edge case. Signed-off-by: Benjamin Rood --- drivers/scsi/pm8001/pm8001_init.c

[PATCH 7/8] pm80xx: wait a minimum of 500ms before issuing commands to SPCv

2015-10-30 Thread Benjamin Rood
;racy', it is called out in the chip documentation and inserting this delay makes power management function properly. Signed-off-by: Benjamin Rood --- drivers/scsi/pm8001/pm8001_init.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/scsi/pm8001/pm8001_init.c b/dr

[PATCH 0/8] pm80xx: Add ATTO 12Gb HBA support and fix various issues

2015-10-30 Thread Benjamin Rood
The following series of patches are primarily aimed at adding support for ATTO's 12Gb SAS adapters, which are based off of the PMC-Sierra 8070/8072 series chips. I have also addressed other various issues that were discovered during our testing and verification phase, mainly with resume-from-sleep