mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
amd/drm-shim: Add raphael&mendocino, polaris12 and gfx1100.
Decided to follow the chip names pretty much.This set happens to be what is in my workstation currently. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22975>
This commit is contained in:
parent
d16cd4c758
commit
b96aa6b9e2
1 changed files with 442 additions and 0 deletions
|
|
@ -636,6 +636,448 @@ static const struct amdgpu_device amdgpu_devices[] = {
|
|||
.max_allocation = 6383253504,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
.name = "raphael_mendocino",
|
||||
.radeon_family = CHIP_RAPHAEL_MENDOCINO,
|
||||
.hw_ip_gfx = {
|
||||
.hw_ip_version_major = 10,
|
||||
.hw_ip_version_minor = 0,
|
||||
.capabilities_flags = 0llu,
|
||||
.ib_start_alignment = 32,
|
||||
.ib_size_alignment = 32,
|
||||
.available_rings = 0x1,
|
||||
.ip_discovery_version = 0xa0306,
|
||||
},
|
||||
.hw_ip_compute = {
|
||||
.hw_ip_version_major = 10,
|
||||
.hw_ip_version_minor = 0,
|
||||
.capabilities_flags = 0llu,
|
||||
.ib_start_alignment = 32,
|
||||
.ib_size_alignment = 32,
|
||||
.available_rings = 0xf,
|
||||
.ip_discovery_version = 0xa0306,
|
||||
},
|
||||
.fw_gfx_me = {
|
||||
.ver = 13,
|
||||
.feature = 38,
|
||||
},
|
||||
.fw_gfx_pfp = {
|
||||
.ver = 13,
|
||||
.feature = 38,
|
||||
},
|
||||
.fw_gfx_mec = {
|
||||
.ver = 18,
|
||||
.feature = 38,
|
||||
},
|
||||
.mmr_regs = {
|
||||
0x263e, 0xffffffff, 0x00000042,
|
||||
},
|
||||
.mmr_reg_count = 1,
|
||||
.dev = {
|
||||
.device_id = 0x164e,
|
||||
.chip_rev = 0x01,
|
||||
.external_rev = 0x02,
|
||||
.pci_rev = 0xc1,
|
||||
.family = AMDGPU_FAMILY_GC_10_3_6,
|
||||
.num_shader_engines = 1,
|
||||
.num_shader_arrays_per_engine = 1,
|
||||
.gpu_counter_freq = 100000,
|
||||
.max_engine_clock = 200000llu,
|
||||
.max_memory_clock = 2400000llu,
|
||||
.cu_active_number = 2,
|
||||
.cu_ao_mask = 0x3,
|
||||
.cu_bitmap = {
|
||||
{ 0x3, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
},
|
||||
.enabled_rb_pipes_mask = 0x1,
|
||||
.num_rb_pipes = 1,
|
||||
.num_hw_gfx_contexts = 8,
|
||||
.pcie_gen = 4,
|
||||
.ids_flags = 0x1llu,
|
||||
.virtual_address_offset = 0x200000llu,
|
||||
.virtual_address_max = 0x800000000000llu,
|
||||
.virtual_address_alignment = 4096,
|
||||
.pte_fragment_size = 2097152,
|
||||
.gart_page_size = 4096,
|
||||
.ce_ram_size = 65536,
|
||||
.vram_type = 10,
|
||||
.vram_bit_width = 128,
|
||||
.vce_harvest_config = 0,
|
||||
.gc_double_offchip_lds_buf = 1,
|
||||
.prim_buf_gpu_addr = 0llu,
|
||||
.pos_buf_gpu_addr = 0llu,
|
||||
.cntl_sb_buf_gpu_addr = 0llu,
|
||||
.param_buf_gpu_addr = 0llu,
|
||||
.prim_buf_size = 0,
|
||||
.pos_buf_size = 0,
|
||||
.cntl_sb_buf_size = 0,
|
||||
.param_buf_size = 0,
|
||||
.wave_front_size = 32,
|
||||
.num_shader_visible_vgprs = 1024,
|
||||
.num_cu_per_sh = 2,
|
||||
.num_tcc_blocks = 2,
|
||||
.gs_vgt_table_depth = 32,
|
||||
.gs_prim_buffer_depth = 1792,
|
||||
.max_gs_waves_per_vgt = 32,
|
||||
.pcie_num_lanes = 16,
|
||||
.cu_ao_bitmap = {
|
||||
{ 0x3, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
},
|
||||
.high_va_offset = 0xffff800000000000llu,
|
||||
.high_va_max = 0xffffffffffe00000llu,
|
||||
.pa_sc_tile_steering_override = 0,
|
||||
.tcc_disabled_mask = 0llu,
|
||||
.min_engine_clock = 200000llu,
|
||||
.min_memory_clock = 2400000llu,
|
||||
.tcp_cache_size = 0,
|
||||
.num_sqc_per_wgp = 0,
|
||||
.sqc_data_cache_size = 0,
|
||||
.sqc_inst_cache_size = 0,
|
||||
.gl1c_cache_size = 0,
|
||||
.gl2c_cache_size = 0,
|
||||
.mall_size = 0llu,
|
||||
.enabled_rb_pipes_mask_hi = 0,
|
||||
},
|
||||
.mem = {
|
||||
.vram = {
|
||||
.total_heap_size = 536870912,
|
||||
.usable_heap_size = 512081920,
|
||||
.heap_usage = 30093312,
|
||||
.max_allocation = 384061440,
|
||||
},
|
||||
.cpu_accessible_vram = {
|
||||
.total_heap_size = 536870912,
|
||||
.usable_heap_size = 512081920,
|
||||
.heap_usage = 30093312,
|
||||
.max_allocation = 384061440,
|
||||
},
|
||||
.gtt = {
|
||||
.total_heap_size = 33254252544,
|
||||
.usable_heap_size = 33241997312,
|
||||
.heap_usage = 14360576,
|
||||
.max_allocation = 24931497984,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
.name = "polaris12",
|
||||
.radeon_family = CHIP_POLARIS12,
|
||||
.hw_ip_gfx = {
|
||||
.hw_ip_version_major = 8,
|
||||
.hw_ip_version_minor = 0,
|
||||
.capabilities_flags = 0llu,
|
||||
.ib_start_alignment = 32,
|
||||
.ib_size_alignment = 32,
|
||||
.available_rings = 0x1,
|
||||
.ip_discovery_version = 0x0000,
|
||||
},
|
||||
.hw_ip_compute = {
|
||||
.hw_ip_version_major = 8,
|
||||
.hw_ip_version_minor = 0,
|
||||
.capabilities_flags = 0llu,
|
||||
.ib_start_alignment = 32,
|
||||
.ib_size_alignment = 32,
|
||||
.available_rings = 0xf,
|
||||
.ip_discovery_version = 0x0000,
|
||||
},
|
||||
.fw_gfx_me = {
|
||||
.ver = 167,
|
||||
.feature = 49,
|
||||
},
|
||||
.fw_gfx_pfp = {
|
||||
.ver = 254,
|
||||
.feature = 49,
|
||||
},
|
||||
.fw_gfx_mec = {
|
||||
.ver = 730,
|
||||
.feature = 49,
|
||||
},
|
||||
.mmr_regs = {
|
||||
0x263e, 0xffffffff, 0x22011002,
|
||||
0x263d, 0x0000ff00, 0x00000001,
|
||||
0xa0d4, 0x0000ff00, 0x16000012,
|
||||
0xa0d5, 0x0000ff00, 0x00000000,
|
||||
0x263d, 0x0000ff01, 0x00000001,
|
||||
0xa0d4, 0x0000ff01, 0x16000012,
|
||||
0xa0d5, 0x0000ff01, 0x00000000,
|
||||
0x09d8, 0xffffffff, 0x000060a2,
|
||||
0x2644, 0xffffffff, 0x00800150,
|
||||
0x2645, 0xffffffff, 0x00800950,
|
||||
0x2646, 0xffffffff, 0x00801150,
|
||||
0x2647, 0xffffffff, 0x00801950,
|
||||
0x2648, 0xffffffff, 0x00802950,
|
||||
0x2649, 0xffffffff, 0x00802948,
|
||||
0x264a, 0xffffffff, 0x00802954,
|
||||
0x264b, 0xffffffff, 0x00802954,
|
||||
0x264c, 0xffffffff, 0x00000144,
|
||||
0x264d, 0xffffffff, 0x02000148,
|
||||
0x264e, 0xffffffff, 0x02000150,
|
||||
0x264f, 0xffffffff, 0x06000154,
|
||||
0x2650, 0xffffffff, 0x06000154,
|
||||
0x2651, 0xffffffff, 0x02400148,
|
||||
0x2652, 0xffffffff, 0x02400150,
|
||||
0x2653, 0xffffffff, 0x02400170,
|
||||
0x2654, 0xffffffff, 0x06400154,
|
||||
0x2655, 0xffffffff, 0x06400154,
|
||||
0x2656, 0xffffffff, 0x0040014c,
|
||||
0x2657, 0xffffffff, 0x0100014c,
|
||||
0x2658, 0xffffffff, 0x0100015c,
|
||||
0x2659, 0xffffffff, 0x01000174,
|
||||
0x265a, 0xffffffff, 0x01000164,
|
||||
0x265b, 0xffffffff, 0x01000164,
|
||||
0x265c, 0xffffffff, 0x0040015c,
|
||||
0x265d, 0xffffffff, 0x01000160,
|
||||
0x265e, 0xffffffff, 0x01000178,
|
||||
0x265f, 0xffffffff, 0x02c00148,
|
||||
0x2660, 0xffffffff, 0x02c00150,
|
||||
0x2661, 0xffffffff, 0x06c00154,
|
||||
0x2662, 0xffffffff, 0x06c00154,
|
||||
0x2663, 0xffffffff, 0x00000000,
|
||||
0x2664, 0xffffffff, 0x000000e8,
|
||||
0x2665, 0xffffffff, 0x000000e8,
|
||||
0x2666, 0xffffffff, 0x000000e8,
|
||||
0x2667, 0xffffffff, 0x000000e4,
|
||||
0x2668, 0xffffffff, 0x000000d0,
|
||||
0x2669, 0xffffffff, 0x000000d0,
|
||||
0x266a, 0xffffffff, 0x000000d0,
|
||||
0x266b, 0xffffffff, 0x00000000,
|
||||
0x266c, 0xffffffff, 0x000000ed,
|
||||
0x266d, 0xffffffff, 0x000000e9,
|
||||
0x266e, 0xffffffff, 0x000000e8,
|
||||
0x266f, 0xffffffff, 0x000000e4,
|
||||
0x2670, 0xffffffff, 0x000000d0,
|
||||
0x2671, 0xffffffff, 0x00000090,
|
||||
0x2672, 0xffffffff, 0x00000040,
|
||||
0x2673, 0xffffffff, 0x00000000,
|
||||
},
|
||||
.mmr_reg_count = 56,
|
||||
.dev = {
|
||||
.device_id = 0x699f,
|
||||
.chip_rev = 0x00,
|
||||
.external_rev = 0x64,
|
||||
.pci_rev = 0xc7,
|
||||
.family = AMDGPU_FAMILY_VI,
|
||||
.num_shader_engines = 2,
|
||||
.num_shader_arrays_per_engine = 1,
|
||||
.gpu_counter_freq = 25000,
|
||||
.max_engine_clock = 1183000llu,
|
||||
.max_memory_clock = 1750000llu,
|
||||
.cu_active_number = 8,
|
||||
.cu_ao_mask = 0x1e001e,
|
||||
.cu_bitmap = {
|
||||
{ 0x1e, 0x0, 0x0, 0x0, },
|
||||
{ 0x1e, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
},
|
||||
.enabled_rb_pipes_mask = 0xf,
|
||||
.num_rb_pipes = 4,
|
||||
.num_hw_gfx_contexts = 8,
|
||||
.pcie_gen = 3,
|
||||
.ids_flags = 0x0llu,
|
||||
.virtual_address_offset = 0x200000llu,
|
||||
.virtual_address_max = 0x3fffe00000llu,
|
||||
.virtual_address_alignment = 4096,
|
||||
.pte_fragment_size = 2097152,
|
||||
.gart_page_size = 4096,
|
||||
.ce_ram_size = 32768,
|
||||
.vram_type = 5,
|
||||
.vram_bit_width = 128,
|
||||
.vce_harvest_config = 2,
|
||||
.gc_double_offchip_lds_buf = 1,
|
||||
.prim_buf_gpu_addr = 0llu,
|
||||
.pos_buf_gpu_addr = 0llu,
|
||||
.cntl_sb_buf_gpu_addr = 0llu,
|
||||
.param_buf_gpu_addr = 0llu,
|
||||
.prim_buf_size = 0,
|
||||
.pos_buf_size = 0,
|
||||
.cntl_sb_buf_size = 0,
|
||||
.param_buf_size = 0,
|
||||
.wave_front_size = 64,
|
||||
.num_shader_visible_vgprs = 256,
|
||||
.num_cu_per_sh = 5,
|
||||
.num_tcc_blocks = 4,
|
||||
.gs_vgt_table_depth = 0,
|
||||
.gs_prim_buffer_depth = 0,
|
||||
.max_gs_waves_per_vgt = 32,
|
||||
.pcie_num_lanes = 1,
|
||||
.cu_ao_bitmap = {
|
||||
{ 0x1e, 0x0, 0x0, 0x0, },
|
||||
{ 0x1e, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
},
|
||||
.high_va_offset = 0x0llu,
|
||||
.high_va_max = 0x0llu,
|
||||
.pa_sc_tile_steering_override = 0,
|
||||
.tcc_disabled_mask = 0llu,
|
||||
.min_engine_clock = 214000llu,
|
||||
.min_memory_clock = 300000llu,
|
||||
.tcp_cache_size = 0,
|
||||
.num_sqc_per_wgp = 0,
|
||||
.sqc_data_cache_size = 0,
|
||||
.sqc_inst_cache_size = 0,
|
||||
.gl1c_cache_size = 0,
|
||||
.gl2c_cache_size = 0,
|
||||
.mall_size = 0llu,
|
||||
.enabled_rb_pipes_mask_hi = 0,
|
||||
},
|
||||
.mem = {
|
||||
.vram = {
|
||||
.total_heap_size = 4294967296,
|
||||
.usable_heap_size = 4281139200,
|
||||
.heap_usage = 5963776,
|
||||
.max_allocation = 3210854400,
|
||||
},
|
||||
.cpu_accessible_vram = {
|
||||
.total_heap_size = 4294967296,
|
||||
.usable_heap_size = 4281139200,
|
||||
.heap_usage = 5963776,
|
||||
.max_allocation = 3210854400,
|
||||
},
|
||||
.gtt = {
|
||||
.total_heap_size = 33254252544,
|
||||
.usable_heap_size = 33249120256,
|
||||
.heap_usage = 17903616,
|
||||
.max_allocation = 24936840192,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
.name = "gfx1100",
|
||||
.radeon_family = CHIP_GFX1100,
|
||||
.hw_ip_gfx = {
|
||||
.hw_ip_version_major = 11,
|
||||
.hw_ip_version_minor = 0,
|
||||
.capabilities_flags = 0llu,
|
||||
.ib_start_alignment = 32,
|
||||
.ib_size_alignment = 32,
|
||||
.available_rings = 0x1,
|
||||
.ip_discovery_version = 0xb0000,
|
||||
},
|
||||
.hw_ip_compute = {
|
||||
.hw_ip_version_major = 11,
|
||||
.hw_ip_version_minor = 0,
|
||||
.capabilities_flags = 0llu,
|
||||
.ib_start_alignment = 32,
|
||||
.ib_size_alignment = 32,
|
||||
.available_rings = 0xf,
|
||||
.ip_discovery_version = 0xb0000,
|
||||
},
|
||||
.fw_gfx_me = {
|
||||
.ver = 1486,
|
||||
.feature = 29,
|
||||
},
|
||||
.fw_gfx_pfp = {
|
||||
.ver = 1525,
|
||||
.feature = 29,
|
||||
},
|
||||
.fw_gfx_mec = {
|
||||
.ver = 494,
|
||||
.feature = 29,
|
||||
},
|
||||
.mmr_regs = {
|
||||
0x263e, 0xffffffff, 0x00000545,
|
||||
},
|
||||
.mmr_reg_count = 1,
|
||||
.dev = {
|
||||
.device_id = 0x744c,
|
||||
.chip_rev = 0x00,
|
||||
.external_rev = 0x01,
|
||||
.pci_rev = 0xc8,
|
||||
.family = AMDGPU_FAMILY_GC_11_0_0,
|
||||
.num_shader_engines = 6,
|
||||
.num_shader_arrays_per_engine = 2,
|
||||
.gpu_counter_freq = 100000,
|
||||
.max_engine_clock = 2371000llu,
|
||||
.max_memory_clock = 1249000llu,
|
||||
.cu_active_number = 96,
|
||||
.cu_ao_mask = 0x0,
|
||||
.cu_bitmap = {
|
||||
{ 0xff, 0xff, 0xff, 0xff, },
|
||||
{ 0xff, 0xff, 0xff, 0xff, },
|
||||
{ 0xff, 0xff, 0x0, 0x0, },
|
||||
{ 0xff, 0xff, 0x0, 0x0, },
|
||||
},
|
||||
.enabled_rb_pipes_mask = 0xffffff,
|
||||
.num_rb_pipes = 24,
|
||||
.num_hw_gfx_contexts = 8,
|
||||
.pcie_gen = 4,
|
||||
.ids_flags = 0x0llu,
|
||||
.virtual_address_offset = 0x200000llu,
|
||||
.virtual_address_max = 0x800000000000llu,
|
||||
.virtual_address_alignment = 4096,
|
||||
.pte_fragment_size = 2097152,
|
||||
.gart_page_size = 4096,
|
||||
.ce_ram_size = 0,
|
||||
.vram_type = 9,
|
||||
.vram_bit_width = 384,
|
||||
.vce_harvest_config = 0,
|
||||
.gc_double_offchip_lds_buf = 0,
|
||||
.prim_buf_gpu_addr = 0llu,
|
||||
.pos_buf_gpu_addr = 0llu,
|
||||
.cntl_sb_buf_gpu_addr = 0llu,
|
||||
.param_buf_gpu_addr = 0llu,
|
||||
.prim_buf_size = 0,
|
||||
.pos_buf_size = 0,
|
||||
.cntl_sb_buf_size = 0,
|
||||
.param_buf_size = 0,
|
||||
.wave_front_size = 32,
|
||||
.num_shader_visible_vgprs = 1536,
|
||||
.num_cu_per_sh = 8,
|
||||
.num_tcc_blocks = 24,
|
||||
.gs_vgt_table_depth = 32,
|
||||
.gs_prim_buffer_depth = 1792,
|
||||
.max_gs_waves_per_vgt = 32,
|
||||
.pcie_num_lanes = 16,
|
||||
.cu_ao_bitmap = {
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
{ 0x0, 0x0, 0x0, 0x0, },
|
||||
},
|
||||
.high_va_offset = 0xffff800000000000llu,
|
||||
.high_va_max = 0xffffffffffe00000llu,
|
||||
.pa_sc_tile_steering_override = 0,
|
||||
.tcc_disabled_mask = 0llu,
|
||||
.min_engine_clock = 500000llu,
|
||||
.min_memory_clock = 96000llu,
|
||||
.tcp_cache_size = 32,
|
||||
.num_sqc_per_wgp = 1,
|
||||
.sqc_data_cache_size = 16,
|
||||
.sqc_inst_cache_size = 32,
|
||||
.gl1c_cache_size = 256,
|
||||
.gl2c_cache_size = 6144,
|
||||
.mall_size = 100663296llu,
|
||||
.enabled_rb_pipes_mask_hi = 0,
|
||||
},
|
||||
.mem = {
|
||||
.vram = {
|
||||
.total_heap_size = 25753026560,
|
||||
.usable_heap_size = 25681096704,
|
||||
.heap_usage = 7515435008,
|
||||
.max_allocation = 19260822528,
|
||||
},
|
||||
.cpu_accessible_vram = {
|
||||
.total_heap_size = 25753026560,
|
||||
.usable_heap_size = 25681096704,
|
||||
.heap_usage = 7515435008,
|
||||
.max_allocation = 19260822528,
|
||||
},
|
||||
.gtt = {
|
||||
.total_heap_size = 33254252544,
|
||||
.usable_heap_size = 33240895488,
|
||||
.heap_usage = 142462976,
|
||||
.max_allocation = 24930671616,
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue