| /Linux-v6.6/Documentation/devicetree/bindings/riscv/ |
| D | extensions.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 --- 4 $id: http://devicetree.org/schemas/riscv/extensions.yaml# 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 [all …]
|
| 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 …]
|
| /Linux-v6.6/arch/riscv/kernel/ |
| D | cpufeature.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 #include "copy-unaligned.h" 28 #define NUM_ALPHA_EXTS ('z' - 'a' + 1) 32 #define MISALIGNED_COPY_SIZE ((MISALIGNED_BUFFER_SIZE / 2) - 0x80) 36 /* Host ISA bitmap */ 39 /* Per-cpu ISA extensions. */ 46 * riscv_isa_extension_base() - Get base extension word 48 * @isa_bitmap: ISA bitmap to use 51 * NOTE: If isa_bitmap is NULL then Host ISA bitmap will be used. 62 * __riscv_isa_extension_available() - Check whether given extension [all …]
|
| D | cpu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 * Returns the hart ID of the given device tree node, or -ENODEV if the node 27 * isn't an enabled and valid RISC-V hart node. 36 return -ENODEV; in riscv_of_processor_hartid() 44 return -ENODEV; in riscv_of_processor_hartid() 51 const char *isa; in riscv_early_of_processor_hartid() local 55 return -ENODEV; in riscv_early_of_processor_hartid() 61 return -ENODEV; in riscv_early_of_processor_hartid() 66 return -ENODEV; in riscv_early_of_processor_hartid() 69 if (of_property_read_string(node, "riscv,isa-base", &isa)) in riscv_early_of_processor_hartid() [all …]
|
| D | sys_riscv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <asm-generic/mman-common.h> 26 return -EINVAL; in riscv_sys_mmap() 29 offset >> (PAGE_SHIFT - page_shift_offset)); in riscv_sys_mmap() 55 * Allows the instruction cache to be flushed from userspace. Despite RISC-V 60 * thread->hart mappings), so we've defined a RISC-V specific system call to 73 return -EINVAL; in SYSCALL_DEFINE3() 75 flush_icache_mm(current->mm, flags & SYS_RISCV_FLUSH_ICACHE_LOCAL); in SYSCALL_DEFINE3() 88 u64 id = -1ULL; in hwprobe_arch_id() 95 switch (pair->key) { in hwprobe_arch_id() [all …]
|
| /Linux-v6.6/Documentation/riscv/ |
| D | uabi.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 RISC-V Linux User ABI 6 ISA string ordering in /proc/cpuinfo 7 ------------------------------------ 9 The canonical order of ISA extension names in the ISA string is defined in 14 #. Single-letter extensions come first, in canonical order. 17 #. All multi-letter extensions will be separated from other extensions by an 20 #. Additional standard extensions (starting with 'Z') will be sorted after 21 single-letter extensions and before any higher-privileged extensions. 23 #. For additional standard extensions, the first letter following the 'Z' [all …]
|
| D | hwprobe.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 RISC-V Hardware Probing Interface 4 --------------------------------- 6 The RISC-V hardware probing interface is based around a single syscall, which 18 The arguments are split into three groups: an array of key-value pairs, a CPU 19 set, and some flags. The key-value pairs are supplied with a count. Userspace 22 will be cleared to -1, and its value set to 0. The CPU set is defined by 23 CPU_SET(3). For value-like keys (eg. vendor/arch/impl), the returned value will 24 be only be valid if all CPUs in the given set have the same value. Otherwise -1 25 will be returned. For boolean-like keys, the value returned will be a logical [all …]
|
| /Linux-v6.6/drivers/net/wireless/cisco/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 16 tristate "Cisco/Aironet 34X/35X/4500/4800 ISA and PCI cards" 24 This is the standard Linux driver to support Cisco/Aironet ISA and 27 - with or without encryption) as well as card before the Cisco 30 This driver support both the standard Linux Wireless Extensions 50 - with or without encryption) as well as card before the Cisco 55 This driver support both the standard Linux Wireless Extensions
|
| /Linux-v6.6/arch/riscv/kvm/ |
| D | vcpu_onereg.c | 1 // SPDX-License-Identifier: GPL-2.0 25 /* Mapping between KVM ISA Extension ID & Host ISA extension ID */ 27 /* Single letter extensions (alphabetically sorted) */ 36 /* Multi letter extensions (alphabetically sorted) */ 115 set_bit(host_isa, vcpu->arch.isa); in kvm_riscv_vcpu_setup_isa() 123 (unsigned long __user *)(unsigned long)reg->addr; in kvm_riscv_vcpu_get_reg_config() 124 unsigned long reg_num = reg->id & ~(KVM_REG_ARCH_MASK | in kvm_riscv_vcpu_get_reg_config() 129 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_config() 130 return -EINVAL; in kvm_riscv_vcpu_get_reg_config() 133 case KVM_REG_RISCV_CONFIG_REG(isa): in kvm_riscv_vcpu_get_reg_config() [all …]
|
| /Linux-v6.6/arch/riscv/include/asm/ |
| D | cpufeature.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright 2022-2023 Rivos, Inc 23 DECLARE_BITMAP(isa, RISCV_ISA_EXT_MAX); 30 /* Per-cpu ISA extensions. */
|
| D | hwcap.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #include <asm/alternative-macros.h> 16 #define RISCV_ISA_EXT_a ('a' - 'a') 17 #define RISCV_ISA_EXT_b ('b' - 'a') 18 #define RISCV_ISA_EXT_c ('c' - 'a') 19 #define RISCV_ISA_EXT_d ('d' - 'a') 20 #define RISCV_ISA_EXT_f ('f' - 'a') 21 #define RISCV_ISA_EXT_h ('h' - 'a') 22 #define RISCV_ISA_EXT_i ('i' - 'a') 23 #define RISCV_ISA_EXT_j ('j' - 'a') [all …]
|
| D | elf.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 37 #define elf_check_arch(x) (((x)->e_machine == EM_RISCV) && \ 38 ((x)->e_ident[EI_CLASS] == ELF_CLASS)) 58 0x7ff >> (PAGE_SHIFT - 12) : \ 59 0x3ffff >> (PAGE_SHIFT - 12)) 61 #define STACK_RND_MASK (0x3ffff >> (PAGE_SHIFT - 12)) 66 * Provides information on the availiable set of ISA extensions to userspace, 67 * via a bitmap that coorespends to each single-letter ISA extension. This is 75 (_r)->a1 = _exec_map_addr; \ [all …]
|
| /Linux-v6.6/arch/arm/crypto/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 14 - NEON (Advanced SIMD) extensions 17 tristate "Hash functions: GHASH (PMULL/NEON/ARMv8 Crypto Extensions)" 25 GCM GHASH function (NIST SP800-38D) 28 - PMULL (Polynomial Multiply Long) instructions 29 - NEON (Advanced SIMD) extensions 30 - ARMv8 Crypto Extensions 34 that is part of the ARMv8 Crypto Extensions, or a slower variant that 35 uses the vmull.p8 instruction that is part of the basic NEON ISA. 45 - NEON (Advanced SIMD) extensions [all …]
|
| /Linux-v6.6/arch/riscv/ |
| D | Makefile | 2 # architecture-specific flags and dependencies. 9 LDFLAGS_vmlinux := -z norelro 11 LDFLAGS_vmlinux += -shared -Bsymbolic -z notext --emit-relocs 12 KBUILD_CFLAGS += -fPIE 15 LDFLAGS_vmlinux += --no-relax 16 KBUILD_CPPFLAGS += -DCC_USING_PATCHABLE_FUNCTION_ENTRY 18 CC_FLAGS_FTRACE := -fpatchable-function-entry=4 20 CC_FLAGS_FTRACE := -fpatchable-function-entry=2 25 KBUILD_CFLAGS_MODULE += -mcmodel=medany 33 KBUILD_CFLAGS += -mabi=lp64 [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 4 # see Documentation/kbuild/kconfig-language.rst. 168 # https://github.com/llvm/llvm-project/commit/6ab8927931851bb42b2c93a00801dc499d7d9b1e 175 depends on $(cc-option,-fpatchable-function-entry=8) 185 # VA_BITS - PAGE_SHIFT - 3 198 # set if we are running in S-mode and can use SBI calls 205 bool "MMU-based Paged Memory Management Support" 208 Select if you want MMU-based virtualised addressing space 280 This enables function pointer support for non-standard noncoherent 284 def_bool $(as-instr,.insn r 51$(comma) 0$(comma) 0$(comma) t0$(comma) t0$(comma) zero) [all …]
|
| /Linux-v6.6/arch/powerpc/platforms/ |
| D | Kconfig.cputype | 1 # SPDX-License-Identifier: GPL-2.0 7 bool "64-bit kernel" 10 This option selects whether a 32-bit or a 64-bit kernel 282 default "-mtune=power10" if $(cc-option,-mtune=power10) 283 default "-mtune=power9" if $(cc-option,-mtune=power9) 284 default "-mtune=power8" if $(cc-option,-mtune=power8) 366 This option enables kernel support for larger than 32-bit physical 371 is platform-dependent. 380 This option enables kernel support for the Altivec extensions to the 387 any affect on a non-altivec cpu (it does, however add code to the [all …]
|
| /Linux-v6.6/arch/x86/events/intel/ |
| D | pt.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (c) 2013-2014, Intel Corporation. 6 * Intel PT is specified in the Intel Architecture Instruction Set Extensions 8 * http://software.intel.com/en-us/intel-isa-extensions 15 * Single-entry ToPA: when this close to region boundary, switch 54 * struct pt_buffer - buffer configuration; one buffer per task_struct or 93 * struct pt_filter - IP range filter configuration 96 * @config: 4-bit field in RTIT_CTL 105 * struct pt_filters - IP range filtering context 115 * struct pt - per-cpu pt context
|
| /Linux-v6.6/arch/mips/include/asm/ |
| D | cpu.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 +----------------+----------------+----------------+----------------+ 20 +----------------+----------------+----------------+----------------+ 24 that bits 16-23 have been 0 for all MIPS processors before the MIPS32/64 92 #define PRID_IMP_LOONGSON_32 0x4200 /* Loongson-1 */ 95 #define PRID_IMP_LOONGSON_64R 0x6100 /* Reduced Loongson-2 */ 96 #define PRID_IMP_LOONGSON_64C 0x6300 /* Classic Loongson-2 and Loongson-3 */ 97 #define PRID_IMP_LOONGSON_64G 0xc000 /* Generic Loongson-2 and Loongson-3 */ 189 #define PRID_IMP_XBURST_REV1 0x0200 /* XBurst®1 with MXU1.0/MXU1.1 SIMD ISA */ 190 #define PRID_IMP_XBURST_REV2 0x0100 /* XBurst®1 with MXU2.0 SIMD ISA */ [all …]
|
| /Linux-v6.6/arch/powerpc/platforms/pseries/ |
| D | iommu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * Dynamic DMA mapping support, pSeries-specific parts, both SMP and LPAR. 21 #include <linux/dma-mapping.h> 32 #include <asm/pci-bridge.h> 36 #include <asm/ppc-pci.h> 65 INIT_LIST_HEAD_RCU(&tbl->it_group_list); in iommu_pseries_alloc_table() 66 kref_init(&tbl->it_kref); in iommu_pseries_alloc_table() 79 table_group->ops = &spapr_tce_table_group_ops; in iommu_pseries_alloc_group() 80 table_group->pgsizes = SZ_4K; in iommu_pseries_alloc_group() 83 table_group->tables[0] = iommu_pseries_alloc_table(node); in iommu_pseries_alloc_group() [all …]
|
| /Linux-v6.6/arch/arc/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 88 source "arch/arc/plat-tb10x/Kconfig" 89 source "arch/arc/plat-axs10x/Kconfig" 90 source "arch/arc/plat-hsdk/Kconfig" 99 bool "ARCompact ISA" 102 The original ARC ISA of ARC600/700 cores 105 bool "ARC ISA v2" 108 ISA for the Next Generation ARC-HS cores 126 -MMU-v3: Variable Page Sz (4k, 8k, 16k), bigger J-TLB (128x4) [all …]
|
| /Linux-v6.6/tools/testing/selftests/kvm/riscv/ |
| D | get-reg-list.c | 1 // SPDX-License-Identifier: GPL-2.0 23 * ISA extensions available on the host. Also, disabling an ISA in filter_reg() 27 * Based on above, we should filter-out all ISA_EXT registers. in filter_reg() 93 * Disable all extensions which were enabled by default in finalize_vcpu() 94 * if they were available in the risc-v host. in finalize_vcpu() 103 if (!s->feature) in finalize_vcpu() 107 __vcpu_set_reg(vcpu, RISCV_ISA_EXT_REG(s->feature), 1); in finalize_vcpu() 110 __TEST_REQUIRE(vcpu_has_ext(vcpu, s->feature), in finalize_vcpu() 111 "%s not available, skipping tests\n", s->name); in finalize_vcpu() 121 case KVM_REG_RISCV_CONFIG_REG(isa): in config_id_to_str() [all …]
|
| /Linux-v6.6/Documentation/networking/ |
| D | filter.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 .. _networking-filter: 10 ------ 17 ------------ 24 BPF allows a user-space program to attach a filter onto any socket and 49 The biggest user of this construct might be libpcap. Issuing a high-level 50 filter command like `tcpdump -i em1 port 22` passes through the libpcap 52 via SO_ATTACH_FILTER to the kernel. `tcpdump -i em1 port 22 -ddd` 57 qdisc layer, SECCOMP-BPF (SECure COMPuting [1]_), and lots of other places 60 .. [1] Documentation/userspace-api/seccomp_filter.rst [all …]
|
| /Linux-v6.6/drivers/firmware/ |
| D | edd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * fn41 - Check Extensions Present and 15 * fn48 - Get Device Parameters with EDD extensions 38 #define EDD_DATE "2004-Jun-25" 45 #define left (PAGE_SIZE - (p - buf) - 1) 76 return edev->index < min_t(unsigned char, edd.mbr_signature_nr, EDD_MBR_SIG_MAX); in edd_has_mbr_signature() 82 return edev->index < min_t(unsigned char, edd.edd_info_nr, EDDMAXNR); in edd_has_edd_info() 88 return edev->info; in edd_dev_get_info() 94 edev->index = i; in edd_dev_set_info() 96 edev->mbr_signature = edd.mbr_signature[i]; in edd_dev_set_info() [all …]
|
| /Linux-v6.6/Documentation/userspace-api/media/v4l/ |
| D | vidioc-querycap.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_QUERYCAP - Query device capabilities 47 .. flat-table:: struct v4l2_capability 48 :header-rows: 0 49 :stub-columns: 0 52 * - __u8 53 - ``driver``\ [16] 54 - Name of the driver, a unique NUL-terminated ASCII string. For 62 sure the strings are properly NUL-terminated. 63 * - __u8 [all …]
|
| /Linux-v6.6/arch/x86/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 4 bool "64-bit kernel" if "$(ARCH)" = "x86" 7 Say yes to build a 64-bit kernel - formerly known as x86_64 8 Say no to build a 32-bit kernel - formerly known as i386 13 # Options that are inherently 32-bit kernel only: 27 # Options that are inherently 64-bit kernel only: 54 # ported to 32-bit as well. ) 140 # Word-size accesses may read uninitialized data past the trailing \0 314 default "elf32-i386" if X86_32 315 default "elf64-x86-64" if X86_64 [all …]
|