Skip to content

Commit

Permalink
isci: simplify dma coherent allocation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Dan Williams committed Jul 3, 2011
1 parent 524b5f7 commit bc5c967
Show file tree
Hide file tree
Showing 11 changed files with 111 additions and 903 deletions.
1 change: 0 additions & 1 deletion drivers/scsi/isci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ isci-objs := init.o phy.o request.o sata.o \
core/scic_sds_smp_remote_device.o \
core/scic_sds_remote_node_table.o \
core/scic_sds_unsolicited_frame_control.o \
core/sci_base_memory_descriptor_list.o \
core/sci_base_state_machine.o \
core/sci_util.o
159 changes: 0 additions & 159 deletions drivers/scsi/isci/core/sci_base_memory_descriptor_list.c

This file was deleted.

153 changes: 0 additions & 153 deletions drivers/scsi/isci/core/sci_base_memory_descriptor_list.h

This file was deleted.

Loading

0 comments on commit bc5c967

Please sign in to comment.