Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Monk Liu and committed by
Alex Deucher
fd430a70 82d0ece9

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
··· 634 634 for(i = 0; i < AMDGPU_MAX_VMHUBS; ++i) 635 635 BUG_ON(vm_inv_eng[i] > 16); 636 636 637 - if (adev->asic_type == CHIP_VEGA10) { 637 + if (adev->asic_type == CHIP_VEGA10 && !amdgpu_sriov_vf(adev)) { 638 638 r = gmc_v9_0_ecc_available(adev); 639 639 if (r == 1) { 640 640 DRM_INFO("ECC is active.\n");