Searched hist:"5 a8a8045a928702d9b3fb6f73a4e9717040e09a9" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/core/ |
| H A D | device.c | 5a8a8045a928702d9b3fb6f73a4e9717040e09a9 Tue Apr 04 19:00:19 UTC 2017 Simon Glass <sjg@chromium.org> dm: core: Ensure DMA regions start up with the cache clean
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@chromium.org>
|