Home
last modified time | relevance | path

Searched refs:vsid (Results 1 – 25 of 38) sorted by relevance

12

/linux-6.1.9/arch/powerpc/mm/
Dcopro_fault.c93 u64 vsid, vsidkey; in copro_calculate_slb() local
103 vsid = get_user_vsid(&mm->context, ea, ssize); in copro_calculate_slb()
110 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
117 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
124 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
132 if (!vsid) in copro_calculate_slb()
135 vsid = (vsid << slb_vsid_shift(ssize)) | vsidkey; in copro_calculate_slb()
137 vsid |= mmu_psize_defs[psize].sllp | in copro_calculate_slb()
141 slb->vsid = vsid; in copro_calculate_slb()
/linux-6.1.9/arch/powerpc/include/asm/book3s/64/
Dmmu-hash.h159 void (*hugepage_invalidate)(unsigned long vsid,
421 unsigned long vsid, int ssize) in hpt_vpn() argument
427 return (vsid << (s_shift - VPN_SHIFT)) | ((ea >> VPN_SHIFT) & mask); in hpt_vpn()
437 unsigned long hash, vsid; in hpt_hash() local
446 vsid = vpn >> (SID_SHIFT_1T - VPN_SHIFT); in hpt_hash()
447 hash = vsid ^ (vsid << 25) ^ in hpt_hash()
460 unsigned long vsid, pte_t *ptep, unsigned long trap,
463 unsigned long vsid, pte_t *ptep, unsigned long trap,
474 int __hash_page_huge(unsigned long ea, unsigned long access, unsigned long vsid,
479 unsigned long vsid, pmd_t *pmdp, unsigned long trap,
[all …]
Dtlbflush-hash.h65 extern void flush_hash_hugepage(unsigned long vsid, unsigned long addr,
/linux-6.1.9/arch/powerpc/kvm/
Dbook3s_32_mmu.c73 u64 *vsid);
83 u64 vsid; in kvmppc_mmu_book3s_32_ea_to_vp() local
89 kvmppc_mmu_book3s_32_esid_to_vsid(vcpu, eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_book3s_32_ea_to_vp()
90 return (((u64)eaddr >> 12) & 0xffff) | (vsid << 16); in kvmppc_mmu_book3s_32_ea_to_vp()
156 u64 vsid; in kvmppc_mmu_book3s_32_xlate_bat() local
158 eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_book3s_32_xlate_bat()
159 vsid <<= 16; in kvmppc_mmu_book3s_32_xlate_bat()
160 pte->vpage = (((u64)eaddr >> 12) & 0xffff) | vsid; in kvmppc_mmu_book3s_32_xlate_bat()
349 u64 *vsid) in kvmppc_mmu_book3s_32_esid_to_vsid() argument
367 *vsid = VSID_REAL | esid; in kvmppc_mmu_book3s_32_esid_to_vsid()
[all …]
Dbook3s_32_mmu_host.c106 static u32 *kvmppc_mmu_get_pteg(struct kvm_vcpu *vcpu, u32 vsid, u32 eaddr, in kvmppc_mmu_get_pteg() argument
114 hash = ((vsid ^ page) << 6); in kvmppc_mmu_get_pteg()
135 u64 vsid; in kvmppc_mmu_map_page() local
158 vcpu->arch.mmu.esid_to_vsid(vcpu, orig_pte->eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_map_page()
159 map = find_sid_vsid(vcpu, vsid); in kvmppc_mmu_map_page()
162 map = find_sid_vsid(vcpu, vsid); in kvmppc_mmu_map_page()
166 vsid = map->host_vsid; in kvmppc_mmu_map_page()
167 vpn = (vsid << (SID_SHIFT - VPN_SHIFT)) | in kvmppc_mmu_map_page()
176 pteg = kvmppc_mmu_get_pteg(vcpu, vsid, eaddr, primary); in kvmppc_mmu_map_page()
194 pteg0 = ((eaddr & 0x0fffffff) >> 22) | (vsid << 7) | PTE_V | in kvmppc_mmu_map_page()
Dbook3s_64_mmu_host.c77 u64 vsid; in kvmppc_mmu_map_page() local
107 vcpu->arch.mmu.esid_to_vsid(vcpu, orig_pte->eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_map_page()
108 map = find_sid_vsid(vcpu, vsid); in kvmppc_mmu_map_page()
112 map = find_sid_vsid(vcpu, vsid); in kvmppc_mmu_map_page()
116 vsid, orig_pte->eaddr); in kvmppc_mmu_map_page()
144 if (vsid & VSID_64K) in kvmppc_mmu_map_page()
217 u64 vsid; in kvmppc_mmu_unmap_page() local
219 vcpu->arch.mmu.esid_to_vsid(vcpu, pte->eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_unmap_page()
220 if (vsid & VSID_64K) in kvmppc_mmu_unmap_page()
349 svcpu->slb[slb_index].vsid = slb_vsid; in kvmppc_mmu_map_segment()
Dbook3s_64_mmu.c51 if (vcpu->arch.slb[i].vsid) in kvmppc_mmu_book3s_64_find_slbe()
57 vcpu->arch.slb[i].vsid); in kvmppc_mmu_book3s_64_find_slbe()
78 ((slb->vsid) << (kvmppc_slb_sid_shift(slb) - VPN_SHIFT)); in kvmppc_slb_calc_vpn()
141 page, vcpu_book3s->sdr1, pteg, slbe->vsid); in kvmppc_mmu_book3s_64_get_pteg()
161 avpn |= slbe->vsid << (kvmppc_slb_sid_shift(slbe) - p); in kvmppc_mmu_book3s_64_get_avpn()
383 slbe->vsid = (rs & ~SLB_VSID_B) >> (kvmppc_slb_sid_shift(slbe) - 16); in kvmppc_mmu_book3s_64_slbmte()
573 u64 *vsid) in kvmppc_mmu_book3s_64_esid_to_vsid() argument
585 gvsid = slb->vsid; in kvmppc_mmu_book3s_64_esid_to_vsid()
631 *vsid = gvsid; in kvmppc_mmu_book3s_64_esid_to_vsid()
639 *vsid = VSID_REAL | esid; in kvmppc_mmu_book3s_64_esid_to_vsid()
/linux-6.1.9/drivers/misc/lkdtm/
Dpowerpc.c73 unsigned long esid, vsid; in insert_dup_slb_entry_0() local
80 asm volatile("slbmfev %0,%1" : "=r" (vsid) : "r" (i)); in insert_dup_slb_entry_0()
84 : "r" (vsid), in insert_dup_slb_entry_0()
89 asm volatile("slbmfev %0,%1" : "=r" (vsid) : "r" (i)); in insert_dup_slb_entry_0()
93 : "r" (vsid), in insert_dup_slb_entry_0()
/linux-6.1.9/arch/powerpc/mm/book3s64/
Dhash_native.c484 unsigned long vsid; in native_hpte_updateboltedpp() local
491 vsid = get_kernel_vsid(ea, ssize); in native_hpte_updateboltedpp()
492 vpn = hpt_vpn(ea, vsid, ssize); in native_hpte_updateboltedpp()
520 unsigned long vsid; in native_hpte_removebolted() local
527 vsid = get_kernel_vsid(ea, ssize); in native_hpte_removebolted()
528 vpn = hpt_vpn(ea, vsid, ssize); in native_hpte_removebolted()
590 static void native_hugepage_invalidate(unsigned long vsid, in native_hugepage_invalidate() argument
615 vpn = hpt_vpn(addr, vsid, ssize); in native_hugepage_invalidate()
650 static void native_hugepage_invalidate(unsigned long vsid, in native_hugepage_invalidate() argument
665 unsigned long vsid, seg_off; in hpte_decode() local
[all …]
Dhash_utils.c370 unsigned long vsid = get_kernel_vsid(vaddr, ssize); in htab_bolt_mapping() local
371 unsigned long vpn = hpt_vpn(vaddr, vsid, ssize); in htab_bolt_mapping()
378 if (!vsid) in htab_bolt_mapping()
1351 unsigned long vsid, unsigned long trap, in hash_failure_debug() argument
1359 trap, vsid, ssize, psize, lpsize, pte); in hash_failure_debug()
1391 unsigned long vsid; in hash_page_mm() local
1412 vsid = get_user_vsid(&mm->context, ea, ssize); in hash_page_mm()
1415 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in hash_page_mm()
1422 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in hash_page_mm()
1435 DBG_LOW(" mm=%p, mm->pgdir=%p, vsid=%016lx\n", mm, mm->pgd, vsid); in hash_page_mm()
[all …]
Dhash_tlb.c45 unsigned long vsid; in hpte_need_flush() local
90 vsid = get_user_vsid(&mm->context, addr, ssize); in hpte_need_flush()
92 vsid = get_kernel_vsid(addr, mmu_kernel_ssize); in hpte_need_flush()
95 WARN_ON(vsid == 0); in hpte_need_flush()
96 vpn = hpt_vpn(addr, vsid, ssize); in hpte_need_flush()
Dhash_hugepage.c21 int __hash_page_thp(unsigned long ea, unsigned long access, unsigned long vsid, in __hash_page_thp() argument
79 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_thp()
88 flush_hash_hugepage(vsid, ea, pmdp, MMU_PAGE_64K, in __hash_page_thp()
166 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_thp()
Dhash_64k.c36 int __hash_page_4K(unsigned long ea, unsigned long access, unsigned long vsid, in __hash_page_4K() argument
88 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_4K()
211 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_4K()
224 unsigned long vsid, pte_t *ptep, unsigned long trap, in __hash_page_64K() argument
270 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_64K()
323 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_64K()
Dslb.c77 WRITE_ONCE(p->save_area[index].vsid, cpu_to_be64(mk_vsid_data(ea, ssize, flags))); in slb_shadow_update()
116 : "r" (be64_to_cpu(p->save_area[index].vsid)), in __slb_restore_bolted_realmode()
163 ksp_vsid_data = be64_to_cpu(p->save_area[KSTACK_INDEX].vsid); in __slb_flush_and_restore_bolted()
216 slb_ptr->vsid = v; in slb_save_contents()
234 v = slb_ptr->vsid; in slb_dump_contents()
673 unsigned long vsid; in slb_insert_entry() local
677 vsid = get_vsid(context, ea, ssize); in slb_insert_entry()
678 if (!vsid) in slb_insert_entry()
694 vsid_data = __mk_vsid_data(vsid, ssize, flags); in slb_insert_entry()
Dhash_4k.c19 int __hash_page_4K(unsigned long ea, unsigned long access, unsigned long vsid, in __hash_page_4K() argument
64 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_4K()
115 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_4K()
Dhugetlbpage.c20 int __hash_page_huge(unsigned long ea, unsigned long access, unsigned long vsid, in __hash_page_huge() argument
33 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_huge()
112 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_huge()
Dhash_pgtable.c317 unsigned long vsid; in hpte_do_hugepage_flush() local
332 vsid = get_user_vsid(&mm->context, addr, ssize); in hpte_do_hugepage_flush()
333 WARN_ON(vsid == 0); in hpte_do_hugepage_flush()
335 vsid = get_kernel_vsid(addr, mmu_kernel_ssize); in hpte_do_hugepage_flush()
342 return flush_hash_hugepage(vsid, addr, pmdp, psize, ssize, flags); in hpte_do_hugepage_flush()
/linux-6.1.9/drivers/misc/cxl/
Dfault.c24 return ((sste->vsid_data == cpu_to_be64(slb->vsid)) && in sste_matches()
40 if (slb->vsid & SLB_VSID_B_1T) in find_free_sste()
75 sste - ctx->sstp, slb->vsid, slb->esid); in cxl_load_segment()
76 trace_cxl_ste_write(ctx, sste - ctx->sstp, slb->esid, slb->vsid); in cxl_load_segment()
78 sste->vsid_data = cpu_to_be64(slb->vsid); in cxl_load_segment()
283 static u64 next_segment(u64 ea, u64 vsid) in next_segment() argument
285 if (vsid & SLB_VSID_B_1T) in next_segment()
304 ea = next_segment(ea, slb.vsid)) { in cxl_prefault_vma()
Dmain.c110 unsigned long vsid; in cxl_alloc_sst() local
125 vsid = get_kernel_vsid((u64)ctx->sstp, mmu_kernel_ssize) << 12; in cxl_alloc_sst()
142 sstp0 |= vsid >> (50-14); /* Top 14 bits of VSID */ in cxl_alloc_sst()
143 sstp1 |= (vsid << (64-(50-14))) & ~ea_mask; in cxl_alloc_sst()
148 (u64)ctx->sstp, (u64)ctx->sstp & ESID_MASK, mmu_kernel_ssize, vsid, sstp0, sstp1); in cxl_alloc_sst()
/linux-6.1.9/arch/microblaze/include/asm/
Dmmu.h20 unsigned long vsid:24; /* Virtual segment identifier */ member
48 unsigned long vsid:24; /* Virtual Segment Identifier */ member
/linux-6.1.9/arch/powerpc/mm/ptdump/
Dhashpagetable.c210 unsigned long hash, vsid, vpn, hpte_group, want_v, hpte_v; in native_find() local
215 vsid = get_kernel_vsid(ea, ssize); in native_find()
216 vpn = hpt_vpn(ea, vsid, ssize); in native_find()
245 unsigned long vsid, vpn, hash, hpte_group, want_v; in pseries_find() local
251 vsid = get_kernel_vsid(ea, ssize); in pseries_find()
252 vpn = hpt_vpn(ea, vsid, ssize); in pseries_find()
/linux-6.1.9/arch/powerpc/platforms/pseries/
Dlpar.c1017 unsigned long lpar_rc, slot, vsid, flags; in pSeries_lpar_hpte_updateboltedpp() local
1019 vsid = get_kernel_vsid(ea, ssize); in pSeries_lpar_hpte_updateboltedpp()
1020 vpn = hpt_vpn(ea, vsid, ssize); in pSeries_lpar_hpte_updateboltedpp()
1248 static void pSeries_lpar_hugepage_invalidate(unsigned long vsid, in pSeries_lpar_hugepage_invalidate() argument
1271 vpn = hpt_vpn(addr, vsid, ssize); in pSeries_lpar_hugepage_invalidate()
1298 static void pSeries_lpar_hugepage_invalidate(unsigned long vsid, in pSeries_lpar_hugepage_invalidate() argument
1311 unsigned long slot, vsid; in pSeries_lpar_hpte_removebolted() local
1313 vsid = get_kernel_vsid(ea, ssize); in pSeries_lpar_hpte_removebolted()
1314 vpn = hpt_vpn(ea, vsid, ssize); in pSeries_lpar_hpte_removebolted()
1950 static unsigned long __init vsid_unscramble(unsigned long vsid, int ssize) in vsid_unscramble() argument
[all …]
/linux-6.1.9/arch/powerpc/include/asm/
Dcopro.h13 u64 esid, vsid; member
Dlppaca.h148 __be64 vsid; member
/linux-6.1.9/tools/testing/selftests/powerpc/vphn/asm/
Dlppaca.h148 __be64 vsid; member

12