[PATCH] bcmgenet: fix Rx buffer corruption caused by lack of cache flush

Tom Rini trini at konsulko.com
Fri Jun 14 16:54:27 CEST 2024


On Sun, 02 Jun 2024 17:24:03 +0900, Yasuharu Shibata wrote:

> When bcmgenet complete to write Rx buffer with the DMA,
> some U-Boot commands write data to the buffer directly.
> Those write data will become dirty in CPU cache.
> After this driver calls free_pkt to the buffer,
> the buffer is assigned as the future Rx buffer.
> At some point, if bcmgenet writes to a buffer with DMA
> and CPU cache flushes dirty data to the buffer,
> the buffer is corrupted.
> 
> [...]

Applied to u-boot/master, thanks!

-- 
Tom




More information about the U-Boot mailing list