[PATCH] arch/ppc/8xx_io/enet.c, version 2
Hans Feldt
Hans.Feldt at uab.ericsson.se
Thu Nov 14 00:50:14 EST 2002
On 10/24/02 04:23 PM, Joakim Tjernlund wrote:
> Hi
>
> This is the second version of my patch that removes the expensive memcpy of
> received
> ethernet frames in interrupt context.
Isn't it so that this patch works because you have snooping? Without
snooping the driver would fail because of cache line replacement which
could trash received data.
The buffer invalidate in this case is unneeded. But if you wanna
optimise you should invalidate the whole buffer before giving it to DMA
thus getting rid of the flush implied by memory coherence.
Tried this out in a driver for a processor without snooping, now and
then received packets got corrupted, cache line wise...
Just trying to understand how things really work, please correct me if I
am wrong.
Cheers,
Hans
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list