/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_fb.c | 108 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpufb_destroy_pinned_object() local 111 ret = amdgpu_bo_reserve(abo, true); in amdgpufb_destroy_pinned_object() 113 amdgpu_bo_kunmap(abo); in amdgpufb_destroy_pinned_object() 114 amdgpu_bo_unpin(abo); in amdgpufb_destroy_pinned_object() 115 amdgpu_bo_unreserve(abo); in amdgpufb_destroy_pinned_object() 127 struct amdgpu_bo *abo = NULL; in amdgpufb_create_pinned_object() local 154 abo = gem_to_amdgpu_bo(gobj); in amdgpufb_create_pinned_object() 159 ret = amdgpu_bo_reserve(abo, false); in amdgpufb_create_pinned_object() 164 ret = amdgpu_bo_set_tiling_flags(abo, in amdgpufb_create_pinned_object() 170 ret = amdgpu_bo_pin(abo, domain); in amdgpufb_create_pinned_object() [all …]
|
D | amdgpu_object.c | 126 void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) in amdgpu_bo_placement_from_domain() argument 128 struct amdgpu_device *adev = amdgpu_ttm_adev(abo->tbo.bdev); in amdgpu_bo_placement_from_domain() 129 struct ttm_placement *placement = &abo->placement; in amdgpu_bo_placement_from_domain() 130 struct ttm_place *places = abo->placements; in amdgpu_bo_placement_from_domain() 131 u64 flags = abo->flags; in amdgpu_bo_placement_from_domain() 1287 struct amdgpu_bo *abo; in amdgpu_bo_move_notify() local 1293 abo = ttm_to_amdgpu_bo(bo); in amdgpu_bo_move_notify() 1294 amdgpu_vm_bo_invalidate(adev, abo, evict); in amdgpu_bo_move_notify() 1296 amdgpu_bo_kunmap(abo); in amdgpu_bo_move_notify() 1298 if (abo->tbo.base.dma_buf && !abo->tbo.base.import_attach && in amdgpu_bo_move_notify() [all …]
|
D | amdgpu_gem.c | 111 struct amdgpu_bo *abo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_open() local 112 struct amdgpu_device *adev = amdgpu_ttm_adev(abo->tbo.bdev); in amdgpu_gem_object_open() 119 mm = amdgpu_ttm_tt_get_usermm(abo->tbo.ttm); in amdgpu_gem_object_open() 123 if (abo->flags & AMDGPU_GEM_CREATE_VM_ALWAYS_VALID && in amdgpu_gem_object_open() 124 abo->tbo.base.resv != vm->root.base.bo->tbo.base.resv) in amdgpu_gem_object_open() 127 r = amdgpu_bo_reserve(abo, false); in amdgpu_gem_object_open() 131 bo_va = amdgpu_vm_bo_find(vm, abo); in amdgpu_gem_object_open() 133 bo_va = amdgpu_vm_bo_add(adev, vm, abo); in amdgpu_gem_object_open() 137 amdgpu_bo_unreserve(abo); in amdgpu_gem_object_open() 282 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl() local [all …]
|
D | amdgpu_ttm.c | 90 struct amdgpu_bo *abo; in amdgpu_evict_flags() local 114 abo = ttm_to_amdgpu_bo(bo); in amdgpu_evict_flags() 126 amdgpu_bo_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_CPU); in amdgpu_evict_flags() 128 !(abo->flags & AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED) && in amdgpu_evict_flags() 129 amdgpu_bo_in_cpu_visible_vram(abo)) { in amdgpu_evict_flags() 136 amdgpu_bo_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_VRAM | in amdgpu_evict_flags() 138 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags() 139 abo->placements[0].lpfn = 0; in amdgpu_evict_flags() 140 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_evict_flags() 141 abo->placement.num_busy_placement = 1; in amdgpu_evict_flags() [all …]
|
D | dce_v8_0.c | 1785 struct amdgpu_bo *abo; in dce_v8_0_crtc_do_set_base() local 1810 abo = gem_to_amdgpu_bo(obj); in dce_v8_0_crtc_do_set_base() 1811 r = amdgpu_bo_reserve(abo, false); in dce_v8_0_crtc_do_set_base() 1816 r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM); in dce_v8_0_crtc_do_set_base() 1818 amdgpu_bo_unreserve(abo); in dce_v8_0_crtc_do_set_base() 1822 fb_location = amdgpu_bo_gpu_offset(abo); in dce_v8_0_crtc_do_set_base() 1824 amdgpu_bo_get_tiling_flags(abo, &tiling_flags); in dce_v8_0_crtc_do_set_base() 1825 amdgpu_bo_unreserve(abo); in dce_v8_0_crtc_do_set_base() 1989 abo = gem_to_amdgpu_bo(fb->obj[0]); in dce_v8_0_crtc_do_set_base() 1990 r = amdgpu_bo_reserve(abo, true); in dce_v8_0_crtc_do_set_base() [all …]
|
D | dce_v6_0.c | 1816 struct amdgpu_bo *abo; in dce_v6_0_crtc_do_set_base() local 1840 abo = gem_to_amdgpu_bo(obj); in dce_v6_0_crtc_do_set_base() 1841 r = amdgpu_bo_reserve(abo, false); in dce_v6_0_crtc_do_set_base() 1846 r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM); in dce_v6_0_crtc_do_set_base() 1848 amdgpu_bo_unreserve(abo); in dce_v6_0_crtc_do_set_base() 1852 fb_location = amdgpu_bo_gpu_offset(abo); in dce_v6_0_crtc_do_set_base() 1854 amdgpu_bo_get_tiling_flags(abo, &tiling_flags); in dce_v6_0_crtc_do_set_base() 1855 amdgpu_bo_unreserve(abo); in dce_v6_0_crtc_do_set_base() 2017 abo = gem_to_amdgpu_bo(fb->obj[0]); in dce_v6_0_crtc_do_set_base() 2018 r = amdgpu_bo_reserve(abo, true); in dce_v6_0_crtc_do_set_base() [all …]
|
D | dce_v10_0.c | 1856 struct amdgpu_bo *abo; in dce_v10_0_crtc_do_set_base() local 1881 abo = gem_to_amdgpu_bo(obj); in dce_v10_0_crtc_do_set_base() 1882 r = amdgpu_bo_reserve(abo, false); in dce_v10_0_crtc_do_set_base() 1887 r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM); in dce_v10_0_crtc_do_set_base() 1889 amdgpu_bo_unreserve(abo); in dce_v10_0_crtc_do_set_base() 1893 fb_location = amdgpu_bo_gpu_offset(abo); in dce_v10_0_crtc_do_set_base() 1895 amdgpu_bo_get_tiling_flags(abo, &tiling_flags); in dce_v10_0_crtc_do_set_base() 1896 amdgpu_bo_unreserve(abo); in dce_v10_0_crtc_do_set_base() 2080 abo = gem_to_amdgpu_bo(fb->obj[0]); in dce_v10_0_crtc_do_set_base() 2081 r = amdgpu_bo_reserve(abo, true); in dce_v10_0_crtc_do_set_base() [all …]
|
D | dce_v11_0.c | 1898 struct amdgpu_bo *abo; in dce_v11_0_crtc_do_set_base() local 1923 abo = gem_to_amdgpu_bo(obj); in dce_v11_0_crtc_do_set_base() 1924 r = amdgpu_bo_reserve(abo, false); in dce_v11_0_crtc_do_set_base() 1929 r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM); in dce_v11_0_crtc_do_set_base() 1931 amdgpu_bo_unreserve(abo); in dce_v11_0_crtc_do_set_base() 1935 fb_location = amdgpu_bo_gpu_offset(abo); in dce_v11_0_crtc_do_set_base() 1937 amdgpu_bo_get_tiling_flags(abo, &tiling_flags); in dce_v11_0_crtc_do_set_base() 1938 amdgpu_bo_unreserve(abo); in dce_v11_0_crtc_do_set_base() 2122 abo = gem_to_amdgpu_bo(fb->obj[0]); in dce_v11_0_crtc_do_set_base() 2123 r = amdgpu_bo_reserve(abo, true); in dce_v11_0_crtc_do_set_base() [all …]
|
D | amdgpu_uvd.c | 485 static void amdgpu_uvd_force_into_uvd_segment(struct amdgpu_bo *abo) in amdgpu_uvd_force_into_uvd_segment() argument 488 for (i = 0; i < abo->placement.num_placement; ++i) { in amdgpu_uvd_force_into_uvd_segment() 489 abo->placements[i].fpfn = 0 >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment() 490 abo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
|
D | amdgpu_vm.c | 606 struct amdgpu_bo *abo; in amdgpu_vm_del_from_lru_notify() local 615 abo = ttm_to_amdgpu_bo(bo); in amdgpu_vm_del_from_lru_notify() 616 if (!abo->parent) in amdgpu_vm_del_from_lru_notify() 618 for (bo_base = abo->vm_bo; bo_base; bo_base = bo_base->next) { in amdgpu_vm_del_from_lru_notify() 621 if (abo->tbo.base.resv == vm->root.base.bo->tbo.base.resv) in amdgpu_vm_del_from_lru_notify() 1805 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_vm_bo_update() local 1807 if (abo->tbo.mem.mem_type == TTM_PL_VRAM) in amdgpu_vm_bo_update()
|
D | amdgpu_object.h | 244 void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain);
|
/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm.c | 7212 struct amdgpu_bo *abo; in amdgpu_dm_commit_planes() local 7285 abo = gem_to_amdgpu_bo(fb->obj[0]); in amdgpu_dm_commit_planes() 7292 r = dma_resv_wait_timeout_rcu(abo->tbo.base.resv, true, in amdgpu_dm_commit_planes()
|