/openbsd/sys/dev/pci/drm/amd/amdgpu/ |
H A D | amdgpu_benchmark.c | 153 AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_benchmark() 156 r = amdgpu_benchmark_move(adev, 1024*1024, AMDGPU_GEM_DOMAIN_VRAM, in amdgpu_benchmark() 167 AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_benchmark() 179 AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_benchmark() 191 AMDGPU_GEM_DOMAIN_VRAM, in amdgpu_benchmark() 204 AMDGPU_GEM_DOMAIN_VRAM, in amdgpu_benchmark() 205 AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_benchmark() 218 AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_benchmark() 230 AMDGPU_GEM_DOMAIN_VRAM, in amdgpu_benchmark() 243 AMDGPU_GEM_DOMAIN_VRAM, in amdgpu_benchmark() [all …]
|
H A D | amdgpu_object.c | 134 if (domain & AMDGPU_GEM_DOMAIN_VRAM) { in amdgpu_bo_placement_from_domain() 389 AMDGPU_GEM_DOMAIN_VRAM, bo_ptr, NULL, in amdgpu_bo_create_kernel_at() 481 } else if (domain & AMDGPU_GEM_DOMAIN_VRAM) { in amdgpu_bo_validate_size() 593 bo->allowed_domains == AMDGPU_GEM_DOMAIN_VRAM) in amdgpu_bo_create() 987 if (domain == AMDGPU_GEM_DOMAIN_VRAM) { in amdgpu_bo_pin_restricted() 1326 case AMDGPU_GEM_DOMAIN_VRAM: in amdgpu_bo_get_memory() 1346 if (bo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM) { in amdgpu_bo_get_memory() 1351 if (domain != AMDGPU_GEM_DOMAIN_VRAM) { in amdgpu_bo_get_memory() 1436 amdgpu_bo_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_VRAM | in amdgpu_bo_fault_reserve_notify() 1582 domain = AMDGPU_GEM_DOMAIN_VRAM; in amdgpu_bo_get_preferred_domain() [all …]
|
H A D | amdgpu_dma_buf.c | 158 if (bo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM && in amdgpu_dma_buf_map() 161 domains |= AMDGPU_GEM_DOMAIN_VRAM; in amdgpu_dma_buf_map() 516 (bo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM)) in amdgpu_dmabuf_is_xgmi_accessible()
|
H A D | amdgpu_amdkfd_gpuvm.c | 852 ((mem->domain == AMDGPU_GEM_DOMAIN_VRAM) || in kfd_mem_attach() 855 if (mem->domain == AMDGPU_GEM_DOMAIN_VRAM) in kfd_mem_attach() 903 mem->domain == AMDGPU_GEM_DOMAIN_VRAM) { in kfd_mem_attach() 1657 domain = alloc_domain = AMDGPU_GEM_DOMAIN_VRAM; in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1892 (mem->bo->preferred_domains == AMDGPU_GEM_DOMAIN_VRAM || in amdgpu_amdkfd_gpuvm_free_memory_of_gpu() 2312 if (!(bo->preferred_domains & (AMDGPU_GEM_DOMAIN_VRAM | in amdgpu_amdkfd_gpuvm_import_dmabuf() 2339 ((bo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM) ? in amdgpu_amdkfd_gpuvm_import_dmabuf() 2348 (*mem)->domain = (bo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM) && !adev->gmc.is_app_apu ? in amdgpu_amdkfd_gpuvm_import_dmabuf() 2349 AMDGPU_GEM_DOMAIN_VRAM : AMDGPU_GEM_DOMAIN_GTT; in amdgpu_amdkfd_gpuvm_import_dmabuf()
|
H A D | amdgpu_gem.c | 476 if (initial_domain == AMDGPU_GEM_DOMAIN_VRAM) { 971 args->value & AMDGPU_GEM_DOMAIN_VRAM) { 990 robj->preferred_domains = args->value & (AMDGPU_GEM_DOMAIN_VRAM | 994 if (robj->allowed_domains == AMDGPU_GEM_DOMAIN_VRAM)
|
H A D | amdgpu_rlc.c | 98 AMDGPU_GEM_DOMAIN_VRAM | in amdgpu_gfx_rlc_init_sr() 136 AMDGPU_GEM_DOMAIN_VRAM | in amdgpu_gfx_rlc_init_csb() 163 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM | in amdgpu_gfx_rlc_init_cpt()
|
H A D | amdgpu_gmc.c | 59 bp.domain = AMDGPU_GEM_DOMAIN_VRAM; in amdgpu_gmc_pdb0_alloc() 74 r = amdgpu_bo_pin(adev->gmc.pdb0_bo, AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_gmc_pdb0_alloc() 868 AMDGPU_GEM_DOMAIN_VRAM, in amdgpu_gmc_vram_checking()
|
H A D | amdgpu_uvd.c | 160 amdgpu_bo_placement_from_domain(bo, AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_uvd_create_msg_bo_helper() 165 r = amdgpu_bo_pin(bo, AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_uvd_create_msg_bo_helper() 326 AMDGPU_GEM_DOMAIN_VRAM | in amdgpu_uvd_sw_init() 592 uint32_t domain = AMDGPU_GEM_DOMAIN_VRAM; in amdgpu_uvd_cs_pass1()
|
H A D | amdgpu_amdkfd.c | 524 if (!(bo->preferred_domains & (AMDGPU_GEM_DOMAIN_VRAM | in amdgpu_amdkfd_get_dmabuf_info() 538 *flags = (bo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM) ? in amdgpu_amdkfd_get_dmabuf_info()
|
H A D | amdgpu_object.h | 181 return AMDGPU_GEM_DOMAIN_VRAM; in amdgpu_mem_type_to_domain()
|
H A D | amdgpu_gart.c | 263 AMDGPU_GEM_DOMAIN_VRAM, &adev->gart.bo, in amdgpu_gart_table_vram_alloc()
|
/openbsd/sys/dev/pci/drm/amd/pm/powerplay/smumgr/ |
H A D | vega12_smumgr.c | 234 AMDGPU_GEM_DOMAIN_VRAM, in vega12_smu_init() 248 AMDGPU_GEM_DOMAIN_VRAM, in vega12_smu_init() 264 AMDGPU_GEM_DOMAIN_VRAM, in vega12_smu_init() 279 AMDGPU_GEM_DOMAIN_VRAM, in vega12_smu_init() 294 AMDGPU_GEM_DOMAIN_VRAM, in vega12_smu_init() 308 AMDGPU_GEM_DOMAIN_VRAM, in vega12_smu_init()
|
H A D | vega10_smumgr.c | 232 AMDGPU_GEM_DOMAIN_VRAM, in vega10_smu_init() 247 AMDGPU_GEM_DOMAIN_VRAM, in vega10_smu_init() 263 AMDGPU_GEM_DOMAIN_VRAM, in vega10_smu_init() 280 AMDGPU_GEM_DOMAIN_VRAM, in vega10_smu_init() 295 AMDGPU_GEM_DOMAIN_VRAM, in vega10_smu_init()
|
H A D | vega20_smumgr.c | 443 AMDGPU_GEM_DOMAIN_VRAM, in vega20_smu_init() 457 AMDGPU_GEM_DOMAIN_VRAM, in vega20_smu_init() 471 AMDGPU_GEM_DOMAIN_VRAM, in vega20_smu_init() 485 AMDGPU_GEM_DOMAIN_VRAM, in vega20_smu_init() 499 AMDGPU_GEM_DOMAIN_VRAM, in vega20_smu_init() 513 AMDGPU_GEM_DOMAIN_VRAM, in vega20_smu_init()
|
H A D | smu10_smumgr.c | 254 AMDGPU_GEM_DOMAIN_VRAM | AMDGPU_GEM_DOMAIN_GTT, in smu10_smu_init() 269 AMDGPU_GEM_DOMAIN_VRAM | AMDGPU_GEM_DOMAIN_GTT, in smu10_smu_init()
|
H A D | smu7_smumgr.c | 550 AMDGPU_GEM_DOMAIN_VRAM, in smu7_init() 565 AMDGPU_GEM_DOMAIN_VRAM, in smu7_init()
|
/openbsd/sys/dev/pci/drm/amd/pm/swsmu/smu13/ |
H A D | smu_v13_0_0_ppt.c | 490 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_0_tables_init() 492 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_0_tables_init() 494 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_0_tables_init() 496 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_0_tables_init() 498 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_0_tables_init() 500 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_0_tables_init() 503 AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_0_tables_init() 505 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_0_tables_init() 507 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_0_tables_init()
|
H A D | smu_v13_0_7_ppt.c | 497 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_7_tables_init() 500 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_7_tables_init() 502 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_7_tables_init() 504 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_7_tables_init() 506 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_7_tables_init() 508 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_7_tables_init() 511 AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_7_tables_init() 513 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_7_tables_init()
|
H A D | smu_v13_0_5_ppt.c | 130 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_5_init_smc_tables() 132 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_5_init_smc_tables() 134 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_5_init_smc_tables()
|
H A D | smu_v13_0_4_ppt.c | 156 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_4_init_smc_tables() 158 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_4_init_smc_tables() 160 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in smu_v13_0_4_init_smc_tables()
|
H A D | aldebaran_ppt.c | 233 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in aldebaran_tables_init() 236 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in aldebaran_tables_init() 239 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in aldebaran_tables_init() 242 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in aldebaran_tables_init() 245 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in aldebaran_tables_init()
|
H A D | yellow_carp_ppt.c | 157 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in yellow_carp_init_smc_tables() 159 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in yellow_carp_init_smc_tables() 161 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in yellow_carp_init_smc_tables()
|
/openbsd/sys/dev/pci/drm/include/uapi/drm/ |
H A D | amdgpu_drm.h | 103 #define AMDGPU_GEM_DOMAIN_VRAM 0x4 macro 110 AMDGPU_GEM_DOMAIN_VRAM | \
|
/openbsd/sys/dev/pci/drm/amd/pm/swsmu/smu11/ |
H A D | navi10_ppt.c | 502 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in navi10_tables_init() 504 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in navi10_tables_init() 506 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in navi10_tables_init() 508 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in navi10_tables_init() 510 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in navi10_tables_init() 512 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in navi10_tables_init() 515 AMDGPU_GEM_DOMAIN_VRAM); in navi10_tables_init() 517 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in navi10_tables_init() 521 dummy_read_1_table->domain = AMDGPU_GEM_DOMAIN_VRAM; in navi10_tables_init()
|
H A D | vangogh_ppt.c | 238 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in vangogh_tables_init() 240 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in vangogh_tables_init() 242 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in vangogh_tables_init() 244 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in vangogh_tables_init() 248 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in vangogh_tables_init() 252 PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM); in vangogh_tables_init()
|