In addition to the local loopback available at the PMA, the 40G/50G PCS provides test pattern and remote loopback functions as illustrated in the following figure.
Figure 1. PCS Loopback
When enabled, the transmitted test pattern is continuous idle characters, which are then scrambled.