[PATCH 03/22] drm/amdgpu: skip ECC for SRIOV in gmc late_init

Alex Deucher alexdeucher at gmail.com
Mon Feb 26 17:19:03 UTC 2018


On Mon, Feb 26, 2018 at 12:18 AM, Monk Liu <Monk.Liu at amd.com> wrote:
> Change-Id: I2865a11d1dded214de289787d334ec4a22b5db19
> Signed-off-by: Monk Liu <Monk.Liu at amd.com>

Acked-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> index bc4bd5e..6839d93 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");
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list