dcache and 8260_io/fcc_enet.c

3 messages, 2 authors, 2002-11-01 · open the first message on its own page

dcache and 8260_io/fcc_enet.c

From: Dayton, Dean <hidden>
Date: 2002-11-01 15:30:10

I noticed that fcc_enet_start_xmit() does not flush the transmit data before
setting up the transmit buffer descriptor. I get the impression that this is
not necessary. But I don't understand why. I have spent the morning looking
through code and Motorola docs and am non the wiser.

Thanks
Dean

-------------
Dean Dayton
System Architect - Applied Innovation Inc.
(614)923-1174
deand@aiinet.com


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

RE: dcache and 8260_io/fcc_enet.c

From: Joakim Tjernlund <hidden>
Date: 2002-11-01 15:46:58

I noticed that fcc_enet_start_xmit() does not flush the transmit data before
setting up the transmit buffer descriptor. I get the impression that this is
not necessary. But I don't understand why. I have spent the morning looking
through code and Motorola docs and am non the wiser.
That's because the 8260 CPU understand the CPU caches and, while the 8xx does not
and therefore needs a flush_dcache_range().

    Jocke
Thanks
Dean

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

RE: dcache and 8260_io/fcc_enet.c

From: Joakim Tjernlund <hidden>
Date: 2002-11-01 16:01:29

Crap, disregard my previous mail.

The 8260 CPM is aware of the CPU dcache and therefor you don't need to flush
the data before handing the buffer over to the CPM. The CPM 8xx family CPU
has no understanding of the CPU caches and needs an explicit flush.

  Jocke
quoted
I noticed that fcc_enet_start_xmit() does not flush the transmit data before
setting up the transmit buffer descriptor. I get the impression that this is
not necessary. But I don't understand why. I have spent the morning looking
through code and Motorola docs and am non the wiser.
That's because the 8260 CPU understand the CPU caches and, while the 8xx does not
and therefore needs a flush_dcache_range().

    Jocke
quoted
Thanks
Dean


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help