/linux/arch/um/os-Linux/ |
H A D | signal.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2015 Anton Ivanov (aivanov@{brocade.com,kot-begemot.co.uk}) 6 * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 16 #include <as-layout.h> 58 * be able to profile all of UML, not just the non-critical sections. If 59 * profiling is not thread-safe, then that is not my problem. We can disable 60 * profiling when SMP is enabled in that case. 80 int enabled = signals_enabled; in sig_handler() local 93 if (!enabled && (sig == SIGIO)) { in sig_handler() 95 * In TT_MODE_EXTERNAL, need to still call time-travel in sig_handler() [all …]
|
/linux/arch/arm/mach-tegra/ |
H A D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2009-2012, NVIDIA Corporation. All rights reserved. 29 #include <asm/proc-fns.h> 141 if (tegra_cpu_car_ops->rail_off_ready && in tegra_sleep_cpu() 143 return -EBUSY; in tegra_sleep_cpu() 148 * MMU-on if cache maintenance is done via Trusted Foundations in tegra_sleep_cpu() 150 * if any of secondary CPU's is online and this is the LP2-idle in tegra_sleep_cpu() 151 * code-path only for Tegra20/30. in tegra_sleep_cpu() 162 * 2) Disable D-cache. This need to be taken into account in in tegra_sleep_cpu() 164 * shall avoid the re-disable. in tegra_sleep_cpu() [all …]
|
/linux/Documentation/arch/arm64/ |
H A D | cpu-hotplug.rst | 1 .. SPDX-License-Identifier: GPL-2.0 15 CPU Hotplug on physical systems - CPUs not present at boot 16 ---------------------------------------------------------- 42 CPU Hotplug on virtual systems - CPUs not enabled at boot 43 --------------------------------------------------------- 46 ever have can be described at boot. There are no power-domain considerations 64 ``enabled`` in the MADT GICC structures, but should have the ``online capable`` 65 bit set, to indicate they can be enabled later. The boot CPU must be marked as 66 ``enabled``. The 'always on' GICR structure must be used to describe the 69 CPUs described as ``online capable`` but not ``enabled`` can be set to enabled [all …]
|
/linux/drivers/tty/hvc/ |
H A D | hvc_dcc.c | 1 // SPDX-License-Identifier: GPL-2.0 42 struct earlycon_device *dev = con->data; in dcc_early_write() 44 uart_console_write(&dev->port, s, n, dcc_uart_console_putchar); in dcc_early_write() 52 while (--count && (__dcc_getstatus() & DCC_STATUS_TX)) in dcc_early_console_setup() 56 return -ENODEV; in dcc_early_console_setup() 58 device->con->write = dcc_early_write; in dcc_early_console_setup() 93 * Check if the DCC is enabled. If CONFIG_HVC_DCC_SERIALIZE_SMP is enabled, 103 * If we're not on core 0, but we previously confirmed that DCC is in hvc_dcc_check() 142 /* While we're at it, check for any input characters */ in dcc_put_work() 180 * Write characters directly to the DCC if we're on core 0 and the FIFO [all …]
|
/linux/fs/xfs/scrub/ |
H A D | scrub.h | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2017-2023 Oracle. All Rights Reserved. 39 if (likely(++widget->resched_nr < 100)) in xchk_maybe_relax() 41 widget->resched_nr = 0; in xchk_maybe_relax() 43 if (unlikely(widget->next_resched <= jiffies)) { in xchk_maybe_relax() 45 widget->next_resched = XCHK_RELAX_NEXT; in xchk_maybe_relax() 48 if (widget->interruptible && fatal_signal_pending(current)) in xchk_maybe_relax() 49 return -EINTR; in xchk_maybe_relax() 57 * to back out gracefully if there isn't enough memory. Force-cast to avoid 73 ST_PERAG, /* per-AG metadata */ [all …]
|
/linux/arch/powerpc/kernel/ |
H A D | irq_64.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 8 * Copyright (C) 1996-2001 Cort Dougan 39 #include <linux/radix-tree.h> 74 WARN_ON(!(local_paca->irq_happened & PACA_IRQ_HARD_DIS)); in next_interrupt() 79 * We are responding to the next interrupt, so interrupt-off in next_interrupt() 90 if (local_paca->irq_happened & irq) { in irq_happened_test_and_clear() 91 local_paca->irq_happened &= ~irq; in irq_happened_test_and_clear() 108 WARN_ON(!(local_paca->irq_happened & PACA_IRQ_HARD_DIS)); in __replay_soft_interrupts() 109 WARN_ON(local_paca->irq_happened & PACA_IRQ_REPLAYING); in __replay_soft_interrupts() [all …]
|
/linux/scripts/gdb/linux/ |
H A D | symbols.py | 6 # Copyright (c) Siemens AG, 2011-2013 16 import re 38 # Disable pagination while reporting symbol (re-)loading. 63 kaslr_offset_phys = paddr_vmcoreinfo_note - 1 65 gdb.execute("symbol-file {0} -o {1}".format( 88 """(Re-)load symbols of Linux kernel and currently loaded modules. 93 lx-symbols command.""" 102 super(LxSymbols, self).__init__("lx-symbols", gdb.COMMAND_FILES, 117 module_name.replace("_", r"[_\-]")) 119 if re.match(module_pattern, name) and os.path.exists(name): [all …]
|
/linux/drivers/clk/bcm/ |
H A D | clk-kona.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include "clk-kona.h" 12 #include <linux/clk-provider.h> 28 /* Produces a mask of set bits covering a range of a 32-bit value */ 31 return ((1 << width) - 1) << shift; in bitfield_mask() 53 return (u64)reg_div + ((u64)1 << div->u.s.frac_width); in scaled_div_value() 61 return (u64)div->u.fixed; in scaled_div_min() 72 return (u64)div->u.fixed; in scaled_div_max() 74 reg_div = ((u32)1 << div->u.s.width) - 1; in scaled_div_max() 89 return (u32)(scaled_div - ((u64)1 << div->u.s.frac_width)); in divider() [all …]
|
/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | tlb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2015 - ARM Ltd 27 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; in enter_vmid_context() 28 vcpu = host_ctxt->__hyp_running_vcpu; in enter_vmid_context() 29 cxt->mmu = NULL; in enter_vmid_context() 34 * - ensure that the page table updates are visible to all in enter_vmid_context() 35 * CPUs, for which a dsb(DOMAIN-st) is what we need, DOMAIN in enter_vmid_context() 39 * - complete any speculative page table walk started before in enter_vmid_context() 45 * Inner-Shareable and Non-Shareable, as specified by the in enter_vmid_context() 54 * If we're already in the desired context, then there's nothing to do. in enter_vmid_context() [all …]
|
/linux/Documentation/arch/x86/ |
H A D | shstk.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Control-flow Enforcement Technology (CET) Shadow Stack 10 Control-flow Enforcement Technology (CET) covers several related x86 processor 20 control-protection fault. IBT verifies indirect CALL/JMP targets are intended 22 Stack and Indirect Branch Tracking. Today in the 64-bit kernel, only userspace 34 To build a user shadow stack enabled kernel, Binutils v2.29 or LLVM v6 or later 45 from readelf/llvm-readelf output:: 47 readelf -n <application> | grep -a SHSTK 58 Elf features should be enabled by the loader using the below arch_prctl's. They 60 on a per-thread basis. The enablement status is inherited on clone, so if the [all …]
|
/linux/mm/damon/ |
H A D | lru_sort.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * DAMON-based LRU-lists Sorting 8 #define pr_fmt(fmt) "damon-lru-sort: " fmt 14 #include "modules-common.h" 26 * DAMON_LRU_SORT could do no real monitoring and LRU-lists sorting due to the 27 * watermarks-based activation condition. Refer to below descriptions for the 30 static bool enabled __read_mostly; 33 * Make DAMON_LRU_SORT reads the input parameters again, except ``enabled``. 37 * reads values of parametrs except ``enabled`` again. Once the re-reading is 39 * the re-reading, DAMON_LRU_SORT will be disabled. [all …]
|
/linux/kernel/sched/ |
H A D | idle.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * sched_idle_set_state - Record idle state for the current CPU. 29 cpu_idle_force_poll--; in cpu_idle_poll_ctrl() 104 * default_idle_call - Default CPU idle routine. 132 return -EBUSY; in call_cpuidle_s2idle() 145 dev->last_residency_ns = 0; in call_cpuidle() 147 return -EBUSY; in call_cpuidle() 153 * care of re-enabling the local interrupts in call_cpuidle() 159 * cpuidle_idle_call - the main idle function 175 * case, exit the function after re-enabling the local IRQ. in cpuidle_idle_call() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_dcb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013-2014 Chelsio Communications. All rights reserved. 15 "DCBx-CIN", 16 "DCBx-CEE 1.01", 17 "DCBx-IEEE", 36 struct port_dcb_info *dcb = &pi->dcb; in cxgb4_dcb_state_init() 37 int version_temp = dcb->dcb_version; in cxgb4_dcb_state_init() 40 dcb->state = CXGB4_DCB_STATE_START; in cxgb4_dcb_state_init() 42 dcb->dcb_version = version_temp; in cxgb4_dcb_state_init() 45 __func__, pi->port_id); in cxgb4_dcb_state_init() [all …]
|
/linux/tools/sched_ext/ |
H A D | README.md | 11 Some of the examples are performant, production-ready schedulers. That is, for 18 types of workloads or scenarios they're designed to accommodate, and whether or 19 not they're production ready. For more details on any of these schedulers, 47 non-trivial ones. 79 This is a large, auto-generated header file that contains all of the types 81 [BTF](https://docs.kernel.org/bpf/btf.html) (i.e. with the BTF-related Kconfig 108 bpf_printk("Task %s enabled in example scheduler", p->comm); 126 3. At `../../vmlinux` (i.e. at the root of the kernel tree where you're 129 4. `/boot/vmlinux-$(uname -r)` 133 the kernel you're currently running on. This means that if you're running on a [all …]
|
/linux/Documentation/networking/ |
H A D | ipvs-sysctl.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 IPvs-sysctl 10 am_droprate - INTEGER 16 amemthresh - INTEGER 22 enabled and the variable is automatically set to 2, otherwise 25 backup_only - BOOLEAN 26 - 0 - disabled (default) 27 - not 0 - enabled 32 conn_reuse_mode - INTEGER 33 1 - default [all …]
|
/linux/include/net/ |
H A D | netdev_queues.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * struct netdev_config - queue-related configuration for a netdev 61 * struct netdev_stat_ops - netdev ops for fine grained stats 67 * on entry (specifically they are *not* zero-initialized). Drivers should 72 * queues are queried by the per-queue callbacks. This means that per-queue 79 * is issued to collect the delta, and then a series of per-queue callbacks. 91 * the @get_base_stats and subsequent per-queue calls are performed 94 * Device drivers are encouraged to reset the per-queue statistics when 96 * per-queue statistics is currently to detect traffic imbalance. 115 * struct netdev_queue_mgmt_ops - netdev ops for queue management [all …]
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_uc.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2016-2019 Intel Corporation 28 struct drm_i915_private *i915 = uc_to_gt(uc)->i915; in uc_expand_default_options() 30 if (i915->params.enable_guc != -1) in uc_expand_default_options() 33 /* Don't enable GuC/HuC on pre-Gen12 */ in uc_expand_default_options() 35 i915->params.enable_guc = 0; in uc_expand_default_options() 41 i915->params.enable_guc = 0; in uc_expand_default_options() 47 i915->params.enable_guc = ENABLE_GUC_LOAD_HUC; in uc_expand_default_options() 52 i915->params.enable_guc = ENABLE_GUC_LOAD_HUC | ENABLE_GUC_SUBMISSION; in uc_expand_default_options() 63 ret = i915_inject_probe_error(gt->i915, -ENXIO); in __intel_uc_reset_hw() [all …]
|
H A D | intel_huc.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2016-2019 Intel Corporation 31 * - older platforms (from Gen9 to most Gen12s): the load is performed via DMA 33 * - DG2: load and authentication are both performed via GSC. 34 * - MTL and newer platforms: the load is performed via DMA (same as with 35 * not-DG2 older platforms), while the authentication is done in 2-steps, 36 * a first auth for clear-media workloads via GuC and a second one for all 43 * use-cases. 48 * See https://github.com/intel/media-driver for the latest details on HuC 59 * HuC-specific commands. [all …]
|
/linux/arch/arm/kernel/ |
H A D | entry-common.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/kernel/entry-common.S 14 #include <asm/unistd-oabi.h> 19 #include "entry-header.S" 37 * have tracing, context tracking and rseq debug disabled - the overheads 45 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing 60 * or rseq debug is enabled. As we will need to call out to some C functions, 70 /* do_rseq_syscall needs interrupts enabled. */ 75 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing 81 /* Slower path - fall through to work_pending */ [all …]
|
/linux/block/ |
H A D | blk-iolatency.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Block rq-qos base io controller 7 * - It's bio based, so the latency covers the whole block layer in addition to 9 * - We will throttle all IO that comes in here if we need to. 10 * - We use the mean latency over the 100ms window. This is because writes can 13 * - By default there's no throttling, we set the queue_depth to UINT_MAX so 14 * that we can have as many outstanding bio's as we're allowed to. Only at 21 * a group at the end of some other path if we're only configred at leaf level. 44 * number of IO's we're allowed to have in flight. This starts at (u64)-1 down 50 * REQ_META or REQ_SWAP. If we are already at qd == 1 and we're getting a lot [all …]
|
/linux/security/integrity/evm/ |
H A D | evm_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005-2010 IBM Corporation 41 .enabled = IS_ENABLED(CONFIG_SECURITY_SELINUX) 45 .enabled = IS_ENABLED(CONFIG_SECURITY_SMACK) 49 .enabled = IS_ENABLED(CONFIG_EVM_EXTRA_SMACK_XATTRS) 53 .enabled = IS_ENABLED(CONFIG_EVM_EXTRA_SMACK_XATTRS) 57 .enabled = IS_ENABLED(CONFIG_EVM_EXTRA_SMACK_XATTRS) 61 .enabled = IS_ENABLED(CONFIG_SECURITY_APPARMOR) 65 .enabled = IS_ENABLED(CONFIG_IMA_APPRAISE) 69 .enabled = true [all …]
|
/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_sriov.c | 1 // SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) 2 /* Copyright(c) 2015 - 2021 Intel Corporation */ 24 struct adf_accel_vf_info *vf_info = pf2vf_resp->vf_info; in adf_iov_send_resp() 25 struct adf_accel_dev *accel_dev = vf_info->accel_dev; in adf_iov_send_resp() 26 u32 vf_nr = vf_info->vf_nr; in adf_iov_send_resp() 29 mutex_lock(&vf_info->pfvf_mig_lock); in adf_iov_send_resp() 32 /* re-enable interrupt on PF from this VF */ in adf_iov_send_resp() 34 mutex_unlock(&vf_info->pfvf_mig_lock); in adf_iov_send_resp() 47 pf2vf_resp->vf_info = vf_info; in adf_schedule_vf2pf_handler() 48 INIT_WORK(&pf2vf_resp->pf2vf_resp_work, adf_iov_send_resp); in adf_schedule_vf2pf_handler() [all …]
|
/linux/arch/arm64/kernel/ |
H A D | proton-pack.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * https://developer.arm.com/support/arm-security-updates/speculative-processor-vulnerability 20 #include <linux/arm-smccc.h> 28 #include <asm/debug-monitors.h> 59 * themselves. Advertise what we're doing and be done with it. 72 * - Mitigated in hardware and advertised by ID_AA64PFR0_EL1.CSV2. 73 * - Mitigated in hardware and listed in our "safe list". 74 * - Mitigated in software by firmware. 75 * - Mitigated in software by a CPU-specific dance in the kernel and a 77 * - Vulnerable. [all …]
|
/linux/Documentation/virt/kvm/x86/ |
H A D | running-nested-guests.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 can be KVM-based or a different hypervisor). The straightforward 12 .----------------. .----------------. 17 |----------------'--'----------------| 22 .------------------------------------------------------. 25 |------------------------------------------------------| 27 '------------------------------------------------------' 31 - L0 – level-0; the bare metal host, running KVM 33 - L1 – level-1 guest; a VM running on L0; also called the "guest 36 - L2 – level-2 guest; a VM running on L1, this is the "nested guest" [all …]
|
/linux/arch/arm/include/debug/ |
H A D | samsung.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 * most widely re-used */ 54 tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? 56 @ FIFO enabled... 78 tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? 80 @ FIFO enabled...
|