diff options
author | Monk Liu <Monk.Liu@amd.com> | 2018-01-18 03:58:04 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-28 14:18:03 -0500 |
commit | 7b6cbae2b15b13378995aa8ec049083713d4fbcc (patch) | |
tree | 698fe65012d4c183a2fd92753c65e287472734b2 | |
parent | 73469585510d5161368c899b7eacd58c824b2b24 (diff) |
drm/amdgpu: skip ECC for SRIOV in gmc late_init
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 4dd469188e2b..9538f941b000 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | |||
@@ -673,7 +673,7 @@ static int gmc_v9_0_late_init(void *handle) | |||
673 | for(i = 0; i < AMDGPU_MAX_VMHUBS; ++i) | 673 | for(i = 0; i < AMDGPU_MAX_VMHUBS; ++i) |
674 | BUG_ON(vm_inv_eng[i] > 16); | 674 | BUG_ON(vm_inv_eng[i] > 16); |
675 | 675 | ||
676 | if (adev->asic_type == CHIP_VEGA10) { | 676 | if (adev->asic_type == CHIP_VEGA10 && !amdgpu_sriov_vf(adev)) { |
677 | r = gmc_v9_0_ecc_available(adev); | 677 | r = gmc_v9_0_ecc_available(adev); |
678 | if (r == 1) { | 678 | if (r == 1) { |
679 | DRM_INFO("ECC is active.\n"); | 679 | DRM_INFO("ECC is active.\n"); |