]> git.baikalelectronics.ru Git - kernel.git/commit
isci: Make the driver copy data directly from and to sg for PIO
authorDave Jiang <dave.jiang@intel.com>
Wed, 23 Feb 2011 23:57:24 +0000 (15:57 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 10:55:28 +0000 (03:55 -0700)
commit4554e00bceb144f0507b85036f3c504c80a6cb1e
tree316e592940b954f6e670b1a399375e5b32ecb346
parent6fd3a623cd39b89ecb1e99dff8eed6ce577f69cc
isci: Make the driver copy data directly from and to sg for PIO

We can copy the data directly to and from sg for SATA PIO read operations.
There is no reason to involve the hardware SGL. In the process we also need
to kmap the sg because we don't know where that can come from.

We also do to not call phys_to_virt(). The driver already has the information.
We can just calculcate the appropriate offets.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/core/sci_util.c
drivers/scsi/isci/core/sci_util.h
drivers/scsi/isci/core/scic_sds_request.c
drivers/scsi/isci/core/scic_sds_request.h
drivers/scsi/isci/core/scic_sds_stp_request.c
drivers/scsi/isci/core/scic_sds_stp_request.h
drivers/scsi/isci/isci.h