ata: sata_dwc_460ex: set dma_boundary to 0x1fff
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 26 Apr 2016 09:03:04 +0000 (12:03 +0300)
committerTejun Heo <tj@kernel.org>
Tue, 10 May 2016 16:29:18 +0000 (12:29 -0400)
The original code states:

Make sure a LLI block is not created that will span 8K max FIS
boundary. If the block spans such a FIS boundary, there is a chance
that a DMA burst will cross that boundary -- this results in an error
in the host controller.

Since we have switched to generic DMAengine API we satisfy above by setting
dma_boundary value to 0x1fff.

Suggested-by: Mans Rullgard <mans@mansr.com>
Tested-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_dwc_460ex.c

index 7f953892647ae25ba08a7773206677e8216de25e..aee887350fa3a48a54acfe129bbb01f0ed062501 100644 (file)
@@ -1151,7 +1151,13 @@ static struct scsi_host_template sata_dwc_sht = {
         */
        .sg_tablesize           = LIBATA_MAX_PRD,
        /* .can_queue           = ATA_MAX_QUEUE, */
-       .dma_boundary           = ATA_DMA_BOUNDARY,
+       /*
+        * Make sure a LLI block is not created that will span 8K max FIS
+        * boundary. If the block spans such a FIS boundary, there is a chance
+        * that a DMA burst will cross that boundary -- this results in an
+        * error in the host controller.
+        */
+       .dma_boundary           = 0x1fff /* ATA_DMA_BOUNDARY */,
 };
 
 static struct ata_port_operations sata_dwc_ops = {
This page took 0.027113 seconds and 5 git commands to generate.