/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vram_mgr.c | 65 return snprintf(buf, PAGE_SIZE, "%llu\n", adev->gmc.visible_vram_size); in amdgpu_mem_info_vis_vram_total_show() 200 if (start >= adev->gmc.visible_vram_size) in amdgpu_vram_mgr_vis_size() 203 return (end > adev->gmc.visible_vram_size ? in amdgpu_vram_mgr_vis_size() 204 adev->gmc.visible_vram_size : end) - start; in amdgpu_vram_mgr_vis_size() 226 if (mem->start >= adev->gmc.visible_vram_size >> PAGE_SHIFT) in amdgpu_vram_mgr_bo_visible_size()
|
D | amdgpu_gmc.h | 131 u64 visible_vram_size; member 200 WARN_ON(gmc->real_vram_size < gmc->visible_vram_size); in amdgpu_gmc_vram_full_visible() 202 return (gmc->real_vram_size == gmc->visible_vram_size); in amdgpu_gmc_vram_full_visible()
|
D | gmc_v10_0.c | 561 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v10_0_mc_init() 564 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v10_0_mc_init() 565 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v10_0_mc_init()
|
D | amdgpu_object.c | 134 unsigned visible_pfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_bo_placement_from_domain() 522 bo->tbo.mem.start < adev->gmc.visible_vram_size >> PAGE_SHIFT) in amdgpu_bo_do_create() 1290 if ((offset + size) <= adev->gmc.visible_vram_size) in amdgpu_bo_fault_reserve_notify() 1313 (offset + size) > adev->gmc.visible_vram_size) in amdgpu_bo_fault_reserve_notify()
|
D | amdgpu_ttm.c | 191 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags() 608 <= adev->gmc.visible_vram_size; in amdgpu_mem_visible() 726 if ((mem->bus.offset + mem->bus.size) > adev->gmc.visible_vram_size) in amdgpu_ttm_io_mem_reserve() 1641 u64 vram_size = adev->gmc.visible_vram_size; in amdgpu_ttm_fw_reserve_vram_init() 1755 vis_vram_limit <= adev->gmc.visible_vram_size) in amdgpu_ttm_init() 1756 adev->gmc.visible_vram_size = vis_vram_limit; in amdgpu_ttm_init() 1762 adev->gmc.visible_vram_size); in amdgpu_ttm_init() 1915 size = adev->gmc.visible_vram_size; in amdgpu_ttm_set_buffer_funcs_status()
|
D | amdgpu_amdkfd.c | 432 mem_info->local_mem_size_public = adev->gmc.visible_vram_size; in amdgpu_amdkfd_get_local_mem_info() 434 adev->gmc.visible_vram_size; in amdgpu_amdkfd_get_local_mem_info()
|
D | amdgpu_object.h | 203 unsigned fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_bo_in_cpu_visible_vram()
|
D | gmc_v9_0.c | 1017 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v9_0_mc_init() 1018 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v9_0_mc_init() 1019 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v9_0_mc_init()
|
D | gmc_v7_0.c | 391 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v7_0_mc_init() 392 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v7_0_mc_init() 393 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v7_0_mc_init()
|
D | amdgpu_kms.c | 587 vram_gtt.vram_cpu_accessible_size = adev->gmc.visible_vram_size - in amdgpu_info_ioctl() 607 adev->gmc.visible_vram_size; in amdgpu_info_ioctl() 608 mem.cpu_accessible_vram.usable_heap_size = adev->gmc.visible_vram_size - in amdgpu_info_ioctl()
|
D | gmc_v8_0.c | 593 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v8_0_mc_init() 594 if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) in gmc_v8_0_mc_init() 595 adev->gmc.visible_vram_size = adev->gmc.real_vram_size; in gmc_v8_0_mc_init()
|
D | gmc_v6_0.c | 340 adev->gmc.visible_vram_size = adev->gmc.aper_size; in gmc_v6_0_mc_init()
|
D | amdgpu_cs.c | 362 u64 total_vis_vram = adev->gmc.visible_vram_size; in amdgpu_cs_get_threshold_for_moves()
|
/Linux-v5.4/drivers/gpu/drm/radeon/ |
D | radeon_object.c | 112 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()
|
D | radeon_ttm.c | 148 else if (rbo->rdev->mc.visible_vram_size < rbo->rdev->mc.real_vram_size && in radeon_evict_flags() 149 bo->mem.start < (rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT)) { in radeon_evict_flags() 150 unsigned fpfn = rbo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_evict_flags() 431 if ((mem->bus.offset + mem->bus.size) > rdev->mc.visible_vram_size) in radeon_ttm_io_mem_reserve() 810 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in radeon_ttm_init()
|
D | ni_dma.c | 163 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in cayman_dma_stop()
|
D | r600_dma.c | 104 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in r600_dma_stop()
|
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()
|
D | rv770.c | 1086 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()
|
D | radeon_gem.c | 231 args->vram_visible = rdev->mc.visible_vram_size; in radeon_gem_info_ioctl()
|
D | cik_sdma.c | 257 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in cik_sdma_gfx_stop()
|
D | r100.c | 1246 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()
|
D | rs600.c | 883 rdev->mc.visible_vram_size = rdev->mc.aper_size; in rs600_mc_init()
|
D | r600.c | 1474 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()
|
D | ni.c | 1467 radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); in cayman_cp_enable()
|