/linux-5.10/Documentation/riscv/ |
D | patch-acceptance.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 -------- 8 The RISC-V instruction set architecture is developed in the open: 9 in-progress drafts are available for all to review and to experiment 11 during the development process - sometimes in ways that are 13 challenge for RISC-V Linux maintenance. Linux maintainers disapprove 14 of churn, and the Linux development process prefers well-reviewed and 16 principles to the RISC-V-related code that will be accepted for 20 ------------------------- 23 "Frozen" or "Ratified" by the RISC-V Foundation. (Developers may, of [all …]
|
D | boot-image-header.rst | 2 Boot image header in RISC-V Linux 8 This document only describes the boot image header details for RISC-V Linux. 13 The following 64-byte header is present in decompressed Linux kernel image:: 28 ARM64 header. Thus, both ARM64 & RISC-V header can be combined into one common 34 - This header can also be reused to support EFI stub for RISC-V in future. EFI 40 - version field indicate header version number 50 - The "magic" field is deprecated as of version 0.2. In a future 55 - In current header, the flags field has only one field. 61 - Image size is mandatory for boot loader to load kernel image. Booting will
|
D | pmu.rst | 2 Supporting PMUs on RISC-V platforms 8 ------------ 10 As of this writing, perf_event-related features mentioned in The RISC-V ISA 23 Counters are just free-running all the time in our case. 33 hardware-extension for M-S-U model machines to write counters directly. 44 ----------------- 47 various methods according to perf's internal convention and PMU-specific 53 the minimal and already-implemented logic can be leveraged, or invent his/her 63 ----------------------- 72 into bitmap, so that HW-related control registers or counters can directly be [all …]
|
/linux-5.10/Documentation/translations/it_IT/riscv/ |
D | patch-acceptance.rst | 1 .. include:: ../disclaimer-ita.rst 3 :Original: :doc:`../../../riscv/patch-acceptance` 10 ------------ 12 L'insieme di istruzioni RISC-V sono sviluppate in modo aperto: le 15 dei nuovi moduli o estensioni possono cambiare in fase di sviluppo - a 18 supporto RISC-V nel kernel Linux. I manutentori Linux non amano 22 relativo all'architettura RISC-V che verrà accettato per l'inclusione 26 ------------------------------------------------------------------------- 29 RISC-V li classifica come "Frozen" o "Retified". (Ovviamente, gli 33 In aggiunta, la specifica RISC-V permette agli implementatori di [all …]
|
/linux-5.10/Documentation/devicetree/bindings/riscv/ |
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 bindings for 'cpus' DT nodes 10 - Paul Walmsley <paul.walmsley@sifive.com> 11 - Palmer Dabbelt <palmer@sifive.com> 14 This document uses some terminology common to the RISC-V community 18 mandated by the RISC-V ISA: a PC and some registers. This 28 - items: 29 - enum: [all …]
|
/linux-5.10/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 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" 28 - #interrupt-cells : should be <1>. The interrupt sources are defined by the [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 include an implementation of the Platform-Level Interrupt Controller 12 (PLIC) high-level specification in the RISC-V Privileged Architecture 17 in an 4 core system with 2-way SMT, you have 8 harts and probably at least two 20 Each interrupt can be enabled on per-context basis. Any context can claim 28 While the PLIC supports both edge-triggered and level-triggered interrupts, [all …]
|
/linux-5.10/arch/riscv/kernel/ |
D | perf_callchain.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2019 Hangzhou C-SKY Microsystems co.,ltd. */ 23 (unsigned long *)(fp - sizeof(struct stackframe)); in user_backtrace() 53 * $ perf record -e cpu-clock --call-graph fp ./program 54 * $ perf report --call-graph 56 * On RISC-V platform, the program being sampled and the C library 57 * need to be compiled with -fno-omit-frame-pointer, otherwise 65 /* RISC-V does not support perf in guest mode. */ in perf_callchain_user() 66 if (perf_guest_cbs && perf_guest_cbs->is_in_guest()) in perf_callchain_user() 69 fp = regs->s0; in perf_callchain_user() [all …]
|
D | cpu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * Returns the hart ID of the given device tree node, or -ENODEV if the node 13 * isn't an enabled and valid RISC-V hart node. 22 return -ENODEV; in riscv_of_processor_hartid() 27 return -ENODEV; in riscv_of_processor_hartid() 32 return -ENODEV; in riscv_of_processor_hartid() 37 return -ENODEV; in riscv_of_processor_hartid() 39 if (isa[0] != 'r' || isa[1] != 'v') { in riscv_of_processor_hartid() 41 return -ENODEV; in riscv_of_processor_hartid() 51 * RISC-V core (HART) node and extract the cpuid from it. [all …]
|
D | sys_riscv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <asm-generic/mman-common.h> 19 return -EINVAL; in riscv_sys_mmap() 23 return -EINVAL; in riscv_sys_mmap() 26 offset >> (PAGE_SHIFT - page_shift_offset)); in riscv_sys_mmap() 50 * Allows the instruction cache to be flushed from userspace. Despite RISC-V 55 * thread->hart mappings), so we've defined a RISC-V specific system call to 68 return -EINVAL; in SYSCALL_DEFINE3() 70 flush_icache_mm(current->mm, flags & SYS_RISCV_FLUSH_ICACHE_LOCAL); in SYSCALL_DEFINE3()
|
/linux-5.10/drivers/media/pci/cx88/ |
D | cx88-alsa.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #include "cx88-reg.h" 22 #include <linux/dma-mapping.h> 37 chip->core->name, ##arg); \ 41 * Data type declarations - Can be moded to a header file later 46 struct cx88_riscmem risc; member 81 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 116 struct cx88_audio_buffer *buf = chip->buf; in _cx88_start_audio_dma() 117 struct cx88_core *core = chip->core; in _cx88_start_audio_dma() 120 /* Make sure RISC/FIFO are off before changing FIFO/RISC settings */ in _cx88_start_audio_dma() [all …]
|
D | cx88-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * (c) 2005-2006 Mauro Carvalho Chehab <mchehab@kernel.org> 9 * - Multituner support 10 * - video_ioctl2 conversion 11 * - PAL/M fixes 29 #include <media/v4l2-common.h> 30 #include <media/v4l2-ioctl.h> 36 /* ------------------------------------------------------------------ */ 64 #define NO_SYNC_LINE (-1U) 91 offset -= sg_dma_len(sg); in cx88_risc_field() [all …]
|
/linux-5.10/arch/riscv/include/asm/ |
D | pci.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #include <linux/dma-mapping.h> 18 /* RISC-V shim does not initialize PCI bus */ 26 /* no legacy IRQ on risc-v */ in pci_get_legacy_ide_irq() 27 return -ENODEV; in pci_get_legacy_ide_irq()
|
D | pgtable.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 12 #include <asm/pgtable-bits.h> 16 /* Page Upper Directory not used in RISC-V */ 17 #include <asm-generic/pgtable-nopud.h> 25 #define VMALLOC_END (PAGE_OFFSET - 1) 26 #define VMALLOC_START (PAGE_OFFSET - VMALLOC_SIZE) 29 #define BPF_JIT_REGION_START (PAGE_OFFSET - BPF_JIT_REGION_SIZE) 38 (CONFIG_VA_BITS - PAGE_SHIFT - 1 + STRUCT_PAGE_MAX_SHIFT) 40 #define VMEMMAP_END (VMALLOC_START - 1) 41 #define VMEMMAP_START (VMALLOC_START - VMEMMAP_SIZE) [all …]
|
/linux-5.10/drivers/media/pci/cx23885/ |
D | cx23885-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 #include "altera-ci.h" 25 #include "cx23888-ir.h" 26 #include "cx23885-ir.h" 27 #include "cx23885-av.h" 28 #include "cx23885-input.h" 38 * encountered is "mpeg risc op code error". Only Ryzen platforms employ 45 …PARM_DESC(dma_reset_workaround, "periodic RiSC dma engine reset; 0-force disable, 1-driver detect … 51 static unsigned int card[] = {[0 ... (CX23885_MAXBOARDS - 1)] = UNSET }; 63 #define NO_SYNC_LINE (-1U) [all …]
|
/linux-5.10/tools/arch/riscv/include/uapi/asm/ |
D | unistd.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 23 #include <asm-generic/unistd.h> 26 * Allows the instruction cache to be flushed from userspace. Despite RISC-V 31 * thread->hart mappings), so we've defined a RISC-V specific system call to
|
/linux-5.10/arch/riscv/include/uapi/asm/ |
D | unistd.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 24 #include <asm-generic/unistd.h> 27 * Allows the instruction cache to be flushed from userspace. Despite RISC-V 32 * thread->hart mappings), so we've defined a RISC-V specific system call to
|
/linux-5.10/drivers/clocksource/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 163 Enable 24-bit TIMER0 and TIMER1 counters in the NPCM7xx architecture, 186 32-bit free running decrementing counters. 240 bool "Integrator-AP timer driver" if COMPILE_TEST 243 Enables support for the Integrator-AP timer. 276 available on many OMAP-like platforms. 285 It has a 64-bit counter with update rate up to 1000MHz. 286 This counter is accessed via couple of 32-bit memory-mapped registers. 305 bool "Support for 32-bit TIMERn counters in ARC Cores" if COMPILE_TEST 309 These are legacy 32-bit TIMER0 and TIMER1 counters found on all ARC cores [all …]
|
/linux-5.10/Documentation/devicetree/bindings/timer/ |
D | sifive,clint.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Palmer Dabbelt <palmer@dabbelt.com> 11 - Anup Patel <anup.patel@wdc.com> 14 SiFive (and other RISC-V) SOCs include an implementation of the SiFive 15 Core Local Interruptor (CLINT) for M-mode timer and M-mode inter-processor 16 interrupts. It directly connects to the timer and inter-processor interrupt 17 lines of various HARTs (or CPUs) so RISC-V per-HART (or per-CPU) local 19 The clock frequency of CLINT is specified via "timebase-frequency" DT [all …]
|
/linux-5.10/drivers/irqchip/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 216 bool "J-Core integrated AIC" if COMPILE_TEST 220 Support for the J-Core integrated AIC. 231 interrupt pins, as found on SH/R-Mobile and R-Car Gen1 SoCs. 234 bool "Renesas R-Mobile APE6, R-Car Gen{2,3} and RZ/G{1,2} IRQC support" if COMPILE_TEST 239 devices, as found on R-Mobile APE6, R-Car Gen{2,3} and RZ/G{1,2} SoCs. 274 tristate "TS-4800 IRQ controller" 279 Support for the TS-4800 FPGA IRQ controller 442 bool "C-SKY Multi Processor Interrupt Controller" 445 Say yes here to enable C-SKY SMP interrupt controller driver used [all …]
|
D | irq-riscv-intc.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2017-2018 SiFive 8 #define pr_fmt(fmt) "riscv-intc: " fmt 24 unsigned long cause = regs->cause & ~CAUSE_IRQ_FLAG; in riscv_intc_irq() 34 * non-SMP system gets one, then we don't know what to do. in riscv_intc_irq() 46 * On RISC-V systems local interrupts are masked or unmasked by writing 54 csr_clear(CSR_IE, BIT(d->hwirq)); in riscv_intc_irq_mask() 59 csr_set(CSR_IE, BIT(d->hwirq)); in riscv_intc_irq_unmask() 75 .name = "RISC-V INTC", 84 irq_domain_set_info(d, irq, hwirq, &riscv_intc_chip, d->host_data, in riscv_intc_domain_map() [all …]
|
/linux-5.10/drivers/firmware/efi/libstub/ |
D | riscv-stub.c | 1 // SPDX-License-Identifier: GPL-2.0 15 * RISC-V requires the kernel image to placed 2 MB aligned base for 64 bit and 42 prop = fdt_getprop((void *)fdt, chosen_node, "boot-hartid", &len); in get_boot_hartid_from_fdt() 53 efi_err("/chosen/boot-hartid missing or invalid!\n"); in check_platform_features() 62 unsigned long stext_offset = _start_kernel - _start; in efi_enter_kernel() 86 kernel_size = _edata - _start; in handle_kernel_image() 88 *image_size = kernel_size + (_end - _edata); in handle_kernel_image() 91 * RISC-V kernel maps PAGE_OFFSET virtual address to the same physical in handle_kernel_image()
|
/linux-5.10/drivers/tty/hvc/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 8 It will automatically be selected if one of the back-end console drivers 51 This driver provides a Hypervisor console (HVC) back-end to access 91 bool "RISC-V SBI console support" 95 This enables support for console output via RISC-V SBI calls, which
|
/linux-5.10/include/uapi/linux/ |
D | elf-em.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 14 #define EM_MIPS 8 /* MIPS R3000 (officially, big-endian only) */ 18 #define EM_MIPS_RS3_LE 10 /* MIPS R3000 little-endian */ 19 #define EM_MIPS_RS4_BE 10 /* MIPS R4000 big-endian */ 28 #define EM_SPARCV9 43 /* SPARC v9 64-bit */ 30 #define EM_IA_64 50 /* HP/Intel IA-64 */ 31 #define EM_X86_64 62 /* AMD x86-64 */ 33 #define EM_CRIS 76 /* Axis Communications 32-bit embedded processor */ 36 #define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */ 40 #define EM_UNICORE 110 /* UniCore-32 */ [all …]
|
/linux-5.10/arch/parisc/kernel/ |
D | setup.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Initial setup-routines for HP 9000 based hardware. 6 * Modifications for PA-RISC (C) 1999 Helge Deller <deller@gmx.de> 12 * Initial PA-RISC Version: 04-23-1999 by Helge Deller 54 /* boot_args[0] is free-mem start, boot_args[1] is ptr to command line */ in setup_cmdline() 84 panic( "PA-RISC Linux currently only supports machines that conform to\n" in dma_ops_init() 85 "the PA-RISC 1.1 or 2.0 architecture specification.\n"); in dma_ops_init() 108 printk(KERN_INFO "The 64-bit Kernel has started...\n"); in setup_arch() 110 printk(KERN_INFO "The 32-bit Kernel has started...\n"); in setup_arch() 117 1 << (REAL_HPAGE_SHIFT - 20), 1 << (HPAGE_SHIFT - 20)); in setup_arch() [all …]
|