/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_object.c | 107 void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) in amdgpu_bo_placement_from_domain() argument 109 struct amdgpu_device *adev = amdgpu_ttm_adev(abo->tbo.bdev); in amdgpu_bo_placement_from_domain() 110 struct ttm_placement *placement = &abo->placement; in amdgpu_bo_placement_from_domain() 111 struct ttm_place *places = abo->placements; in amdgpu_bo_placement_from_domain() 112 u64 flags = abo->flags; in amdgpu_bo_placement_from_domain() 117 int8_t mem_id = KFD_XCP_MEM_ID(adev, abo->xcp_id); in amdgpu_bo_placement_from_domain() 138 if (abo->tbo.type == ttm_bo_type_kernel && in amdgpu_bo_placement_from_domain() 157 abo->flags & AMDGPU_GEM_CREATE_PREEMPTIBLE ? in amdgpu_bo_placement_from_domain() 164 if (domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM && in amdgpu_bo_placement_from_domain() 1154 struct amdgpu_bo *abo; in amdgpu_bo_move_notify() local [all …]
|
D | amdgpu_gem.c | 162 struct amdgpu_bo *abo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_open() local 163 struct amdgpu_device *adev = amdgpu_ttm_adev(abo->tbo.bdev); in amdgpu_gem_object_open() 170 mm = amdgpu_ttm_tt_get_usermm(abo->tbo.ttm); in amdgpu_gem_object_open() 174 if (abo->flags & AMDGPU_GEM_CREATE_VM_ALWAYS_VALID && in amdgpu_gem_object_open() 175 !amdgpu_vm_is_bo_always_valid(vm, abo)) in amdgpu_gem_object_open() 178 r = amdgpu_bo_reserve(abo, false); in amdgpu_gem_object_open() 182 bo_va = amdgpu_vm_bo_find(vm, abo); in amdgpu_gem_object_open() 184 bo_va = amdgpu_vm_bo_add(adev, vm, abo); in amdgpu_gem_object_open() 187 amdgpu_bo_unreserve(abo); in amdgpu_gem_object_open() 207 r = amdgpu_amdkfd_bo_validate_and_fence(abo, AMDGPU_GEM_DOMAIN_GTT, in amdgpu_gem_object_open() [all …]
|
D | amdgpu_ttm.c | 94 struct amdgpu_bo *abo; in amdgpu_evict_flags() local 115 abo = ttm_to_amdgpu_bo(bo); in amdgpu_evict_flags() 116 if (abo->flags & AMDGPU_GEM_CREATE_DISCARDABLE) { in amdgpu_evict_flags() 132 amdgpu_bo_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_CPU); in amdgpu_evict_flags() 135 !(abo->flags & AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED) && in amdgpu_evict_flags() 143 amdgpu_bo_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_VRAM | in amdgpu_evict_flags() 146 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags() 147 abo->placements[0].lpfn = 0; in amdgpu_evict_flags() 148 abo->placements[0].flags |= TTM_PL_FLAG_DESIRED; in amdgpu_evict_flags() 151 amdgpu_bo_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_GTT | in amdgpu_evict_flags() [all …]
|
D | amdgpu_object.h | 45 #define to_amdgpu_bo_user(abo) container_of((abo), struct amdgpu_bo_user, bo) argument 46 #define to_amdgpu_bo_vm(abo) container_of((abo), struct amdgpu_bo_vm, bo) argument 277 void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain);
|
D | dce_v6_0.c | 1835 struct amdgpu_bo *abo; in dce_v6_0_crtc_do_set_base() local 1858 abo = gem_to_amdgpu_bo(obj); in dce_v6_0_crtc_do_set_base() 1859 r = amdgpu_bo_reserve(abo, false); in dce_v6_0_crtc_do_set_base() 1864 abo->flags |= AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS; in dce_v6_0_crtc_do_set_base() 1865 r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM); in dce_v6_0_crtc_do_set_base() 1867 amdgpu_bo_unreserve(abo); in dce_v6_0_crtc_do_set_base() 1871 fb_location = amdgpu_bo_gpu_offset(abo); in dce_v6_0_crtc_do_set_base() 1873 amdgpu_bo_get_tiling_flags(abo, &tiling_flags); in dce_v6_0_crtc_do_set_base() 1874 amdgpu_bo_unreserve(abo); in dce_v6_0_crtc_do_set_base() 2036 abo = gem_to_amdgpu_bo(fb->obj[0]); in dce_v6_0_crtc_do_set_base() [all …]
|
D | dce_v8_0.c | 1801 struct amdgpu_bo *abo; in dce_v8_0_crtc_do_set_base() local 1825 abo = gem_to_amdgpu_bo(obj); in dce_v8_0_crtc_do_set_base() 1826 r = amdgpu_bo_reserve(abo, false); in dce_v8_0_crtc_do_set_base() 1831 abo->flags |= AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS; in dce_v8_0_crtc_do_set_base() 1832 r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM); in dce_v8_0_crtc_do_set_base() 1834 amdgpu_bo_unreserve(abo); in dce_v8_0_crtc_do_set_base() 1838 fb_location = amdgpu_bo_gpu_offset(abo); in dce_v8_0_crtc_do_set_base() 1840 amdgpu_bo_get_tiling_flags(abo, &tiling_flags); in dce_v8_0_crtc_do_set_base() 1841 amdgpu_bo_unreserve(abo); in dce_v8_0_crtc_do_set_base() 2005 abo = gem_to_amdgpu_bo(fb->obj[0]); in dce_v8_0_crtc_do_set_base() [all …]
|
D | dce_v10_0.c | 1854 struct amdgpu_bo *abo; in dce_v10_0_crtc_do_set_base() local 1878 abo = gem_to_amdgpu_bo(obj); in dce_v10_0_crtc_do_set_base() 1879 r = amdgpu_bo_reserve(abo, false); in dce_v10_0_crtc_do_set_base() 1884 abo->flags |= AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS; in dce_v10_0_crtc_do_set_base() 1885 r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM); in dce_v10_0_crtc_do_set_base() 1887 amdgpu_bo_unreserve(abo); in dce_v10_0_crtc_do_set_base() 1891 fb_location = amdgpu_bo_gpu_offset(abo); in dce_v10_0_crtc_do_set_base() 1893 amdgpu_bo_get_tiling_flags(abo, &tiling_flags); in dce_v10_0_crtc_do_set_base() 1894 amdgpu_bo_unreserve(abo); in dce_v10_0_crtc_do_set_base() 2078 abo = gem_to_amdgpu_bo(fb->obj[0]); in dce_v10_0_crtc_do_set_base() [all …]
|
D | dce_v11_0.c | 1904 struct amdgpu_bo *abo; in dce_v11_0_crtc_do_set_base() local 1928 abo = gem_to_amdgpu_bo(obj); in dce_v11_0_crtc_do_set_base() 1929 r = amdgpu_bo_reserve(abo, false); in dce_v11_0_crtc_do_set_base() 1934 abo->flags |= AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS; in dce_v11_0_crtc_do_set_base() 1935 r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM); in dce_v11_0_crtc_do_set_base() 1937 amdgpu_bo_unreserve(abo); in dce_v11_0_crtc_do_set_base() 1941 fb_location = amdgpu_bo_gpu_offset(abo); in dce_v11_0_crtc_do_set_base() 1943 amdgpu_bo_get_tiling_flags(abo, &tiling_flags); in dce_v11_0_crtc_do_set_base() 1944 amdgpu_bo_unreserve(abo); in dce_v11_0_crtc_do_set_base() 2128 abo = gem_to_amdgpu_bo(fb->obj[0]); in dce_v11_0_crtc_do_set_base() [all …]
|
D | amdgpu_uvd.c | 138 static void amdgpu_uvd_force_into_uvd_segment(struct amdgpu_bo *abo); 547 static void amdgpu_uvd_force_into_uvd_segment(struct amdgpu_bo *abo) in amdgpu_uvd_force_into_uvd_segment() argument 551 for (i = 0; i < abo->placement.num_placement; ++i) { in amdgpu_uvd_force_into_uvd_segment() 552 abo->placements[i].fpfn = 0 >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment() 553 abo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
|
D | amdgpu_vm.c | 1184 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_vm_bo_update() local 1186 if (abo->tbo.resource && in amdgpu_vm_bo_update() 1187 abo->tbo.resource->mem_type == TTM_PL_VRAM) in amdgpu_vm_bo_update()
|
/linux-6.12.1/scripts/ |
D | extract-ikconfig | 19 if pos=`tr "$cf1\n$cf2" "\n$cf2=" < "$1" | grep -abo "^$cf2"` 33 for pos in `tr "$1\n$2" "\n$2=" < "$img" | grep -abo "^$2"`
|
D | extract-vmlinux | 30 for pos in `tr "$1\n$2" "\n$2=" < "$img" | grep -abo "^$2"`
|
/linux-6.12.1/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm.c | 8801 struct amdgpu_bo *abo = gem_to_amdgpu_bo(fb->obj[0]); in get_mem_type() local 8803 return abo->tbo.resource ? abo->tbo.resource->mem_type : 0; in get_mem_type()
|