/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ttm.c | 79 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 …]
|
D | amdgpu_preempt_mgr.c | 42 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()
|
D | amdgpu_gtt_mgr.c | 51 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()
|
D | amdgpu_discovery.c | 206 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 …]
|
D | amdgpu_gmc.c | 627 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 …]
|
D | amdgpu_vram_mgr.c | 50 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()
|
D | amdgpu_sdma.h | 112 #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)…
|
D | gmc_v10_0.c | 322 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()
|
D | amdgpu_benchmark.c | 40 struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; in amdgpu_benchmark_do_move() 101 if (adev->mman.buffer_funcs) { in amdgpu_benchmark_move()
|
D | amdgpu_virt.c | 431 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()
|
D | psp_v13_0.c | 539 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()
|
D | psp_v11_0.c | 640 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()
|
D | amdgpu_sdma.c | 297 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/ |
D | qxl_ttm.c | 42 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()
|
D | qxl_object.c | 144 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/ |
D | mmap_flags.sh | 15 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 | \
|
D | mmap_prot.sh | 13 common_mman=${asm_header_dir}/mman-common.h 14 arch_mman=${arch_header_dir}/mman.h
|
D | madvise_behavior.sh | 8 egrep $regex ${header_dir}/mman-common.h | \
|
D | pkey_alloc_access_rights.sh | 8 egrep $regex ${header_dir}/mman-common.h | \
|
D | mremap_flags.sh | 10 linux_mman=${linux_header_dir}/mman.h
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 62 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/ |
D | check-headers.sh | 150 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>"'
|
D | Makefile.perf | 487 $(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/ |
D | i915_live_selftests.h | 32 selftest(mman, i915_gem_mman_live_selftests)
|
/linux-6.1.9/arch/loongarch/include/asm/ |
D | Kbuild | 16 generic-y += mman.h
|