Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_discovery.c139 adev->mman.discovery_tmr_size, false); in amdgpu_discovery_read_binary()
171 adev->mman.discovery_tmr_size = DISCOVERY_TMR_SIZE; in amdgpu_discovery_init()
172 adev->mman.discovery_bin = kzalloc(adev->mman.discovery_tmr_size, GFP_KERNEL); in amdgpu_discovery_init()
173 if (!adev->mman.discovery_bin) in amdgpu_discovery_init()
176 r = amdgpu_discovery_read_binary(adev, adev->mman.discovery_bin); in amdgpu_discovery_init()
182 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_init()
195 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
205 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
213 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
223 ghdr = (struct gpu_info_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
[all …]
Damdgpu_ttm.c74 return ttm_range_man_init(&adev->mman.bdev, type, in amdgpu_ttm_init_on_chip()
124 if (!adev->mman.buffer_funcs_enabled) { in amdgpu_evict_flags()
255 BUG_ON(adev->mman.buffer_funcs->copy_max_bytes < in amdgpu_ttm_map_buffer()
269 num_dw = ALIGN(adev->mman.buffer_funcs->copy_num_dw, 8); in amdgpu_ttm_map_buffer()
320 r = amdgpu_job_submit(job, &adev->mman.entity, in amdgpu_ttm_map_buffer()
360 struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; in amdgpu_ttm_copy_mem_to_mem()
365 if (!adev->mman.buffer_funcs_enabled) { in amdgpu_ttm_copy_mem_to_mem()
388 mutex_lock(&adev->mman.gtt_window_lock); in amdgpu_ttm_copy_mem_to_mem()
448 mutex_unlock(&adev->mman.gtt_window_lock); in amdgpu_ttm_copy_mem_to_mem()
693 if (!adev->mman.buffer_funcs_enabled) { in amdgpu_bo_move()
[all …]
Damdgpu_gtt_mgr.c50 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_TT); in amdgpu_mem_info_gtt_total_show()
69 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_TT); in amdgpu_mem_info_gtt_used_show()
91 struct amdgpu_gtt_mgr *mgr = &adev->mman.gtt_mgr; in amdgpu_gtt_mgr_init()
118 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_TT, &mgr->manager); in amdgpu_gtt_mgr_init()
133 struct amdgpu_gtt_mgr *mgr = &adev->mman.gtt_mgr; in amdgpu_gtt_mgr_fini()
139 ret = ttm_resource_manager_force_list_clean(&adev->mman.bdev, man); in amdgpu_gtt_mgr_fini()
151 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_TT, NULL); in amdgpu_gtt_mgr_fini()
Damdgpu_gmc.c490 adev->mman.keep_stolen_vga_memory = true; in amdgpu_gmc_get_vbios_allocations()
493 adev->mman.keep_stolen_vga_memory = false; in amdgpu_gmc_get_vbios_allocations()
502 if (adev->mman.keep_stolen_vga_memory) in amdgpu_gmc_get_vbios_allocations()
511 adev->mman.stolen_vga_size = AMDGPU_VBIOS_VGA_ALLOCATION; in amdgpu_gmc_get_vbios_allocations()
512 adev->mman.stolen_extended_size = size - adev->mman.stolen_vga_size; in amdgpu_gmc_get_vbios_allocations()
514 adev->mman.stolen_vga_size = size; in amdgpu_gmc_get_vbios_allocations()
515 adev->mman.stolen_extended_size = 0; in amdgpu_gmc_get_vbios_allocations()
Damdgpu_vram_mgr.c38 return container_of(mgr, struct amdgpu_device, mman.vram_mgr); in to_amdgpu_device()
88 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_mem_info_vram_used_show()
107 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_mem_info_vis_vram_used_show()
177 struct amdgpu_vram_mgr *mgr = &adev->mman.vram_mgr; in amdgpu_vram_mgr_init()
193 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager); in amdgpu_vram_mgr_init()
208 struct amdgpu_vram_mgr *mgr = &adev->mman.vram_mgr; in amdgpu_vram_mgr_fini()
214 ret = ttm_resource_manager_force_list_clean(&adev->mman.bdev, man); in amdgpu_vram_mgr_fini()
225 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, NULL); in amdgpu_vram_mgr_fini()
Damdgpu_sdma.h111 #define amdgpu_emit_copy_buffer(adev, ib, s, d, b, t) (adev)->mman.buffer_funcs->emit_copy_buffer((…
112 #define amdgpu_emit_fill_buffer(adev, ib, s, d, b) (adev)->mman.buffer_funcs->emit_fill_buffer((ib)…
Dgmc_v10_0.c276 struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; in gmc_v10_0_flush_gpu_tlb()
304 mutex_lock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb()
308 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb()
314 if (!adev->mman.buffer_funcs_enabled || in gmc_v10_0_flush_gpu_tlb()
319 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb()
337 r = amdgpu_job_submit(job, &adev->mman.entity, in gmc_v10_0_flush_gpu_tlb()
342 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb()
353 mutex_unlock(&adev->mman.gtt_window_lock); in gmc_v10_0_flush_gpu_tlb()
Damdgpu_virt.c410 retired_page = *(uint64_t *)(adev->mman.fw_vram_usage_va + in amdgpu_virt_add_bad_page()
515 struct ttm_resource_manager *vram_man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_virt_write_vf2pf_data()
587 if (adev->mman.fw_vram_usage_va != NULL) { in amdgpu_virt_init_data_exchange()
610 if (adev->mman.fw_vram_usage_va != NULL) { in amdgpu_virt_exchange_data()
614 (adev->mman.fw_vram_usage_va + (AMD_SRIOV_MSG_PF2VF_OFFSET_KB << 10)); in amdgpu_virt_exchange_data()
617 (adev->mman.fw_vram_usage_va + (AMD_SRIOV_MSG_VF2PF_OFFSET_KB << 10)); in amdgpu_virt_exchange_data()
Damdgpu_benchmark.c41 struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; in amdgpu_benchmark_do_move()
127 if (adev->mman.buffer_funcs) { in amdgpu_benchmark_move()
Damdgpu_test.c34 struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; in amdgpu_do_test_moves()
252 if (adev->mman.buffer_funcs) in amdgpu_test_moves()
Damdgpu_object.c461 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_TT); in amdgpu_bo_validate_size()
470 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_validate_size()
558 acc_size = ttm_bo_dma_acc_size(&adev->mman.bdev, size, in amdgpu_bo_do_create()
579 bo->tbo.bdev = &adev->mman.bdev; in amdgpu_bo_do_create()
588 r = ttm_bo_init_reserved(&adev->mman.bdev, &bo->tbo, size, bp->type, in amdgpu_bo_do_create()
757 struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; in amdgpu_bo_restore_shadow()
1062 return ttm_bo_evict_mm(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_evict_vram()
Dpsp_v11_0.c683 if (adev->gmc.visible_vram_size < sz || !adev->mman.aper_base_kaddr) { in psp_v11_0_memory_training()
686 adev->mman.aper_base_kaddr); in psp_v11_0_memory_training()
696 memcpy_fromio(buf, adev->mman.aper_base_kaddr, sz); in psp_v11_0_memory_training()
704 memcpy_toio(adev->mman.aper_base_kaddr, buf, sz); in psp_v11_0_memory_training()
Dsdma_v5_2.c465 if ((adev->mman.buffer_funcs_ring == sdma0) || in sdma_v5_2_gfx_stop()
466 (adev->mman.buffer_funcs_ring == sdma1) || in sdma_v5_2_gfx_stop()
467 (adev->mman.buffer_funcs_ring == sdma2) || in sdma_v5_2_gfx_stop()
468 (adev->mman.buffer_funcs_ring == sdma3)) in sdma_v5_2_gfx_stop()
729 if (adev->mman.buffer_funcs_ring == ring) in sdma_v5_2_gfx_resume()
1741 if (adev->mman.buffer_funcs == NULL) { in sdma_v5_2_set_buffer_funcs()
1742 adev->mman.buffer_funcs = &sdma_v5_2_buffer_funcs; in sdma_v5_2_set_buffer_funcs()
1743 adev->mman.buffer_funcs_ring = &adev->sdma.instance[0].ring; in sdma_v5_2_set_buffer_funcs()
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_ttm.c43 struct qxl_mman *mman; in qxl_get_qdev() local
46 mman = container_of(bdev, struct qxl_mman, bdev); in qxl_get_qdev()
47 qdev = container_of(mman, struct qxl_device, mman); in qxl_get_qdev()
206 return ttm_range_man_init(&qdev->mman.bdev, type, false, size); in qxl_ttm_init_mem_type()
215 r = ttm_bo_device_init(&qdev->mman.bdev, in qxl_ttm_init()
248 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini()
249 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_PRIV); in qxl_ttm_fini()
250 ttm_bo_device_release(&qdev->mman.bdev); in qxl_ttm_fini()
284 qxl_mem_types_list[i].data = ttm_manager_type(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_debugfs_init()
286 qxl_mem_types_list[i].data = ttm_manager_type(&qdev->mman.bdev, TTM_PL_PRIV); in qxl_ttm_debugfs_init()
Dqxl_object.c141 r = ttm_bo_init(&qdev->mman.bdev, &bo->tbo, size, type, in qxl_bo_create()
371 return ttm_bo_evict_mm(&qdev->mman.bdev, TTM_PL_PRIV); in qxl_surf_evict()
376 return ttm_bo_evict_mm(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_vram_evict()
/kernel/linux/linux-5.10/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
Dpkey_alloc_access_rights.sh8 egrep $regex ${header_dir}/mman-common.h | \
Dmadvise_behavior.sh8 egrep $regex ${header_dir}/mman-common.h | \
Dmremap_flags.sh10 linux_mman=${linux_header_dir}/mman.h
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_ttm.c65 struct radeon_mman *mman; in radeon_get_rdev() local
68 mman = container_of(bdev, struct radeon_mman, bdev); in radeon_get_rdev()
69 rdev = container_of(mman, struct radeon_device, mman); in radeon_get_rdev()
75 return ttm_range_man_init(&rdev->mman.bdev, TTM_PL_VRAM, in radeon_ttm_init_vram()
81 return ttm_range_man_init(&rdev->mman.bdev, TTM_PL_TT, in radeon_ttm_init_gtt()
818 r = ttm_bo_device_init(&rdev->mman.bdev, in radeon_ttm_init()
827 rdev->mman.initialized = true; in radeon_ttm_init()
875 if (!rdev->mman.initialized) in radeon_ttm_fini()
886 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_fini()
887 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_TT); in radeon_ttm_fini()
[all …]
/kernel/linux/linux-5.10/tools/perf/
Dcheck-headers.sh146 check include/uapi/asm-generic/mman.h '-I "^#include <\(uapi/\)*asm-generic/mman-common\(-tools\)*.…
147 check include/uapi/linux/mman.h '-I "^#include <\(uapi/\)*asm/mman.h>"'
DMakefile.perf466 $(pkey_alloc_access_rights_array): $(asm_generic_hdr_dir)/mman-common.h $(pkey_alloc_access_rights_…
527 $(madvise_behavior_array): $(madvise_hdr_dir)/mman-common.h $(madvise_behavior_tbl)
533 $(mmap_flags_array): $(linux_uapi_dir)/mman.h $(asm_generic_uapi_dir)/mman.h $(asm_generic_uapi_dir…
539 $(mremap_flags_array): $(linux_uapi_dir)/mman.h $(mremap_flags_tbl)
558 $(mmap_prot_array): $(asm_generic_uapi_dir)/mman.h $(asm_generic_uapi_dir)/mman-common.h $(mmap_pro…
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Di915_live_selftests.h31 selftest(mman, i915_gem_mman_live_selftests)
/kernel/linux/linux-5.10/Documentation/userspace-api/media/dvb/
Ddmx-munmap.rst23 #include <sys/mman.h>

123