Lines Matching refs:dev_info

156 		dev_info(adev->dev, "Using ATPX for runtime pm\n");  in amdgpu_driver_load_kms()
160 dev_info(adev->dev, "Using BOCO for runtime pm\n"); in amdgpu_driver_load_kms()
182 dev_info(adev->dev, "Using BACO for runtime pm\n"); in amdgpu_driver_load_kms()
772 struct drm_amdgpu_info_device *dev_info; in amdgpu_info_ioctl() local
777 dev_info = kzalloc(sizeof(*dev_info), GFP_KERNEL); in amdgpu_info_ioctl()
778 if (!dev_info) in amdgpu_info_ioctl()
781 dev_info->device_id = adev->pdev->device; in amdgpu_info_ioctl()
782 dev_info->chip_rev = adev->rev_id; in amdgpu_info_ioctl()
783 dev_info->external_rev = adev->external_rev_id; in amdgpu_info_ioctl()
784 dev_info->pci_rev = adev->pdev->revision; in amdgpu_info_ioctl()
785 dev_info->family = adev->family; in amdgpu_info_ioctl()
786 dev_info->num_shader_engines = adev->gfx.config.max_shader_engines; in amdgpu_info_ioctl()
787 dev_info->num_shader_arrays_per_engine = adev->gfx.config.max_sh_per_se; in amdgpu_info_ioctl()
789 dev_info->gpu_counter_freq = amdgpu_asic_get_xclk(adev) * 10; in amdgpu_info_ioctl()
791 dev_info->max_engine_clock = amdgpu_dpm_get_sclk(adev, false) * 10; in amdgpu_info_ioctl()
792 dev_info->max_memory_clock = amdgpu_dpm_get_mclk(adev, false) * 10; in amdgpu_info_ioctl()
793 dev_info->min_engine_clock = amdgpu_dpm_get_sclk(adev, true) * 10; in amdgpu_info_ioctl()
794 dev_info->min_memory_clock = amdgpu_dpm_get_mclk(adev, true) * 10; in amdgpu_info_ioctl()
796 dev_info->max_engine_clock = in amdgpu_info_ioctl()
797 dev_info->min_engine_clock = in amdgpu_info_ioctl()
799 dev_info->max_memory_clock = in amdgpu_info_ioctl()
800 dev_info->min_memory_clock = in amdgpu_info_ioctl()
803 dev_info->enabled_rb_pipes_mask = adev->gfx.config.backend_enable_mask; in amdgpu_info_ioctl()
804 dev_info->num_rb_pipes = adev->gfx.config.max_backends_per_se * in amdgpu_info_ioctl()
806 dev_info->num_hw_gfx_contexts = adev->gfx.config.max_hw_contexts; in amdgpu_info_ioctl()
807 dev_info->ids_flags = 0; in amdgpu_info_ioctl()
809 dev_info->ids_flags |= AMDGPU_IDS_FLAGS_FUSION; in amdgpu_info_ioctl()
811 dev_info->ids_flags |= AMDGPU_IDS_FLAGS_PREEMPTION; in amdgpu_info_ioctl()
813 dev_info->ids_flags |= AMDGPU_IDS_FLAGS_TMZ; in amdgpu_info_ioctl()
815 dev_info->ids_flags |= AMDGPU_IDS_FLAGS_CONFORMANT_TRUNC_COORD; in amdgpu_info_ioctl()
825 dev_info->virtual_address_offset = AMDGPU_VA_RESERVED_SIZE; in amdgpu_info_ioctl()
826 dev_info->virtual_address_max = in amdgpu_info_ioctl()
830 dev_info->high_va_offset = AMDGPU_GMC_HOLE_END; in amdgpu_info_ioctl()
831 dev_info->high_va_max = AMDGPU_GMC_HOLE_END | vm_size; in amdgpu_info_ioctl()
833 dev_info->virtual_address_alignment = max_t(u32, PAGE_SIZE, AMDGPU_GPU_PAGE_SIZE); in amdgpu_info_ioctl()
834 dev_info->pte_fragment_size = (1 << adev->vm_manager.fragment_size) * AMDGPU_GPU_PAGE_SIZE; in amdgpu_info_ioctl()
835 dev_info->gart_page_size = max_t(u32, PAGE_SIZE, AMDGPU_GPU_PAGE_SIZE); in amdgpu_info_ioctl()
836 dev_info->cu_active_number = adev->gfx.cu_info.number; in amdgpu_info_ioctl()
837 dev_info->cu_ao_mask = adev->gfx.cu_info.ao_cu_mask; in amdgpu_info_ioctl()
838 dev_info->ce_ram_size = adev->gfx.ce_ram_size; in amdgpu_info_ioctl()
839 memcpy(&dev_info->cu_ao_bitmap[0], &adev->gfx.cu_info.ao_cu_bitmap[0], in amdgpu_info_ioctl()
841 memcpy(&dev_info->cu_bitmap[0], &adev->gfx.cu_info.bitmap[0], in amdgpu_info_ioctl()
842 sizeof(dev_info->cu_bitmap)); in amdgpu_info_ioctl()
843 dev_info->vram_type = adev->gmc.vram_type; in amdgpu_info_ioctl()
844 dev_info->vram_bit_width = adev->gmc.vram_width; in amdgpu_info_ioctl()
845 dev_info->vce_harvest_config = adev->vce.harvest_config; in amdgpu_info_ioctl()
846 dev_info->gc_double_offchip_lds_buf = in amdgpu_info_ioctl()
848 dev_info->wave_front_size = adev->gfx.cu_info.wave_front_size; in amdgpu_info_ioctl()
849 dev_info->num_shader_visible_vgprs = adev->gfx.config.max_gprs; in amdgpu_info_ioctl()
850 dev_info->num_cu_per_sh = adev->gfx.config.max_cu_per_sh; in amdgpu_info_ioctl()
851 dev_info->num_tcc_blocks = adev->gfx.config.max_texture_channel_caches; in amdgpu_info_ioctl()
852 dev_info->gs_vgt_table_depth = adev->gfx.config.gs_vgt_table_depth; in amdgpu_info_ioctl()
853 dev_info->gs_prim_buffer_depth = adev->gfx.config.gs_prim_buffer_depth; in amdgpu_info_ioctl()
854 dev_info->max_gs_waves_per_vgt = adev->gfx.config.max_gs_threads; in amdgpu_info_ioctl()
857 dev_info->pa_sc_tile_steering_override = in amdgpu_info_ioctl()
860 dev_info->tcc_disabled_mask = adev->gfx.config.tcc_disabled_mask; in amdgpu_info_ioctl()
864 dev_info->pcie_gen = fls(pcie_gen_mask); in amdgpu_info_ioctl()
865 dev_info->pcie_num_lanes = in amdgpu_info_ioctl()
873 dev_info->tcp_cache_size = adev->gfx.config.gc_tcp_l1_size; in amdgpu_info_ioctl()
874 dev_info->num_sqc_per_wgp = adev->gfx.config.gc_num_sqc_per_wgp; in amdgpu_info_ioctl()
875 dev_info->sqc_data_cache_size = adev->gfx.config.gc_l1_data_cache_size_per_sqc; in amdgpu_info_ioctl()
876 dev_info->sqc_inst_cache_size = adev->gfx.config.gc_l1_instruction_cache_size_per_sqc; in amdgpu_info_ioctl()
877 dev_info->gl1c_cache_size = adev->gfx.config.gc_gl1c_size_per_instance * in amdgpu_info_ioctl()
879 dev_info->gl2c_cache_size = adev->gfx.config.gc_gl2c_per_gpu; in amdgpu_info_ioctl()
880 dev_info->mall_size = adev->gmc.mall_size; in amdgpu_info_ioctl()
888 dev_info->shadow_size = shadow_info.shadow_size; in amdgpu_info_ioctl()
889 dev_info->shadow_alignment = shadow_info.shadow_alignment; in amdgpu_info_ioctl()
890 dev_info->csa_size = shadow_info.csa_size; in amdgpu_info_ioctl()
891 dev_info->csa_alignment = shadow_info.csa_alignment; in amdgpu_info_ioctl()
895 ret = copy_to_user(out, dev_info, in amdgpu_info_ioctl()
896 min((size_t)size, sizeof(*dev_info))) ? -EFAULT : 0; in amdgpu_info_ioctl()
897 kfree(dev_info); in amdgpu_info_ioctl()