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>
This commit is contained in:
Dave Jiang
2011-02-23 15:57:24 -08:00
committed by Dan Williams
parent f7885c8490
commit 103a00c200
7 changed files with 80 additions and 105 deletions

View File

@@ -84,6 +84,7 @@
#include "host.h"
#include "timers.h"
#include "sci_status.h"
#include "request.h"
extern struct kmem_cache *isci_kmem_cache;
extern struct isci_firmware *isci_firmware;