isci: simplify dma coherent allocation
authorChristoph Hellwig <hch@infradead.org>
Sat, 2 Apr 2011 12:15:04 +0000 (08:15 -0400)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:00:37 +0000 (04:00 -0700)
commitbc5c96748a5f2067193faa8131b2aa5f9775d309
tree509dc1a4e1cd2859f9c521af6c41b0a955226bc2
parent524b5f723be8a1d966c1285d69810bc461f181c2
isci: simplify dma coherent allocation

Remove the insane infrastructure for preallocating coheren DMA regions,
and just allocate the memory where needed.  This also gets rid of the
aligment adjustments given that Documentation/DMA-API-HOWTO.txt sais:

  "The cpu return address and the DMA bus master address are both
   guaranteed to be aligned to the smallest PAGE_SIZE order which
   is greater than or equal to the requested size.  This invariant
   exists (for example) to guarantee that if you allocate a chunk
   which is smaller than or equal to 64 kilobytes, the extent of the
   buffer you receive will not cross a 64K boundary."

Signed-off-by: Christoph Hellwig <hch@lst.de>
[djbw: moved allocation from start to init, re-add memset]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/Makefile
drivers/scsi/isci/core/sci_base_memory_descriptor_list.c [deleted file]
drivers/scsi/isci/core/sci_base_memory_descriptor_list.h [deleted file]
drivers/scsi/isci/core/sci_memory_descriptor_list.h [deleted file]
drivers/scsi/isci/core/scic_controller.h
drivers/scsi/isci/core/scic_sds_controller.c
drivers/scsi/isci/core/scic_sds_controller.h
drivers/scsi/isci/core/scic_sds_unsolicited_frame_control.c
drivers/scsi/isci/core/scic_sds_unsolicited_frame_control.h
drivers/scsi/isci/host.c
drivers/scsi/isci/host.h