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 <[email protected]>
> ---
>  drivers/net/ftgmac100.c | 13 ++++++++++++-
>  drivers/net/ftgmac100.h |  5 +++--
>  2 files changed, 15 insertions(+), 3 deletions(-)

Acked-by: Leo Yu-Chi Liang <[email protected]>

Reply via email to