gmc 867 drivers/gpu/drm/amd/amdgpu/amdgpu.h struct amdgpu_gmc gmc; gmc 107 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c amdgpu_amdkfd_total_mem_size += adev->gmc.real_vram_size; gmc 428 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c resource_size_t aper_limit = adev->gmc.aper_base + adev->gmc.aper_size; gmc 431 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c if (!(adev->gmc.aper_base & address_mask || aper_limit & address_mask)) { gmc 432 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c mem_info->local_mem_size_public = adev->gmc.visible_vram_size; gmc 433 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c mem_info->local_mem_size_private = adev->gmc.real_vram_size - gmc 434 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c adev->gmc.visible_vram_size; gmc 437 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c mem_info->local_mem_size_private = adev->gmc.real_vram_size; gmc 439 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c mem_info->vram_width = adev->gmc.vram_width; gmc 442 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c &adev->gmc.aper_base, &aper_limit, gmc 569 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c return adev->gmc.xgmi.hive_id; gmc 579 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c adev->gmc.xgmi.physical_node_id, gmc 580 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c peer_adev->gmc.xgmi.physical_node_id, ret); gmc 679 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c if (adev->gmc.xgmi.num_physical_nodes && gmc 150 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c adev->gmc.real_vram_size - reserved_for_pt)) { gmc 1583 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c if (atomic_read(&adev->gmc.vm_fault_info_updated) == 1) { gmc 1584 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c *mem = *adev->gmc.vm_fault_info; gmc 1586 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c atomic_set(&adev->gmc.vm_fault_info_updated, 0); gmc 316 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c total_vram = adev->gmc.real_vram_size - atomic64_read(&adev->vram_pin_size); gmc 361 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c if (!amdgpu_gmc_vram_full_visible(&adev->gmc)) { gmc 362 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c u64 total_vis_vram = adev->gmc.visible_vram_size; gmc 418 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c if (!amdgpu_gmc_vram_full_visible(&adev->gmc) && gmc 440 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c if (!amdgpu_gmc_vram_full_visible(&adev->gmc) && gmc 493 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c !amdgpu_gmc_vram_full_visible(&adev->gmc) && gmc 754 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c u64 space_needed = roundup_pow_of_two(adev->gmc.real_vram_size); gmc 1842 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->gmc.xgmi.num_physical_nodes > 1) gmc 2057 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->gmc.xgmi.num_physical_nodes > 1) gmc 2590 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->gmc.gart_size = 512 * 1024 * 1024; gmc 2597 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->gmc.gmc_funcs = NULL; gmc 3610 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c list_for_each_entry(tmp_adev, device_list_handle, gmc.xgmi.head) { gmc 3612 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (tmp_adev->gmc.xgmi.num_physical_nodes > 1) { gmc 3628 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c gmc.xgmi.head) { gmc 3629 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (tmp_adev->gmc.xgmi.num_physical_nodes > 1) { gmc 3638 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c gmc.xgmi.head) { gmc 3645 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c list_for_each_entry(tmp_adev, device_list_handle, gmc.xgmi.head) { gmc 3693 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (hive && tmp_adev->gmc.xgmi.num_physical_nodes > 1) gmc 3814 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->gmc.xgmi.num_physical_nodes > 1) { gmc 3827 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c list_add_tail(&adev->gmc.xgmi.head, &device_list); gmc 3835 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c list_for_each_entry(tmp_adev, device_list_handle, gmc.xgmi.head) gmc 3839 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c list_for_each_entry(tmp_adev, device_list_handle, gmc.xgmi.head) { gmc 3884 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c list_for_each_entry(tmp_adev, device_list_handle, gmc.xgmi.head) { gmc 3916 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c list_for_each_entry(tmp_adev, device_list_handle, gmc.xgmi.head) { gmc 248 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c tmp = amdgpu_bo_gpu_offset(abo) - adev->gmc.vram_start; gmc 249 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c info->fix.smem_start = adev->gmc.aper_base + tmp; gmc 258 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c info->apertures->ranges[0].size = adev->gmc.aper_size; gmc 268 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c DRM_INFO("vram apper at 0x%lX\n", (unsigned long)adev->gmc.aper_base); gmc 325 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c if (adev->gmc.real_vram_size <= (32*1024*1024)) gmc 370 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c adev->gart.num_cpu_pages = adev->gmc.gart_size / PAGE_SIZE; gmc 371 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c adev->gart.num_gpu_pages = adev->gmc.gart_size / AMDGPU_GPU_PAGE_SIZE; gmc 128 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c if (ttm->dma_address[0] + PAGE_SIZE >= adev->gmc.agp_size) gmc 131 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c return adev->gmc.agp_start + ttm->dma_address[0]; gmc 179 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c u64 max_mc_address = min(adev->gmc.mc_mask, AMDGPU_GMC_HOLE_START - 1); gmc 269 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c struct amdgpu_gmc *gmc = &adev->gmc; gmc 278 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c if (gmc->fault_ring[gmc->last_fault].timestamp >= stamp) gmc 283 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c fault = &gmc->fault_ring[gmc->fault_hash[hash].idx]; gmc 291 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c fault = &gmc->fault_ring[fault->next]; gmc 299 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c fault = &gmc->fault_ring[gmc->last_fault]; gmc 304 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c fault->next = gmc->fault_hash[hash].idx; gmc 305 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c gmc->fault_hash[hash].idx = gmc->last_fault++; gmc 186 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h #define amdgpu_gmc_flush_gpu_tlb(adev, vmid, vmhub, type) ((adev)->gmc.gmc_funcs->flush_gpu_tlb((adev), (vmid), (vmhub), (type))) gmc 187 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h #define amdgpu_gmc_emit_flush_gpu_tlb(r, vmid, addr) (r)->adev->gmc.gmc_funcs->emit_flush_gpu_tlb((r), (vmid), (addr)) gmc 188 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h #define amdgpu_gmc_emit_pasid_mapping(r, vmid, pasid) (r)->adev->gmc.gmc_funcs->emit_pasid_mapping((r), (vmid), (pasid)) gmc 189 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h #define amdgpu_gmc_get_vm_pde(adev, level, dst, flags) (adev)->gmc.gmc_funcs->get_vm_pde((adev), (level), (dst), (flags)) gmc 190 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h #define amdgpu_gmc_get_pte_flags(adev, flags) (adev)->gmc.gmc_funcs->get_vm_pte_flags((adev),(flags)) gmc 200 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h static inline bool amdgpu_gmc_vram_full_visible(struct amdgpu_gmc *gmc) gmc 202 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h WARN_ON(gmc->real_vram_size < gmc->visible_vram_size); gmc 204 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h return (gmc->real_vram_size == gmc->visible_vram_size); gmc 100 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c size = (adev->gmc.gart_size >> PAGE_SHIFT) - start; gmc 353 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c } else if (adev->gmc.xgmi.hive_id) { gmc 222 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c fw_info->ver = adev->gmc.fw_version; gmc 585 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c vram_gtt.vram_size = adev->gmc.real_vram_size - gmc 587 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c vram_gtt.vram_cpu_accessible_size = adev->gmc.visible_vram_size - gmc 599 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mem.vram.total_heap_size = adev->gmc.real_vram_size; gmc 600 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mem.vram.usable_heap_size = adev->gmc.real_vram_size - gmc 607 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c adev->gmc.visible_vram_size; gmc 608 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mem.cpu_accessible_vram.usable_heap_size = adev->gmc.visible_vram_size - gmc 730 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c dev_info.vram_type = adev->gmc.vram_type; gmc 731 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c dev_info.vram_bit_width = adev->gmc.vram_width; gmc 134 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c unsigned visible_pfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; gmc 581 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (!amdgpu_gmc_vram_full_visible(&adev->gmc) && gmc 583 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c bo->tbo.mem.start < adev->gmc.visible_vram_size >> PAGE_SHIFT) gmc 1066 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c arch_io_reserve_memtype_wc(adev->gmc.aper_base, gmc 1067 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c adev->gmc.aper_size); gmc 1070 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c adev->gmc.vram_mtrr = arch_phys_wc_add(adev->gmc.aper_base, gmc 1071 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c adev->gmc.aper_size); gmc 1073 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c adev->gmc.mc_vram_size >> 20, gmc 1074 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c (unsigned long long)adev->gmc.aper_size >> 20); gmc 1076 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c adev->gmc.vram_width, amdgpu_vram_names[adev->gmc.vram_type]); gmc 1106 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c arch_phys_wc_del(adev->gmc.vram_mtrr); gmc 1107 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c arch_io_free_memtype_wc(adev->gmc.aper_base, adev->gmc.aper_size); gmc 1351 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if ((offset + size) <= adev->gmc.visible_vram_size) gmc 1374 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c (offset + size) > adev->gmc.visible_vram_size) gmc 1458 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (adev->gmc.real_vram_size <= AMDGPU_SG_THRESHOLD) gmc 203 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h unsigned fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; gmc 833 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (adev->gmc.xgmi.num_physical_nodes > 1) { gmc 1209 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (adev->gmc.xgmi.num_physical_nodes > 1 && gmc 1241 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (adev->gmc.xgmi.num_physical_nodes > 1 && gmc 267 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c if ((data.inject.address >= adev->gmc.mc_vram_size) || gmc 47 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c n = adev->gmc.gart_size - AMDGPU_IB_POOL_SIZE*64*1024; gmc 159 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c (gart_addr - adev->gmc.gart_start + gmc 162 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c (vram_addr - adev->gmc.vram_start + gmc 205 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c (vram_addr - adev->gmc.vram_start + gmc 208 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c (gart_addr - adev->gmc.gart_start + gmc 218 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c gart_addr - adev->gmc.gart_start); gmc 102 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->gpu_offset = adev->gmc.gart_start; gmc 110 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c man->gpu_offset = adev->gmc.vram_start; gmc 181 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c } else if (!amdgpu_gmc_vram_full_visible(&adev->gmc) && gmc 192 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; gmc 609 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c <= adev->gmc.visible_vram_size; gmc 727 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if ((mem->bus.offset + mem->bus.size) > adev->gmc.visible_vram_size) gmc 738 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c mem->bus.base = adev->gmc.aper_base; gmc 1121 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c placements.lpfn = adev->gmc.gart_size >> PAGE_SHIFT; gmc 1557 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c while (len && pos < adev->gmc.mc_vram_size) { gmc 1642 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c uint64_t vram_size = adev->gmc.visible_vram_size; gmc 1695 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c adev->gmc.real_vram_size >> PAGE_SHIFT); gmc 1704 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c vis_vram_limit <= adev->gmc.visible_vram_size) gmc 1705 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c adev->gmc.visible_vram_size = vis_vram_limit; gmc 1710 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c adev->mman.aper_base_kaddr = ioremap_wc(adev->gmc.aper_base, gmc 1711 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c adev->gmc.visible_vram_size); gmc 1727 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c r = amdgpu_bo_create_kernel(adev, adev->gmc.stolen_size, PAGE_SIZE, gmc 1739 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c adev->gmc.real_vram_size - DISCOVERY_TMR_SIZE, gmc 1748 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c (unsigned) (adev->gmc.real_vram_size / (1024 * 1024))); gmc 1757 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c adev->gmc.mc_vram_size), gmc 1879 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c size = adev->gmc.real_vram_size; gmc 1881 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c size = adev->gmc.visible_vram_size; gmc 1917 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c *addr = adev->gmc.gart_start; gmc 2171 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if (*pos >= adev->gmc.mc_vram_size) gmc 2178 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if (*pos >= adev->gmc.mc_vram_size) gmc 2215 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if (*pos >= adev->gmc.mc_vram_size) gmc 2222 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if (*pos >= adev->gmc.mc_vram_size) gmc 2448 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c i_size_write(ent->d_inode, adev->gmc.mc_vram_size); gmc 2450 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c i_size_write(ent->d_inode, adev->gmc.gart_size); gmc 395 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c FW_VERSION_ATTR(mc_fw_version, 0444, gmc.fw_version); gmc 1057 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c pasid_mapping_needed &= adev->gmc.gmc_funcs->emit_pasid_mapping && gmc 1784 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c adev->gmc.gmc_funcs->set_prt(adev, enable); gmc 1795 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (!adev->gmc.gmc_funcs->set_prt) gmc 1838 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (!adev->gmc.gmc_funcs->set_prt) gmc 2711 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c WARN_ONCE((vm->use_cpu_for_update && !amdgpu_gmc_vram_full_visible(&adev->gmc)), gmc 2867 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c WARN_ONCE((vm->use_cpu_for_update && !amdgpu_gmc_vram_full_visible(&adev->gmc)), gmc 2944 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c bool prt_fini_needed = !!adev->gmc.gmc_funcs->set_prt; gmc 3022 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (amdgpu_gmc_vram_full_visible(&adev->gmc)) gmc 48 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c return snprintf(buf, PAGE_SIZE, "%llu\n", adev->gmc.real_vram_size); gmc 65 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c return snprintf(buf, PAGE_SIZE, "%llu\n", adev->gmc.visible_vram_size); gmc 200 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c if (start >= adev->gmc.visible_vram_size) gmc 203 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c return (end > adev->gmc.visible_vram_size ? gmc 204 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c adev->gmc.visible_vram_size : end) - start; gmc 223 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c if (amdgpu_gmc_vram_full_visible(&adev->gmc)) gmc 226 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c if (mem->start >= adev->gmc.visible_vram_size >> PAGE_SHIFT) gmc 288 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c if (atomic64_add_return(mem_bytes, &mgr->usage) > adev->gmc.mc_vram_size) { gmc 130 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c return snprintf(buf, PAGE_SIZE, "%llu\n", adev->gmc.xgmi.node_id); gmc 231 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c if (!adev->gmc.xgmi.hive_id) gmc 238 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c if (tmp->hive_id == adev->gmc.xgmi.hive_id) { gmc 259 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c tmp->hive_id = adev->gmc.xgmi.hive_id; gmc 290 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c adev->gmc.xgmi.node_id, gmc 291 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c adev->gmc.xgmi.hive_id, ret); gmc 307 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c adev->gmc.xgmi.node_id, gmc 308 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c adev->gmc.xgmi.hive_id, ret); gmc 321 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c if (top->nodes[i].node_id == peer_adev->gmc.xgmi.node_id) gmc 335 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c if (!adev->gmc.xgmi.supported) gmc 339 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c ret = psp_xgmi_get_hive_id(&adev->psp, &adev->gmc.xgmi.hive_id); gmc 346 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c ret = psp_xgmi_get_node_id(&adev->psp, &adev->gmc.xgmi.node_id); gmc 353 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c adev->gmc.xgmi.hive_id = 16; gmc 354 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c adev->gmc.xgmi.node_id = adev->gmc.xgmi.physical_node_id + 16; gmc 362 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c adev->gmc.xgmi.node_id, adev->gmc.xgmi.hive_id); gmc 368 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c list_add_tail(&adev->gmc.xgmi.head, &hive->device_list); gmc 375 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c list_for_each_entry(tmp_adev, &hive->device_list, gmc.xgmi.head) { gmc 380 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c adev->gmc.xgmi.node_id; gmc 389 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c list_for_each_entry(tmp_adev, &hive->device_list, gmc.xgmi.head) { gmc 395 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c tmp_adev->gmc.xgmi.node_id, gmc 396 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c tmp_adev->gmc.xgmi.hive_id, ret); gmc 411 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c adev->gmc.xgmi.physical_node_id, adev->gmc.xgmi.hive_id); gmc 414 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c adev->gmc.xgmi.physical_node_id, adev->gmc.xgmi.hive_id, gmc 424 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c if (!adev->gmc.xgmi.supported) gmc 50 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h adev->gmc.xgmi.hive_id && gmc 51 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h adev->gmc.xgmi.hive_id == bo_adev->gmc.xgmi.hive_id); gmc 2782 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->ddev->mode_config.fb_base = adev->gmc.aper_base; gmc 2903 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->ddev->mode_config.fb_base = adev->gmc.aper_base; gmc 2653 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->ddev->mode_config.fb_base = adev->gmc.aper_base; gmc 2679 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->ddev->mode_config.fb_base = adev->gmc.aper_base; gmc 378 drivers/gpu/drm/amd/amdgpu/dce_virtual.c adev->ddev->mode_config.fb_base = adev->gmc.aper_base; gmc 1756 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c (adev->gmc.private_aperture_start >> 48)); gmc 1758 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c (adev->gmc.shared_aperture_start >> 48)); gmc 1977 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c sh_mem_base = adev->gmc.shared_aperture_start >> 48; gmc 3826 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c tmp = adev->gmc.shared_aperture_start >> 48; gmc 2532 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c (adev->gmc.private_aperture_start >> 48)); gmc 2534 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c (adev->gmc.shared_aperture_start >> 48)); gmc 59 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c (u32)(adev->gmc.gart_start >> 12)); gmc 61 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c (u32)(adev->gmc.gart_start >> 44)); gmc 64 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c (u32)(adev->gmc.gart_end >> 12)); gmc 66 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c (u32)(adev->gmc.gart_end >> 44)); gmc 75 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c WREG32_SOC15_RLC(GC, 0, mmMC_VM_AGP_BOT, adev->gmc.agp_start >> 24); gmc 76 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c WREG32_SOC15_RLC(GC, 0, mmMC_VM_AGP_TOP, adev->gmc.agp_end >> 24); gmc 80 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c min(adev->gmc.fb_start, adev->gmc.agp_start) >> 18); gmc 90 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c max((adev->gmc.fb_end >> 18) + 0x1, gmc 91 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c adev->gmc.agp_end >> 18)); gmc 94 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18); gmc 97 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start gmc 157 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c if (adev->gmc.translate_further) { gmc 209 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c if (adev->gmc.translate_further) gmc 272 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c adev->gmc.vram_start >> 24); gmc 274 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c adev->gmc.vram_end >> 24); gmc 39 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c adev->gmc.xgmi.num_physical_nodes = max_region + 1; gmc 40 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c if (adev->gmc.xgmi.num_physical_nodes > 4) gmc 43 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c adev->gmc.xgmi.physical_node_id = gmc 45 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c if (adev->gmc.xgmi.physical_node_id > 3) gmc 47 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c adev->gmc.xgmi.node_segment_size = REG_GET_FIELD( gmc 66 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c (u32)(adev->gmc.gart_start >> 12)); gmc 68 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c (u32)(adev->gmc.gart_start >> 44)); gmc 71 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c (u32)(adev->gmc.gart_end >> 12)); gmc 73 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c (u32)(adev->gmc.gart_end >> 44)); gmc 87 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c adev->gmc.vram_start >> 18); gmc 89 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c adev->gmc.vram_end >> 18); gmc 92 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start gmc 154 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c if (adev->gmc.translate_further) { gmc 260 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c adev->gmc.vram_start >> 24); gmc 262 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c adev->gmc.vram_end >> 24); gmc 198 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.vm_fault.num_types = 1; gmc 199 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.vm_fault.funcs = &gmc_v10_0_irq_funcs; gmc 239 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c spin_lock(&adev->gmc.invalidate_lock); gmc 290 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c spin_unlock(&adev->gmc.invalidate_lock); gmc 501 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.vram_start; gmc 504 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c if (!adev->gmc.translate_further) gmc 530 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c if (adev->gmc.gmc_funcs == NULL) gmc 531 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.gmc_funcs = &gmc_v10_0_gmc_funcs; gmc 541 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.shared_aperture_start = 0x2000000000000000ULL; gmc 542 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.shared_aperture_end = gmc 543 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.shared_aperture_start + (4ULL << 30) - 1; gmc 544 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.private_aperture_start = 0x1000000000000000ULL; gmc 545 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.private_aperture_end = gmc 546 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.private_aperture_start + (4ULL << 30) - 1; gmc 571 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c return amdgpu_irq_get(adev, &adev->gmc.vm_fault, 0); gmc 582 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c amdgpu_gmc_vram_location(adev, &adev->gmc, base); gmc 603 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.vram_width = amdgpu_atomfirmware_get_vram_width(adev); gmc 608 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.vram_width = numchan * chansize; gmc 612 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.aper_base = pci_resource_start(adev->pdev, 0); gmc 613 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.aper_size = pci_resource_len(adev->pdev, 0); gmc 616 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.mc_vram_size = gmc 618 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.real_vram_size = adev->gmc.mc_vram_size; gmc 619 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.visible_vram_size = adev->gmc.aper_size; gmc 622 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) gmc 623 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.visible_vram_size = adev->gmc.real_vram_size; gmc 632 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.gart_size = 512ULL << 20; gmc 636 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; gmc 638 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c gmc_v10_0_vram_gtt_location(adev, &adev->gmc); gmc 683 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c if ((adev->gmc.real_vram_size - size) < (8 * 1024 * 1024)) { gmc 702 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c spin_lock_init(&adev->gmc.invalidate_lock); gmc 704 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.vram_type = amdgpu_atomfirmware_get_vram_type(adev); gmc 724 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c &adev->gmc.vm_fault); gmc 727 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c &adev->gmc.vm_fault); gmc 735 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.mc_mask = 0xffffffffffffULL; /* 48 bit MC */ gmc 742 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.stolen_size = 0; gmc 744 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.stolen_size = 9 * 1024 *1024; gmc 756 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->gmc.stolen_size = gmc_v10_0_get_vbios_fb_size(adev); gmc 865 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c (unsigned)(adev->gmc.gart_size >> 20), gmc 912 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c amdgpu_irq_put(adev, &adev->gmc.vm_fault, 0); gmc 145 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c err = request_firmware(&adev->gmc.fw, fw_name, adev->dev); gmc 149 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c err = amdgpu_ucode_validate(adev->gmc.fw); gmc 156 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c release_firmware(adev->gmc.fw); gmc 157 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.fw = NULL; gmc 170 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c if (!adev->gmc.fw) gmc 173 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data; gmc 177 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version); gmc 180 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c (adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes)); gmc 183 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c (adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes)); gmc 268 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.vram_start >> 12); gmc 270 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.vram_end >> 12); gmc 328 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.vram_width = numchan * chansize; gmc 330 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.mc_vram_size = RREG32(mmCONFIG_MEMSIZE) * 1024ULL * 1024ULL; gmc 331 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.real_vram_size = RREG32(mmCONFIG_MEMSIZE) * 1024ULL * 1024ULL; gmc 338 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.aper_base = pci_resource_start(adev->pdev, 0); gmc 339 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.aper_size = pci_resource_len(adev->pdev, 0); gmc 340 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.visible_vram_size = adev->gmc.aper_size; gmc 347 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.gart_size = 256ULL << 20; gmc 353 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.gart_size = 1024ULL << 20; gmc 357 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; gmc 360 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c gmc_v6_0_vram_gtt_location(adev, &adev->gmc); gmc 441 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c if (enable && !adev->gmc.prt_warning) { gmc 443 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.prt_warning = true; gmc 528 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c WREG32(mmVM_CONTEXT0_PAGE_TABLE_START_ADDR, adev->gmc.gart_start >> 12); gmc 529 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c WREG32(mmVM_CONTEXT0_PAGE_TABLE_END_ADDR, adev->gmc.gart_end >> 12); gmc 576 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c (unsigned)(adev->gmc.gart_size >> 20), gmc 815 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c return amdgpu_irq_get(adev, &adev->gmc.vm_fault, 0); gmc 834 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c if ((adev->gmc.real_vram_size - size) < (8 * 1024 * 1024)) gmc 847 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.vram_type = AMDGPU_VRAM_TYPE_UNKNOWN; gmc 851 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.vram_type = gmc_v6_0_convert_vram_type(tmp); gmc 854 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 146, &adev->gmc.vm_fault); gmc 858 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 147, &adev->gmc.vm_fault); gmc 864 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.mc_mask = 0xffffffffffULL; gmc 883 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.stolen_size = gmc_v6_0_get_vbios_fb_size(adev); gmc 924 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c release_firmware(adev->gmc.fw); gmc 925 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.fw = NULL; gmc 956 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c amdgpu_irq_put(adev, &adev->gmc.vm_fault, 0); gmc 1166 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.gmc_funcs = &gmc_v6_0_gmc_funcs; gmc 1171 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.vm_fault.num_types = 1; gmc 1172 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->gmc.vm_fault.funcs = &gmc_v6_0_irq_funcs; gmc 159 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c err = request_firmware(&adev->gmc.fw, fw_name, adev->dev); gmc 162 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c err = amdgpu_ucode_validate(adev->gmc.fw); gmc 167 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c release_firmware(adev->gmc.fw); gmc 168 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.fw = NULL; gmc 189 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c if (!adev->gmc.fw) gmc 192 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data; gmc 195 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version); gmc 198 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c (adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes)); gmc 201 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c (adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes)); gmc 291 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.vram_start >> 12); gmc 293 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.vram_end >> 12); gmc 326 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.vram_width = amdgpu_atombios_get_vram_width(adev); gmc 327 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c if (!adev->gmc.vram_width) { gmc 369 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.vram_width = numchan * chansize; gmc 372 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.mc_vram_size = RREG32(mmCONFIG_MEMSIZE) * 1024ULL * 1024ULL; gmc 373 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.real_vram_size = RREG32(mmCONFIG_MEMSIZE) * 1024ULL * 1024ULL; gmc 380 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.aper_base = pci_resource_start(adev->pdev, 0); gmc 381 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.aper_size = pci_resource_len(adev->pdev, 0); gmc 385 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.aper_base = ((u64)RREG32(mmMC_VM_FB_OFFSET)) << 22; gmc 386 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.aper_size = adev->gmc.real_vram_size; gmc 391 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.visible_vram_size = adev->gmc.aper_size; gmc 392 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) gmc 393 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.visible_vram_size = adev->gmc.real_vram_size; gmc 400 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.gart_size = 256ULL << 20; gmc 408 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.gart_size = 1024ULL << 20; gmc 413 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; gmc 416 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c gmc_v7_0_vram_gtt_location(adev, &adev->gmc); gmc 524 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c if (enable && !adev->gmc.prt_warning) { gmc 526 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.prt_warning = true; gmc 627 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c WREG32(mmVM_CONTEXT0_PAGE_TABLE_START_ADDR, adev->gmc.gart_start >> 12); gmc 628 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c WREG32(mmVM_CONTEXT0_PAGE_TABLE_END_ADDR, adev->gmc.gart_end >> 12); gmc 682 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c (unsigned)(adev->gmc.gart_size >> 20), gmc 917 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.shared_aperture_start = 0x2000000000000000ULL; gmc 918 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.shared_aperture_end = gmc 919 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.shared_aperture_start + (4ULL << 30) - 1; gmc 920 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.private_aperture_start = gmc 921 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.shared_aperture_end + 1; gmc 922 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.private_aperture_end = gmc 923 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.private_aperture_start + (4ULL << 30) - 1; gmc 935 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c return amdgpu_irq_get(adev, &adev->gmc.vm_fault, 0); gmc 954 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c if ((adev->gmc.real_vram_size - size) < (8 * 1024 * 1024)) gmc 967 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.vram_type = AMDGPU_VRAM_TYPE_UNKNOWN; gmc 971 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.vram_type = gmc_v7_0_convert_vram_type(tmp); gmc 974 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_GFX_PAGE_INV_FAULT, &adev->gmc.vm_fault); gmc 978 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_GFX_MEM_PROT_FAULT, &adev->gmc.vm_fault); gmc 992 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.mc_mask = 0xffffffffffULL; /* 40 bit MC */ gmc 1011 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.stolen_size = gmc_v7_0_get_vbios_fb_size(adev); gmc 1041 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.vm_fault_info = kmalloc(sizeof(struct kfd_vm_fault_info), gmc 1043 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c if (!adev->gmc.vm_fault_info) gmc 1045 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c atomic_set(&adev->gmc.vm_fault_info_updated, 0); gmc 1056 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c kfree(adev->gmc.vm_fault_info); gmc 1060 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c release_firmware(adev->gmc.fw); gmc 1061 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.fw = NULL; gmc 1094 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c amdgpu_irq_put(adev, &adev->gmc.vm_fault, 0); gmc 1275 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c && !atomic_read(&adev->gmc.vm_fault_info_updated)) { gmc 1276 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c struct kfd_vm_fault_info *info = adev->gmc.vm_fault_info; gmc 1292 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c atomic_set(&adev->gmc.vm_fault_info_updated, 1); gmc 1357 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.gmc_funcs = &gmc_v7_0_gmc_funcs; gmc 1362 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.vm_fault.num_types = 1; gmc 1363 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->gmc.vm_fault.funcs = &gmc_v7_0_irq_funcs; gmc 276 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c err = request_firmware(&adev->gmc.fw, fw_name, adev->dev); gmc 279 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c err = amdgpu_ucode_validate(adev->gmc.fw); gmc 284 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c release_firmware(adev->gmc.fw); gmc 285 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.fw = NULL; gmc 314 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if (!adev->gmc.fw) gmc 317 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data; gmc 320 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version); gmc 323 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c (adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes)); gmc 326 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c (adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes)); gmc 383 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if (!adev->gmc.fw) gmc 386 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data; gmc 389 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version); gmc 392 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c (adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes)); gmc 395 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c (adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes)); gmc 482 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.vram_start >> 12); gmc 484 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.vram_end >> 12); gmc 489 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c tmp = ((adev->gmc.vram_end >> 24) & 0xFFFF) << 16; gmc 490 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c tmp |= ((adev->gmc.vram_start >> 24) & 0xFFFF); gmc 493 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c WREG32(mmHDP_NONSURFACE_BASE, (adev->gmc.vram_start >> 8)); gmc 528 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.vram_width = amdgpu_atombios_get_vram_width(adev); gmc 529 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if (!adev->gmc.vram_width) { gmc 571 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.vram_width = numchan * chansize; gmc 574 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.mc_vram_size = RREG32(mmCONFIG_MEMSIZE) * 1024ULL * 1024ULL; gmc 575 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.real_vram_size = RREG32(mmCONFIG_MEMSIZE) * 1024ULL * 1024ULL; gmc 582 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.aper_base = pci_resource_start(adev->pdev, 0); gmc 583 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.aper_size = pci_resource_len(adev->pdev, 0); gmc 587 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.aper_base = ((u64)RREG32(mmMC_VM_FB_OFFSET)) << 22; gmc 588 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.aper_size = adev->gmc.real_vram_size; gmc 593 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.visible_vram_size = adev->gmc.aper_size; gmc 594 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) gmc 595 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.visible_vram_size = adev->gmc.real_vram_size; gmc 605 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.gart_size = 256ULL << 20; gmc 611 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.gart_size = 1024ULL << 20; gmc 615 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; gmc 618 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c gmc_v8_0_vram_gtt_location(adev, &adev->gmc); gmc 751 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if (enable && !adev->gmc.prt_warning) { gmc 753 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.prt_warning = true; gmc 870 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c WREG32(mmVM_CONTEXT0_PAGE_TABLE_START_ADDR, adev->gmc.gart_start >> 12); gmc 871 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c WREG32(mmVM_CONTEXT0_PAGE_TABLE_END_ADDR, adev->gmc.gart_end >> 12); gmc 926 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c (unsigned)(adev->gmc.gart_size >> 20), gmc 1035 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.shared_aperture_start = 0x2000000000000000ULL; gmc 1036 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.shared_aperture_end = gmc 1037 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.shared_aperture_start + (4ULL << 30) - 1; gmc 1038 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.private_aperture_start = gmc 1039 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.shared_aperture_end + 1; gmc 1040 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.private_aperture_end = gmc 1041 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.private_aperture_start + (4ULL << 30) - 1; gmc 1053 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c return amdgpu_irq_get(adev, &adev->gmc.vm_fault, 0); gmc 1072 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if ((adev->gmc.real_vram_size - size) < (8 * 1024 * 1024)) gmc 1087 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.vram_type = AMDGPU_VRAM_TYPE_UNKNOWN; gmc 1097 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.vram_type = gmc_v8_0_convert_vram_type(tmp); gmc 1100 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_GFX_PAGE_INV_FAULT, &adev->gmc.vm_fault); gmc 1104 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_GFX_MEM_PROT_FAULT, &adev->gmc.vm_fault); gmc 1118 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.mc_mask = 0xffffffffffULL; /* 40 bit MC */ gmc 1137 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.stolen_size = gmc_v8_0_get_vbios_fb_size(adev); gmc 1167 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.vm_fault_info = kmalloc(sizeof(struct kfd_vm_fault_info), gmc 1169 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if (!adev->gmc.vm_fault_info) gmc 1171 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c atomic_set(&adev->gmc.vm_fault_info_updated, 0); gmc 1182 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c kfree(adev->gmc.vm_fault_info); gmc 1186 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c release_firmware(adev->gmc.fw); gmc 1187 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.fw = NULL; gmc 1228 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c amdgpu_irq_put(adev, &adev->gmc.vm_fault, 0); gmc 1308 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.srbm_soft_reset = srbm_soft_reset; gmc 1311 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.srbm_soft_reset = 0; gmc 1320 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if (!adev->gmc.srbm_soft_reset) gmc 1336 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if (!adev->gmc.srbm_soft_reset) gmc 1338 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c srbm_soft_reset = adev->gmc.srbm_soft_reset; gmc 1366 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if (!adev->gmc.srbm_soft_reset) gmc 1460 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c && !atomic_read(&adev->gmc.vm_fault_info_updated)) { gmc 1461 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c struct kfd_vm_fault_info *info = adev->gmc.vm_fault_info; gmc 1477 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c atomic_set(&adev->gmc.vm_fault_info_updated, 1); gmc 1725 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.gmc_funcs = &gmc_v8_0_gmc_funcs; gmc 1730 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.vm_fault.num_types = 1; gmc 1731 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->gmc.vm_fault.funcs = &gmc_v8_0_irq_funcs; gmc 270 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c struct ras_common_if *ras_if = adev->gmc.umc_ras_if; gmc 425 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.vm_fault.num_types = 1; gmc 426 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.vm_fault.funcs = &gmc_v9_0_irq_funcs; gmc 428 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.ecc_irq.num_types = 1; gmc 429 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.ecc_irq.funcs = &gmc_v9_0_ecc_funcs; gmc 512 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c spin_lock(&adev->gmc.invalidate_lock); gmc 559 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c spin_unlock(&adev->gmc.invalidate_lock); gmc 705 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.vram_start; gmc 708 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c if (!adev->gmc.translate_further) gmc 734 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.gmc_funcs = &gmc_v9_0_gmc_funcs; gmc 773 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.shared_aperture_start = 0x2000000000000000ULL; gmc 774 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.shared_aperture_end = gmc 775 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.shared_aperture_start + (4ULL << 30) - 1; gmc 776 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.private_aperture_start = 0x1000000000000000ULL; gmc 777 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.private_aperture_end = gmc 778 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.private_aperture_start + (4ULL << 30) - 1; gmc 849 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c ras_if = &adev->gmc.umc_ras_if; gmc 851 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c ras_if = &adev->gmc.mmhub_ras_if; gmc 913 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c r = amdgpu_irq_get(adev, &adev->gmc.ecc_irq, 0); gmc 1009 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c return amdgpu_irq_get(adev, &adev->gmc.vm_fault, 0); gmc 1023 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size; gmc 1032 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size; gmc 1054 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.vram_width = 2048; gmc 1056 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.vram_width = amdgpu_atomfirmware_get_vram_width(adev); gmc 1059 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c if (!adev->gmc.vram_width) { gmc 1067 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.vram_width = numchan * chansize; gmc 1071 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.mc_vram_size = gmc 1073 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.real_vram_size = adev->gmc.mc_vram_size; gmc 1080 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.aper_base = pci_resource_start(adev->pdev, 0); gmc 1081 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.aper_size = pci_resource_len(adev->pdev, 0); gmc 1085 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.aper_base = gfxhub_v1_0_get_mc_fb_offset(adev); gmc 1086 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.aper_size = adev->gmc.real_vram_size; gmc 1090 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.visible_vram_size = adev->gmc.aper_size; gmc 1091 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) gmc 1092 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.visible_vram_size = adev->gmc.real_vram_size; gmc 1102 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.gart_size = 512ULL << 20; gmc 1106 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.gart_size = 1024ULL << 20; gmc 1110 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.gart_size = (u64)amdgpu_gart_size << 20; gmc 1113 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c gmc_v9_0_vram_gtt_location(adev, &adev->gmc); gmc 1176 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c if ((adev->gmc.real_vram_size - size) < (8 * 1024 * 1024)) gmc 1193 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c spin_lock_init(&adev->gmc.invalidate_lock); gmc 1195 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.vram_type = amdgpu_atomfirmware_get_vram_type(adev); gmc 1205 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.translate_further = gmc 1239 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c &adev->gmc.vm_fault); gmc 1245 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c &adev->gmc.vm_fault); gmc 1251 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c &adev->gmc.vm_fault); gmc 1258 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c &adev->gmc.ecc_irq); gmc 1266 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.mc_mask = 0xffffffffffffULL; /* 48 bit MC */ gmc 1275 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c if (adev->gmc.xgmi.supported) { gmc 1285 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.stolen_size = gmc_v9_0_get_vbios_fb_size(adev); gmc 1317 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.umc_ras_if) { gmc 1318 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c struct ras_common_if *ras_if = adev->gmc.umc_ras_if; gmc 1333 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.mmhub_ras_if) { gmc 1334 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c struct ras_common_if *ras_if = adev->gmc.mmhub_ras_if; gmc 1395 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c WREG32(mmDCHUBBUB_SDPIF_MMIO_CNTRL_0, adev->gmc.sdpif_register); gmc 1446 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c WREG32_SOC15(HDP, 0, mmHDP_NONSURFACE_BASE, (adev->gmc.vram_start >> 8)); gmc 1447 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c WREG32_SOC15(HDP, 0, mmHDP_NONSURFACE_BASE_HI, (adev->gmc.vram_start >> 40)); gmc 1467 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c (unsigned)(adev->gmc.gart_size >> 20), gmc 1505 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->gmc.sdpif_register = RREG32(mmDCHUBBUB_SDPIF_MMIO_CNTRL_0); gmc 1535 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c amdgpu_irq_put(adev, &adev->gmc.ecc_irq, 0); gmc 1536 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c amdgpu_irq_put(adev, &adev->gmc.vm_fault, 0); gmc 52 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c adev->gmc.fb_start = base; gmc 53 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c adev->gmc.fb_end = top; gmc 79 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c (u32)(adev->gmc.gart_start >> 12)); gmc 81 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c (u32)(adev->gmc.gart_start >> 44)); gmc 84 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c (u32)(adev->gmc.gart_end >> 12)); gmc 86 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c (u32)(adev->gmc.gart_end >> 44)); gmc 96 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c WREG32_SOC15(MMHUB, 0, mmMC_VM_AGP_BOT, adev->gmc.agp_start >> 24); gmc 97 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c WREG32_SOC15(MMHUB, 0, mmMC_VM_AGP_TOP, adev->gmc.agp_end >> 24); gmc 101 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c min(adev->gmc.fb_start, adev->gmc.agp_start) >> 18); gmc 111 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c max((adev->gmc.fb_end >> 18) + 0x1, gmc 112 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c adev->gmc.agp_end >> 18)); gmc 115 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18); gmc 121 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start + gmc 185 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c if (adev->gmc.translate_further) { gmc 241 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c if (adev->gmc.translate_further) gmc 317 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c adev->gmc.vram_start >> 24); gmc 319 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c adev->gmc.vram_end >> 24); gmc 50 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c (u32)(adev->gmc.gart_start >> 12)); gmc 52 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c (u32)(adev->gmc.gart_start >> 44)); gmc 55 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c (u32)(adev->gmc.gart_end >> 12)); gmc 57 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c (u32)(adev->gmc.gart_end >> 44)); gmc 72 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c adev->gmc.vram_start >> 18); gmc 74 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c adev->gmc.vram_end >> 18); gmc 77 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start + gmc 140 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c if (adev->gmc.translate_further) { gmc 250 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c adev->gmc.vram_start >> 24); gmc 252 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c adev->gmc.vram_end >> 24); gmc 50 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c adev->gmc.fb_start = base; gmc 51 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c adev->gmc.fb_end = top; gmc 87 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c (u32)(adev->gmc.gart_start >> 12)); gmc 91 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c (u32)(adev->gmc.gart_start >> 44)); gmc 96 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c (u32)(adev->gmc.gart_end >> 12)); gmc 100 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c (u32)(adev->gmc.gart_end >> 44)); gmc 115 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c adev->gmc.agp_end >> 24); gmc 118 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c adev->gmc.agp_start >> 24); gmc 124 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c min(adev->gmc.fb_start, adev->gmc.agp_start) >> 18); gmc 128 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18); gmc 131 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c value = adev->vram_scratch.gpu_addr - adev->gmc.vram_start + gmc 222 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c if (adev->gmc.translate_further) { gmc 366 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c adev->gmc.vram_start >> 24); gmc 370 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c adev->gmc.vram_end >> 24); gmc 3072 drivers/gpu/drm/amd/amdgpu/si_dpm.c u32 switch_limit = adev->gmc.vram_type == AMDGPU_VRAM_TYPE_GDDR5 ? 450 : 0; gmc 4334 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (adev->gmc.vram_type == AMDGPU_VRAM_TYPE_GDDR5) gmc 4921 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (adev->gmc.vram_type == AMDGPU_VRAM_TYPE_GDDR5) { gmc 5193 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (adev->gmc.vram_type == AMDGPU_VRAM_TYPE_GDDR5) gmc 5370 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (adev->gmc.vram_type == AMDGPU_VRAM_TYPE_GDDR5) { gmc 5382 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (adev->gmc.vram_type == AMDGPU_VRAM_TYPE_GDDR5) gmc 5474 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (adev->gmc.vram_type == AMDGPU_VRAM_TYPE_GDDR5) { gmc 5845 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (adev->gmc.vram_type != AMDGPU_VRAM_TYPE_GDDR5) gmc 5850 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (adev->gmc.vram_type != AMDGPU_VRAM_TYPE_GDDR5) { gmc 694 drivers/gpu/drm/amd/amdgpu/soc15.c adev->gmc.xgmi.supported = true; gmc 668 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c init_data.asic_id.vram_width = adev->gmc.vram_width; gmc 2023 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->ddev->mode_config.fb_base = adev->gmc.aper_base; gmc 4323 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->is_memory_gddr5 = (adev->gmc.vram_type == AMDGPU_VRAM_TYPE_GDDR5); gmc 935 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->adev->gmc.vram_type == AMDGPU_VRAM_TYPE_HBM) gmc 331 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.c u32 gmc, u32 isgray) gmc 335 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.c member |= (isgray << 31) | (gmc << 30); gmc 2071 drivers/pinctrl/tegra/pinctrl-tegra20.c MUX_PG(gmc, UARTD, SPI4, GMI, SFLASH, 0x14, 29, 0x84, 2, 0xb0, 24), gmc 2207 drivers/pinctrl/tegra/pinctrl-tegra20.c DRV_PG(gmc, 0x8fc), gmc 2445 drivers/pinctrl/tegra/pinctrl-tegra30.c DRV_PINGROUP(gmc, 0x908, -1, -1, -1, 14, 5, 19, 5, 24, 4, 28, 4), gmc 296 drivers/video/fbdev/w100fb.c union dp_gui_master_cntl_u gmc; gmc 322 drivers/video/fbdev/w100fb.c gmc.val = 0; gmc 323 drivers/video/fbdev/w100fb.c gmc.f.gmc_src_pitch_offset_cntl = 1; gmc 324 drivers/video/fbdev/w100fb.c gmc.f.gmc_dst_pitch_offset_cntl = 1; gmc 325 drivers/video/fbdev/w100fb.c gmc.f.gmc_src_clipping = 1; gmc 326 drivers/video/fbdev/w100fb.c gmc.f.gmc_dst_clipping = 1; gmc 327 drivers/video/fbdev/w100fb.c gmc.f.gmc_brush_datatype = GMC_BRUSH_NONE; gmc 328 drivers/video/fbdev/w100fb.c gmc.f.gmc_dst_datatype = 3; /* from DstType_16Bpp_444 */ gmc 329 drivers/video/fbdev/w100fb.c gmc.f.gmc_src_datatype = SRC_DATATYPE_EQU_DST; gmc 330 drivers/video/fbdev/w100fb.c gmc.f.gmc_byte_pix_order = 1; gmc 331 drivers/video/fbdev/w100fb.c gmc.f.gmc_default_sel = 0; gmc 332 drivers/video/fbdev/w100fb.c gmc.f.gmc_rop3 = ROP3_SRCCOPY; gmc 333 drivers/video/fbdev/w100fb.c gmc.f.gmc_dp_src_source = DP_SRC_MEM_RECTANGULAR; gmc 334 drivers/video/fbdev/w100fb.c gmc.f.gmc_clr_cmp_fcn_dis = 1; gmc 335 drivers/video/fbdev/w100fb.c gmc.f.gmc_wr_msk_dis = 1; gmc 336 drivers/video/fbdev/w100fb.c gmc.f.gmc_dp_op = DP_OP_ROP; gmc 337 drivers/video/fbdev/w100fb.c writel(gmc.val, remapped_regs + mmDP_GUI_MASTER_CNTL); gmc 340 drivers/video/fbdev/w100fb.c dp_datatype.f.dp_dst_datatype = gmc.f.gmc_dst_datatype; gmc 341 drivers/video/fbdev/w100fb.c dp_datatype.f.dp_brush_datatype = gmc.f.gmc_brush_datatype; gmc 343 drivers/video/fbdev/w100fb.c dp_datatype.f.dp_src2_datatype = gmc.f.gmc_src_datatype; gmc 344 drivers/video/fbdev/w100fb.c dp_datatype.f.dp_src_datatype = gmc.f.gmc_src_datatype; gmc 345 drivers/video/fbdev/w100fb.c dp_datatype.f.dp_byte_pix_order = gmc.f.gmc_byte_pix_order; gmc 348 drivers/video/fbdev/w100fb.c dp_mix.f.dp_src_source = gmc.f.gmc_dp_src_source; gmc 350 drivers/video/fbdev/w100fb.c dp_mix.f.dp_rop3 = gmc.f.gmc_rop3; gmc 351 drivers/video/fbdev/w100fb.c dp_mix.f.dp_op = gmc.f.gmc_dp_op; gmc 359 drivers/video/fbdev/w100fb.c union dp_gui_master_cntl_u gmc; gmc 368 drivers/video/fbdev/w100fb.c gmc.val = readl(remapped_regs + mmDP_GUI_MASTER_CNTL); gmc 369 drivers/video/fbdev/w100fb.c gmc.f.gmc_rop3 = ROP3_PATCOPY; gmc 370 drivers/video/fbdev/w100fb.c gmc.f.gmc_brush_datatype = GMC_BRUSH_SOLID_COLOR; gmc 372 drivers/video/fbdev/w100fb.c writel(gmc.val, remapped_regs + mmDP_GUI_MASTER_CNTL); gmc 387 drivers/video/fbdev/w100fb.c union dp_gui_master_cntl_u gmc; gmc 396 drivers/video/fbdev/w100fb.c gmc.val = readl(remapped_regs + mmDP_GUI_MASTER_CNTL); gmc 397 drivers/video/fbdev/w100fb.c gmc.f.gmc_rop3 = ROP3_SRCCOPY; gmc 398 drivers/video/fbdev/w100fb.c gmc.f.gmc_brush_datatype = GMC_BRUSH_NONE; gmc 400 drivers/video/fbdev/w100fb.c writel(gmc.val, remapped_regs + mmDP_GUI_MASTER_CNTL);