Commit 51fd0370 authored by Hawking Zhang's avatar Hawking Zhang Committed by Alex Deucher

drm/amdgpu: add new member in gpu_info fw

Signed-off-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d0c55cdf
...@@ -1028,7 +1028,10 @@ struct amdgpu_gfx_config { ...@@ -1028,7 +1028,10 @@ struct amdgpu_gfx_config {
struct amdgpu_cu_info { struct amdgpu_cu_info {
uint32_t number; /* total active CU number */ uint32_t number; /* total active CU number */
uint32_t ao_cu_mask; uint32_t ao_cu_mask;
uint32_t max_waves_per_simd;
uint32_t wave_front_size; uint32_t wave_front_size;
uint32_t max_scratch_slots_per_cu;
uint32_t lds_size;
uint32_t bitmap[4][4]; uint32_t bitmap[4][4];
}; };
......
...@@ -1480,6 +1480,11 @@ static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev) ...@@ -1480,6 +1480,11 @@ static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev)
adev->gfx.config.double_offchip_lds_buf = adev->gfx.config.double_offchip_lds_buf =
le32_to_cpu(gpu_info_fw->gc_double_offchip_lds_buffer); le32_to_cpu(gpu_info_fw->gc_double_offchip_lds_buffer);
adev->gfx.cu_info.wave_front_size = le32_to_cpu(gpu_info_fw->gc_wave_size); adev->gfx.cu_info.wave_front_size = le32_to_cpu(gpu_info_fw->gc_wave_size);
adev->gfx.cu_info.max_waves_per_simd =
le32_to_cpu(gpu_info_fw->gc_max_waves_per_simd);
adev->gfx.cu_info.max_scratch_slots_per_cu =
le32_to_cpu(gpu_info_fw->gc_max_scratch_slots_per_cu);
adev->gfx.cu_info.lds_size = le32_to_cpu(gpu_info_fw->gc_lds_size);
break; break;
} }
default: default:
......
...@@ -127,6 +127,9 @@ struct gpu_info_firmware_v1_0 { ...@@ -127,6 +127,9 @@ struct gpu_info_firmware_v1_0 {
uint32_t gc_parameter_cache_depth; uint32_t gc_parameter_cache_depth;
uint32_t gc_double_offchip_lds_buffer; uint32_t gc_double_offchip_lds_buffer;
uint32_t gc_wave_size; uint32_t gc_wave_size;
uint32_t gc_max_waves_per_simd;
uint32_t gc_max_scratch_slots_per_cu;
uint32_t gc_lds_size;
}; };
/* version_major=1, version_minor=0 */ /* version_major=1, version_minor=0 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment