| /kernel/linux/linux-4.19/arch/nios2/mm/ |
| D | tlb.c | 23 ((((1UL << (cpuinfo.tlb_ptr_sz - cpuinfo.tlb_num_ways_log2))) - 1) \ 43 if (current->mm == mm) in flush_tlb_mm() 46 memset(&mm->context, 0, sizeof(mm_context_t)); in flush_tlb_mm() 55 unsigned int way; in flush_tlb_one_pid() local 58 pr_debug("Flush tlb-entry for vaddr=%#lx\n", addr); in flush_tlb_one_pid() 60 /* remember pid/way until we return. */ in flush_tlb_one_pid() 63 WRCTL(CTL_PTEADDR, (addr >> PAGE_SHIFT) << 2); in flush_tlb_one_pid() 65 for (way = 0; way < cpuinfo.tlb_num_ways; way++) { in flush_tlb_one_pid() 70 tlbmisc = pid_misc | TLBMISC_RD | (way << TLBMISC_WAY_SHIFT); in flush_tlb_one_pid() 75 if (((((pteaddr >> 2) & 0xfffff)) == (addr >> PAGE_SHIFT)) && in flush_tlb_one_pid() [all …]
|
| /kernel/linux/linux-5.10/arch/nios2/mm/ |
| D | tlb.c | 22 ((((1UL << (cpuinfo.tlb_ptr_sz - cpuinfo.tlb_num_ways_log2))) - 1) \ 38 return ((addr | 0xC0000000UL) >> PAGE_SHIFT) << 2; in pteaddr_invalid() 47 unsigned int way; in replace_tlb_one_pid() local 50 /* remember pid/way until we return. */ in replace_tlb_one_pid() 53 WRCTL(CTL_PTEADDR, (addr >> PAGE_SHIFT) << 2); in replace_tlb_one_pid() 55 for (way = 0; way < cpuinfo.tlb_num_ways; way++) { in replace_tlb_one_pid() 60 tlbmisc = TLBMISC_RD | (way << TLBMISC_WAY_SHIFT); in replace_tlb_one_pid() 64 if (((pteaddr >> 2) & 0xfffff) != (addr >> PAGE_SHIFT)) in replace_tlb_one_pid() 73 (way << TLBMISC_WAY_SHIFT); in replace_tlb_one_pid() 90 pr_debug("Flush tlb-entry for vaddr=%#lx\n", addr); in flush_tlb_one_pid() [all …]
|
| /kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
| D | cacheinfo.c | 1 // SPDX-License-Identifier: GPL-2.0 27 #define LVL_1_DATA 2 45 { 0x06, LVL_1_INST, 8 }, /* 4-way set assoc, 32 byte line size */ 46 { 0x08, LVL_1_INST, 16 }, /* 4-way set assoc, 32 byte line size */ 47 { 0x09, LVL_1_INST, 32 }, /* 4-way set assoc, 64 byte line size */ 48 { 0x0a, LVL_1_DATA, 8 }, /* 2 way set assoc, 32 byte line size */ 49 { 0x0c, LVL_1_DATA, 16 }, /* 4-way set assoc, 32 byte line size */ 50 { 0x0d, LVL_1_DATA, 16 }, /* 4-way set assoc, 64 byte line size */ 51 { 0x0e, LVL_1_DATA, 24 }, /* 6-way set assoc, 64 byte line size */ 52 { 0x21, LVL_2, 256 }, /* 8-way set assoc, 64 byte line size */ [all …]
|
| D | intel.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include <asm/intel-family.h> 61 * Processors which have self-snooping capability can handle conflicting 69 switch (c->x86_model) { in check_memory_type_self_snoop_errata() 101 if (c->x86 != 6) in probe_xeon_phi_r3mwait() 103 switch (c->x86_model) { in probe_xeon_phi_r3mwait() 125 * - https://newsroom.intel.com/wp-content/uploads/sites/11/2018/03/microcode-update-guidance.pdf 126 * - https://kb.vmware.com/s/article/52345 127 * - Microcode revisions observed in the wild 128 * - Release note from 20180108 microcode release [all …]
|
| /kernel/linux/linux-4.19/arch/x86/kernel/cpu/ |
| D | cacheinfo.c | 1 // SPDX-License-Identifier: GPL-2.0 26 #define LVL_1_DATA 2 44 { 0x06, LVL_1_INST, 8 }, /* 4-way set assoc, 32 byte line size */ 45 { 0x08, LVL_1_INST, 16 }, /* 4-way set assoc, 32 byte line size */ 46 { 0x09, LVL_1_INST, 32 }, /* 4-way set assoc, 64 byte line size */ 47 { 0x0a, LVL_1_DATA, 8 }, /* 2 way set assoc, 32 byte line size */ 48 { 0x0c, LVL_1_DATA, 16 }, /* 4-way set assoc, 32 byte line size */ 49 { 0x0d, LVL_1_DATA, 16 }, /* 4-way set assoc, 64 byte line size */ 50 { 0x0e, LVL_1_DATA, 24 }, /* 6-way set assoc, 64 byte line size */ 51 { 0x21, LVL_2, 256 }, /* 8-way set assoc, 64 byte line size */ [all …]
|
| D | intel.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include <asm/intel-family.h> 36 * allow a way to override the automatic disabling of MPX. 46 __setup("intel-skd-046-workaround=disable", forcempx_setup); 84 if (c->x86 != 6) in probe_xeon_phi_r3mwait() 86 switch (c->x86_model) { in probe_xeon_phi_r3mwait() 108 * - https://newsroom.intel.com/wp-content/uploads/sites/11/2018/03/microcode-update-guidance.pdf 109 * - https://kb.vmware.com/s/article/52345 110 * - Microcode revisions observed in the wild 111 * - Release note from 20180108 microcode release [all …]
|
| /kernel/linux/linux-5.10/arch/openrisc/include/asm/ |
| D | spr_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 10 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 19 /* Definition of special-purpose registers (SPRs). */ 29 #define SPRGROUP_IMMU (2 << MAX_SPRS_PER_GRP_BITS) 43 #define SPR_CPUCFGR (SPRGROUP_SYS + 2) 71 #define SPR_DTLBEIR (SPRGROUP_DMMU + 2) 72 #define SPR_DTLBMR_BASE(WAY) (SPRGROUP_DMMU + 0x200 + (WAY) * 0x100) argument 73 #define SPR_DTLBMR_LAST(WAY) (SPRGROUP_DMMU + 0x27f + (WAY) * 0x100) argument 74 #define SPR_DTLBTR_BASE(WAY) (SPRGROUP_DMMU + 0x280 + (WAY) * 0x100) argument 75 #define SPR_DTLBTR_LAST(WAY) (SPRGROUP_DMMU + 0x2ff + (WAY) * 0x100) argument [all …]
|
| /kernel/linux/linux-4.19/arch/openrisc/include/asm/ |
| D | spr_defs.h | 9 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 14 * the Free Software Foundation; either version 2 of the License, or 23 /* Definition of special-purpose registers (SPRs). */ 33 #define SPRGROUP_IMMU (2 << MAX_SPRS_PER_GRP_BITS) 47 #define SPR_CPUCFGR (SPRGROUP_SYS + 2) 75 #define SPR_DTLBEIR (SPRGROUP_DMMU + 2) 76 #define SPR_DTLBMR_BASE(WAY) (SPRGROUP_DMMU + 0x200 + (WAY) * 0x100) argument 77 #define SPR_DTLBMR_LAST(WAY) (SPRGROUP_DMMU + 0x27f + (WAY) * 0x100) argument 78 #define SPR_DTLBTR_BASE(WAY) (SPRGROUP_DMMU + 0x280 + (WAY) * 0x100) argument 79 #define SPR_DTLBTR_LAST(WAY) (SPRGROUP_DMMU + 0x2ff + (WAY) * 0x100) argument [all …]
|
| /kernel/linux/linux-5.10/arch/x86/crypto/ |
| D | twofish_glue_3way.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Glue Code for 3-way parallel assembler optimized version of Twofish 25 return twofish_setkey(&tfm->base, key, keylen); in twofish_setkey_skcipher() 41 u128 ivs[2]; in twofish_dec_blk_cbc_3way() 51 u128_xor(&dst[2], &dst[2], &ivs[1]); in twofish_dec_blk_cbc_3way() 81 dst[2] = src[2]; in twofish_enc_blk_ctr_3way() 88 le128_to_be128(&ctrblks[2], iv); in twofish_enc_blk_ctr_3way() 96 .num_funcs = 2, 97 .fpu_blocks_limit = -1, 109 .num_funcs = 2, [all …]
|
| /kernel/linux/linux-4.19/arch/x86/crypto/ |
| D | twofish_glue_3way.c | 2 * Glue Code for 3-way parallel assembler optimized version of Twofish 8 * the Free Software Foundation; either version 2 of the License, or 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 40 return twofish_setkey(&tfm->base, key, keylen); in twofish_setkey_skcipher() 57 u128 ivs[2]; in twofish_dec_blk_cbc_3way() 65 u128_xor(&dst[2], &dst[2], &ivs[1]); in twofish_dec_blk_cbc_3way() 92 dst[2] = src[2]; in twofish_enc_blk_ctr_3way() 99 le128_to_be128(&ctrblks[2], iv); in twofish_enc_blk_ctr_3way() 107 .num_funcs = 2, 108 .fpu_blocks_limit = -1, [all …]
|
| /kernel/linux/linux-4.19/arch/arm/mm/ |
| D | cache-xsc3l2.c | 2 * arch/arm/mm/cache-xsc3l2.c - XScale3 L2 cache controller support 7 * it under the terms of the GNU General Public License version 2 as 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 56 int set, way; in xsc3_l2_inv_all() local 61 for (way = 0; way < CACHE_WAY_PER_SET; way++) { in xsc3_l2_inv_all() 62 set_way = (way << 29) | (set << 5); in xsc3_l2_inv_all() 63 __asm__("mcr p15, 1, %0, c7, c11, 2" : : "r"(set_way)); in xsc3_l2_inv_all() 73 if (va != -1) in l2_unmap_va() 82 unsigned long pa_offset = pa << (32 - PAGE_SHIFT); in l2_map_va() 83 if (unlikely(pa_offset < (prev_va << (32 - PAGE_SHIFT)))) { in l2_map_va() [all …]
|
| /kernel/linux/linux-5.10/arch/mips/kernel/ |
| D | bmips_5xxx_init.S | 7 * Copyright (C) 2011-2012 by Broadcom Corporation 34 addiu t1, t1, -1 ; \ 64 #define CP0_DCACHE_TAG_LO $28, 2 68 #define CP0_DCACHE_TAG_HI $29, 2 84 #define BRCM_ZSC_REQ_BUFFER_REG 2 << 3 107 .align 2 112 * Description: compute the I-cache size and I-cache line size 126 * Determine sets per way: IS 128 * This field contains the number of sets (i.e., indices) per way of 131 * vi) 0x5 - 0x7: Reserved. [all …]
|
| /kernel/linux/linux-4.19/arch/mips/kernel/ |
| D | bmips_5xxx_init.S | 7 * Copyright (C) 2011-2012 by Broadcom Corporation 34 addiu t1, t1, -1 ; \ 64 #define CP0_DCACHE_TAG_LO $28, 2 68 #define CP0_DCACHE_TAG_HI $29, 2 84 #define BRCM_ZSC_REQ_BUFFER_REG 2 << 3 107 .align 2 112 * Description: compute the I-cache size and I-cache line size 126 * Determine sets per way: IS 128 * This field contains the number of sets (i.e., indices) per way of 131 * vi) 0x5 - 0x7: Reserved. [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mm/ |
| D | cache-xsc3l2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * arch/arm/mm/cache-xsc3l2.c - XScale3 L2 cache controller support 44 int set, way; in xsc3_l2_inv_all() local 49 for (way = 0; way < CACHE_WAY_PER_SET; way++) { in xsc3_l2_inv_all() 50 set_way = (way << 29) | (set << 5); in xsc3_l2_inv_all() 51 __asm__("mcr p15, 1, %0, c7, c11, 2" : : "r"(set_way)); in xsc3_l2_inv_all() 61 if (va != -1) in l2_unmap_va() 70 unsigned long pa_offset = pa << (32 - PAGE_SHIFT); in l2_map_va() 71 if (unlikely(pa_offset < (prev_va << (32 - PAGE_SHIFT)))) { in l2_map_va() 80 return va + (pa_offset >> (32 - PAGE_SHIFT)); in l2_map_va() [all …]
|
| /kernel/linux/linux-5.10/arch/arc/mm/ |
| D | tlb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 8 * -Reintroduce duplicate PD fixup - some customer chips still have the issue 11 * -No need to flush_cache_page( ) for each call to update_mmu_cache() 13 * = page-fault thrice as fast (75 usec to 28 usec) 18 * -MMU v3: PD{0,1} bits layout changed: They don't overlap anymore, 22 * -MMU v2/v3 BCRs decoded differently 23 * -Remove TLB_SIZE hardcoding as it's variable now: 256 or 512 24 * -tlb_entry_erase( ) can be void 25 * -local_flush_tlb_range( ): [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/mm/ |
| D | tlb_nohash_low.S | 2 * This file contains low-level functions for performing various 6 * This file implements the following functions for all no-hash 10 * - tlbil_va 11 * - tlbil_pid 12 * - tlbil_all 13 * - tlbivax_bcast 17 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 25 * 2 of the License, or (at your option) any later version. 34 #include <asm/asm-offsets.h> 37 #include <asm/asm-compat.h> [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/mm/nohash/ |
| D | tlb_low.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * This file contains low-level functions for performing various 7 * This file implements the following functions for all no-hash 11 * - tlbil_va 12 * - tlbil_pid 13 * - tlbil_all 14 * - tlbivax_bcast 18 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 29 #include <asm/asm-offsets.h> 32 #include <asm/asm-compat.h> [all …]
|
| /kernel/linux/linux-5.10/arch/mips/include/asm/octeon/ |
| D | cvmx-l2c.h | 7 * Copyright (c) 2003-2017 Cavium, Inc. 10 * it under the terms of the GNU General Public License, Version 2, as 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 29 * Interface to the Level 2 Cache (L2C) control, measurement, and debugging 44 #define CVMX_L2C_IDX_MASK (cvmx_l2c_get_num_sets() - 1) 52 /* Number of L2C Tag-and-data sections (TADs) that are connected to LMC. */ 72 CVMX_L2C_EVENT_INSTRUCTION_HIT = 2, 131 CVMX_L2C_TAD_EVENT_TAG_MISS = 2, 183 * Return the L2 Cache way partitioning for a given core. [all …]
|
| /kernel/linux/linux-4.19/arch/mips/include/asm/octeon/ |
| D | cvmx-l2c.h | 7 * Copyright (c) 2003-2017 Cavium, Inc. 10 * it under the terms of the GNU General Public License, Version 2, as 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 29 * Interface to the Level 2 Cache (L2C) control, measurement, and debugging 44 #define CVMX_L2C_IDX_MASK (cvmx_l2c_get_num_sets() - 1) 52 /* Number of L2C Tag-and-data sections (TADs) that are connected to LMC. */ 72 CVMX_L2C_EVENT_INSTRUCTION_HIT = 2, 131 CVMX_L2C_TAD_EVENT_TAG_MISS = 2, 183 * Return the L2 Cache way partitioning for a given core. [all …]
|
| /kernel/linux/linux-4.19/arch/arc/mm/ |
| D | tlb.c | 4 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 7 * it under the terms of the GNU General Public License version 2 as 11 * -Reintroduce duplicate PD fixup - some customer chips still have the issue 14 * -No need to flush_cache_page( ) for each call to update_mmu_cache() 16 * = page-fault thrice as fast (75 usec to 28 usec) 21 * -MMU v3: PD{0,1} bits layout changed: They don't overlap anymore, 25 * -MMU v2/v3 BCRs decoded differently 26 * -Remove TLB_SIZE hardcoding as it's variable now: 256 or 512 27 * -tlb_entry_erase( ) can be void 28 * -local_flush_tlb_range( ): [all …]
|
| /kernel/linux/linux-5.10/arch/mips/mm/ |
| D | cerr-sb1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 * that unsafe... So for now we don't. (BCM1250/BCM112x erratum SOC-48.) 73 printk(" multiple-buserr"); in breakout_errctl() 80 printk(" tag-parity"); in breakout_cerri() 82 printk(" data-parity"); in breakout_cerri() 114 printk(" multi-err"); in breakout_cerrd() 116 printk(" tag-state"); in breakout_cerrd() 118 printk(" tag-address"); in breakout_cerrd() 120 printk(" data-SBE"); in breakout_cerrd() 122 printk(" data-DBE"); in breakout_cerrd() [all …]
|
| /kernel/linux/linux-5.10/Documentation/admin-guide/ |
| D | devices.txt | 1 0 Unnamed devices (e.g. non-device mounts) 7 2 = /dev/kmem Kernel virtual memory access 11 6 = /dev/core OBSOLETE - replaced by /proc/kcore 18 12 = /dev/oldmem OBSOLETE - replaced by /proc/vmcore 31 2 char Pseudo-TTY masters 37 Pseudo-tty's are named as follows: 40 the 1st through 16th series of 16 pseudo-ttys each, and 44 These are the old-style (BSD) PTY devices; Unix98 49 2 block Floppy disks 52 2 = /dev/fd2 Controller 0, drive 2, autodetect [all …]
|
| /kernel/linux/linux-4.19/Documentation/admin-guide/ |
| D | devices.txt | 1 0 Unnamed devices (e.g. non-device mounts) 7 2 = /dev/kmem Kernel virtual memory access 11 6 = /dev/core OBSOLETE - replaced by /proc/kcore 18 12 = /dev/oldmem OBSOLETE - replaced by /proc/vmcore 31 2 char Pseudo-TTY masters 37 Pseudo-tty's are named as follows: 40 the 1st through 16th series of 16 pseudo-ttys each, and 44 These are the old-style (BSD) PTY devices; Unix98 49 2 block Floppy disks 52 2 = /dev/fd2 Controller 0, drive 2, autodetect [all …]
|
| /kernel/linux/linux-4.19/arch/mips/mm/ |
| D | cerr-sb1.c | 6 * as published by the Free Software Foundation; either version 2 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 30 * that unsafe... So for now we don't. (BCM1250/BCM112x erratum SOC-48.) 86 printk(" multiple-buserr"); in breakout_errctl() 93 printk(" tag-parity"); in breakout_cerri() 95 printk(" data-parity"); in breakout_cerri() 127 printk(" multi-err"); in breakout_cerrd() 129 printk(" tag-state"); in breakout_cerrd() 131 printk(" tag-address"); in breakout_cerrd() 133 printk(" data-SBE"); in breakout_cerrd() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/include/asm/ |
| D | v7m.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 21 #define V7M_SCB_AIRCR_SYSRESETREQ (1 << 2) 24 #define V7M_SCB_SCR_SLEEPDEEP (1 << 2) 48 * to (0 -> handler mode; 1 -> thread mode). Bit [2] defines which sp is used 49 * (0 -> msp; 1 -> psp). Bits [1:0] are fixed to 0b01. 52 #define EXC_RET_THREADMODE_PROCESSSTACK (3 << 2) 61 /* Memory-mapped MPU registers for M-class */ 65 #define MPU_CTRL_PRIVDEFENA (1 << 2) 80 #define V7M_SCB_ICIALLU 0x250 /* I-cache invalidate all to PoU */ 81 #define V7M_SCB_ICIMVAU 0x258 /* I-cache invalidate by MVA to PoU */ [all …]
|