/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_object.c | 87 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()
|
H A D | radeon_ttm.c | 105 else if (rbo->rdev->mc.visible_vram_size < rbo->rdev->mc.real_vram_size && in radeon_evict_flags() 106 bo->resource->start < (rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT)) { in radeon_evict_flags() 107 unsigned fpfn = rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_evict_flags() 287 if ((mem->bus.offset + bus_size) > rdev->mc.visible_vram_size) in radeon_ttm_io_mem_reserve() 708 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in radeon_ttm_init()
|
H A D | ni_dma.c | 162 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in cayman_dma_stop()
|
H A D | r600_dma.c | 103 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in r600_dma_stop()
|
H A D | rs690.c | 163 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()
|
H A D | rv770.c | 1083 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in r700_cp_stop() 1680 rdev->mc.visible_vram_size = rdev->mc.aper_size; in rv770_mc_init()
|
H A D | cik_sdma.c | 256 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in cik_sdma_gfx_stop()
|
H A D | radeon_gem.c | 306 args->vram_visible = rdev->mc.visible_vram_size; in radeon_gem_info_ioctl()
|
H A D | r100.c | 1274 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in r100_cp_disable() 2806 rdev->mc.visible_vram_size = r100_get_accessible_vram(rdev); in r100_vram_init_sizes() 2808 if (rdev->mc.visible_vram_size > rdev->mc.aper_size) in r100_vram_init_sizes() 2809 rdev->mc.visible_vram_size = rdev->mc.aper_size; in r100_vram_init_sizes()
|
H A D | rs600.c | 890 rdev->mc.visible_vram_size = rdev->mc.aper_size; in rs600_mc_init()
|
H A D | r600.c | 1473 rdev->mc.visible_vram_size = rdev->mc.aper_size; in r600_mc_init() 1487 if (k8_addr + rdev->mc.visible_vram_size < 0x100000000ULL) in r600_mc_init() 2426 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in r600_cp_stop()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gmc.h | 211 u64 visible_vram_size; member 362 WARN_ON(gmc->real_vram_size < gmc->visible_vram_size); in amdgpu_gmc_vram_full_visible() 364 return (gmc->real_vram_size == gmc->visible_vram_size); in amdgpu_gmc_vram_full_visible()
|
H A D | amdgpu_vram_mgr.c | 113 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()
|
H A D | amdgpu_gmc.c | 213 if (vis_limit && vis_limit < mc->visible_vram_size) in amdgpu_gmc_vram_location() 214 mc->visible_vram_size = vis_limit; in amdgpu_gmc_vram_location() 216 if (mc->real_vram_size < mc->visible_vram_size) in amdgpu_gmc_vram_location() 217 mc->visible_vram_size = mc->real_vram_size; in amdgpu_gmc_vram_location()
|
H A D | amdgpu_amdkfd.c | 427 if (adev->gmc.real_vram_size == adev->gmc.visible_vram_size) in amdgpu_amdkfd_get_local_mem_info() 434 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()
|
H A D | psp_v11_0.c | 511 if (adev->gmc.visible_vram_size < sz || !adev->mman.aper_base_kaddr) { in psp_v11_0_memory_training() 513 adev->gmc.visible_vram_size, in psp_v11_0_memory_training()
|
H A D | gmc_v11_0.c | 726 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v11_0_mc_init() 727 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v11_0_mc_init() 728 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v11_0_mc_init()
|
H A D | amdgpu_ttm.c | 150 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags() 435 if ((cursor.start + cursor.size) > adev->gmc.visible_vram_size) in amdgpu_res_cpu_visible() 1635 uint64_t vram_size = adev->gmc.visible_vram_size; in amdgpu_ttm_fw_reserve_vram_init() 1660 u64 vram_size = adev->gmc.visible_vram_size; in amdgpu_ttm_drv_reserve_vram_init() 1867 adev->gmc.visible_vram_size); in amdgpu_ttm_init() 1875 adev->gmc.visible_vram_size); in amdgpu_ttm_init() 2107 size = adev->gmc.visible_vram_size; in amdgpu_ttm_set_buffer_funcs_status()
|
H A D | psp_v13_0.c | 547 if (adev->gmc.visible_vram_size < sz || !adev->mman.aper_base_kaddr) { in psp_v13_0_memory_training() 549 adev->gmc.visible_vram_size, in psp_v13_0_memory_training()
|
H A D | amdgpu_kms.c | 680 min(adev->gmc.visible_vram_size - in amdgpu_info_ioctl() 705 adev->gmc.visible_vram_size; in amdgpu_info_ioctl() 707 min(adev->gmc.visible_vram_size - in amdgpu_info_ioctl()
|
H A D | gmc_v6_0.c | 321 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v6_0_mc_init()
|
H A D | gmc_v10_0.c | 824 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v10_0_mc_init()
|
H A D | amdgpu_virt.c | 607 vf2pf_info->fb_vis_size = adev->gmc.visible_vram_size >> 20; in amdgpu_virt_write_vf2pf_data()
|
H A D | gmc_v7_0.c | 385 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v7_0_mc_init()
|
H A D | amdgpu_object.c | 134 unsigned int visible_pfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_bo_placement_from_domain()
|