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>
This commit is contained in:
parent
7346958551
commit
7b6cbae2b1
@ -673,7 +673,7 @@ static int gmc_v9_0_late_init(void *handle)
|
|||||||
for(i = 0; i < AMDGPU_MAX_VMHUBS; ++i)
|
for(i = 0; i < AMDGPU_MAX_VMHUBS; ++i)
|
||||||
BUG_ON(vm_inv_eng[i] > 16);
|
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);
|
r = gmc_v9_0_ecc_available(adev);
|
||||||
if (r == 1) {
|
if (r == 1) {
|
||||||
DRM_INFO("ECC is active.\n");
|
DRM_INFO("ECC is active.\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user