diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/nvlink.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvlink.c b/drivers/gpu/nvgpu/common/linux/nvlink.c index 61dc8bc7..f2faa682 100644 --- a/drivers/gpu/nvgpu/common/linux/nvlink.c +++ b/drivers/gpu/nvgpu/common/linux/nvlink.c | |||
@@ -138,8 +138,12 @@ static u32 nvgpu_nvlink_get_link_mode(struct nvlink_device *ndev) | |||
138 | return NVLINK_LINK_SAFE; | 138 | return NVLINK_LINK_SAFE; |
139 | case nvgpu_nvlink_link_fault: | 139 | case nvgpu_nvlink_link_fault: |
140 | return NVLINK_LINK_FAULT; | 140 | return NVLINK_LINK_FAULT; |
141 | case nvgpu_nvlink_link_recovery: | 141 | case nvgpu_nvlink_link_rcvy_ac: |
142 | return NVLINK_LINK_RECOVERY; | 142 | return NVLINK_LINK_RCVY_AC; |
143 | case nvgpu_nvlink_link_rcvy_sw: | ||
144 | return NVLINK_LINK_RCVY_SW; | ||
145 | case nvgpu_nvlink_link_rcvy_rx: | ||
146 | return NVLINK_LINK_RCVY_RX; | ||
143 | case nvgpu_nvlink_link_detect: | 147 | case nvgpu_nvlink_link_detect: |
144 | return NVLINK_LINK_DETECT; | 148 | return NVLINK_LINK_DETECT; |
145 | case nvgpu_nvlink_link_reset: | 149 | case nvgpu_nvlink_link_reset: |
@@ -198,8 +202,14 @@ static int nvgpu_nvlink_set_link_mode(struct nvlink_device *ndev, u32 mode) | |||
198 | case NVLINK_LINK_FAULT: | 202 | case NVLINK_LINK_FAULT: |
199 | mode_sw = nvgpu_nvlink_link_fault; | 203 | mode_sw = nvgpu_nvlink_link_fault; |
200 | break; | 204 | break; |
201 | case NVLINK_LINK_RECOVERY: | 205 | case NVLINK_LINK_RCVY_AC: |
202 | mode_sw = nvgpu_nvlink_link_recovery; | 206 | mode_sw = nvgpu_nvlink_link_rcvy_ac; |
207 | break; | ||
208 | case NVLINK_LINK_RCVY_SW: | ||
209 | mode_sw = nvgpu_nvlink_link_rcvy_sw; | ||
210 | break; | ||
211 | case NVLINK_LINK_RCVY_RX: | ||
212 | mode_sw = nvgpu_nvlink_link_rcvy_rx; | ||
203 | break; | 213 | break; |
204 | case NVLINK_LINK_DETECT: | 214 | case NVLINK_LINK_DETECT: |
205 | mode_sw = nvgpu_nvlink_link_detect; | 215 | mode_sw = nvgpu_nvlink_link_detect; |