/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_ttm.c | 581 if (adev->mman.aper_base_kaddr && in amdgpu_ttm_io_mem_reserve() 1411 if (!adev->mman.sdma_access_ptr) in amdgpu_ttm_access_memory_sdma() 1673 adev->mman.discovery_tmr_size = in amdgpu_ttm_reserve_tmr() 1697 &adev->mman.discovery_memory, in amdgpu_ttm_reserve_tmr() 1734 adev->mman.initialized = true; in amdgpu_ttm_init() 1779 if (adev->mman.discovery_bin) { in amdgpu_ttm_init() 1869 &adev->mman.sdma_access_ptr)) in amdgpu_ttm_init() 1881 if (!adev->mman.initialized) in amdgpu_ttm_fini() 1894 &adev->mman.sdma_access_ptr); in amdgpu_ttm_fini() 1900 if (adev->mman.aper_base_kaddr) in amdgpu_ttm_fini() [all …]
|
A 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()
|
A 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()
|
A D | amdgpu_discovery.c | 207 adev->mman.discovery_tmr_size, false); in amdgpu_discovery_read_binary_from_vram() 298 adev->mman.discovery_bin = kzalloc(adev->mman.discovery_tmr_size, GFP_KERNEL); in amdgpu_discovery_init() 299 if (!adev->mman.discovery_bin) in amdgpu_discovery_init() 457 kfree(adev->mman.discovery_bin); in amdgpu_discovery_init() 458 adev->mman.discovery_bin = NULL; in amdgpu_discovery_init() 468 kfree(adev->mman.discovery_bin); in amdgpu_discovery_fini() 469 adev->mman.discovery_bin = NULL; in amdgpu_discovery_fini() 1222 if (!adev->mman.discovery_bin) { in amdgpu_discovery_get_ip_version() 1308 if (!adev->mman.discovery_bin) { in amdgpu_discovery_get_gfx_info() 1398 if (!adev->mman.discovery_bin) { in amdgpu_discovery_get_mall_info() [all …]
|
A D | amdgpu_gmc.c | 636 adev->mman.stolen_reserved_offset = 0; in amdgpu_gmc_get_vbios_allocations() 637 adev->mman.stolen_reserved_size = 0; in amdgpu_gmc_get_vbios_allocations() 649 adev->mman.keep_stolen_vga_memory = true; in amdgpu_gmc_get_vbios_allocations() 655 adev->mman.stolen_reserved_offset = 0x500000; in amdgpu_gmc_get_vbios_allocations() 656 adev->mman.stolen_reserved_size = 0x200000; in amdgpu_gmc_get_vbios_allocations() 662 adev->mman.keep_stolen_vga_memory = true; in amdgpu_gmc_get_vbios_allocations() 671 adev->mman.keep_stolen_vga_memory = false; in amdgpu_gmc_get_vbios_allocations() 681 if (adev->mman.keep_stolen_vga_memory) in amdgpu_gmc_get_vbios_allocations() 691 adev->mman.stolen_extended_size = size - adev->mman.stolen_vga_size; in amdgpu_gmc_get_vbios_allocations() 693 adev->mman.stolen_vga_size = size; in amdgpu_gmc_get_vbios_allocations() [all …]
|
A D | amdgpu_virt.c | 433 if (adev->mman.fw_vram_usage_va) in amdgpu_virt_add_bad_page() 434 vram_usage_va = adev->mman.fw_vram_usage_va; in amdgpu_virt_add_bad_page() 436 vram_usage_va = adev->mman.drv_vram_usage_va; in amdgpu_virt_add_bad_page() 601 ttm_resource_manager_usage(&adev->mman.vram_mgr.manager) >> 20; in amdgpu_virt_write_vf2pf_data() 603 amdgpu_vram_mgr_vis_usage(&adev->mman.vram_mgr) >> 20; in amdgpu_virt_write_vf2pf_data() 652 if (adev->mman.fw_vram_usage_va && adev->mman.drv_vram_usage_va) { in amdgpu_virt_init_data_exchange() 654 } else if (adev->mman.fw_vram_usage_va || adev->mman.drv_vram_usage_va) { in amdgpu_virt_init_data_exchange() 677 if (adev->mman.fw_vram_usage_va || adev->mman.drv_vram_usage_va) { in amdgpu_virt_exchange_data() 678 if (adev->mman.fw_vram_usage_va) { in amdgpu_virt_exchange_data() 681 (adev->mman.fw_vram_usage_va + (AMD_SRIOV_MSG_PF2VF_OFFSET_KB << 10)); in amdgpu_virt_exchange_data() [all …]
|
A 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() 837 struct amdgpu_vram_mgr *mgr = &adev->mman.vram_mgr; in amdgpu_vram_mgr_init() 841 ttm_resource_manager_init(man, &adev->mman.bdev, in amdgpu_vram_mgr_init() 855 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager); in amdgpu_vram_mgr_init() 870 struct amdgpu_vram_mgr *mgr = &adev->mman.vram_mgr; in amdgpu_vram_mgr_fini() 877 ret = ttm_resource_manager_evict_all(&adev->mman.bdev, man); in amdgpu_vram_mgr_fini() 893 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, NULL); in amdgpu_vram_mgr_fini()
|
A 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)…
|
A D | gmc_v10_0.c | 334 struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; in gmc_v10_0_flush_gpu_tlb() 362 mutex_lock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb() 366 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb() 372 if (!adev->mman.buffer_funcs_enabled || in gmc_v10_0_flush_gpu_tlb() 377 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb() 386 r = amdgpu_job_alloc_with_ib(ring->adev, &adev->mman.entity, in gmc_v10_0_flush_gpu_tlb() 399 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb() 407 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb() 1073 amdgpu_gtt_mgr_recover(&adev->mman.gtt_mgr); in gmc_v10_0_gart_enable()
|
A 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()
|
A D | psp_v11_0.c | 511 if (adev->gmc.visible_vram_size < sz || !adev->mman.aper_base_kaddr) { in psp_v11_0_memory_training() 514 adev->mman.aper_base_kaddr); in psp_v11_0_memory_training() 525 memcpy_fromio(buf, adev->mman.aper_base_kaddr, sz); in psp_v11_0_memory_training() 534 memcpy_toio(adev->mman.aper_base_kaddr, buf, sz); in psp_v11_0_memory_training()
|
A D | amdgpu_atomfirmware.c | 122 adev->mman.fw_vram_usage_start_offset = (start_addr & in amdgpu_atomfirmware_allocate_fb_v2_1() 124 adev->mman.fw_vram_usage_size = fw_size << 10; in amdgpu_atomfirmware_allocate_fb_v2_1() 154 adev->mman.fw_vram_usage_start_offset = (fw_start_addr & in amdgpu_atomfirmware_allocate_fb_v2_2() 156 adev->mman.fw_vram_usage_size = fw_size << 10; in amdgpu_atomfirmware_allocate_fb_v2_2() 163 adev->mman.drv_vram_usage_start_offset = (drv_start_addr & in amdgpu_atomfirmware_allocate_fb_v2_2() 165 adev->mman.drv_vram_usage_size = drv_size << 10; in amdgpu_atomfirmware_allocate_fb_v2_2()
|
A D | psp_v13_0.c | 500 if (adev->gmc.visible_vram_size < sz || !adev->mman.aper_base_kaddr) { in psp_v13_0_memory_training() 503 adev->mman.aper_base_kaddr); in psp_v13_0_memory_training() 514 memcpy_fromio(buf, adev->mman.aper_base_kaddr, sz); in psp_v13_0_memory_training() 523 memcpy_toio(adev->mman.aper_base_kaddr, buf, sz); in psp_v13_0_memory_training()
|
/linux-6.3-rc2/drivers/gpu/drm/qxl/ |
A 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()
|
A D | qxl_object.c | 144 r = ttm_bo_init_reserved(&qdev->mman.bdev, &bo->tbo, type, in qxl_bo_create() 405 man = ttm_manager_type(&qdev->mman.bdev, TTM_PL_PRIV); in qxl_surf_evict() 406 return ttm_resource_manager_evict_all(&qdev->mman.bdev, man); in qxl_surf_evict() 413 man = ttm_manager_type(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_vram_evict() 414 return ttm_resource_manager_evict_all(&qdev->mman.bdev, man); in qxl_vram_evict()
|
/linux-6.3-rc2/tools/perf/trace/beauty/ |
A D | mmap_flags.sh | 15 linux_mman=${linux_header_dir}/mman.h 16 arch_mman=${arch_header_dir}/mman.h 32 (grep -E $regex ${header_dir}/mman-common.h | \ 37 (grep -E $regex ${header_dir}/mman.h | \
|
A D | mmap_prot.sh | 13 common_mman=${asm_header_dir}/mman-common.h 14 arch_mman=${arch_header_dir}/mman.h
|
A D | madvise_behavior.sh | 8 grep -E $regex ${header_dir}/mman-common.h | \
|
A D | pkey_alloc_access_rights.sh | 8 grep -E $regex ${header_dir}/mman-common.h | \
|
A D | mremap_flags.sh | 10 linux_mman=${linux_header_dir}/mman.h
|
/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
A 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() 78 return ttm_range_man_init(&rdev->mman.bdev, TTM_PL_TT, in radeon_ttm_init_gtt() 582 return ttm_pool_free(&rdev->mman.bdev.pool, ttm); in radeon_ttm_tt_unpopulate() 704 rdev->mman.initialized = true; in radeon_ttm_init() 749 if (!rdev->mman.initialized) in radeon_ttm_fini() 761 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_TT); in radeon_ttm_fini() 762 ttm_device_fini(&rdev->mman.bdev); in radeon_ttm_fini() 764 rdev->mman.initialized = false; in radeon_ttm_fini() [all …]
|
/linux-6.3-rc2/tools/perf/ |
A 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>"'
|
A D | Makefile.perf | 491 $(pkey_alloc_access_rights_array): $(asm_generic_hdr_dir)/mman-common.h $(pkey_alloc_access_rights_… 552 $(madvise_behavior_array): $(madvise_hdr_dir)/mman-common.h $(madvise_behavior_tbl) 558 $(mmap_flags_array): $(linux_uapi_dir)/mman.h $(asm_generic_uapi_dir)/mman.h $(asm_generic_uapi_dir… 564 $(mremap_flags_array): $(linux_uapi_dir)/mman.h $(mremap_flags_tbl) 583 $(mmap_prot_array): $(asm_generic_uapi_dir)/mman.h $(asm_generic_uapi_dir)/mman-common.h $(mmap_pro…
|
/linux-6.3-rc2/drivers/gpu/drm/i915/selftests/ |
A D | i915_live_selftests.h | 32 selftest(mman, i915_gem_mman_live_selftests)
|
/linux-6.3-rc2/arch/loongarch/include/asm/ |
A D | Kbuild | 16 generic-y += mman.h
|