From: Huang Rui Date: Wed, 19 Jul 2017 01:45:26 +0000 (+0800) Subject: drm/amdgpu: add to set navi ip blocks X-Git-Tag: v5.3-rc1~81^2~10^2~337 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a5b8c7b9490e94290bdb2a7865d9bc9f80c315f;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: add to set navi ip blocks Set the IPs for navi10 in early_init like other asics. Signed-off-by: Huang Rui Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang 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 16fd5da3bb129..2ec572838d9f5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -51,6 +51,7 @@ #endif #include "vi.h" #include "soc15.h" +#include "nv.h" #include "bif/bif_4_1_d.h" #include #include @@ -1528,6 +1529,13 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) if (r) return r; break; + case CHIP_NAVI10: + adev->family = AMDGPU_FAMILY_NV; + + r = nv_set_ip_blocks(adev); + if (r) + return r; + break; default: /* FIXME: not supported yet */ return -EINVAL;