User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 516
UG585 (v1.11) September 27, 2016
Chapter 16: Gigabit Ethernet Controller
Table 16-6: RX Status Errors
Error Condition Necessary Action
Hresp not OK This is a condition from which the controller cannot recover easily. Re-initialize the
controller and buffer descriptors for receive and transmit paths after clearing the
relevant register status bits: gem.rx_status[hresp_not_ok] and
gem.intr_status[hresp_not_ok].
Receive overrun This condition implies that the packet is dropped because the packet buffer is full and
occurs occasionally when the controller is unable to process the packets when they
arrive very fast. In most conditions, no action for error recovery needs to be taken.
Ensure that the packet buffer is configured for 8 KB (see section 16.3.2 Configure the
Controller) and clear bits gem.rx_status[rx_overrun] and gem.intr_status[rx_overrun].
Buffer not available This condition implies that the controller could not get a buffer descriptor with the
ownership bit set to 0. It can also mean that the software is unable to keep pace with
the incoming packet rate. Clear bits gem.rx_status[buffer_not_avail] and
gem.intr_status[rx_used_read] in the interrupt handler. Attempt increasing the number
of buffer descriptors on the receive path to allocate more number of buffers. The
software processing can be optimized further to accelerate processing of received
frames.
Table 16-7: TX Status Errors
Error Condition Necessary Action
Hresp not OK This is a condition from which the controller cannot recover easily. Re-initialize the
controller and buffer descriptors for receive and transmit paths after clearing the
relevant register status bits: gem.tx_status[hresp_not_ok] and
gem.intr_status[hresp_not_ok].
Transmit underrun This implies a severe error condition on the transmit side in processing of the transmit
buffers and buffer descriptors. For effective error recovery, the software must disable
the transmitter by writing a 0 to the gem.net_ctrl[tx_en] bit, then re-initialize the buffer
descriptors on the transmit side and enable the transmitter by writing a 1 to the
gem.net_ctrl[tx_en] bit. The bit gem.tx_status[tx_under_run] must be cleared in the
interrupt handler.
Transmit buffer
exhausted
This is a severe error condition on the transmit side. For effective error recovery, the
software must disable the transmitter by writing a a 0 to the gem.net_ctrl[tx_en] bit,
then re-initialize the transmit buffer descriptors and transmitter. The register bits
gem.tx_status[tx_corr_ahb_err] and gem.intr_status[tx_corrupt_ahb_err] must be
cleared in the interrupt handler.
Retry limit exceeded This implies there are a series of collisions for which an Ethernet frame could not be
sent out even with a number of retries in half-duplex communication. This Ethernet
frames are dropped at the transmitter. The bits gem.tx_status[retry_limit_exceeded]
and gem.intr_status[retry_ex_late_collisn]must be cleared in the interrupt handler. No
drastic measures need to be taken for this error. However it could also mean that there
is a duplex setting mismatch.
Collisions This error indicates that there are collisions for half duplex communication. Some
collisions are expected in half duplex mode and can be ignored. When a collision
occurs, the frame is retransmitted after a while and the frame is not dropped. The
register bit gem.tx_status[collision] must be cleared in the interrupt handler.