diff options
author | Huang Rui <ray.huang@amd.com> | 2018-12-12 07:37:22 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-03-19 16:03:55 -0400 |
commit | 0ae6afbffe0e7aa2880e19864ef92ce255d2c189 (patch) | |
tree | 4bb06395df3ba1655a02e24c4729a5033129d061 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
parent | eaf02a4d92e7941224e0f34aa721b065dc1856d9 (diff) |
drm/amdgpu: update new members in atomfirmware
This patch updates new members for fields to meet new atomfirmware header.
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c index b61e1dc61b4c..46ffbc8469df 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |||
@@ -346,11 +346,11 @@ int amdgpu_atomfirmware_get_gfx_info(struct amdgpu_device *adev) | |||
346 | (mode_info->atom_context->bios + data_offset); | 346 | (mode_info->atom_context->bios + data_offset); |
347 | switch (crev) { | 347 | switch (crev) { |
348 | case 4: | 348 | case 4: |
349 | adev->gfx.config.max_shader_engines = gfx_info->v24.gc_num_se; | 349 | adev->gfx.config.max_shader_engines = gfx_info->v24.max_shader_engines; |
350 | adev->gfx.config.max_cu_per_sh = gfx_info->v24.gc_num_cu_per_sh; | 350 | adev->gfx.config.max_cu_per_sh = gfx_info->v24.max_cu_per_sh; |
351 | adev->gfx.config.max_sh_per_se = gfx_info->v24.gc_num_sh_per_se; | 351 | adev->gfx.config.max_sh_per_se = gfx_info->v24.max_sh_per_se; |
352 | adev->gfx.config.max_backends_per_se = gfx_info->v24.gc_num_rb_per_se; | 352 | adev->gfx.config.max_backends_per_se = gfx_info->v24.max_backends_per_se; |
353 | adev->gfx.config.max_texture_channel_caches = gfx_info->v24.gc_num_tccs; | 353 | adev->gfx.config.max_texture_channel_caches = gfx_info->v24.max_texture_channel_caches; |
354 | adev->gfx.config.max_gprs = le16_to_cpu(gfx_info->v24.gc_num_gprs); | 354 | adev->gfx.config.max_gprs = le16_to_cpu(gfx_info->v24.gc_num_gprs); |
355 | adev->gfx.config.max_gs_threads = gfx_info->v24.gc_num_max_gs_thds; | 355 | adev->gfx.config.max_gs_threads = gfx_info->v24.gc_num_max_gs_thds; |
356 | adev->gfx.config.gs_vgt_table_depth = gfx_info->v24.gc_gs_table_depth; | 356 | adev->gfx.config.gs_vgt_table_depth = gfx_info->v24.gc_gs_table_depth; |