Skip to contentSkip to conversation

isci fixes for 3.1-rc

PATCH New Dan Williams 1 participant 3 messages Sep 29, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover isci fixes for 3.1-rc

The following changes since commit 96067723e46b0dd24ae7b934085ab4eff4d26a1b:

[SCSI] 3w-9xxx: fix iommu_iova leak (2011-09-26 09:28:58 -0500)

are available in the git repository at:
git://github.com:djbw/linux.git isci-fixes

Dan Williams (1):
isci: fix support for large smp requests

Jeff Skirvin (1):
isci: fix missed unlock in apc_agent_timeout()

 drivers/scsi/isci/isci.h        |    2 +-
 drivers/scsi/isci/port_config.c |    2 +-
 drivers/scsi/isci/request.c     |   49 ++++++++++++++++-----------------------
 drivers/scsi/isci/request.h     |    3 --
 drivers/scsi/isci/sas.h         |    2 -
 5 files changed, 22 insertions(+), 36 deletions(-)
#1 lore raw

PATCH 1/2 isci: fix support for large smp requests

Kill the local smp response buffer.

Besides being unnecessary, it is too small (currently truncates responses to 60 bytes). The mid-layer will have already allocated a sufficiently sized buffer, just kmap and copy into it directly.

---
 drivers/scsi/isci/isci.h    |    2 +-
 drivers/scsi/isci/request.c |   49 ++++++++++++++++++-------------------------
 drivers/scsi/isci/request.h |    3 ---
 drivers/scsi/isci/sas.h     |    2 --
 4 files changed, 21 insertions(+), 35 deletions(-)
drivers/scsi/isci/isci.h +1 -1
index d1de633..8efeb6b 100644
@@ -97,7 +97,7 @@
 #define SCU_MAX_COMPLETION_QUEUE_SHIFT	  (ilog2(SCU_MAX_COMPLETION_QUEUE_ENTRIES))
 
 #define SCU_ABSOLUTE_MAX_UNSOLICITED_FRAMES (4096)
-#define SCU_UNSOLICITED_FRAME_BUFFER_SIZE   (1024)
+#define SCU_UNSOLICITED_FRAME_BUFFER_SIZE   (1024U)
 #define SCU_INVALID_FRAME_INDEX             (0xFFFF)
 
 #define SCU_IO_REQUEST_MAX_SGE_SIZE         (0x00FFFFFF)
drivers/scsi/isci/request.c +20 -29

79 lines not on this page · raw message

drivers/scsi/isci/request.h +0 -3
index 7a1d5a9..58d70b6 100644
@@ -174,9 +174,6 @@ struct isci_request {
 			};
 		} ssp;
 		struct {
-			struct smp_resp rsp;
-		} smp;
-		struct {
 			struct isci_stp_request req;
 			struct host_to_dev_fis cmd;
 			struct dev_to_host_fis rsp;
drivers/scsi/isci/sas.h +0 -2
index 462b151..dc26b4a 100644
@@ -204,8 +204,6 @@ struct smp_req {
 	u8 req_data[0];
 }  __packed;
 
-#define SMP_RESP_HDR_SZ	4
-
 /*
  * struct sci_sas_address - This structure depicts how a SAS address is
  *    represented by SCI.
#2 lore raw

PATCH 2/2 isci: fix missed unlock in apc_agent_timeout()

In reply to Dan Williams

From: Jeff Skirvin <[email protected]>

Needed to jump to scic_lock unlock.

Also spotted by coccicheck.

---
 drivers/scsi/isci/port_config.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/isci/port_config.c +1 -1
index 486b113..38a99d2 100644
@@ -678,7 +678,7 @@ static void apc_agent_timeout(unsigned long data)
 	configure_phy_mask = ~port_agent->phy_configured_mask & port_agent->phy_ready_mask;
 
 	if (!configure_phy_mask)
-		return;
+		goto done;
 
 	for (index = 0; index < SCI_MAX_PHYS; index++) {
 		if ((configure_phy_mask & (1 << index)) == 0)