Lines Matching full:gc

27 #include "gc/gc_12_0_0_offset.h"
28 #include "gc/gc_12_0_0_sh_mask.h"
113 u64 base = RREG32_SOC15(GC, 0, regGCMC_VM_FB_LOCATION_BASE); in gfxhub_v12_0_get_fb_location()
123 return (u64)RREG32_SOC15(GC, 0, regGCMC_VM_FB_OFFSET) << 24; in gfxhub_v12_0_get_mc_fb_offset()
132 WREG32_SOC15_OFFSET(GC, 0, regGCVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32, in gfxhub_v12_0_setup_vm_pt_regs()
136 WREG32_SOC15_OFFSET(GC, 0, regGCVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32, in gfxhub_v12_0_setup_vm_pt_regs()
147 WREG32_SOC15(GC, 0, regGCVM_CONTEXT0_PAGE_TABLE_START_ADDR_LO32, in gfxhub_v12_0_init_gart_aperture_regs()
149 WREG32_SOC15(GC, 0, regGCVM_CONTEXT0_PAGE_TABLE_START_ADDR_HI32, in gfxhub_v12_0_init_gart_aperture_regs()
152 WREG32_SOC15(GC, 0, regGCVM_CONTEXT0_PAGE_TABLE_END_ADDR_LO32, in gfxhub_v12_0_init_gart_aperture_regs()
154 WREG32_SOC15(GC, 0, regGCVM_CONTEXT0_PAGE_TABLE_END_ADDR_HI32, in gfxhub_v12_0_init_gart_aperture_regs()
163 WREG32_SOC15(GC, 0, regGCMC_VM_AGP_BASE, 0); in gfxhub_v12_0_init_system_aperture_regs()
164 WREG32_SOC15(GC, 0, regGCMC_VM_AGP_BOT, adev->gmc.agp_start >> 24); in gfxhub_v12_0_init_system_aperture_regs()
165 WREG32_SOC15(GC, 0, regGCMC_VM_AGP_TOP, adev->gmc.agp_end >> 24); in gfxhub_v12_0_init_system_aperture_regs()
168 WREG32_SOC15(GC, 0, regGCMC_VM_SYSTEM_APERTURE_LOW_ADDR, in gfxhub_v12_0_init_system_aperture_regs()
170 WREG32_SOC15(GC, 0, regGCMC_VM_SYSTEM_APERTURE_HIGH_ADDR, in gfxhub_v12_0_init_system_aperture_regs()
176 WREG32_SOC15(GC, 0, regGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB, in gfxhub_v12_0_init_system_aperture_regs()
178 WREG32_SOC15(GC, 0, regGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB, in gfxhub_v12_0_init_system_aperture_regs()
182 WREG32_SOC15(GC, 0, regGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32, in gfxhub_v12_0_init_system_aperture_regs()
184 WREG32_SOC15(GC, 0, regGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32, in gfxhub_v12_0_init_system_aperture_regs()
187 WREG32_FIELD15_PREREG(GC, 0, GCVM_L2_PROTECTION_FAULT_CNTL2, in gfxhub_v12_0_init_system_aperture_regs()
197 tmp = RREG32_SOC15(GC, 0, regGCMC_VM_MX_L1_TLB_CNTL); in gfxhub_v12_0_init_tlb_regs()
209 WREG32_SOC15(GC, 0, regGCMC_VM_MX_L1_TLB_CNTL, tmp); in gfxhub_v12_0_init_tlb_regs()
223 tmp = RREG32_SOC15(GC, 0, regGCVM_L2_CNTL); in gfxhub_v12_0_init_cache_regs()
234 WREG32_SOC15(GC, 0, regGCVM_L2_CNTL, tmp); in gfxhub_v12_0_init_cache_regs()
236 tmp = RREG32_SOC15(GC, 0, regGCVM_L2_CNTL2); in gfxhub_v12_0_init_cache_regs()
239 WREG32_SOC15(GC, 0, regGCVM_L2_CNTL2, tmp); in gfxhub_v12_0_init_cache_regs()
251 WREG32_SOC15(GC, 0, regGCVM_L2_CNTL3, tmp); in gfxhub_v12_0_init_cache_regs()
256 WREG32_SOC15(GC, 0, regGCVM_L2_CNTL4, tmp); in gfxhub_v12_0_init_cache_regs()
260 WREG32_SOC15(GC, 0, regGCVM_L2_CNTL5, tmp); in gfxhub_v12_0_init_cache_regs()
267 tmp = RREG32_SOC15(GC, 0, regGCVM_CONTEXT0_CNTL); in gfxhub_v12_0_enable_system_domain()
272 WREG32_SOC15(GC, 0, regGCVM_CONTEXT0_CNTL, tmp); in gfxhub_v12_0_enable_system_domain()
283 WREG32_SOC15(GC, 0, regGCVM_L2_CONTEXT1_IDENTITY_APERTURE_LOW_ADDR_LO32, in gfxhub_v12_0_disable_identity_aperture()
285 WREG32_SOC15(GC, 0, regGCVM_L2_CONTEXT1_IDENTITY_APERTURE_LOW_ADDR_HI32, in gfxhub_v12_0_disable_identity_aperture()
288 WREG32_SOC15(GC, 0, regGCVM_L2_CONTEXT1_IDENTITY_APERTURE_HIGH_ADDR_LO32, in gfxhub_v12_0_disable_identity_aperture()
290 WREG32_SOC15(GC, 0, regGCVM_L2_CONTEXT1_IDENTITY_APERTURE_HIGH_ADDR_HI32, in gfxhub_v12_0_disable_identity_aperture()
293 WREG32_SOC15(GC, 0, regGCVM_L2_CONTEXT_IDENTITY_PHYSICAL_OFFSET_LO32, 0); in gfxhub_v12_0_disable_identity_aperture()
294 WREG32_SOC15(GC, 0, regGCVM_L2_CONTEXT_IDENTITY_PHYSICAL_OFFSET_HI32, 0); in gfxhub_v12_0_disable_identity_aperture()
305 tmp = RREG32_SOC15_OFFSET(GC, 0, regGCVM_CONTEXT1_CNTL, i); in gfxhub_v12_0_setup_vmid_config()
330 WREG32_SOC15_OFFSET(GC, 0, regGCVM_CONTEXT1_CNTL, in gfxhub_v12_0_setup_vmid_config()
332 WREG32_SOC15_OFFSET(GC, 0, regGCVM_CONTEXT1_PAGE_TABLE_START_ADDR_LO32, in gfxhub_v12_0_setup_vmid_config()
334 WREG32_SOC15_OFFSET(GC, 0, regGCVM_CONTEXT1_PAGE_TABLE_START_ADDR_HI32, in gfxhub_v12_0_setup_vmid_config()
336 WREG32_SOC15_OFFSET(GC, 0, regGCVM_CONTEXT1_PAGE_TABLE_END_ADDR_LO32, in gfxhub_v12_0_setup_vmid_config()
339 WREG32_SOC15_OFFSET(GC, 0, regGCVM_CONTEXT1_PAGE_TABLE_END_ADDR_HI32, in gfxhub_v12_0_setup_vmid_config()
353 WREG32_SOC15_OFFSET(GC, 0, regGCVM_INVALIDATE_ENG0_ADDR_RANGE_LO32, in gfxhub_v12_0_program_invalidation()
355 WREG32_SOC15_OFFSET(GC, 0, regGCVM_INVALIDATE_ENG0_ADDR_RANGE_HI32, in gfxhub_v12_0_program_invalidation()
368 WREG32_SOC15(GC, 0, regGCMC_VM_FB_LOCATION_BASE, in gfxhub_v12_0_gart_enable()
370 WREG32_SOC15(GC, 0, regGCMC_VM_FB_LOCATION_TOP, in gfxhub_v12_0_gart_enable()
396 WREG32_SOC15_OFFSET(GC, 0, regGCVM_CONTEXT0_CNTL, in gfxhub_v12_0_gart_disable()
400 tmp = RREG32_SOC15(GC, 0, regGCMC_VM_MX_L1_TLB_CNTL); in gfxhub_v12_0_gart_disable()
404 WREG32_SOC15(GC, 0, regGCMC_VM_MX_L1_TLB_CNTL, tmp); in gfxhub_v12_0_gart_disable()
407 WREG32_FIELD15_PREREG(GC, 0, GCVM_L2_CNTL, ENABLE_L2_CACHE, 0); in gfxhub_v12_0_gart_disable()
408 WREG32_SOC15(GC, 0, regGCVM_L2_CNTL3, 0); in gfxhub_v12_0_gart_disable()
423 tmp = RREG32_SOC15(GC, 0, regCP_DEBUG); in gfxhub_v12_0_set_fault_enable_default()
425 WREG32_SOC15(GC, 0, regCP_DEBUG, tmp); in gfxhub_v12_0_set_fault_enable_default()
433 tmp = RREG32_SOC15(GC, 0, regGCVM_L2_PROTECTION_FAULT_CNTL); in gfxhub_v12_0_set_fault_enable_default()
463 WREG32_SOC15(GC, 0, regGCVM_L2_PROTECTION_FAULT_CNTL, tmp); in gfxhub_v12_0_set_fault_enable_default()
476 SOC15_REG_OFFSET(GC, 0, in gfxhub_v12_0_init()
479 SOC15_REG_OFFSET(GC, 0, in gfxhub_v12_0_init()
482 SOC15_REG_OFFSET(GC, 0, regGCVM_INVALIDATE_ENG0_SEM); in gfxhub_v12_0_init()
484 SOC15_REG_OFFSET(GC, 0, regGCVM_INVALIDATE_ENG0_REQ); in gfxhub_v12_0_init()
486 SOC15_REG_OFFSET(GC, 0, regGCVM_INVALIDATE_ENG0_ACK); in gfxhub_v12_0_init()
488 SOC15_REG_OFFSET(GC, 0, regGCVM_CONTEXT0_CNTL); in gfxhub_v12_0_init()
490 SOC15_REG_OFFSET(GC, 0, regGCVM_L2_PROTECTION_FAULT_STATUS_LO32); in gfxhub_v12_0_init()
492 SOC15_REG_OFFSET(GC, 0, regGCVM_L2_PROTECTION_FAULT_CNTL); in gfxhub_v12_0_init()