Commit c0dcffd7 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by Jens Axboe

qla1280: sg chaining fixes

Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 0874ee76
...@@ -2977,8 +2977,8 @@ qla1280_64bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp) ...@@ -2977,8 +2977,8 @@ qla1280_64bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp)
cpu_to_le32(pci_dma_hi32(dma_handle)), cpu_to_le32(pci_dma_hi32(dma_handle)),
cpu_to_le32(pci_dma_lo32(dma_handle)), cpu_to_le32(pci_dma_lo32(dma_handle)),
cpu_to_le32(sg_dma_len(s))); cpu_to_le32(sg_dma_len(s)));
remseg--;
} }
remseg -= cnt;
dprintk(5, "qla1280_64bit_start_scsi: " dprintk(5, "qla1280_64bit_start_scsi: "
"continuation packet data - b %i, t " "continuation packet data - b %i, t "
"%i, l %i \n", SCSI_BUS_32(cmd), "%i, l %i \n", SCSI_BUS_32(cmd),
...@@ -3250,6 +3250,8 @@ qla1280_32bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp) ...@@ -3250,6 +3250,8 @@ qla1280_32bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp)
/* Load continuation entry data segments. */ /* Load continuation entry data segments. */
for_each_sg(sg, s, remseg, cnt) { for_each_sg(sg, s, remseg, cnt) {
if (cnt == 7)
break;
*dword_ptr++ = *dword_ptr++ =
cpu_to_le32(pci_dma_lo32(sg_dma_address(s))); cpu_to_le32(pci_dma_lo32(sg_dma_address(s)));
*dword_ptr++ = *dword_ptr++ =
...@@ -3260,6 +3262,7 @@ qla1280_32bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp) ...@@ -3260,6 +3262,7 @@ qla1280_32bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp)
cpu_to_le32(pci_dma_lo32(sg_dma_address(s))), cpu_to_le32(pci_dma_lo32(sg_dma_address(s))),
cpu_to_le32(sg_dma_len(s))); cpu_to_le32(sg_dma_len(s)));
} }
remseg -= cnt;
dprintk(5, "qla1280_32bit_start_scsi: " dprintk(5, "qla1280_32bit_start_scsi: "
"continuation packet data - " "continuation packet data - "
"scsi(%i:%i:%i)\n", SCSI_BUS_32(cmd), "scsi(%i:%i:%i)\n", SCSI_BUS_32(cmd),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment