Home
last modified time | relevance | path

Searched refs:hw_ip (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ctx.c139 static unsigned int amdgpu_ctx_get_hw_prio(struct amdgpu_ctx *ctx, u32 hw_ip) in amdgpu_ctx_get_hw_prio() argument
148 switch (hw_ip) { in amdgpu_ctx_get_hw_prio()
162 hw_ip = array_index_nospec(hw_ip, AMDGPU_HW_IP_NUM); in amdgpu_ctx_get_hw_prio()
163 if (adev->gpu_sched[hw_ip][hw_prio].num_scheds == 0) in amdgpu_ctx_get_hw_prio()
204 static int amdgpu_ctx_init_entity(struct amdgpu_ctx *ctx, u32 hw_ip, in amdgpu_ctx_init_entity() argument
221 entity->hw_ip = hw_ip; in amdgpu_ctx_init_entity()
223 hw_prio = amdgpu_ctx_get_hw_prio(ctx, hw_ip); in amdgpu_ctx_init_entity()
226 hw_ip = array_index_nospec(hw_ip, AMDGPU_HW_IP_NUM); in amdgpu_ctx_init_entity()
229 scheds = adev->gpu_sched[hw_ip][hw_prio].sched; in amdgpu_ctx_init_entity()
230 num_scheds = adev->gpu_sched[hw_ip][hw_prio].num_scheds; in amdgpu_ctx_init_entity()
[all …]
/linux/drivers/accel/habanalabs/common/
H A Dhabanalabs_ioctl.c51 struct hl_info_hw_ip_info hw_ip = {0}; in hw_ip_info() local
65 hw_ip.device_id = hdev->asic_funcs->get_pci_id(hdev); in hw_ip_info()
66 hw_ip.sram_base_address = prop->sram_user_base_address; in hw_ip_info()
67 hw_ip.dram_base_address = in hw_ip_info()
70 hw_ip.tpc_enabled_mask = prop->tpc_enabled_mask & 0xFF; in hw_ip_info()
71 hw_ip.tpc_enabled_mask_ext = prop->tpc_enabled_mask; in hw_ip_info()
73 hw_ip.sram_size = prop->sram_size - sram_kmd_size; in hw_ip_info()
77 hw_ip.dram_size = DIV_ROUND_DOWN_ULL(dram_available_size, prop->dram_page_size) * in hw_ip_info()
80 if (hw_ip.dram_size > PAGE_SIZE) in hw_ip_info()
81 hw_ip.dram_enabled = 1; in hw_ip_info()
[all …]