English
Language : 

PNX17XX Datasheet, PDF (749/832 Pages) NXP Semiconductors – Connected Media Processor
Philips Semiconductors
Volume 1 of 1
PNX17xx Series
Chapter 23: LAN100 — Ethernet Media Access Controller
• Packet transmission can cause errors including LateCollision,
ExcessiveCollision, ExcessiveDefer, NoDescriptor, and Underrun. These errors
are reported back in the transmission status word and in the interrupt status
register. For more information refer to Section 4.2 and Section 5.4.
6.7 Cache coherency
Because the device driver can produce descriptors with write-only operations and
consume the status fields with read-only operations, transfers can be made “cache
safe,” and descriptors can be packed together in cache blocks and cached. Status
words can also be packed together. The device driver must take care of cache
coherency if cache coherency is not enforced by a snooping cache in the host
processor.
If the device driver doesn’t own all of the status words in a cache block that contains
multiple status words, then the Ethernet hardware may be writing to a status field in
memory while that status is also included in a cache block loaded in the host
processor’s cache, causing the values for that status in the host cache to be stale.
This can be solved by invalidating these cache blocks and causing them to be read
again from the host memory whenever the device driver receives ownership of these
status words, that is, when the Tx(Rt)ConsumeIndex or RxProduceIndex are
updated.
Before updating the Tx(Rt)ProduceIndex or RxConsumeIndex, the device driver must
make sure the associated descriptors are written back from the cache to the memory
so that the new descriptor values become visible to the Ethernet hardware. When
flushing these cache blocks, care must be taken not to modify the fields of descriptors
that are already owned by the Ethernet hardware.
Alternatively, the device driver can use non-cached memory traffic for the descriptors
and statuses. In that case, there is no need to worry about cache coherency,
however, a higher amount of memory traffic may be required for the descriptors and
status words.
PNX17XX_SER_1
Preliminary data sheet
Rev. 1 — 17 March 2006
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
23-76