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

[tyndur-devel] [PATCH 8/9] ata: Puffer fuer DMA auf 64K ausrichten



From: Antoine Kaufmann <toni@xxxxxxxxxx>

! ata: Der Puffer fuer Busmaster-DMA muss auf 64K ausgerichtet sein
       damit DMA auch auf echter Hardware tut.

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

diff --git a/src/modules/cdi/ata/device.c b/src/modules/cdi/ata/device.c
index 6e33d52..9afa102 100644
--- a/src/modules/cdi/ata/device.c
+++ b/src/modules/cdi/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