isci fixes for 3.1-rc
Subsystems (2)
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(-)
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
@@ -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
@@ -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
@@ -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.
PATCH 2/2 isci: fix missed unlock in apc_agent_timeout()
In reply to Dan WilliamsFrom: 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
@@ -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 )