Home
last modified time | relevance | path

Searched refs:visible_vram_size (Results 1 – 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gmc.h165 u64 visible_vram_size; member
266 WARN_ON(gmc->real_vram_size < gmc->visible_vram_size); in amdgpu_gmc_vram_full_visible()
268 return (gmc->real_vram_size == gmc->visible_vram_size); in amdgpu_gmc_vram_full_visible()
Damdgpu_vram_mgr.c72 return snprintf(buf, PAGE_SIZE, "%llu\n", adev->gmc.visible_vram_size); in amdgpu_mem_info_vis_vram_total_show()
242 if (start >= adev->gmc.visible_vram_size) in amdgpu_vram_mgr_vis_size()
245 return (end > adev->gmc.visible_vram_size ? in amdgpu_vram_mgr_vis_size()
246 adev->gmc.visible_vram_size : end) - start; in amdgpu_vram_mgr_vis_size()
268 if (mem->start >= adev->gmc.visible_vram_size >> PAGE_SHIFT) in amdgpu_vram_mgr_bo_visible_size()
Damdgpu_object.c135 unsigned visible_pfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_bo_placement_from_domain()
596 bo->tbo.mem.start < adev->gmc.visible_vram_size >> PAGE_SHIFT) in amdgpu_bo_do_create()
1384 if ((offset + size) <= adev->gmc.visible_vram_size) in amdgpu_bo_fault_reserve_notify()
1407 (offset + size) > adev->gmc.visible_vram_size) in amdgpu_bo_fault_reserve_notify()
Damdgpu_ttm.c138 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags()
646 <= adev->gmc.visible_vram_size; in amdgpu_mem_visible()
757 if ((mem->bus.offset + bus_size) > adev->gmc.visible_vram_size) in amdgpu_ttm_io_mem_reserve()
1748 uint64_t vram_size = adev->gmc.visible_vram_size; in amdgpu_ttm_fw_reserve_vram_init()
1912 vis_vram_limit <= adev->gmc.visible_vram_size) in amdgpu_ttm_init()
1913 adev->gmc.visible_vram_size = vis_vram_limit; in amdgpu_ttm_init()
1919 adev->gmc.visible_vram_size); in amdgpu_ttm_init()
2091 size = adev->gmc.visible_vram_size; in amdgpu_ttm_set_buffer_funcs_status()
Dgmc_v10_0.c737 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v10_0_mc_init()
738 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v10_0_mc_init()
739 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v10_0_mc_init()
Damdgpu_amdkfd.c405 mem_info->local_mem_size_public = adev->gmc.visible_vram_size; in amdgpu_amdkfd_get_local_mem_info()
407 adev->gmc.visible_vram_size; in amdgpu_amdkfd_get_local_mem_info()
Damdgpu_object.h209 unsigned fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_bo_in_cpu_visible_vram()
Dpsp_v11_0.c683 if (adev->gmc.visible_vram_size < sz || !adev->mman.aper_base_kaddr) { in psp_v11_0_memory_training()
685 adev->gmc.visible_vram_size, in psp_v11_0_memory_training()
Dgmc_v9_0.c1286 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v9_0_mc_init()
1287 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v9_0_mc_init()
1288 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v9_0_mc_init()
Dgmc_v7_0.c392 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v7_0_mc_init()
393 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v7_0_mc_init()
394 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v7_0_mc_init()
Dgmc_v8_0.c600 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v8_0_mc_init()
601 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v8_0_mc_init()
602 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v8_0_mc_init()
Damdgpu_kms.c626 min(adev->gmc.visible_vram_size - in amdgpu_info_ioctl()
651 adev->gmc.visible_vram_size; in amdgpu_info_ioctl()
653 min(adev->gmc.visible_vram_size - in amdgpu_info_ioctl()
Damdgpu_virt.c541 vf2pf_info->fb_vis_size = adev->gmc.visible_vram_size >> 20; in amdgpu_virt_write_vf2pf_data()
Dgmc_v6_0.c329 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v6_0_mc_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_object.c112 rbo->rdev->mc.visible_vram_size < rbo->rdev->mc.real_vram_size) { in radeon_ttm_placement_from_domain()
114 rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_ttm_placement_from_domain()
177 rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_ttm_placement_from_domain()
365 (!max_offset || max_offset > bo->rdev->mc.visible_vram_size)) in radeon_bo_pin_restricted()
367 bo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_bo_pin_restricted()
815 if ((offset + size) <= rdev->mc.visible_vram_size) in radeon_bo_fault_reserve_notify()
824 lpfn = rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_bo_fault_reserve_notify()
841 if ((offset + size) > rdev->mc.visible_vram_size) in radeon_bo_fault_reserve_notify()
Dradeon_ttm.c109 else if (rbo->rdev->mc.visible_vram_size < rbo->rdev->mc.real_vram_size && in radeon_evict_flags()
110 bo->mem.start < (rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT)) { in radeon_evict_flags()
111 unsigned fpfn = rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_evict_flags()
383 if ((mem->bus.offset + bus_size) > rdev->mc.visible_vram_size) in radeon_ttm_io_mem_reserve()
835 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in radeon_ttm_init()
Dni_dma.c163 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in cayman_dma_stop()
Dr600_dma.c104 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in r600_dma_stop()
Drs690.c163 rdev->mc.visible_vram_size = rdev->mc.aper_size; in rs690_mc_init()
184 if (k8_addr + rdev->mc.visible_vram_size < 0x100000000ULL) in rs690_mc_init()
Drv770.c1086 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in r700_cp_stop()
1683 rdev->mc.visible_vram_size = rdev->mc.aper_size; in rv770_mc_init()
Dradeon_gem.c232 args->vram_visible = rdev->mc.visible_vram_size; in radeon_gem_info_ioctl()
Dcik_sdma.c257 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in cik_sdma_gfx_stop()
Dr100.c1246 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in r100_cp_disable()
2779 rdev->mc.visible_vram_size = r100_get_accessible_vram(rdev); in r100_vram_init_sizes()
2781 if (rdev->mc.visible_vram_size > rdev->mc.aper_size) in r100_vram_init_sizes()
2782 rdev->mc.visible_vram_size = rdev->mc.aper_size; in r100_vram_init_sizes()
Drs600.c883 rdev->mc.visible_vram_size = rdev->mc.aper_size; in rs600_mc_init()
Dr600.c1474 rdev->mc.visible_vram_size = rdev->mc.aper_size; in r600_mc_init()
1488 if (k8_addr + rdev->mc.visible_vram_size < 0x100000000ULL) in r600_mc_init()
2427 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in r600_cp_stop()

12