/linux-6.8/Documentation/devicetree/bindings/interrupt-controller/ |
D | riscv,cpu-intc.txt | 1 RISC-V Hart-Level Interrupt Controller (HLIC) 2 --------------------------------------------- 4 RISC-V cores include Control Status Registers (CSRs) which are local to each 5 CPU core (HART in RISC-V terminology) and can be read or written by software. 10 The RISC-V supervisor ISA manual specifies three interrupt sources that are 13 timer interrupt comes from an architecturally mandated real-time timer that is 14 controlled via Supervisor Binary Interface (SBI) calls and CSR reads. External 16 via the platform-level interrupt controller (PLIC). 18 All RISC-V systems that conform to the supervisor ISA specification are 27 - compatible : "riscv,cpu-intc" [all …]
|
D | sifive,plic-1.0.0.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 4 --- 5 $id: http://devicetree.org/schemas/interrupt-controller/sifive,plic-1.0.0.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: SiFive Platform-Level Interrupt Controller (PLIC) 11 SiFive SoCs and other RISC-V SoCs include an implementation of the 12 Platform-Level Interrupt Controller (PLIC) high-level specification in 13 the RISC-V Privileged Architecture specification. The PLIC connects all 18 in an 4 core system with 2-way SMT, you have 8 harts and probably at least two 19 privilege modes per hart; machine mode and supervisor mode. [all …]
|
/linux-6.8/arch/riscv/include/asm/ |
D | csr.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 13 #define SR_SIE _AC(0x00000002, UL) /* Supervisor Interrupt Enable */ 15 #define SR_SPIE _AC(0x00000020, UL) /* Previous Supervisor IE */ 17 #define SR_SPP _AC(0x00000100, UL) /* Previously Supervisor */ 19 #define SR_SUM _AC(0x00040000, UL) /* Supervisor User Memory Access */ 21 #define SR_FS _AC(0x00006000, UL) /* Floating-point Status */ 39 #define SR_FS_VS (SR_FS | SR_VS) /* Vector and Floating-Point Unit */ 48 #define SR_UXL _AC(0x300000000, UL) /* XLEN mask for U-mode */ 49 #define SR_UXL_32 _AC(0x100000000, UL) /* XLEN = 32 for U-mode */ 50 #define SR_UXL_64 _AC(0x200000000, UL) /* XLEN = 64 for U-mode */ [all …]
|
/linux-6.8/Documentation/devicetree/bindings/riscv/ |
D | extensions.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: RISC-V ISA extensions 10 - Paul Walmsley <paul.walmsley@sifive.com> 11 - Palmer Dabbelt <palmer@sifive.com> 12 - Conor Dooley <conor@kernel.org> 15 RISC-V has a large number of extensions, some of which are "standard" 16 extensions, meaning they are ratified by RISC-V International, and others 36 Identifies the specific RISC-V instruction set architecture [all …]
|
/linux-6.8/Documentation/arch/riscv/ |
D | uabi.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 RISC-V Linux User ABI 7 ------------------------------------ 14 #. Single-letter extensions come first, in canonical order. 17 #. All multi-letter extensions will be separated from other extensions by an 21 single-letter extensions and before any higher-privileged extensions. 29 #. Standard supervisor-level extensions (starting with 'S') will be listed 30 after standard unprivileged extensions. If multiple supervisor-level 33 #. Standard machine-level extensions (starting with 'Zxm') will be listed 34 after any lower-privileged, standard extensions. If multiple machine-level [all …]
|
/linux-6.8/arch/microblaze/include/asm/ |
D | mmu.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 4 * Copyright (C) 2008-2009 PetaLogix 27 unsigned long w:1; /* Write-thru cache mode */ 36 # define PP_RWXX 0 /* Supervisor read/write, User none */ 37 # define PP_RWRX 1 /* Supervisor read/write, User read */ 38 # define PP_RWRW 2 /* Supervisor read/write, User read/write */ 39 # define PP_RXRX 3 /* Supervisor read, User read */ 44 unsigned long ks:1; /* Supervisor 'key' (normally 0) */ 46 unsigned long n:1; /* No-execute */ [all …]
|
D | thread_info.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 21 * low level task data that entry.S needs immediate access to 22 * - this struct should fit entirely inside of one cache line 23 * - this struct shares the supervisor stack pages 24 * - if the contents of this structure are changed, the assembly constants 38 /* non-volatile registers */ 61 unsigned long flags; /* low level flags */ 62 unsigned long status; /* thread-synchronous flags */ 85 return (struct thread_info *)(sp & ~(THREAD_SIZE-1)); in current_thread_info() 93 * - these are process state flags that various assembly files may [all …]
|
/linux-6.8/arch/x86/kvm/ |
D | mmu.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 57 return ((2ULL << (e - s)) - 1) << s; in rsvd_bits() 61 * The number of non-reserved physical address bits irrespective of features 81 return (1ULL << (max_gpa_bits - PAGE_SHIFT)) - 1; in kvm_mmu_max_gfn() 129 if (likely(vcpu->arch.mmu->root.hpa != INVALID_PAGE)) in kvm_mmu_reload() 159 u64 root_hpa = vcpu->arch.mmu->root.hpa; in kvm_mmu_load_pgd() 165 vcpu->arch.mmu->root_role.level); in kvm_mmu_load_pgd() 174 * be stale. Refresh CR0.WP and the metadata on-demand when checking in kvm_mmu_refresh_passthrough_bits() 180 if (!tdp_enabled || mmu == &vcpu->arch.guest_mmu) in kvm_mmu_refresh_passthrough_bits() 203 * For explicit supervisor accesses, SMAP is disabled if EFLAGS.AC = 1. in permission_fault() [all …]
|
/linux-6.8/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). */ 215 #define SPR_SR_SM 0x00000001 /* Supervisor Mode */ 231 #define SPR_SR_SUMRA 0x00010000 /* Supervisor SPR read access */ 239 #define SPR_DMMUCR_P2S 0x0000003e /* Level 2 Page Size */ 240 #define SPR_DMMUCR_P1S 0x000007c0 /* Level 1 Page Size */ 248 #define SPR_IMMUCR_P2S 0x0000003e /* Level 2 Page Size */ 249 #define SPR_IMMUCR_P1S 0x000007c0 /* Level 1 Page Size */ 258 #define SPR_DTLBMR_PL1 0x00000002 /* Page Level 1 (if 0 then PL2) */ [all …]
|
D | thread_info.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 35 * low level task data that entry.S needs immediate access to 36 * - this struct should fit entirely inside of one cache line 37 * - this struct shares the supervisor stack pages 38 * - if the contents of this structure are changed, the assembly constants 45 unsigned long flags; /* low level flags */ 75 #define get_thread_info(ti) get_task_struct((ti)->task) 76 #define put_thread_info(ti) put_task_struct((ti)->task) 84 * - pending work-to-be-done flags are in LSW [all …]
|
/linux-6.8/arch/powerpc/include/asm/nohash/32/ |
D | pte-8xx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * We also use the two level tables, but we can put the real bits in them 10 * Mx_CTR.PPCS = 0, and MD_CTR.TWAM = 1. The level 2 descriptor has 16 * the TLB entry (24 and 25) for these indicators. Although the level 1 18 * set these at the page level since they get copied from the Mx_TWC 21 * These will get masked from the level 2 descriptor at TLB load time, and 46 #define _PAGE_NA 0x0200 /* Supervisor NA, User no access */ 47 #define _PAGE_RO 0x0600 /* Supervisor RO, User no access */ 85 #include <asm/pgtable-masks.h> 139 pte_update(vma->vm_mm, address, ptep, clr, set, huge); in __ptep_set_access_flags() [all …]
|
D | mmu-8xx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * During software tablewalk, the registers used perform mask/shift-add 33 * respectively NA for All or X for Supervisor and no access for User. 35 * "all Supervisor" rules (Access to all) 43 * 4-15 => Not Used 57 /* A "level 1" or "segment" or whatever you want to call it register. 120 /* The pointer to the base address of the first level page table. 125 #define M_L1TB 0xfffff000 /* Level 1 table base address */ 126 #define M_L1INDX 0x00000ffc /* Level 1 index, when read */ 129 /* A "level 1" or "segment" or whatever you want to call it register. [all …]
|
/linux-6.8/tools/perf/pmu-events/arch/arm64/ |
D | recommended.json | 3 "PublicDescription": "Attributable Level 1 data cache access, read", 9 "PublicDescription": "Attributable Level 1 data cache access, write", 15 "PublicDescription": "Attributable Level 1 data cache refill, read", 21 "PublicDescription": "Attributable Level 1 data cache refill, write", 27 "PublicDescription": "Attributable Level 1 data cache refill, inner", 33 "PublicDescription": "Attributable Level 1 data cache refill, outer", 39 "PublicDescription": "Attributable Level 1 data cache Write-Back, victim", 42 "BriefDescription": "L1D cache Write-Back, victim" 45 "PublicDescription": "Level 1 data cache Write-Back, cleaning and coherency", 48 "BriefDescription": "L1D cache Write-Back, cleaning and coherency" [all …]
|
/linux-6.8/arch/mips/include/asm/octeon/ |
D | octeon.h | 6 * Copyright (C) 2004-2008 Cavium Networks 57 /* Start of block referenced by assembly code - do not change! */ 66 /* End of This block referenced by assembly code - do not change! */ 117 /* End of This block referenced by assembly code - do not change! */ 124 * Warning low bit scrambled in little-endian. 182 /* OCTEON II - TLB replacement policy: 0 = bitmask LRU; 1 = NLU. 189 /* OCTEON II - Selects the bit in the counter used for 196 /* OCTEON II - This field is an extension of 199 /* R/W If set, marked write-buffer entries time out 201 * write-buffer entries use the maximum timeout. */ [all …]
|
/linux-6.8/arch/nios2/include/asm/ |
D | thread_info.h | 2 * NiosII low-level thread information 30 * low level task data that entry.S needs immediate access to 31 * - this struct should fit entirely inside of one cache line 32 * - this struct shares the supervisor stack pages 33 * - if the contents of this structure are changed, the assembly constants 38 unsigned long flags; /* low level flags */ 62 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info() 68 * - these are process state flags that various assembly files may need to 70 * - pending work-to-be-done flags are in LSW 71 * - other flags in MSW
|
/linux-6.8/arch/arm/mach-imx/ |
D | cpu.c | 1 // SPDX-License-Identifier: GPL-2.0 42 * Set all MPROTx to be non-bufferable, trusted for R/W, in imx_set_aips() 43 * not forced to user-mode. in imx_set_aips() 49 * Set all OPACRx to be non-bufferable, to not require in imx_set_aips() 50 * supervisor privilege level for access, allow for in imx_set_aips()
|
/linux-6.8/arch/loongarch/include/asm/ |
D | thread_info.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * thread_info.h: LoongArch low-level thread information 5 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 18 * low level task data that entry.S needs immediate access to 19 * - this struct should fit entirely inside of one cache line 20 * - this struct shares the supervisor stack pages 21 * - if the contents of this structure are changed, the assembly constants 26 unsigned long flags; /* low level flags */ 60 #define THREAD_MASK (THREAD_SIZE - 1UL) 64 * - these are process state flags that various assembly files may need to [all …]
|
/linux-6.8/arch/arc/include/asm/ |
D | thread_info.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 7 * anyways one page allocation, thus slab alloc can be short-circuited and 32 * low level task data that entry.S needs immediate access to 33 * - this struct should fit entirely inside of one cache line 34 * - this struct shares the supervisor stack pages 35 * - if the contents of this structure are changed, the assembly constants 39 unsigned long flags; /* low level flags */ 49 * - this is not related to init_task per se 62 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info() [all …]
|
/linux-6.8/arch/s390/include/asm/ |
D | thread_info.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <asm/asm-offsets.h> 27 #define STACK_INIT_OFFSET (THREAD_SIZE - STACK_FRAME_OVERHEAD - __PT_SIZE) 34 * low level task data that entry.S needs immediate access to 35 * - this struct should fit entirely inside of one cache line 36 * - this struct shares the supervisor stack pages 37 * - if the contents of this structure are changed, the assembly constants must also be changed 40 unsigned long flags; /* low level flags */ 67 #define TIF_UPROBE 3 /* breakpointed or single-stepping */
|
/linux-6.8/arch/nios2/mm/ |
D | fault.c | 7 * Copyright (C) 1995-2000 Ralf Baechle 32 #define EXC_SUPERV_INSN_ACCESS 9 /* Supervisor only instruction address */ 33 #define EXC_SUPERV_DATA_ACCESS 11 /* Supervisor only data address */ 48 struct mm_struct *mm = tsk->mm; in do_page_fault() 56 regs->ea -= 4; in do_page_fault() 59 * We fault-in kernel-space virtual memory on-demand. The in do_page_fault() 105 if (!(vma->vm_flags & VM_EXEC)) in do_page_fault() 109 if (!(vma->vm_flags & VM_READ)) in do_page_fault() 113 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault() 173 "cause %ld\n", current->comm, SIGSEGV, address, cause); in do_page_fault() [all …]
|
/linux-6.8/arch/xtensa/include/asm/ |
D | thread_info.h | 2 * include/asm-xtensa/thread_info.h 8 * Copyright (C) 2001 - 2005 Tensilica Inc. 24 * low level task data that entry.S needs immediate access to 25 * - this struct should fit entirely inside of one cache line 26 * - this struct shares the supervisor stack pages 27 * - if the contents of this structure are changed, the assembly constants 50 unsigned long flags; /* low level flags */ 51 unsigned long status; /* thread-synchronous flags */ 65 * If i-th bit is set then coprocessor state is loaded into the 113 * - these are process state flags that various assembly files may need to access [all …]
|
/linux-6.8/Documentation/core-api/ |
D | errseq.rst | 13 It's implemented as an unsigned 32-bit value. The low order bits are 28 +--------------------------------------+----+------------------------+ 30 +--------------------------------------+----+------------------------+ 32 +--------------------------------------+----+------------------------+ 54 They're all handing him work to do -- so much he can't keep track of who 60 but he can't keep track of things at that level of detail, all he can 78 struct supervisor { 83 struct supervisor su; 103 errseq_set(&wd.wd_err, -EIO); 115 to do a one-off job for him. He's not really watching the worker [all …]
|
/linux-6.8/arch/powerpc/mm/nohash/ |
D | tlb_low_64e.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Low level TLB miss handlers for Book3E 5 * Copyright (C) 2008-2009 15 #include <asm/asm-offsets.h> 17 #include <asm/exception-64e.h> 18 #include <asm/ppc-opcode.h> 21 #include <asm/feature-fixups.h> 36 * Note that, unlike non-bolted handlers, TLB_EXFRAME is not 95 /* We pre-test some combination of permissions to avoid double 101 * So the shift is >> 19. This tests for supervisor writeability. [all …]
|
/linux-6.8/tools/arch/x86/kcpuid/ |
D | cpuid.csv | 22 1, 0, ECX, 2, dtes64, DS area uses 64-bit layout 33 1, 0, ECX, 13, cmpxchg16b, 'CMPXCHG16B - Compare and Exchange Bytes' supported 36 1, 0, ECX, 17, pcid, Process-Context Identifiers feature present 43 …1, 0, ECX, 24, tsc_deadline_timer, LAPIC supports one-shot operation using a TSC deadline … 48 1, 0, ECX, 29, f16c, 16-bit floating-point conversion instruction supported 52 1, 0, EDX, 1, vme, Virtual-8086 Mode Enhancement 67 1, 0, EDX, 17, pse36, 36-Bit Page Size Extension 93 4, 0, EAX, 7:5, cache_level, Cache Level (starts at 1) 103 4, 0, ECX, 31:0, cache_sets, Number of Sets - 1 104 …c_wbinvd, 1 means WBINVD/INVD is not ganranteed to act upon lower level caches of non-originating … [all …]
|
/linux-6.8/arch/powerpc/include/asm/book3s/64/ |
D | mmu-hash.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 13 #include <asm/asm-const.h> 46 #define SLB_VSID_N ASM_CONST(0x0000000000000200) /* no-execute */ 114 #define PP_RWXX 0 /* Supervisor read/write, User none */ 115 #define PP_RWRX 1 /* Supervisor read/write, User read */ 116 #define PP_RWRW 2 /* Supervisor read/write, User read/write */ 117 #define PP_RXRX 3 /* Supervisor read, User read */ 118 #define PP_RXXX (HPTE_R_PP0 | 2) /* Supervisor read, user none */ 192 return -1; in shift_to_mmu_psize() 211 return -1; in ap_to_shift() [all …]
|