Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_object.c87 rbo->rdev->mc.visible_vram_size < rbo->rdev->mc.real_vram_size) { in radeon_ttm_placement_from_domain()
89 rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_ttm_placement_from_domain()
124 rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_ttm_placement_from_domain()
313 (!max_offset || max_offset > bo->rdev->mc.visible_vram_size)) in radeon_bo_pin_restricted()
315 bo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_bo_pin_restricted()
742 if ((offset + size) <= rdev->mc.visible_vram_size) in radeon_bo_fault_reserve_notify()
751 lpfn = rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_bo_fault_reserve_notify()
765 if ((offset + size) > rdev->mc.visible_vram_size) in radeon_bo_fault_reserve_notify()
Dradeon_ttm.c106 else if (rbo->rdev->mc.visible_vram_size < rbo->rdev->mc.real_vram_size && in radeon_evict_flags()
107 bo->resource->start < (rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT)) { in radeon_evict_flags()
108 unsigned fpfn = rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_evict_flags()
291 if ((mem->bus.offset + bus_size) > rdev->mc.visible_vram_size) in radeon_ttm_io_mem_reserve()
712 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in radeon_ttm_init()
Dni_dma.c162 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in cayman_dma_stop()
Dr600_dma.c103 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.c1094 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in r700_cp_stop()
1691 rdev->mc.visible_vram_size = rdev->mc.aper_size; in rv770_mc_init()
Dcik_sdma.c256 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in cik_sdma_gfx_stop()
Dradeon_gem.c306 args->vram_visible = rdev->mc.visible_vram_size; in radeon_gem_info_ioctl()
Dr100.c1254 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in r100_cp_disable()
2786 rdev->mc.visible_vram_size = r100_get_accessible_vram(rdev); in r100_vram_init_sizes()
2788 if (rdev->mc.visible_vram_size > rdev->mc.aper_size) in r100_vram_init_sizes()
2789 rdev->mc.visible_vram_size = rdev->mc.aper_size; in r100_vram_init_sizes()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gmc.h175 u64 visible_vram_size; member
316 WARN_ON(gmc->real_vram_size < gmc->visible_vram_size); in amdgpu_gmc_vram_full_visible()
318 return (gmc->real_vram_size == gmc->visible_vram_size); in amdgpu_gmc_vram_full_visible()
Damdgpu_vram_mgr.c113 return sysfs_emit(buf, "%llu\n", adev->gmc.visible_vram_size); in amdgpu_mem_info_vis_vram_total_show()
233 if (start >= adev->gmc.visible_vram_size) in amdgpu_vram_mgr_vis_size()
236 return (end > adev->gmc.visible_vram_size ? in amdgpu_vram_mgr_vis_size()
237 adev->gmc.visible_vram_size : end) - start; in amdgpu_vram_mgr_vis_size()
259 if (res->start >= adev->gmc.visible_vram_size >> PAGE_SHIFT) in amdgpu_vram_mgr_bo_visible_size()
Damdgpu_ttm.c150 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags()
452 return end <= adev->gmc.visible_vram_size; in amdgpu_mem_visible()
586 if ((mem->bus.offset + bus_size) > adev->gmc.visible_vram_size) in amdgpu_ttm_io_mem_reserve()
1549 uint64_t vram_size = adev->gmc.visible_vram_size; in amdgpu_ttm_fw_reserve_vram_init()
1707 vis_vram_limit <= adev->gmc.visible_vram_size) in amdgpu_ttm_init()
1708 adev->gmc.visible_vram_size = vis_vram_limit; in amdgpu_ttm_init()
1716 adev->gmc.visible_vram_size); in amdgpu_ttm_init()
1721 adev->gmc.visible_vram_size); in amdgpu_ttm_init()
1922 size = adev->gmc.visible_vram_size; in amdgpu_ttm_set_buffer_funcs_status()
Dgmc_v11_0.c695 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v11_0_mc_init()
696 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v11_0_mc_init()
697 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v11_0_mc_init()
Damdgpu_object.c133 unsigned visible_pfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_bo_placement_from_domain()
600 bo->tbo.resource->start < adev->gmc.visible_vram_size >> PAGE_SHIFT) in amdgpu_bo_create()
1356 if ((offset + bo->base.size) <= adev->gmc.visible_vram_size) in amdgpu_bo_fault_reserve_notify()
1381 (offset + bo->base.size) > adev->gmc.visible_vram_size) in amdgpu_bo_fault_reserve_notify()
Dpsp_v13_0.c539 if (adev->gmc.visible_vram_size < sz || !adev->mman.aper_base_kaddr) { in psp_v13_0_memory_training()
541 adev->gmc.visible_vram_size, in psp_v13_0_memory_training()
Damdgpu_amdkfd.c434 mem_info->local_mem_size_public = adev->gmc.visible_vram_size; in amdgpu_amdkfd_get_local_mem_info()
436 adev->gmc.visible_vram_size; in amdgpu_amdkfd_get_local_mem_info()
Dpsp_v11_0.c640 if (adev->gmc.visible_vram_size < sz || !adev->mman.aper_base_kaddr) { in psp_v11_0_memory_training()
642 adev->gmc.visible_vram_size, in psp_v11_0_memory_training()
Dgmc_v10_0.c836 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v10_0_mc_init()
837 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v10_0_mc_init()
838 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v10_0_mc_init()
Damdgpu_object.h228 if (cursor.start < adev->gmc.visible_vram_size) in amdgpu_bo_in_cpu_visible_vram()
Dgmc_v7_0.c393 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v7_0_mc_init()
394 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v7_0_mc_init()
395 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v7_0_mc_init()
Dgmc_v9_0.c1475 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v9_0_mc_init()
1476 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v9_0_mc_init()
1477 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v9_0_mc_init()
Dgmc_v8_0.c591 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v8_0_mc_init()
592 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v8_0_mc_init()
593 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v8_0_mc_init()
Damdgpu_kms.c675 min(adev->gmc.visible_vram_size - in amdgpu_info_ioctl()
700 adev->gmc.visible_vram_size; in amdgpu_info_ioctl()
702 min(adev->gmc.visible_vram_size - in amdgpu_info_ioctl()
Dgmc_v6_0.c329 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v6_0_mc_init()
Damdgpu_virt.c595 vf2pf_info->fb_vis_size = adev->gmc.visible_vram_size >> 20; in amdgpu_virt_write_vf2pf_data()

12