aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorShaoyun Liu <Shaoyun.Liu@amd.com>2018-05-22 11:45:41 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-05-24 11:07:55 -0400
commitf9fb22a21b380b14f70048fe719875e3523ac7d8 (patch)
treeb05ab7d0510a1d11bcb509e3273eb9d81c9b1605 /drivers/gpu
parentbf20f0ab544d8982af375c87e3d870d45237eecc (diff)
drm/amdgpu: Update GFX info structure to match what vega20 used
Update to the latest version from the vbios team. Signed-off-by: Shaoyun Liu <Shaoyun.Liu@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c8
-rw-r--r--drivers/gpu/drm/amd/include/atomfirmware.h3
2 files changed, 5 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
index 7014d5875d5b..236915849cfe 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
@@ -354,11 +354,9 @@ int amdgpu_atomfirmware_get_gfx_info(struct amdgpu_device *adev)
354 le16_to_cpu(gfx_info->v24.gc_gsprim_buff_depth); 354 le16_to_cpu(gfx_info->v24.gc_gsprim_buff_depth);
355 adev->gfx.config.double_offchip_lds_buf = 355 adev->gfx.config.double_offchip_lds_buf =
356 gfx_info->v24.gc_double_offchip_lds_buffer; 356 gfx_info->v24.gc_double_offchip_lds_buffer;
357 adev->gfx.cu_info.wave_front_size = gfx_info->v24.gc_wave_size; 357 adev->gfx.cu_info.wave_front_size = le16_to_cpu(gfx_info->v24.gc_wave_size);
358 adev->gfx.cu_info.max_waves_per_simd = 358 adev->gfx.cu_info.max_waves_per_simd = le16_to_cpu(gfx_info->v24.gc_max_waves_per_simd);
359 le16_to_cpu(gfx_info->v24.gc_max_waves_per_simd); 359 adev->gfx.cu_info.max_scratch_slots_per_cu = gfx_info->v24.gc_max_scratch_slots_per_cu;
360 adev->gfx.cu_info.max_scratch_slots_per_cu =
361 gfx_info->v24.gc_max_scratch_slots_per_cu;
362 adev->gfx.cu_info.lds_size = le16_to_cpu(gfx_info->v24.gc_lds_size); 360 adev->gfx.cu_info.lds_size = le16_to_cpu(gfx_info->v24.gc_lds_size);
363 return 0; 361 return 0;
364 default: 362 default:
diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/drm/amd/include/atomfirmware.h
index fd5e80c92ed0..c6c1666ac120 100644
--- a/drivers/gpu/drm/amd/include/atomfirmware.h
+++ b/drivers/gpu/drm/amd/include/atomfirmware.h
@@ -1240,7 +1240,6 @@ struct atom_gfx_info_v2_4 {
1240 uint8_t active_cu_per_sh; 1240 uint8_t active_cu_per_sh;
1241 uint8_t active_rb_per_se; 1241 uint8_t active_rb_per_se;
1242 uint16_t gcgoldenoffset; 1242 uint16_t gcgoldenoffset;
1243 uint32_t rm21_sram_vmin_value;
1244 uint16_t gc_num_gprs; 1243 uint16_t gc_num_gprs;
1245 uint16_t gc_gsprim_buff_depth; 1244 uint16_t gc_gsprim_buff_depth;
1246 uint16_t gc_parameter_cache_depth; 1245 uint16_t gc_parameter_cache_depth;
@@ -1251,6 +1250,8 @@ struct atom_gfx_info_v2_4 {
1251 uint8_t gc_gs_table_depth; 1250 uint8_t gc_gs_table_depth;
1252 uint8_t gc_double_offchip_lds_buffer; 1251 uint8_t gc_double_offchip_lds_buffer;
1253 uint8_t gc_max_scratch_slots_per_cu; 1252 uint8_t gc_max_scratch_slots_per_cu;
1253 uint32_t sram_rm_fuses_val;
1254 uint32_t sram_custom_rm_fuses_val;
1254}; 1255};
1255 1256
1256/* 1257/*