HomeFreeBSD

arge: do an explicit flush between updating the TX ring and starting transmit.

Description

arge: do an explicit flush between updating the TX ring and starting transmit.

The MIPS busdma sync operations currently are a big no-op on coherent memory.
This isn't strictly correct behaviour as we need a SYNC in here to ensure that
the writes have finished and are visible in main memory before the MMIO accesses
occur. This will have to be addressed in a later commit.

But, before that happens, let's at least do a flush here to make things
more "correct".

This is required for even remotely sensible behaviour on mips74k with
write-through memory enabled.

Details

Provenance
adrianAuthored on
Parents
rS290212: arge_mdio: add explicit read barriers for MDIO_READs.
Branches
Unknown
Tags
Unknown