[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cdi-devel] [PATCH 1/2] ata: Align DMA buffers to 64k



From: Antoine Kaufmann <toni@xxxxxxxxxx>

! ata: The busmaster DMA buffer must be aligned to 64k for DMA to
  work on real hardware, too

Signed-off-by: Antoine Kaufmann <toni@xxxxxxxxxx>
Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 ata/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ata/device.c b/ata/device.c
index 6e33d52..9afa102 100644
--- a/ata/device.c
+++ b/ata/device.c
@@ -274,7 +274,7 @@ void ata_init_controller(struct ata_controller* controller)
         controller->prdt_phys = buf->paddr.items[0].start;
 
         buf = cdi_mem_alloc(ATA_DMA_MAXSIZE,
-            CDI_MEM_PHYS_CONTIGUOUS | CDI_MEM_DMA_4G);
+            CDI_MEM_PHYS_CONTIGUOUS | CDI_MEM_DMA_4G | 16);
         controller->dma_buf_virt = buf->vaddr;
         controller->dma_buf_phys = buf->paddr.items[0].start;
 
-- 
1.6.0.2