[U-Boot] [PATCH] net: macb: Fix rx buffer cache handling

Bin Meng bmeng.cn at gmail.com
Mon Aug 26 07:35:16 UTC 2019


On Mon, Aug 26, 2019 at 3:18 PM Stefan Roese <sr at denx.de> wrote:
>
> With commit c6d07bf440bc ("net/macb: increase RX buffer size for GEM")
> ethernet support does not work any more with d-cache enabled on the
> AT91SAM. The reason is, that MACB_RX_BUFFER_SIZE was changed from 4096
> to 128 but this change was not refected in the rx_buffer flush and
> invalidate functions, as these also use this macro.
>
> This patch now fixes this by calculating the rx buffer size correctly
> again in those functions. With this change, ethernet works again
> reliably on my AT91SAM board.
>
> Signed-off-by: Stefan Roese <sr at denx.de>
> Fixes: c6d07bf440bc ("net/macb: increase RX buffer size for GEM")
> Cc: Ramon Fried <rfried.dev at gmail.com>
> Cc: Eugen Hristev <eugen.hristev at microchip.com>
> Cc: Anup Patel <anup.patel at wdc.com>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> ---
>  drivers/net/macb.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Tested-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list