This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Net crasch on mpc850
- From: "Daniel Lidsten" <Daniel dot Lidsten at combitechsystems dot com>
- To: "Luoqi Chen" <lchen at onetta dot com>, <ecos-discuss at sources dot redhat dot com>, "Gary Thomas" <gthomas at ecoscentric dot com>
- Date: Mon, 12 Aug 2002 08:54:30 +0200
- Subject: RE: [ECOS] Net crasch on mpc850
Hi,
This was a very good tip. I havent tried it yet so i dont know if it was
the reason for my crasches. However, i can find the below *_INVALIDATE
on two places. As you mentioned it is located in the *_send function but
also in the quicc_eth_recv function. Should it be replaced with _FLUSH
there too?
Regards, Daniel
> There was a bug in SCC ethernet driver that mistakenly
> invalidated data cache for the transmit buffer instead of
> flushing it: search for line
> HAL_DCACHE_INVALIDATE(txbd->buffer, txbd->length);
> in file devs/eth/powerpc/quicc/current/src/if_quicc.c,
> it should be replaced with
> HAL_DCACHE_FLUSH(txbd->buffer, txbd->length);
> I'm not sure if this has been fixed in the CVS repository lately.
>
> The SMC serial driver handles the cache correctly.
>
> -lq
>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss