megaraid_sas: Update for scsi for-next
Subsystems (3)
cover megaraid_sas: Update for scsi for-next
(Re-sending with git-send-email on advice of Martin Petersen @ Oracle)
James/linux-scsi,
The following patch series for megaraid_sas brings the driver up to v06.803.02.00-rc1.
1. Fix reset_mutex leak in megasas_reset_fusion().
2. Remove unused variables in megasas_instance.
3. Fix LD/VF affiliation parsing.
4. Version and Changelog update.
Adam Radford (4):
megaraid_sas: Fix reset_mutex leak
megaraid_sas: Removed unused variables in megasas_instance
megaraid_sas: Fix LD/VF affiliation parsing
megaraid_sas: Version and Changelog update
Documentation/scsi/ChangeLog.megaraid_sas | 13 +++++ drivers/scsi/megaraid/megaraid_sas.h | 9 ++- drivers/scsi/megaraid/megaraid_sas_base.c | 90 ++++++++++++++++++++--------- drivers/scsi/megaraid/megaraid_sas_fusion.c | 1 + 4 files changed, 82 insertions(+), 31 deletions(-)
Signature · 1 line
1.7.11.7
PATCH 1/4 megaraid_sas: Fix reset_mutex leak
James/linux-scsi,
The following patch for megaraid_sas fixes a reset_mutex leak in megasas_reset_fusion().
--- drivers/scsi/megaraid/megaraid_sas_fusion.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/megaraid/megaraid_sas_fusion.c +1 -0
@@ -2355,6 +2355,7 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int iotimeout)printk (KERN_WARNING "megaraid_sas: Hardware critical error, " "returning FAILED for scsi%d.\n" , instance->host->host_no); +mutex_unlock (&instance->reset_mutex);return FAILED ; }
Signature · 1 line
1.7.11.7
PATCH 2/4 megaraid_sas: Removed unused variables in megasas_instance
In reply to Adam RadfordJames/linux-scsi,
The following patch for megaraid_sas removes some unused variables from the megasas_instance structure.
--- drivers/scsi/megaraid/megaraid_sas.h | 2 -- 1 file changed, 2 deletions(-)
drivers/scsi/megaraid/megaraid_sas.h +0 -2
@@ -1633,8 +1633,6 @@ struct megasas_instance {struct timer_list sriov_heartbeat_timer;char skip_heartbeat_timer_del;u8 requestorId; -u64 initiator_sas_address; -u64 ld_sas_address[64 ];char PlasmaFW111;char mpio;int throttlequeuedepth;
Signature · 1 line
1.7.11.7
PATCH 3/4 megaraid_sas: Fix LD/VF affiliation parsing
In reply to Adam RadfordJames/linux-scsi,
The following patch for megaraid_sas fixes the LD/VF affiliation policy parsing code to account for LD targetId's and Hidden LD's (not yet affiliated with any Virtual Functions).
--- drivers/scsi/megaraid/megaraid_sas.h | 1 + drivers/scsi/megaraid/megaraid_sas_base.c | 88 ++++++++++++++++++++++--------- 2 files changed, 64 insertions(+), 25 deletions(-)
drivers/scsi/megaraid/megaraid_sas.h +1 -0
@@ -1659,6 +1659,7 @@ struct MR_LD_VF_AFFILIATION {/* Plasma 1.11 FW backward compatibility structures */ #define IOV_111_OFFSET 0x7CE#define MAX_VIRTUAL_FUNCTIONS 8 +#define MR_LD_ACCESS_HIDDEN 15struct IOV_111 {u8 maxVFsSupported;
drivers/scsi/megaraid/megaraid_sas_base.c +63 -25
113 lines not on this page · raw message
Signature · 1 line
1.7.11.7
Re: [PATCH 3/4] megaraid_sas: Fix LD/VF affiliation parsing
Quoted 3 lines · Adam Radford
James/linux-scsi,
The following patch for
megaraid_sasfixes the LD/VF affiliation policy parsing code to account for LD targetId's and Hidden LD's (not yet affiliated with any Virtual Functions).
Hi Adam,
this doesn't address Martins comment about removing the initial != 0 case. And while we're at it there basically is no significant shared code between the PlasmaFW111 and !PlasmaFW111, so split these into two different functions. With those two levels of indentation removed the code might actually become readable, too.
Also please remove the "James/linux-scsi," address in the individual patches, that's something that should just go into the cover letter, and make sure to include all "Reviewed-by:" and "Acked-by:" tags when resending already reviewd patches.
Thanks,
Christoph
Re: [PATCH 3/4] megaraid_sas: Fix LD/VF affiliation parsing
Quoted 13 lines · Christoph Hellwig
Quoted 3 lines · Adam Radford
James/linux-scsi,
The following patch for
megaraid_sasfixes the LD/VF affiliation policy parsing code to account for LD targetId's and Hidden LD's (not yet affiliated with any Virtual Functions).Hi Adam,
this doesn't address Martins comment about removing the initial != 0 case. And while we're at it there basically is no significant shared code between the PlasmaFW111 and !PlasmaFW111, so split these into two different functions. With those two levels of indentation removed the code might actually become readable, too.
Quoted 7 lines
Also please remove the "James/linux-scsi," address in the individual patches, that's something that should just go into the cover letter, and make sure to include all "Reviewed-by:" and "Acked-by:" tags when resending already reviewd patches.
Thanks,
Christoph
Christoph,
Thanks for your and Martin's feedback.
Actually there is a missing call to megasas_get_ld_vf_affiliation() with initial = 1 that should be at the bottom of megasas_probe_one(). This got dropped inadvertently during a manual merge. I will add that and split the megasas_get_ld_vf_affiliation() function into 2 functions (as you suggested) and resubmit the patch series while including all currently received "Reviewed-by" and "Acked-by" messages for the other patches and dropping the "James/linux-scsi" text.
-Adam
PATCH 4/4 megaraid_sas: Version and Changelog update
In reply to Adam RadfordJames/linux-scsi,
The following patch for megaraid_sas updates the driver version and Documentation/scsi/ChangeLog.megaraid_sas.
--- Documentation/scsi/ChangeLog.megaraid_sas | 13 +++++++++++++ drivers/scsi/megaraid/megaraid_sas.h | 6 +++--- drivers/scsi/megaraid/megaraid_sas_base.c | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-)
Documentation/scsi/ChangeLog.megaraid_sas +13 -0
@@ -1,3 +1,16 @@ +Release Date : Thu. Jun 19, 2014 17:00:00 PST 2014 - + (emaild-id:[email protected]) + Adam Radford + Kashyap Desai + Sumit Saxena + Uday Lingala +Current Version : 06.803.02.00-rc1 +Old Version : 06.803.01.00-rc1 + 1. Fix reset_mutex leak in megasas_reset_fusion(). + 2. Remove unused variables in megasas_instance. + 3. Fix LD/VF affiliation parsing. + 4. Version and Changelog update. +------------------------------------------------------------------------------- Release Date : Mon. Mar 10, 2014 17:00:00 PST 2014 - (emaild-id:[email protected]) Adam Radford
drivers/scsi/megaraid/megaraid_sas.h +3 -3
@@ -33,9 +33,9 @@/* * MegaRAID SAS Driver meta data */ -#define MEGASAS_VERSION "06.803.01.00-rc1" -#define MEGASAS_RELDATE "Mar. 10, 2014" -#define MEGASAS_EXT_VERSION "Mon. Mar. 10 17:00:00 PDT 2014" +#define MEGASAS_VERSION "06.803.02.00-rc1" +#define MEGASAS_RELDATE "Jun. 19, 2014" +#define MEGASAS_EXT_VERSION "Thu. Jun. 19 17:00:00 PDT 2014"/* * Device IDs
drivers/scsi/megaraid/megaraid_sas_base.c +1 -1
@@ -18,7 +18,7 @@* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * FILE: megaraid_sas_base.c -* Version : 06.803.01.00-rc1 +* Version : 06.803.02.00-rc1 * * Authors: LSI Corporation * Sreenivas Bagalkote
Signature · 1 line
1.7.11.7