diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 548e0843d95a..61cf5ad78857 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #ifdef CONFIG_DRM_AMDGPU_CIK | 41 | #ifdef CONFIG_DRM_AMDGPU_CIK |
42 | #include "cik.h" | 42 | #include "cik.h" |
43 | #endif | 43 | #endif |
44 | #include "vi.h" | ||
44 | #include "bif/bif_4_1_d.h" | 45 | #include "bif/bif_4_1_d.h" |
45 | 46 | ||
46 | static int amdgpu_debugfs_regs_init(struct amdgpu_device *adev); | 47 | static int amdgpu_debugfs_regs_init(struct amdgpu_device *adev); |
@@ -1154,9 +1155,21 @@ int amdgpu_ip_block_version_cmp(struct amdgpu_device *adev, | |||
1154 | 1155 | ||
1155 | static int amdgpu_early_init(struct amdgpu_device *adev) | 1156 | static int amdgpu_early_init(struct amdgpu_device *adev) |
1156 | { | 1157 | { |
1157 | int i, r = -EINVAL; | 1158 | int i, r; |
1158 | 1159 | ||
1159 | switch (adev->asic_type) { | 1160 | switch (adev->asic_type) { |
1161 | case CHIP_TOPAZ: | ||
1162 | case CHIP_TONGA: | ||
1163 | case CHIP_CARRIZO: | ||
1164 | if (adev->asic_type == CHIP_CARRIZO) | ||
1165 | adev->family = AMDGPU_FAMILY_CZ; | ||
1166 | else | ||
1167 | adev->family = AMDGPU_FAMILY_VI; | ||
1168 | |||
1169 | r = vi_set_ip_blocks(adev); | ||
1170 | if (r) | ||
1171 | return r; | ||
1172 | break; | ||
1160 | #ifdef CONFIG_DRM_AMDGPU_CIK | 1173 | #ifdef CONFIG_DRM_AMDGPU_CIK |
1161 | case CHIP_BONAIRE: | 1174 | case CHIP_BONAIRE: |
1162 | case CHIP_HAWAII: | 1175 | case CHIP_HAWAII: |