| 1 | /***********************license start*********************************** |
| 2 | * Copyright (c) 2003-2017 Cavium Inc. ([email protected]). All rights |
| 3 | * reserved. |
| 4 | * |
| 5 | * |
| 6 | * Redistribution and use in source and binary forms, with or without |
| 7 | * modification, are permitted provided that the following conditions are |
| 8 | * met: |
| 9 | * |
| 10 | * * Redistributions of source code must retain the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer. |
| 12 | * |
| 13 | * * Redistributions in binary form must reproduce the above |
| 14 | * copyright notice, this list of conditions and the following |
| 15 | * disclaimer in the documentation and/or other materials provided |
| 16 | * with the distribution. |
| 17 | * |
| 18 | * * Neither the name of Cavium Inc. nor the names of |
| 19 | * its contributors may be used to endorse or promote products |
| 20 | * derived from this software without specific prior written |
| 21 | * permission. |
| 22 | * |
| 23 | * This Software, including technical data, may be subject to U.S. export |
| 24 | * control laws, including the U.S. Export Administration Act and its |
| 25 | * associated regulations, and may be subject to export or import |
| 26 | * regulations in other countries. |
| 27 | * |
| 28 | * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
| 29 | * AND WITH ALL FAULTS AND CAVIUM INC. MAKES NO PROMISES, REPRESENTATIONS OR |
| 30 | * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT |
| 31 | * TO THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY |
| 32 | * REPRESENTATION OR DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT |
| 33 | * DEFECTS, AND CAVIUM SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES |
| 34 | * OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR |
| 35 | * PURPOSE, LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, |
| 36 | * QUIET POSSESSION OR CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK |
| 37 | * ARISING OUT OF USE OR PERFORMANCE OF THE SOFTWARE LIES WITH YOU. |
| 38 | ***********************license end**************************************/ |
| 39 | #ifndef __BDK_QLM_ERRATA_H__ |
| 40 | #define __BDK_QLM_ERRATA_H__ |
| 41 | |
| 42 | /** |
| 43 | * Errata GSER-25992 - RX EQ Default Settings Update<p> |
| 44 | * For all GSER and all lanes when not PCIe EP: |
| 45 | * set GSER()_LANE()_RX_CFG_4[CFG_RX_ERRDET_CTRL<13:8>] = 13 (decimal) |
| 46 | * set GSER()_LANE()_RX_CTLE_CTRL[PCS_SDS_RX_CTLE_BIAS_CTRL] = 3 |
| 47 | * Applied when SERDES are configured for 8G and 10G.<p> |
| 48 | * Applies to: |
| 49 | * CN88XX pass 1.x |
| 50 | * Fixed in hardware: |
| 51 | * CN88XX pass 2.x |
| 52 | * CN81XX |
| 53 | * CN83XX |
| 54 | * |
| 55 | * @param node Node to apply errata fix for |
| 56 | * @param qlm QLM to apply errata fix to |
| 57 | * @param baud_mhz QLM speed in Mhz |
| 58 | * |
| 59 | * @return Zero on success, negative on failure |
| 60 | */ |
| 61 | int __bdk_qlm_errata_gser_25992(bdk_node_t node, int qlm, int baud_mhz); |
| 62 | |
| 63 | /** |
| 64 | * (GSER-26150) 10G PHY PLL Temperature Failure |
| 65 | * |
| 66 | * 10 Gb temperature excursions can cause lock failure. Change |
| 67 | * the calibration point of the VCO at start up to shift some |
| 68 | * available range of the VCO from -deltaT direction to the |
| 69 | * +deltaT ramp direction allowing a greater range of VCO |
| 70 | * temperatures before experiencing the failure. |
| 71 | * |
| 72 | * Applies to: |
| 73 | * CN88XX pass 1.x |
| 74 | * Fix in hardware: |
| 75 | * CN88XX pass 2.x |
| 76 | * CN81XX |
| 77 | * CN83XX |
| 78 | * |
| 79 | * Only applies to QLMs running 8G and 10G |
| 80 | * |
| 81 | * @param node Node to apply errata to |
| 82 | * @param qlm QLM to apply errata fix to |
| 83 | * |
| 84 | * @return Zero on success, negative on failure |
| 85 | */ |
| 86 | int __bdk_qlm_errata_gser_26150(bdk_node_t node, int qlm, int baud_mhz); |
| 87 | |
| 88 | /** |
| 89 | * Errata (GSER-26636) 10G-KR/40G-KR - Inverted Tx Coefficient Direction Change |
| 90 | * Applied to all 10G standards (required for KR) but also applied to other |
| 91 | * standards in case software training is used. |
| 92 | * Applies to: |
| 93 | * CN88XX pass 1.x |
| 94 | * Fixed in hardware: |
| 95 | * CN88XX pass 2.x |
| 96 | * CN81XX |
| 97 | * CN83XX |
| 98 | * |
| 99 | * @param node Node to apply errata fix for |
| 100 | * @param qlm QLM to apply errata fix to |
| 101 | * @param baud_mhz QLM speed in Mhz |
| 102 | * |
| 103 | * @return Zero on success, negative on failure |
| 104 | */ |
| 105 | int __bdk_qlm_errata_gser_26636(bdk_node_t node, int qlm, int baud_mhz); |
| 106 | |
| 107 | /** |
| 108 | * (GSER-27140) SERDES has temperature drift sensitivity in the RX EQ<p> |
| 109 | * SERDES temperature drift sensitivity in receiver. Issues have |
| 110 | * been found with the Bit Error Rate (BER) reliability of |
| 111 | * 10GBASE-KR links over the commercial temperature range (0 to 100C), |
| 112 | * especially when subjected to rapid thermal ramp stress testing. |
| 113 | * (See HRM for corresponding case temperature requirements for each speed grade.)<p> |
| 114 | * Applies to: |
| 115 | * CN88XX pass 1.x |
| 116 | * CN88XX pass 2.x |
| 117 | * CN83XX pass 1.x |
| 118 | * CN81XX pass 1.x |
| 119 | * Fixed in hardware: |
| 120 | * TBD<p> |
| 121 | * Only applies to QLMs running 10G |
| 122 | * |
| 123 | * @param node Note to apply errata fix to |
| 124 | * @param qlm QLM to apply errata fix to |
| 125 | * @param baud_mhz QLM baud rate in Mhz |
| 126 | * @param channel_loss |
| 127 | * Insertion loss at Nyquist rate (e.g. 5.125Ghz for XFI/XLAUI) in dB |
| 128 | * |
| 129 | * @return Zero on success, negative on failure |
| 130 | */ |
| 131 | int __bdk_qlm_errata_gser_27140(bdk_node_t node, int qlm, int baud_mhz, int channel_loss); |
| 132 | |
| 133 | /** |
| 134 | * Errata GSER-27882 -GSER 10GBASE-KR Transmit Equalizer |
| 135 | * Training may not update PHY Tx Taps. This function is not static |
| 136 | * so we can share it with BGX KR |
| 137 | * Applies to: |
| 138 | * CN88XX pass 1.x, 2.0, 2.1 |
| 139 | * Fixed in hardware: |
| 140 | * CN88XX pass 2.2 and higher |
| 141 | * CN81XX |
| 142 | * CN83XX |
| 143 | * |
| 144 | * @param node Node to apply errata fix for |
| 145 | * @param qlm QLM to apply errata fix to |
| 146 | * @param lane |
| 147 | * |
| 148 | * @return Zero on success, negative on failure |
| 149 | */ |
| 150 | int __bdk_qlm_errata_gser_27882(bdk_node_t node, int qlm, int lane); |
| 151 | |
| 152 | #endif /* __BDK_QLM_ERRATA_H__ */ |