/openbmc/linux/arch/riscv/boot/dts/sifive/ |
H A D | fu540-c000.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 /* Copyright (c) 2018-2019 SiFive, Inc */ 4 /dts-v1/; 6 #include <dt-bindings/clock/sifive-fu540-prci.h> 9 #address-cells = <2>; 10 #size-cells = <2>; 11 compatible = "sifive,fu540-c000", "sifive,fu540"; 23 #address-cells = <1>; 24 #size-cells = <0>; 28 i-cache-block-size = <64>; [all …]
|
H A D | fu740-c000.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 4 /dts-v1/; 6 #include <dt-bindings/clock/sifive-fu740-prci.h> 9 #address-cells = <2>; 10 #size-cells = <2>; 11 compatible = "sifive,fu740-c000", "sifive,fu740"; 23 #address-cells = <1>; 24 #size-cells = <0>; 28 i-cache-block-size = <64>; 29 i-cache-sets = <128>; [all …]
|
/openbmc/linux/mm/ |
H A D | huge_memory.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include <linux/backing-dev.h> 39 #include <linux/memory-tiers.h> 42 #include <asm/tlb.h> 78 if (!vma->vm_mm) /* vdso */ in hugepage_vma_check() 103 !transhuge_vma_suitable(vma, (vma->vm_end - HPAGE_PMD_SIZE))) in hugepage_vma_check() 111 if (!in_pf && shmem_file(vma->vm_file)) in hugepage_vma_check() 112 return shmem_is_huge(file_inode(vma->vm_file), vma->vm_pgoff, in hugepage_vma_check() 113 !enforce_sysfs, vma->vm_mm, vm_flags); in hugepage_vma_check() 138 if (!vma->anon_vma) in hugepage_vma_check() [all …]
|
H A D | mapping_dirty_helpers.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * struct wp_walk - Private struct for pagetable walk callbacks 25 * wp_pte - Write-protect a pte 31 * The function write-protects a pte and records the range in 32 * virtual address space of touched ptes for efficient range TLB flushes. 37 struct wp_walk *wpwalk = walk->private; in wp_pte() 41 pte_t old_pte = ptep_modify_prot_start(walk->vma, addr, pte); in wp_pte() 44 ptep_modify_prot_commit(walk->vma, addr, pte, old_pte, ptent); in wp_pte() 45 wpwalk->total++; in wp_pte() 46 wpwalk->tlbflush_start = min(wpwalk->tlbflush_start, addr); in wp_pte() [all …]
|
H A D | mprotect.c | 1 // SPDX-License-Identifier: GPL-2.0 34 #include <linux/memory-tiers.h> 38 #include <asm/tlb.h> 47 if (WARN_ON_ONCE(!(vma->vm_flags & VM_WRITE))) in can_change_pte_writable() 58 /* Do we need write faults for uffd-wp tracking? */ in can_change_pte_writable() 62 if (!(vma->vm_flags & VM_SHARED)) { in can_change_pte_writable() 64 * Writable MAP_PRIVATE mapping: We can only special-case on in can_change_pte_writable() 66 * write-fault handler similarly would map them writable without in can_change_pte_writable() 75 * needs a real write-fault for writenotify in can_change_pte_writable() 78 * just like the write-fault handler would do. in can_change_pte_writable() [all …]
|
H A D | madvise.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <linux/page-isolation.h> 28 #include <linux/backing-dev.h> 35 #include <asm/tlb.h> 41 struct mmu_gather *tlb; member 46 * Any behaviour which results in changes to the vma->vm_flags needs to 76 /* Add 1 for NUL terminator at the end of the anon_name->name */ in anon_vma_name_alloc() 80 kref_init(&anon_name->kref); in anon_vma_name_alloc() 81 memcpy(anon_name->name, name, count); in anon_vma_name_alloc() 96 mmap_assert_locked(vma->vm_mm); in anon_vma_name() [all …]
|
/openbmc/linux/arch/riscv/boot/dts/microchip/ |
H A D | mpfs.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 /* Copyright (c) 2020-2021 Microchip Technology Inc */ 4 /dts-v1/; 5 #include "dt-bindings/clock/microchip,mpfs-clock.h" 8 #address-cells = <2>; 9 #size-cells = <2>; 14 #address-cells = <1>; 15 #size-cells = <0>; 20 i-cache-block-size = <64>; 21 i-cache-sets = <128>; [all …]
|
/openbmc/linux/arch/arm/mm/ |
H A D | tlb-v4wb.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 1997-2002 Russell King 7 * ARM architecture version 4 TLB handling functions. 8 * These assume a split I/D TLBs w/o I TLB entry, with a write buffer. 15 #include <asm/asm-offsets.h> 17 #include "proc-macros.S" 23 * Invalidate a range of TLB entries in the specified address space. 25 * - start - range start address 26 * - end - range end address 27 * - mm - mm_struct describing address space [all …]
|
H A D | tlb-v4wbi.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 1997-2002 Russell King 7 * ARM architecture version 4 and version 5 TLB handling functions. 8 * These assume a split I/D TLBs, with a write buffer. 15 #include <asm/asm-offsets.h> 17 #include "proc-macros.S" 22 * Invalidate a range of TLB entries in the specified address space. 24 * - start - range start address 25 * - end - range end address 26 * - mm - mm_struct describing address space [all …]
|
H A D | tlb-v7.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/mm/tlb-v7.S 5 * Copyright (C) 1997-2002 Russell King 8 * ARM architecture version 6 TLB handling functions. 9 * These assume a split I/D TLB. 14 #include <asm/asm-offsets.h> 17 #include "proc-macros.S" 19 .arch armv7-a 24 * Invalidate a range of TLB entries in the specified address space. 26 * - start - start address (may not be aligned) [all …]
|
H A D | tlb-v6.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/mm/tlb-v6.S 5 * Copyright (C) 1997-2002 Russell King 7 * ARM architecture version 6 TLB handling functions. 8 * These assume a split I/D TLB. 12 #include <asm/asm-offsets.h> 16 #include "proc-macros.S" 25 * Invalidate a range of TLB entries in the specified address space. 27 * - start - start address (may not be aligned) 28 * - end - end address (exclusive, may not be aligned) [all …]
|
H A D | tlb-v4.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 1997-2002 Russell King 7 * ARM architecture version 4 TLB handling functions. 8 * These assume a split I/D TLBs, and no write buffer. 15 #include <asm/asm-offsets.h> 17 #include "proc-macros.S" 23 * Invalidate a range of TLB entries in the specified user address space. 25 * - start - range start address 26 * - end - range end address 27 * - mm - mm_struct describing address space [all …]
|
/openbmc/linux/Documentation/admin-guide/mm/ |
H A D | transhuge.rst | 26 requiring larger clear-page copy-page in page faults which is a 36 1) the TLB miss will run faster (especially with virtualization using 40 2) a single TLB entry will be mapping a much larger amount of virtual 41 memory in turn reducing the number of TLB misses. With 42 virtualization and nested pagetables the TLB can be mapped of 45 the two is using hugepages just because of the fact the TLB miss is 76 possible to disable hugepages system-wide and to only have them inside 93 ------------------- 147 should be self-explanatory. 166 ------------------- [all …]
|
/openbmc/linux/arch/riscv/boot/dts/starfive/ |
H A D | jh7100.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 7 /dts-v1/; 8 #include <dt-bindings/clock/starfive-jh7100.h> 9 #include <dt-bindings/reset/starfive-jh7100.h> 13 #address-cells = <2>; 14 #size-cells = <2>; 17 #address-cells = <1>; 18 #size-cells = <0>; 21 compatible = "sifive,u74-mc", "riscv"; 23 d-cache-block-size = <64>; [all …]
|
H A D | jh7110.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 7 /dts-v1/; 8 #include <dt-bindings/clock/starfive,jh7110-crg.h> 9 #include <dt-bindings/power/starfive,jh7110-pmu.h> 10 #include <dt-bindings/reset/starfive,jh7110-crg.h> 11 #include <dt-bindings/thermal/thermal.h> 15 #address-cells = <2>; 16 #size-cells = <2>; 19 #address-cells = <1>; 20 #size-cells = <0>; [all …]
|
/openbmc/linux/arch/arc/include/asm/ |
H A D | pgalloc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 6 * -"/proc/meminfo | grep PageTables" kept on increasing 10 * -Variable pg-sz means that Page Tables could be variable sized themselves 11 * So calculate it based on addr traversal split [pgd-bits:pte-bits:xxx] 12 * -Page Table size capped to max 1 to save memory - hence verified. 13 * -Since these deal with constants, gcc compile-time optimizes them. 16 * -Added pgtable ctor/dtor used for pgtable mem accounting 19 * -Switched pgtable_t from being struct page * to unsigned long 24 * pg-tlb allocator sub-sys (pte_alloc_one, ptr_free, pmd_populate) [all …]
|
/openbmc/linux/arch/sh/mm/ |
H A D | tlb-pteaex.c | 2 * arch/sh/mm/tlb-pteaex.c 4 * TLB operations for SH-X3 CPUs featuring PTE ASID Extensions. 25 if (vma && current->active_mm != vma->vm_mm) in __update_tlb() 42 * For the extended mode TLB this is trivial, only the ESZ and in __update_tlb() 44 * the protection bits (with the exception of the compat-mode SZ in __update_tlb() 58 /* Load the TLB */ in __update_tlb() 64 * While SH-X2 extended TLB mode splits out the memory-mapped I/UTLB 65 * data arrays, SH-X3 cores with PTEAEX split out the memory-mapped 67 * in extended mode, the legacy 8-bit ASID field in address array 1 has 86 * Flush all the TLB. in local_flush_tlb_all()
|
/openbmc/linux/arch/mips/mm/ |
H A D | tlbex.c | 6 * Synthesize TLB refill handlers at runtime. 10 * Copyright (C) 2006 Ralf Baechle (ralf@linux-mips.org) 34 #include <asm/cpu-type.h> 52 * TLB load/store/modify handlers. 131 * CVMSEG starts at address -32768 and extends for in scratchpad_offset() 135 return CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE * 128 - (8 * i) - 32768; in scratchpad_offset() 230 * TLB exception handlers. 262 unsigned int count = (end - start) / sizeof(u32); in dump_handler() 279 /* The only general purpose registers allowed in TLB handlers. */ 307 * R3000-style TLBs and up to 63 instructions for R4000-style TLBs. [all …]
|
/openbmc/qemu/docs/system/i386/ |
H A D | kvm-pv.rst | 5 ----------- 11 ----- 17 - ``kvmclock`` 18 - ``kvm-nopiodelay`` 19 - ``kvm-asyncpf`` 20 - ``kvm-steal-time`` 21 - ``kvm-pv-eoi`` 22 - ``kvmclock-stable-bit`` 24 ``kvm-msi-ext-dest-id`` feature is enabled by default in x2apic mode with split 25 irqchip (e.g. "-machine ...,kernel-irqchip=split -cpu ...,x2apic"). [all …]
|
/openbmc/qemu/target/riscv/ |
H A D | pmp.c | 2 * QEMU RISC-V PMP (Physical Memory Protection) 7 * This provides a RISC-V Physical Memory Protection implementation 27 #include "exec/exec-all.h" 28 #include "exec/page-protection.h" 53 if (env->pmp_state.pmp[pmp_index].cfg_reg & PMP_LOCK) { in pmp_is_locked() 70 return env->pmp_state.num_rules; in pmp_get_num_rules() 79 return env->pmp_state.pmp[pmp_index].cfg_reg; in pmp_read_cfg() 95 if (riscv_cpu_cfg(env)->ext_smepmp) { in pmp_write_cfg() 125 qemu_log_mask(LOG_GUEST_ERROR, "ignoring pmpcfg write - locked\n"); in pmp_write_cfg() 126 } else if (env->pmp_state.pmp[pmp_index].cfg_reg != val) { in pmp_write_cfg() [all …]
|
/openbmc/linux/include/linux/ |
H A D | io-pgtable.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 26 * struct iommu_flush_ops - IOMMU callbacks for TLB and page table management. 28 * @tlb_flush_all: Synchronously invalidate the entire TLB context. 29 * @tlb_flush_walk: Synchronously invalidate all intermediate TLB state 32 * @tlb_add_page: Optional callback to queue up leaf TLB invalidation for a 33 * single page. IOMMUs that cannot batch TLB invalidation 50 * struct io_pgtable_cfg - Configuration data for a set of page tables. 53 * action by the low-level page table allocator. 60 * @tlb: TLB management callbacks for this set of tables. 68 * even in non-secure state where they should normally be ignored. [all …]
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | kvm_pgtable.h | 1 // SPDX-License-Identifier: GPL-2.0-only 17 * The largest supported block sizes for KVM (no 52-bit PA support): 18 * - 4K (level 1): 1GB 19 * - 16K (level 2): 32MB 20 * - 64K (level 2): 512MB 45 #define KVM_PHYS_INVALID (-1ULL) 114 * struct kvm_pgtable_mm_ops - Memory management callbacks. 156 * enum kvm_pgtable_stage2_flags - Stage-2 page-table flags. 157 * @KVM_PGTABLE_S2_NOFWB: Don't enforce Normal-WB even if the CPUs have 167 * enum kvm_pgtable_prot - Page-table permissions and attributes. [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/alderlake/ |
H A D | cache.json | 14 …opportunistic replacements, and replacements that require stall-for-replace or block-for-replace.", 61 …-demand loads and gets hit at least once by demand. The valid outstanding interval is defined unti… 98 …"PublicDescription": "Counts all requests that were hit or true misses in L2 cache. True-miss excl… 104 …"BriefDescription": "Read requests with true-miss in L2 cache. [This event is alias to L2_RQSTS.MI… 107 …ublicDescription": "Counts read requests of any type with true-miss in the L2 cache. True-miss exc… 125 …quests accessing the L2 cache. These requests may hit or miss L2 cache. True-miss exclude misses t… 187 …ublicDescription": "Counts demand Data Read requests with true-miss in the L2 cache. True-miss exc… 201 …"BriefDescription": "Read requests with true-miss in L2 cache. [This event is alias to L2_REQUEST.… 204 …ublicDescription": "Counts read requests of any type with true-miss in the L2 cache. True-miss exc… 213 …"PublicDescription": "Counts all requests that were hit or true misses in L2 cache. True-miss excl… [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/riscv/ |
H A D | cpus.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: RISC-V CPUs 10 - Paul Walmsley <paul.walmsley@sifive.com> 11 - Palmer Dabbelt <palmer@sifive.com> 12 - Conor Dooley <conor@kernel.org> 15 This document uses some terminology common to the RISC-V community 19 mandated by the RISC-V ISA: a PC and some registers. This 27 - $ref: /schemas/cpu.yaml# [all …]
|
/openbmc/linux/arch/mips/kvm/ |
H A D | tlb.c | 6 * KVM/MIPS TLB handling, this file is part of the Linux host kernel so that 7 * TLB handlers run from KSEG0 26 #include <asm/tlb.h> 42 struct mm_struct *gpa_mm = &vcpu->kvm->arch.gpa_mm; in kvm_mips_get_root_asid() 79 * clear_root_gid() - Set GuestCtl1.RID for normal root operation. 90 * set_root_gid_to_guest_gid() - Set GuestCtl1.RID to match GuestCtl1.ID. 92 * Sets the root GuestID to match the current guest GuestID, for TLB operation 93 * on the GPA->RPA mappings in the root TLB. 96 * possibly longer if TLB registers are modified. 121 /* Set root GuestID for root probe and write of guest TLB entry */ in kvm_vz_host_tlb_inv() [all …]
|