• Home
  • Raw
  • Download

Lines Matching full:dev

33 drm_public int amdgpu_query_info(amdgpu_device_handle dev, unsigned info_id,  in amdgpu_query_info()  argument
43 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_info()
47 drm_public int amdgpu_query_crtc_from_id(amdgpu_device_handle dev, unsigned id, in amdgpu_query_crtc_from_id() argument
58 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_crtc_from_id()
62 drm_public int amdgpu_read_mm_registers(amdgpu_device_handle dev, in amdgpu_read_mm_registers() argument
77 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_read_mm_registers()
81 drm_public int amdgpu_query_hw_ip_count(amdgpu_device_handle dev, in amdgpu_query_hw_ip_count() argument
93 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_hw_ip_count()
97 drm_public int amdgpu_query_hw_ip_info(amdgpu_device_handle dev, unsigned type, in amdgpu_query_hw_ip_info() argument
110 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_hw_ip_info()
114 drm_public int amdgpu_query_firmware_version(amdgpu_device_handle dev, in amdgpu_query_firmware_version() argument
130 r = drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_firmware_version()
140 drm_private int amdgpu_query_gpu_info_init(amdgpu_device_handle dev) in amdgpu_query_gpu_info_init() argument
144 r = amdgpu_query_info(dev, AMDGPU_INFO_DEV_INFO, sizeof(dev->dev_info), in amdgpu_query_gpu_info_init()
145 &dev->dev_info); in amdgpu_query_gpu_info_init()
149 dev->info.asic_id = dev->dev_info.device_id; in amdgpu_query_gpu_info_init()
150 dev->info.chip_rev = dev->dev_info.chip_rev; in amdgpu_query_gpu_info_init()
151 dev->info.chip_external_rev = dev->dev_info.external_rev; in amdgpu_query_gpu_info_init()
152 dev->info.family_id = dev->dev_info.family; in amdgpu_query_gpu_info_init()
153 dev->info.max_engine_clk = dev->dev_info.max_engine_clock; in amdgpu_query_gpu_info_init()
154 dev->info.max_memory_clk = dev->dev_info.max_memory_clock; in amdgpu_query_gpu_info_init()
155 dev->info.gpu_counter_freq = dev->dev_info.gpu_counter_freq; in amdgpu_query_gpu_info_init()
156 dev->info.enabled_rb_pipes_mask = dev->dev_info.enabled_rb_pipes_mask; in amdgpu_query_gpu_info_init()
157 dev->info.rb_pipes = dev->dev_info.num_rb_pipes; in amdgpu_query_gpu_info_init()
158 dev->info.ids_flags = dev->dev_info.ids_flags; in amdgpu_query_gpu_info_init()
159 dev->info.num_hw_gfx_contexts = dev->dev_info.num_hw_gfx_contexts; in amdgpu_query_gpu_info_init()
160 dev->info.num_shader_engines = dev->dev_info.num_shader_engines; in amdgpu_query_gpu_info_init()
161 dev->info.num_shader_arrays_per_engine = in amdgpu_query_gpu_info_init()
162 dev->dev_info.num_shader_arrays_per_engine; in amdgpu_query_gpu_info_init()
163 dev->info.vram_type = dev->dev_info.vram_type; in amdgpu_query_gpu_info_init()
164 dev->info.vram_bit_width = dev->dev_info.vram_bit_width; in amdgpu_query_gpu_info_init()
165 dev->info.ce_ram_size = dev->dev_info.ce_ram_size; in amdgpu_query_gpu_info_init()
166 dev->info.vce_harvest_config = dev->dev_info.vce_harvest_config; in amdgpu_query_gpu_info_init()
167 dev->info.pci_rev_id = dev->dev_info.pci_rev; in amdgpu_query_gpu_info_init()
169 if (dev->info.family_id < AMDGPU_FAMILY_AI) { in amdgpu_query_gpu_info_init()
170 for (i = 0; i < (int)dev->info.num_shader_engines; i++) { in amdgpu_query_gpu_info_init()
175 r = amdgpu_read_mm_registers(dev, 0x263d, 1, instance, 0, in amdgpu_query_gpu_info_init()
176 &dev->info.backend_disable[i]); in amdgpu_query_gpu_info_init()
180 dev->info.backend_disable[i] = in amdgpu_query_gpu_info_init()
181 (dev->info.backend_disable[i] >> 16) & 0xff; in amdgpu_query_gpu_info_init()
183 r = amdgpu_read_mm_registers(dev, 0xa0d4, 1, instance, 0, in amdgpu_query_gpu_info_init()
184 &dev->info.pa_sc_raster_cfg[i]); in amdgpu_query_gpu_info_init()
188 if (dev->info.family_id >= AMDGPU_FAMILY_CI) { in amdgpu_query_gpu_info_init()
189 r = amdgpu_read_mm_registers(dev, 0xa0d5, 1, instance, 0, in amdgpu_query_gpu_info_init()
190 &dev->info.pa_sc_raster_cfg1[i]); in amdgpu_query_gpu_info_init()
197 r = amdgpu_read_mm_registers(dev, 0x263e, 1, 0xffffffff, 0, in amdgpu_query_gpu_info_init()
198 &dev->info.gb_addr_cfg); in amdgpu_query_gpu_info_init()
202 if (dev->info.family_id < AMDGPU_FAMILY_AI) { in amdgpu_query_gpu_info_init()
203 r = amdgpu_read_mm_registers(dev, 0x2644, 32, 0xffffffff, 0, in amdgpu_query_gpu_info_init()
204 dev->info.gb_tile_mode); in amdgpu_query_gpu_info_init()
208 if (dev->info.family_id >= AMDGPU_FAMILY_CI) { in amdgpu_query_gpu_info_init()
209 r = amdgpu_read_mm_registers(dev, 0x2664, 16, 0xffffffff, 0, in amdgpu_query_gpu_info_init()
210 dev->info.gb_macro_tile_mode); in amdgpu_query_gpu_info_init()
215 r = amdgpu_read_mm_registers(dev, 0x9d8, 1, 0xffffffff, 0, in amdgpu_query_gpu_info_init()
216 &dev->info.mc_arb_ramcfg); in amdgpu_query_gpu_info_init()
221 dev->info.cu_active_number = dev->dev_info.cu_active_number; in amdgpu_query_gpu_info_init()
222 dev->info.cu_ao_mask = dev->dev_info.cu_ao_mask; in amdgpu_query_gpu_info_init()
223 memcpy(&dev->info.cu_bitmap[0][0], &dev->dev_info.cu_bitmap[0][0], sizeof(dev->info.cu_bitmap)); in amdgpu_query_gpu_info_init()
231 drm_public int amdgpu_query_gpu_info(amdgpu_device_handle dev, in amdgpu_query_gpu_info() argument
234 if (!dev || !info) in amdgpu_query_gpu_info()
238 *info = dev->info; in amdgpu_query_gpu_info()
243 drm_public int amdgpu_query_heap_info(amdgpu_device_handle dev, in amdgpu_query_heap_info() argument
251 r = amdgpu_query_info(dev, AMDGPU_INFO_VRAM_GTT, in amdgpu_query_heap_info()
268 r = amdgpu_query_info(dev, AMDGPU_INFO_VIS_VRAM_USAGE, in amdgpu_query_heap_info()
272 r = amdgpu_query_info(dev, AMDGPU_INFO_VRAM_USAGE, in amdgpu_query_heap_info()
282 r = amdgpu_query_info(dev, AMDGPU_INFO_GTT_USAGE, in amdgpu_query_heap_info()
295 drm_public int amdgpu_query_gds_info(amdgpu_device_handle dev, in amdgpu_query_gds_info() argument
304 r = amdgpu_query_info(dev, AMDGPU_INFO_GDS_CONFIG, in amdgpu_query_gds_info()
320 drm_public int amdgpu_query_sensor_info(amdgpu_device_handle dev, unsigned sensor_type, in amdgpu_query_sensor_info() argument
331 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_sensor_info()
335 drm_public int amdgpu_query_video_caps_info(amdgpu_device_handle dev, unsigned cap_type, in amdgpu_query_video_caps_info() argument
346 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_video_caps_info()