[U-Boot] [PATCH] dm: core: Ensure DMA regions start up with the cache clean

Simon Glass sjg at chromium.org
Thu Apr 13 21:16:28 UTC 2017


On 4 April 2017 at 13:00, Simon Glass <sjg at chromium.org> wrote:
> There is a strange interaction with drivers which use DMA if the cache
> starts off in a dirty state. Buffer space which the driver reads (but has
> not previously written) can contain zero bytes from alloc_priv(). This can
> cause corruption of the memory used by DMA for incoming data.
>
> Fix this and add a comment to explain the problem.
>
> This allows the dwc2 driver to work correctly with driver model, for
> example.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  drivers/core/device.c | 30 +++++++++++++++++++++++++++++-
>  1 file changed, 29 insertions(+), 1 deletion(-)

Applied to u-boot-dm


More information about the U-Boot mailing list