Home
last modified time | relevance | path

Searched refs:mman (Results 1 – 25 of 74) sorted by relevance

123

/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c79 return ttm_range_man_init(&adev->mman.bdev, type, in amdgpu_ttm_init_on_chip()
135 if (!adev->mman.buffer_funcs_enabled) { in amdgpu_evict_flags()
199 BUG_ON(adev->mman.buffer_funcs->copy_max_bytes < in amdgpu_ttm_map_buffer()
229 num_dw = ALIGN(adev->mman.buffer_funcs->copy_num_dw, 8); in amdgpu_ttm_map_buffer()
272 r = amdgpu_job_submit(job, &adev->mman.entity, in amdgpu_ttm_map_buffer()
308 struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; in amdgpu_ttm_copy_mem_to_mem()
313 if (!adev->mman.buffer_funcs_enabled) { in amdgpu_ttm_copy_mem_to_mem()
321 mutex_lock(&adev->mman.gtt_window_lock); in amdgpu_ttm_copy_mem_to_mem()
352 mutex_unlock(&adev->mman.gtt_window_lock); in amdgpu_ttm_copy_mem_to_mem()
528 if (adev->mman.buffer_funcs_enabled) { in amdgpu_bo_move()
[all …]
Damdgpu_preempt_mgr.c42 struct ttm_resource_manager *man = &adev->mman.preempt_mgr; in mem_info_preempt_used_show()
102 struct ttm_resource_manager *man = &adev->mman.preempt_mgr; in amdgpu_preempt_mgr_init()
108 ttm_resource_manager_init(man, &adev->mman.bdev, (1 << 30)); in amdgpu_preempt_mgr_init()
116 ttm_set_driver_manager(&adev->mman.bdev, AMDGPU_PL_PREEMPT, man); in amdgpu_preempt_mgr_init()
131 struct ttm_resource_manager *man = &adev->mman.preempt_mgr; in amdgpu_preempt_mgr_fini()
136 ret = ttm_resource_manager_evict_all(&adev->mman.bdev, man); in amdgpu_preempt_mgr_fini()
143 ttm_set_driver_manager(&adev->mman.bdev, AMDGPU_PL_PREEMPT, NULL); in amdgpu_preempt_mgr_fini()
Damdgpu_gtt_mgr.c51 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_TT); in amdgpu_mem_info_gtt_total_show()
69 struct ttm_resource_manager *man = &adev->mman.gtt_mgr.manager; in amdgpu_mem_info_gtt_used_show()
196 adev = container_of(mgr, typeof(*adev), mman.gtt_mgr); in amdgpu_gtt_mgr_recover()
279 struct amdgpu_gtt_mgr *mgr = &adev->mman.gtt_mgr; in amdgpu_gtt_mgr_init()
286 ttm_resource_manager_init(man, &adev->mman.bdev, gtt_size); in amdgpu_gtt_mgr_init()
293 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_TT, &mgr->manager); in amdgpu_gtt_mgr_init()
308 struct amdgpu_gtt_mgr *mgr = &adev->mman.gtt_mgr; in amdgpu_gtt_mgr_fini()
314 ret = ttm_resource_manager_evict_all(&adev->mman.bdev, man); in amdgpu_gtt_mgr_fini()
323 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_TT, NULL); in amdgpu_gtt_mgr_fini()
Damdgpu_discovery.c206 adev->mman.discovery_tmr_size, false); in amdgpu_discovery_read_binary_from_vram()
296 adev->mman.discovery_tmr_size = DISCOVERY_TMR_SIZE; in amdgpu_discovery_init()
297 adev->mman.discovery_bin = kzalloc(adev->mman.discovery_tmr_size, GFP_KERNEL); in amdgpu_discovery_init()
298 if (!adev->mman.discovery_bin) in amdgpu_discovery_init()
301 r = amdgpu_discovery_read_binary_from_vram(adev, adev->mman.discovery_bin); in amdgpu_discovery_init()
308 if (!amdgpu_discovery_verify_binary_signature(adev->mman.discovery_bin)) { in amdgpu_discovery_init()
311 r = amdgpu_discovery_read_binary_from_file(adev, adev->mman.discovery_bin); in amdgpu_discovery_init()
318 if(!amdgpu_discovery_verify_binary_signature(adev->mman.discovery_bin)) { in amdgpu_discovery_init()
325 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_init()
332 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
[all …]
Damdgpu_gmc.c627 adev->mman.stolen_reserved_offset = 0; in amdgpu_gmc_get_vbios_allocations()
628 adev->mman.stolen_reserved_size = 0; in amdgpu_gmc_get_vbios_allocations()
640 adev->mman.keep_stolen_vga_memory = true; in amdgpu_gmc_get_vbios_allocations()
646 adev->mman.stolen_reserved_offset = 0x500000; in amdgpu_gmc_get_vbios_allocations()
647 adev->mman.stolen_reserved_size = 0x200000; in amdgpu_gmc_get_vbios_allocations()
653 adev->mman.keep_stolen_vga_memory = true; in amdgpu_gmc_get_vbios_allocations()
657 adev->mman.stolen_reserved_offset = 0x1ffb0000; in amdgpu_gmc_get_vbios_allocations()
658 adev->mman.stolen_reserved_size = 64 * PAGE_SIZE; in amdgpu_gmc_get_vbios_allocations()
662 adev->mman.keep_stolen_vga_memory = false; in amdgpu_gmc_get_vbios_allocations()
672 if (adev->mman.keep_stolen_vga_memory) in amdgpu_gmc_get_vbios_allocations()
[all …]
Damdgpu_vram_mgr.c50 return container_of(mgr, struct amdgpu_device, mman.vram_mgr); in to_amdgpu_device()
130 struct ttm_resource_manager *man = &adev->mman.vram_mgr.manager; in amdgpu_mem_info_vram_used_show()
151 amdgpu_vram_mgr_vis_usage(&adev->mman.vram_mgr)); in amdgpu_mem_info_vis_vram_used_show()
836 struct amdgpu_vram_mgr *mgr = &adev->mman.vram_mgr; in amdgpu_vram_mgr_init()
840 ttm_resource_manager_init(man, &adev->mman.bdev, in amdgpu_vram_mgr_init()
854 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager); in amdgpu_vram_mgr_init()
869 struct amdgpu_vram_mgr *mgr = &adev->mman.vram_mgr; in amdgpu_vram_mgr_fini()
876 ret = ttm_resource_manager_evict_all(&adev->mman.bdev, man); in amdgpu_vram_mgr_fini()
892 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, NULL); in amdgpu_vram_mgr_fini()
Damdgpu_sdma.h112 #define amdgpu_emit_copy_buffer(adev, ib, s, d, b, t) (adev)->mman.buffer_funcs->emit_copy_buffer((…
113 #define amdgpu_emit_fill_buffer(adev, ib, s, d, b) (adev)->mman.buffer_funcs->emit_fill_buffer((ib)…
Dgmc_v10_0.c322 struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; in gmc_v10_0_flush_gpu_tlb()
350 mutex_lock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb()
354 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb()
360 if (!adev->mman.buffer_funcs_enabled || in gmc_v10_0_flush_gpu_tlb()
365 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb()
383 r = amdgpu_job_submit(job, &adev->mman.entity, in gmc_v10_0_flush_gpu_tlb()
388 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb()
399 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb()
1060 amdgpu_gtt_mgr_recover(&adev->mman.gtt_mgr); in gmc_v10_0_gart_enable()
Damdgpu_benchmark.c40 struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; in amdgpu_benchmark_do_move()
101 if (adev->mman.buffer_funcs) { in amdgpu_benchmark_move()
Damdgpu_virt.c431 retired_page = *(uint64_t *)(adev->mman.fw_vram_usage_va + in amdgpu_virt_add_bad_page()
591 ttm_resource_manager_usage(&adev->mman.vram_mgr.manager) >> 20; in amdgpu_virt_write_vf2pf_data()
593 amdgpu_vram_mgr_vis_usage(&adev->mman.vram_mgr) >> 20; in amdgpu_virt_write_vf2pf_data()
642 if (adev->mman.fw_vram_usage_va != NULL) { in amdgpu_virt_init_data_exchange()
665 if (adev->mman.fw_vram_usage_va != NULL) { in amdgpu_virt_exchange_data()
669 (adev->mman.fw_vram_usage_va + (AMD_SRIOV_MSG_PF2VF_OFFSET_KB << 10)); in amdgpu_virt_exchange_data()
672 (adev->mman.fw_vram_usage_va + (AMD_SRIOV_MSG_VF2PF_OFFSET_KB << 10)); in amdgpu_virt_exchange_data()
Dpsp_v13_0.c539 if (adev->gmc.visible_vram_size < sz || !adev->mman.aper_base_kaddr) { in psp_v13_0_memory_training()
542 adev->mman.aper_base_kaddr); in psp_v13_0_memory_training()
553 memcpy_fromio(buf, adev->mman.aper_base_kaddr, sz); in psp_v13_0_memory_training()
562 memcpy_toio(adev->mman.aper_base_kaddr, buf, sz); in psp_v13_0_memory_training()
Dpsp_v11_0.c640 if (adev->gmc.visible_vram_size < sz || !adev->mman.aper_base_kaddr) { in psp_v11_0_memory_training()
643 adev->mman.aper_base_kaddr); in psp_v11_0_memory_training()
654 memcpy_fromio(buf, adev->mman.aper_base_kaddr, sz); in psp_v11_0_memory_training()
663 memcpy_toio(adev->mman.aper_base_kaddr, buf, sz); in psp_v11_0_memory_training()
Damdgpu_sdma.c297 if (adev->mman.buffer_funcs_ring == sdma) { in amdgpu_sdma_unset_buffer_funcs_helper()
303 if (adev->mman.buffer_funcs_ring == sdma) { in amdgpu_sdma_unset_buffer_funcs_helper()
/linux-6.1.9/drivers/gpu/drm/qxl/
Dqxl_ttm.c42 struct qxl_mman *mman; in qxl_get_qdev() local
45 mman = container_of(bdev, struct qxl_mman, bdev); in qxl_get_qdev()
46 qdev = container_of(mman, struct qxl_device, mman); in qxl_get_qdev()
178 return ttm_range_man_init(&qdev->mman.bdev, type, false, size); in qxl_ttm_init_mem_type()
187 r = ttm_device_init(&qdev->mman.bdev, &qxl_bo_driver, NULL, in qxl_ttm_init()
219 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini()
220 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_PRIV); in qxl_ttm_fini()
221 ttm_device_fini(&qdev->mman.bdev); in qxl_ttm_fini()
228 ttm_resource_manager_create_debugfs(ttm_manager_type(&qdev->mman.bdev, in qxl_ttm_debugfs_init()
231 ttm_resource_manager_create_debugfs(ttm_manager_type(&qdev->mman.bdev, in qxl_ttm_debugfs_init()
Dqxl_object.c144 r = ttm_bo_init_reserved(&qdev->mman.bdev, &bo->tbo, type, in qxl_bo_create()
404 man = ttm_manager_type(&qdev->mman.bdev, TTM_PL_PRIV); in qxl_surf_evict()
405 return ttm_resource_manager_evict_all(&qdev->mman.bdev, man); in qxl_surf_evict()
412 man = ttm_manager_type(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_vram_evict()
413 return ttm_resource_manager_evict_all(&qdev->mman.bdev, man); in qxl_vram_evict()
/linux-6.1.9/tools/perf/trace/beauty/
Dmmap_flags.sh15 linux_mman=${linux_header_dir}/mman.h
16 arch_mman=${arch_header_dir}/mman.h
32 (egrep $regex ${header_dir}/mman-common.h | \
37 (egrep $regex ${header_dir}/mman.h | \
Dmmap_prot.sh13 common_mman=${asm_header_dir}/mman-common.h
14 arch_mman=${arch_header_dir}/mman.h
Dmadvise_behavior.sh8 egrep $regex ${header_dir}/mman-common.h | \
Dpkey_alloc_access_rights.sh8 egrep $regex ${header_dir}/mman-common.h | \
Dmremap_flags.sh10 linux_mman=${linux_header_dir}/mman.h
/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_ttm.c62 struct radeon_mman *mman; in radeon_get_rdev() local
65 mman = container_of(bdev, struct radeon_mman, bdev); in radeon_get_rdev()
66 rdev = container_of(mman, struct radeon_device, mman); in radeon_get_rdev()
72 return ttm_range_man_init(&rdev->mman.bdev, TTM_PL_VRAM, in radeon_ttm_init_vram()
78 return ttm_range_man_init(&rdev->mman.bdev, TTM_PL_TT, in radeon_ttm_init_gtt()
562 return ttm_pool_alloc(&rdev->mman.bdev.pool, ttm, ctx); in radeon_ttm_tt_populate()
582 return ttm_pool_free(&rdev->mman.bdev.pool, ttm); in radeon_ttm_tt_unpopulate()
695 r = ttm_device_init(&rdev->mman.bdev, &radeon_bo_driver, rdev->dev, in radeon_ttm_init()
704 rdev->mman.initialized = true; in radeon_ttm_init()
749 if (!rdev->mman.initialized) in radeon_ttm_fini()
[all …]
/linux-6.1.9/tools/perf/
Dcheck-headers.sh150 check include/uapi/asm-generic/mman.h '-I "^#include <\(uapi/\)*asm-generic/mman-common\(-tools\)*.…
151 check include/uapi/linux/mman.h '-I "^#include <\(uapi/\)*asm/mman.h>"'
DMakefile.perf487 $(pkey_alloc_access_rights_array): $(asm_generic_hdr_dir)/mman-common.h $(pkey_alloc_access_rights_…
548 $(madvise_behavior_array): $(madvise_hdr_dir)/mman-common.h $(madvise_behavior_tbl)
554 $(mmap_flags_array): $(linux_uapi_dir)/mman.h $(asm_generic_uapi_dir)/mman.h $(asm_generic_uapi_dir…
560 $(mremap_flags_array): $(linux_uapi_dir)/mman.h $(mremap_flags_tbl)
579 $(mmap_prot_array): $(asm_generic_uapi_dir)/mman.h $(asm_generic_uapi_dir)/mman-common.h $(mmap_pro…
/linux-6.1.9/drivers/gpu/drm/i915/selftests/
Di915_live_selftests.h32 selftest(mman, i915_gem_mman_live_selftests)
/linux-6.1.9/arch/loongarch/include/asm/
DKbuild16 generic-y += mman.h

123