The QSFP interface code has been running without issues and the flag is never set to off. This patch removes the QSFP_ENABLED bit from HFI1_CAP.
Unified · Split
| @@ -5714,8 +5714,7 @@ void init_qsfp(struct hfi1_pportdata *ppd) · 5713 unmodified lines | |||
| 5714 | u64 qsfp_mask; | 5714 | u64 qsfp_mask; |
| 5715 | 5715 | ||
| 5716 | if (loopback == LOOPBACK_SERDES || loopback == LOOPBACK_LCB || | 5716 | if (loopback == LOOPBACK_SERDES || loopback == LOOPBACK_LCB || |
| 5717 | ppd->dd->icode == ICODE_FUNCTIONAL_SIMULATOR || | 5717 | ppd->dd->icode == ICODE_FUNCTIONAL_SIMULATOR) { |
| 5718 | !HFI1_CAP_IS_KSET(QSFP_ENABLED)) { | ||
| 5719 | ppd->driver_link_ready = 1; | 5718 | ppd->driver_link_ready = 1; |
| 5720 | return; | 5719 | return; |
| 5721 | } | 5720 | } |
| @@ -147,7 +147,6 @@ · 146 unmodified lines | |||
| 147 | HFI1_CAP_USE_SDMA_HEAD | \ | 147 | HFI1_CAP_USE_SDMA_HEAD | \ |
| 148 | HFI1_CAP_EXTENDED_PSN | \ | 148 | HFI1_CAP_EXTENDED_PSN | \ |
| 149 | HFI1_CAP_PRINT_UNIMPL | \ | 149 | HFI1_CAP_PRINT_UNIMPL | \ |
| 150 | HFI1_CAP_QSFP_ENABLED | \ | ||
| 151 | HFI1_CAP_NO_INTEGRITY | \ | 150 | HFI1_CAP_NO_INTEGRITY | \ |
| 152 | HFI1_CAP_PKEY_CHECK) << \ | 151 | HFI1_CAP_PKEY_CHECK) << \ |
| 153 | HFI1_CAP_USER_SHIFT) | 152 | HFI1_CAP_USER_SHIFT) |
| @@ -163,7 +162,6 @@ · 9 unmodified lines | |||
| 163 | HFI1_CAP_SDMA | \ | 162 | HFI1_CAP_SDMA | \ |
| 164 | HFI1_CAP_PRINT_UNIMPL | \ | 163 | HFI1_CAP_PRINT_UNIMPL | \ |
| 165 | HFI1_CAP_STATIC_RATE_CTRL | \ | 164 | HFI1_CAP_STATIC_RATE_CTRL | \ |
| 166 | HFI1_CAP_QSFP_ENABLED | \ | ||
| 167 | HFI1_CAP_PKEY_CHECK | \ | 165 | HFI1_CAP_PKEY_CHECK | \ |
| 168 | HFI1_CAP_MULTI_PKT_EGR | \ | 166 | HFI1_CAP_MULTI_PKT_EGR | \ |
| 169 | HFI1_CAP_EXTENDED_PSN | \ | 167 | HFI1_CAP_EXTENDED_PSN | \ |
| @@ -403,16 +403,11 @@ static const char *pwr_codes = "1.5W2.0W2.5W3.5W"; · 402 unmodified lines | |||
| 403 | 403 | ||
| 404 | int qsfp_mod_present(struct hfi1_pportdata *ppd) | 404 | int qsfp_mod_present(struct hfi1_pportdata *ppd) |
| 405 | { | 405 | { |
| 406 | if (HFI1_CAP_IS_KSET(QSFP_ENABLED)) { | 406 | struct hfi1_devdata *dd = ppd->dd; |
| 407 | struct hfi1_devdata *dd = ppd->dd; | 407 | u64 reg; |
| 408 | u64 reg; | ||
| 409 | 408 | ||
| 410 | reg = read_csr(dd, | 409 | reg = read_csr(dd, dd->hfi1_id ? ASIC_QSFP2_IN : ASIC_QSFP1_IN); |
| 411 | dd->hfi1_id ? ASIC_QSFP2_IN : ASIC_QSFP1_IN); | 410 | return !(reg & QSFP_HFI0_MODPRST_N); |
| 412 | return !(reg & QSFP_HFI0_MODPRST_N); | ||
| 413 | } | ||
| 414 | /* always return cable present */ | ||
| 415 | return 1; | ||
| 416 | } | 411 | } |
| 417 | 412 | ||
| 418 | /* | 413 | /* |
| @@ -88,7 +88,7 @@ · 87 unmodified lines | |||
| 88 | #define HFI1_CAP_SDMA_AHG (1UL << 2) /* Enable SDMA AHG support */ | 88 | #define HFI1_CAP_SDMA_AHG (1UL << 2) /* Enable SDMA AHG support */ |
| 89 | #define HFI1_CAP_EXTENDED_PSN (1UL << 3) /* Enable Extended PSN support */ | 89 | #define HFI1_CAP_EXTENDED_PSN (1UL << 3) /* Enable Extended PSN support */ |
| 90 | #define HFI1_CAP_HDRSUPP (1UL << 4) /* Enable Header Suppression */ | 90 | #define HFI1_CAP_HDRSUPP (1UL << 4) /* Enable Header Suppression */ |
| 91 | /* 1UL << 5 reserved */ | 91 | /* 1UL << 5 unused */ |
| 92 | #define HFI1_CAP_USE_SDMA_HEAD (1UL << 6) /* DMA Hdr Q tail vs. use CSR */ | 92 | #define HFI1_CAP_USE_SDMA_HEAD (1UL << 6) /* DMA Hdr Q tail vs. use CSR */ |
| 93 | #define HFI1_CAP_MULTI_PKT_EGR (1UL << 7) /* Enable multi-packet Egr buffs*/ | 93 | #define HFI1_CAP_MULTI_PKT_EGR (1UL << 7) /* Enable multi-packet Egr buffs*/ |
| 94 | #define HFI1_CAP_NODROP_RHQ_FULL (1UL << 8) /* Don't drop on Hdr Q full */ | 94 | #define HFI1_CAP_NODROP_RHQ_FULL (1UL << 8) /* Don't drop on Hdr Q full */ |
| @@ -99,7 +99,7 @@ · 4 unmodified lines | |||
| 99 | #define HFI1_CAP_NO_INTEGRITY (1UL << 13) /* Enable ctxt integrity checks */ | 99 | #define HFI1_CAP_NO_INTEGRITY (1UL << 13) /* Enable ctxt integrity checks */ |
| 100 | #define HFI1_CAP_PKEY_CHECK (1UL << 14) /* Enable ctxt PKey checking */ | 100 | #define HFI1_CAP_PKEY_CHECK (1UL << 14) /* Enable ctxt PKey checking */ |
| 101 | #define HFI1_CAP_STATIC_RATE_CTRL (1UL << 15) /* Allow PBC.StaticRateControl */ | 101 | #define HFI1_CAP_STATIC_RATE_CTRL (1UL << 15) /* Allow PBC.StaticRateControl */ |
| 102 | #define HFI1_CAP_QSFP_ENABLED (1UL << 16) /* Enable QSFP check during LNI */ | 102 | /* 1UL << 16 unused */ |
| 103 | #define HFI1_CAP_SDMA_HEAD_CHECK (1UL << 17) /* SDMA head checking */ | 103 | #define HFI1_CAP_SDMA_HEAD_CHECK (1UL << 17) /* SDMA head checking */ |
| 104 | #define HFI1_CAP_EARLY_CREDIT_RETURN (1UL << 18) /* early credit return */ | 104 | #define HFI1_CAP_EARLY_CREDIT_RETURN (1UL << 18) /* early credit return */ |
| 105 | 105 | ||