Symbol: gc_info
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1748
union gc_info *gc_info;
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1763
gc_info = (union gc_info *)(discovery_bin + offset);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1765
switch (le16_to_cpu(gc_info->v1.header.version_major)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1767
adev->gfx.config.max_shader_engines = le32_to_cpu(gc_info->v1.gc_num_se);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1768
adev->gfx.config.max_cu_per_sh = 2 * (le32_to_cpu(gc_info->v1.gc_num_wgp0_per_sa) +
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1769
le32_to_cpu(gc_info->v1.gc_num_wgp1_per_sa));
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1770
adev->gfx.config.max_sh_per_se = le32_to_cpu(gc_info->v1.gc_num_sa_per_se);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1771
adev->gfx.config.max_backends_per_se = le32_to_cpu(gc_info->v1.gc_num_rb_per_se);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1772
adev->gfx.config.max_texture_channel_caches = le32_to_cpu(gc_info->v1.gc_num_gl2c);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1773
adev->gfx.config.max_gprs = le32_to_cpu(gc_info->v1.gc_num_gprs);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1774
adev->gfx.config.max_gs_threads = le32_to_cpu(gc_info->v1.gc_num_max_gs_thds);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1775
adev->gfx.config.gs_vgt_table_depth = le32_to_cpu(gc_info->v1.gc_gs_table_depth);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1776
adev->gfx.config.gs_prim_buffer_depth = le32_to_cpu(gc_info->v1.gc_gsprim_buff_depth);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1777
adev->gfx.config.double_offchip_lds_buf = le32_to_cpu(gc_info->v1.gc_double_offchip_lds_buffer);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1778
adev->gfx.cu_info.wave_front_size = le32_to_cpu(gc_info->v1.gc_wave_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1779
adev->gfx.cu_info.max_waves_per_simd = le32_to_cpu(gc_info->v1.gc_max_waves_per_simd);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1780
adev->gfx.cu_info.max_scratch_slots_per_cu = le32_to_cpu(gc_info->v1.gc_max_scratch_slots_per_cu);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1781
adev->gfx.cu_info.lds_size = le32_to_cpu(gc_info->v1.gc_lds_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1782
adev->gfx.config.num_sc_per_sh = le32_to_cpu(gc_info->v1.gc_num_sc_per_se) /
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1783
le32_to_cpu(gc_info->v1.gc_num_sa_per_se);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1784
adev->gfx.config.num_packer_per_sc = le32_to_cpu(gc_info->v1.gc_num_packer_per_sc);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1785
if (le16_to_cpu(gc_info->v1.header.version_minor) >= 1) {
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1786
adev->gfx.config.gc_num_tcp_per_sa = le32_to_cpu(gc_info->v1_1.gc_num_tcp_per_sa);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1787
adev->gfx.config.gc_num_sdp_interface = le32_to_cpu(gc_info->v1_1.gc_num_sdp_interface);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1788
adev->gfx.config.gc_num_tcps = le32_to_cpu(gc_info->v1_1.gc_num_tcps);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1790
if (le16_to_cpu(gc_info->v1.header.version_minor) >= 2) {
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1791
adev->gfx.config.gc_num_tcp_per_wpg = le32_to_cpu(gc_info->v1_2.gc_num_tcp_per_wpg);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1792
adev->gfx.config.gc_tcp_l1_size = le32_to_cpu(gc_info->v1_2.gc_tcp_l1_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1793
adev->gfx.config.gc_num_sqc_per_wgp = le32_to_cpu(gc_info->v1_2.gc_num_sqc_per_wgp);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1794
adev->gfx.config.gc_l1_instruction_cache_size_per_sqc = le32_to_cpu(gc_info->v1_2.gc_l1_instruction_cache_size_per_sqc);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1795
adev->gfx.config.gc_l1_data_cache_size_per_sqc = le32_to_cpu(gc_info->v1_2.gc_l1_data_cache_size_per_sqc);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1796
adev->gfx.config.gc_gl1c_per_sa = le32_to_cpu(gc_info->v1_2.gc_gl1c_per_sa);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1797
adev->gfx.config.gc_gl1c_size_per_instance = le32_to_cpu(gc_info->v1_2.gc_gl1c_size_per_instance);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1798
adev->gfx.config.gc_gl2c_per_gpu = le32_to_cpu(gc_info->v1_2.gc_gl2c_per_gpu);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1800
if (le16_to_cpu(gc_info->v1.header.version_minor) >= 3) {
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1801
adev->gfx.config.gc_tcp_size_per_cu = le32_to_cpu(gc_info->v1_3.gc_tcp_size_per_cu);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1802
adev->gfx.config.gc_tcp_cache_line_size = le32_to_cpu(gc_info->v1_3.gc_tcp_cache_line_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1803
adev->gfx.config.gc_instruction_cache_size_per_sqc = le32_to_cpu(gc_info->v1_3.gc_instruction_cache_size_per_sqc);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1804
adev->gfx.config.gc_instruction_cache_line_size = le32_to_cpu(gc_info->v1_3.gc_instruction_cache_line_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1805
adev->gfx.config.gc_scalar_data_cache_size_per_sqc = le32_to_cpu(gc_info->v1_3.gc_scalar_data_cache_size_per_sqc);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1806
adev->gfx.config.gc_scalar_data_cache_line_size = le32_to_cpu(gc_info->v1_3.gc_scalar_data_cache_line_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1807
adev->gfx.config.gc_tcc_size = le32_to_cpu(gc_info->v1_3.gc_tcc_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1808
adev->gfx.config.gc_tcc_cache_line_size = le32_to_cpu(gc_info->v1_3.gc_tcc_cache_line_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1812
adev->gfx.config.max_shader_engines = le32_to_cpu(gc_info->v2.gc_num_se);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1813
adev->gfx.config.max_cu_per_sh = le32_to_cpu(gc_info->v2.gc_num_cu_per_sh);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1814
adev->gfx.config.max_sh_per_se = le32_to_cpu(gc_info->v2.gc_num_sh_per_se);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1815
adev->gfx.config.max_backends_per_se = le32_to_cpu(gc_info->v2.gc_num_rb_per_se);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1816
adev->gfx.config.max_texture_channel_caches = le32_to_cpu(gc_info->v2.gc_num_tccs);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1817
adev->gfx.config.max_gprs = le32_to_cpu(gc_info->v2.gc_num_gprs);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1818
adev->gfx.config.max_gs_threads = le32_to_cpu(gc_info->v2.gc_num_max_gs_thds);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1819
adev->gfx.config.gs_vgt_table_depth = le32_to_cpu(gc_info->v2.gc_gs_table_depth);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1820
adev->gfx.config.gs_prim_buffer_depth = le32_to_cpu(gc_info->v2.gc_gsprim_buff_depth);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1821
adev->gfx.config.double_offchip_lds_buf = le32_to_cpu(gc_info->v2.gc_double_offchip_lds_buffer);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1822
adev->gfx.cu_info.wave_front_size = le32_to_cpu(gc_info->v2.gc_wave_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1823
adev->gfx.cu_info.max_waves_per_simd = le32_to_cpu(gc_info->v2.gc_max_waves_per_simd);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1824
adev->gfx.cu_info.max_scratch_slots_per_cu = le32_to_cpu(gc_info->v2.gc_max_scratch_slots_per_cu);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1825
adev->gfx.cu_info.lds_size = le32_to_cpu(gc_info->v2.gc_lds_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1826
adev->gfx.config.num_sc_per_sh = le32_to_cpu(gc_info->v2.gc_num_sc_per_se) /
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1827
le32_to_cpu(gc_info->v2.gc_num_sh_per_se);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1828
adev->gfx.config.num_packer_per_sc = le32_to_cpu(gc_info->v2.gc_num_packer_per_sc);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1829
if (le16_to_cpu(gc_info->v2.header.version_minor) == 1) {
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1830
adev->gfx.config.gc_num_tcp_per_sa = le32_to_cpu(gc_info->v2_1.gc_num_tcp_per_sh);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1831
adev->gfx.config.gc_tcp_size_per_cu = le32_to_cpu(gc_info->v2_1.gc_tcp_size_per_cu);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1832
adev->gfx.config.gc_num_sdp_interface = le32_to_cpu(gc_info->v2_1.gc_num_sdp_interface); /* per XCD */
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1833
adev->gfx.config.gc_num_cu_per_sqc = le32_to_cpu(gc_info->v2_1.gc_num_cu_per_sqc);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1834
adev->gfx.config.gc_l1_instruction_cache_size_per_sqc = le32_to_cpu(gc_info->v2_1.gc_instruction_cache_size_per_sqc);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1835
adev->gfx.config.gc_l1_data_cache_size_per_sqc = le32_to_cpu(gc_info->v2_1.gc_scalar_data_cache_size_per_sqc);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1836
adev->gfx.config.gc_tcc_size = le32_to_cpu(gc_info->v2_1.gc_tcc_size); /* per XCD */
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1842
le16_to_cpu(gc_info->v1.header.version_major),
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1843
le16_to_cpu(gc_info->v1.header.version_minor));
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
3483
union gc_info *gc_info;
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
3495
gc_info = (union gc_info *)(discovery_bin + offset);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
3498
*major = le16_to_cpu(gc_info->v1.header.version_major);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
3500
*minor = le16_to_cpu(gc_info->v1.header.version_minor);