[PATCH] net: ftgmac100: Modify desc. size to cache line

Leo Liang ycliang at andestech.com
Mon Sep 9 09:50:05 CEST 2024


On Fri, Jun 28, 2024 at 05:38:50PM +0800, Jacky Chou wrote:
> The TX/RX descriptor size is 16 byte.
> When the cache line size is larger than 16 bytes, descriptors
> flushed to RAM will flush more than one descriptor.
> It is possible that it may mistakenly flush to other descriptor
> that has been updated by MAC in RAM.
> 
> To avoid this issue, align the descriptors to cache line size.
> Only one desc will be flushed or invalidated at a time.
> 
> Signed-off-by: Jacky Chou <jacky_chou at aspeedtech.com>
> ---
>  drivers/net/ftgmac100.c | 13 ++++++++++++-
>  drivers/net/ftgmac100.h |  5 +++--
>  2 files changed, 15 insertions(+), 3 deletions(-)

Acked-by: Leo Yu-Chi Liang <ycliang at andestech.com>


More information about the U-Boot mailing list