[U-Boot] [PATCH] mmc/dw_mmc: Fix DMA descriptor corruption
Pantelis Antoniou
pantelis.antoniou at gmail.com
Fri Sep 6 13:32:11 CEST 2013
Hi Mischa,
On Jul 26, 2013, at 3:08 PM, Mischa Jonker wrote:
> In dwmci_prepare_data, the descriptors are allocated for DMA transfer.
> These are allocated using the ALLOC_CACHE_ALIGN_BUFFER. This macro uses
> the stack to allocate these descriptors. This becomes a problem if the
> DMA transfer continues after the processor leaves the function in which
> the descriptors were allocated.
>
> Therefore, I have moved the allocated of the buffers up one level, to
> dwmci_send_cmd(). The DMA transfer should be complete when leaving this
> function.
>
> Signed-off-by: Mischa Jonker <mjonker at synopsys.com>
> Cc: Alexey Brodkin <abrodkin at synopsys.com>
> Cc: Jaehoon Chung <jh80.chung at samsung.com>
> Cc: Andy Fleming <afleming at gmail.com>
Acked-by: Pantelis Antoniou <panto at antoniou-consulting.com>
Thanks
More information about the U-Boot
mailing list