Lines Matching refs:amdinfo
146 struct amdgpu_gpu_info *amdinfo) in has_tmz_support() argument
152 if (amdinfo->ids_flags & AMDGPU_IDS_FLAGS_TMZ) in has_tmz_support()
179 struct amdgpu_gpu_info *amdinfo) in ac_query_gpu_info() argument
208 r = amdgpu_query_gpu_info(dev, amdinfo); in ac_query_gpu_info()
379 info->pci_id = amdinfo->asic_id; /* TODO: is this correct? */ in ac_query_gpu_info()
380 info->pci_rev_id = amdinfo->pci_rev_id; in ac_query_gpu_info()
381 info->vce_harvest_config = amdinfo->vce_harvest_config; in ac_query_gpu_info()
384 if (ASICREV_IS(amdinfo->chip_external_rev, asic)) { \ in ac_query_gpu_info()
390 switch (amdinfo->family_id) { in ac_query_gpu_info()
447 amdinfo->family_id, amdinfo->chip_external_rev); in ac_query_gpu_info()
468 info->family_id = amdinfo->family_id; in ac_query_gpu_info()
469 info->chip_external_rev = amdinfo->chip_external_rev; in ac_query_gpu_info()
476 info->has_dedicated_vram = !(amdinfo->ids_flags & AMDGPU_IDS_FLAGS_FUSION); in ac_query_gpu_info()
486 info->vram_type = amdinfo->vram_type; in ac_query_gpu_info()
487 info->vram_bit_width = amdinfo->vram_bit_width; in ac_query_gpu_info()
488 info->ce_ram_size = amdinfo->ce_ram_size; in ac_query_gpu_info()
500 info->max_shader_clock = amdinfo->max_engine_clk / 1000; in ac_query_gpu_info()
501 info->max_memory_clock = amdinfo->max_memory_clk / 1000; in ac_query_gpu_info()
503 info->max_se = amdinfo->num_shader_engines; in ac_query_gpu_info()
504 info->max_sh_per_se = amdinfo->num_shader_arrays_per_engine; in ac_query_gpu_info()
536 info->mid_command_buffer_preemption_enabled = amdinfo->ids_flags & AMDGPU_IDS_FLAGS_PREEMPTION; in ac_query_gpu_info()
537 info->has_tmz_support = has_tmz_support(dev, info, amdinfo); in ac_query_gpu_info()
540 info->num_render_backends = amdinfo->rb_pipes; in ac_query_gpu_info()
548 info->num_se = util_bitcount(amdinfo->enabled_rb_pipes_mask) / num_rbs_per_se; in ac_query_gpu_info()
553 info->clock_crystal_freq = amdinfo->gpu_counter_freq; in ac_query_gpu_info()
570 info->gb_addr_config = amdinfo->gb_addr_cfg; in ac_query_gpu_info()
572 info->num_tile_pipes = 1 << G_0098F8_NUM_PIPES(amdinfo->gb_addr_cfg); in ac_query_gpu_info()
573 info->pipe_interleave_bytes = 256 << G_0098F8_PIPE_INTERLEAVE_SIZE_GFX9(amdinfo->gb_addr_cfg); in ac_query_gpu_info()
575 info->num_tile_pipes = cik_get_num_tile_pipes(amdinfo); in ac_query_gpu_info()
576 info->pipe_interleave_bytes = 256 << G_0098F8_PIPE_INTERLEAVE_SIZE_GFX6(amdinfo->gb_addr_cfg); in ac_query_gpu_info()
673 info->cu_mask[i % 4][j + i / 4] = amdinfo->cu_bitmap[i % 4][j + i / 4]; in ac_query_gpu_info()
688 memcpy(info->si_tile_mode_array, amdinfo->gb_tile_mode, sizeof(amdinfo->gb_tile_mode)); in ac_query_gpu_info()
689 info->enabled_rb_mask = amdinfo->enabled_rb_pipes_mask; in ac_query_gpu_info()
691 memcpy(info->cik_macrotile_mode_array, amdinfo->gb_macro_tile_mode, in ac_query_gpu_info()
692 sizeof(amdinfo->gb_macro_tile_mode)); in ac_query_gpu_info()