From: Ken Wang Date: Mon, 6 Mar 2017 19:53:16 +0000 (-0500) Subject: drm/amdgpu: Set the IP blocks for vega10 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=460826e6a061c2ba444c3071d7ea41322f5d5a0b;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu: Set the IP blocks for vega10 Acked-by: Christian König Signed-off-by: Ken Wang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index cf45fb902aed..2a5af6299fe4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -49,6 +49,7 @@ #include "cik.h" #endif #include "vi.h" +#include "soc15.h" #include "bif/bif_4_1_d.h" #include #include @@ -1434,6 +1435,13 @@ static int amdgpu_early_init(struct amdgpu_device *adev) return r; break; #endif + case CHIP_VEGA10: + adev->family = AMDGPU_FAMILY_AI; + + r = soc15_set_ip_blocks(adev); + if (r) + return r; + break; default: /* FIXME: not supported yet */ return -EINVAL;