[U-Boot] [PATCH 1/4] net: sun8i_emac: Fix DMA alignment issues with the rx / tx buffers

Amit Tomer amittomer25 at gmail.com
Wed Jul 27 19:11:22 CEST 2016


Hello,

> index 7c088c3..877859c 100644
> --- a/drivers/net/sun8i_emac.c
> +++ b/drivers/net/sun8i_emac.c
> @@ -32,7 +32,8 @@
>
>  #define CONFIG_TX_DESCR_NUM    32
>  #define CONFIG_RX_DESCR_NUM    32
> -#define CONFIG_ETH_BUFSIZE     2024
> +#define CONFIG_ETH_BUFSIZE     2048
> +#define CONFIG_ETH_RXSIZE      2024 /* Note most fit in ETH_BUFSIZE */

As per the following comment made in Linux driver.

/* The datasheet said that each descriptor can transfers up to 4096bytes
+ * But latter, a register documentation reduce that value to 2048
+ * Anyway using 2048 cause strange behaviours and even BSP driver use 2047
+ */

Can we keep CONFIG_ETH_BUFSIZE to 2044 ?

Thanks,
Amit.


More information about the U-Boot mailing list