gpu: nvgpu: nvlink: fix disable err detect mode

The change fixes an issue in setting the link mode to
DISABLE_ERR_DETECT by adding handling for this case
in set_link_mode() api.

Bug 2433318

Change-Id: Id10e27cfa0e784a2393a724de0809a6dc8f0e69a
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1954587
(cherry picked from commit 97aee789e630d1756e19296f937dd1030f333cb9)
Reviewed-on: https://git-master.nvidia.com/r/1956320
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Tejal Kudav <tkudav@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Petlozu Pravareshwar
2018-11-20 18:11:31 +05:30
committed by mobile promotions
parent 5991f6b856
commit d6aaaeb62d

View File

@@ -249,6 +249,9 @@ static int nvgpu_nvlink_set_link_mode(struct nvlink_device *ndev, u32 mode)
case NVLINK_LINK_DISABLE_PM: case NVLINK_LINK_DISABLE_PM:
mode_sw = nvgpu_nvlink_link_disable_pm; mode_sw = nvgpu_nvlink_link_disable_pm;
break; break;
case NVLINK_LINK_DISABLE_ERR_DETECT:
mode_sw = nvgpu_nvlink_link_disable_err_detect;
break;
case NVLINK_LINK_LANE_DISABLE: case NVLINK_LINK_LANE_DISABLE:
mode_sw = nvgpu_nvlink_link_lane_disable; mode_sw = nvgpu_nvlink_link_lane_disable;
break; break;