summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2018-01-18 16:58:04 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-02-28 14:18:03 -0500
commit7b6cbae2b15b13378995aa8ec049083713d4fbcc (patch)
tree698fe65012d4c183a2fd92753c65e287472734b2 /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
parent73469585510d5161368c899b7eacd58c824b2b24 (diff)
downloadop-kernel-dev-7b6cbae2b15b13378995aa8ec049083713d4fbcc.zip
op-kernel-dev-7b6cbae2b15b13378995aa8ec049083713d4fbcc.tar.gz
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c2
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 4dd4691..9538f94 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)
for(i = 0; i < AMDGPU_MAX_VMHUBS; ++i)
BUG_ON(vm_inv_eng[i] > 16);
- if (adev->asic_type == CHIP_VEGA10) {
+ if (adev->asic_type == CHIP_VEGA10 && !amdgpu_sriov_vf(adev)) {
r = gmc_v9_0_ecc_available(adev);
if (r == 1) {
DRM_INFO("ECC is active.\n");
OpenPOWER on IntegriCloud