/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | adi,max31827.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch 10 - Daniel Matyas <daniel.matyas@analog.com> 13 Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch with 15 https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31827-MAX31829.pdf 20 - const: adi,max31827 21 - items: 22 - enum: [all …]
|
/linux/tools/testing/selftests/ftrace/test.d/kprobe/ |
H A D | kprobe_args_user.tc | 2 # SPDX-License-Identifier: GPL-2.0 3 # description: Kprobe event user-memory access 6 grep -A10 "fetcharg:" README | grep -q 'ustring' || exit_unsupported 7 grep -A10 "fetcharg:" README | grep -q '\[u\]<offset>' || exit_unsupported 9 :;: "user-memory access syntax and ustring working on user memory";: 16 grep -q 'path=+0($arg2):ustring path2=+u0($arg2):string' 23 grep myevent trace | grep -q 'path="/dev/null" path2="/dev/null"' 25 :;: "user-memory access syntax and ustring not working with kernel memory";: 29 ln -s foo $TMPDIR/bar 32 grep myevent trace | grep -q 'path=(fault) path2=(fault)'
|
/linux/kernel/futex/ |
H A D | pi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 if (likely(current->pi_state_cache)) in refill_pi_state_cache() 23 return -ENOMEM; in refill_pi_state_cache() 25 INIT_LIST_HEAD(&pi_state->list); in refill_pi_state_cache() 27 pi_state->owner = NULL; in refill_pi_state_cache() 28 refcount_set(&pi_state->refcoun in refill_pi_state_cache() 671 __fixup_pi_state_owner(u32 __user * uaddr,struct futex_q * q,struct task_struct * argowner) __fixup_pi_state_owner() argument 843 fixup_pi_state_owner(u32 __user * uaddr,struct futex_q * q,struct task_struct * argowner) fixup_pi_state_owner() argument 872 fixup_pi_owner(u32 __user * uaddr,struct futex_q * q,int locked) fixup_pi_owner() argument 924 struct futex_q q = futex_q_init; futex_lock_pi() local [all...] |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 * PI-futex support started by Ingo Molnar and Thomas Gleixner 23 * Requeue-PI support by Darren Hart <dvhltc@us.ibm.com> 29 * Kirkwood for proof-of-concept implementation. 42 #include <linux/fault-inject.h> 78 * Fault injections for futexes. 117 debugfs_create_bool("ignore-private", mode, dir, in fail_futex_debugfs() 136 * futexes -- see comment with union futex_key. in futex_key_is_private() 138 return !(key->both.offset & (FUT_OFF_INODE | FUT_OFF_MMSHARED)); in futex_key_is_private() 143 if (fph->immutable) in futex_private_hash_get() [all …]
|
/linux/tools/testing/selftests/powerpc/mm/ |
H A D | stress_code_patching.sh | 2 # SPDX-License-Identifier: GPL-2.0-or-later 7 if [ ! -e "$DEBUFS_DIR" ] 13 if [ ! -e "$DEBUFS_DIR/tracing/current_tracer" ] 22 if grep -q "FUNCTION TRACING IS CORRUPTED" "$DEBUFS_DIR/tracing/trace" 24 echo "FAILED: Ftrace already dead. Probably due to a spurious fault" 1>&2 28 dmesg -C 31 while [ `date +%s` -lt $END_TIME ] 35 if dmesg | grep -q 'ftrace bug' 42 if dmesg | grep -q 'ftrace bug'
|
/linux/tools/testing/selftests/ftrace/test.d/dynevent/ |
H A D | add_remove_eprobe.tc | 2 # SPDX-License-Identifier: GPL-2.0 3 # description: Generic dynamic event - add/remove eprobe events 4 # requires: dynamic_events events/syscalls/sys_enter_openat "<attached-group>.<attached-event> [<ar… 17 grep -q "$EPROBE" dynamic_events 18 test -d events/eprobes/$EPROBE 24 content=`grep '^ *ls-' trace | grep 'file='` 25 nocontent=`grep '^ *ls-' trace | grep 'file=' | grep -v -e '"/' -e '"."' -e '(fault)' ` || true 27 if [ -z "$content" ]; then 31 if [ ! -z "$nocontent" ]; then 35 echo "-:$EPROBE" >> dynamic_events [all …]
|
/linux/tools/testing/selftests/ublk/ |
H A D | fault_inject.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Fault injection ublk target. Hack this up however you like for 16 const struct ublksrv_ctrl_dev_info *info = &dev->dev_info; in ublk_fault_inject_tgt_init() 19 if (ctx->auto_zc_fallback) { in ublk_fault_inject_tgt_init() 21 return -EINVAL; in ublk_fault_inject_tgt_init() 24 dev->tgt.dev_size = dev_size; in ublk_fault_inject_tgt_init() 25 dev->tgt.params = (struct ublk_params) { in ublk_fault_inject_tgt_init() 32 .max_sectors = info->max_io_buf_bytes >> 9, in ublk_fault_inject_tgt_init() 37 dev->private_data = (void *)(unsigned long)(ctx->fault_inject.delay_us * 1000); in ublk_fault_inject_tgt_init() 41 static int ublk_fault_inject_queue_io(struct ublk_queue *q, int tag) in ublk_fault_inject_queue_io() argument [all …]
|
/linux/block/ |
H A D | blk-timeout.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/fault-inject.h> 11 #include "blk-mq.h" 23 bool __blk_should_fake_timeout(struct request_queue *q) in __blk_should_fake_timeout() argument 43 int set = test_bit(QUEUE_FLAG_FAIL_IO, &disk->queue->queue_flags); in part_timeout_show() 55 struct request_queue *q = disk->queue; in part_timeout_store() local 60 blk_queue_flag_set(QUEUE_FLAG_FAIL_IO, q); in part_timeout_store() 62 blk_queue_flag_clear(QUEUE_FLAG_FAIL_IO, q); in part_timeout_store() 71 * blk_abort_request - Request recovery for the specified command 75 * request by deleting the timer and calling the q's timeout function. [all …]
|
/linux/drivers/nvme/host/ |
H A D | fault_inject.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fault injection support for nvme. 13 /* optional fault injection attributes boot time option: 23 struct fault_attr *attr = &fault_inj->attr; in nvme_fault_inject_init() 25 /* set default fault injection attribute */ in nvme_fault_inject_init() 43 fault_inj->parent = parent; in nvme_fault_inject_init() 46 fault_inj->status = NVME_SC_INVALID_OPCODE; in nvme_fault_inject_init() 47 fault_inj->dont_retry = true; in nvme_fault_inject_init() 48 debugfs_create_x16("status", 0600, dir, &fault_inj->status); in nvme_fault_inject_init() 49 debugfs_create_bool("dont_retry", 0600, dir, &fault_inj->dont_retry); in nvme_fault_inject_init() [all …]
|
/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pci.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2019 Intel Corporation. */ 15 * fm10k_pci_tbl - PCI Device ID Table 35 struct fm10k_intfc *interface = hw->back; in fm10k_read_pci_cfg_word() 38 if (FM10K_REMOVED(hw->hw_addr)) in fm10k_read_pci_cfg_word() 41 pci_read_config_word(interface->pdev, reg, &value); in fm10k_read_pci_cfg_word() 50 u32 __iomem *hw_addr = READ_ONCE(hw->hw_addr); in fm10k_read_reg() 58 struct fm10k_intfc *interface = hw->back; in fm10k_read_reg() 59 struct net_device *netdev = interface->netdev; in fm10k_read_reg() 61 hw->hw_addr = NULL; in fm10k_read_reg() [all …]
|
H A D | fm10k_type.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2013 - 2019 Intel Corporation. */ 53 /* PCIe MSI-X Capability info */ 60 /* PCIe SR-IOV Info */ 64 #define FM10K_ERR_PARAM -2 65 #define FM10K_ERR_NO_RESOURCES -3 66 #define FM10K_ERR_REQUESTS_PENDING -4 67 #define FM10K_ERR_RESET_REQUESTED -5 68 #define FM10K_ERR_DMA_PENDING -6 69 #define FM10K_ERR_RESET_FAILED -7 [all …]
|
/linux/net/sched/ |
H A D | sch_plug.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * based fault-tolerance to ensure that the checkpoint from which a system 14 * Consider for e.g. Remus - a Virtual Machine checkpointing system, 47 * ------------------+--------------------+----------------> 51 * ----------------->|<--------+--------->|+---------------> 59 * a pass-through queue for newly arriving packets. 90 struct plug_sched_data *q = qdisc_priv(sch); in plug_enqueue() local 92 if (likely(sch->qstats.backlog + skb->len <= q->limit)) { in plug_enqueue() 93 if (!q->unplug_indefinite) in plug_enqueue() 94 q->pkts_current_epoch++; in plug_enqueue() [all …]
|
/linux/drivers/iommu/riscv/ |
H A D | iommu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * IOMMU API for RISC-V IOMMU implementations. 5 * Copyright © 2022-2024 Rivos Inc. 6 * Copyright © 2023 FORTH-ICS/CARV 13 #define pr_fmt(fmt) "riscv-iommu: " fmt 23 #include "../iommu-pages.h" 24 #include "iommu-bits.h" 37 /* RISC-V IOMMU PPN <> PHYS address conversions, PHYS <=> PPN[53:10] */ 38 #define phys_to_ppn(pa) (((pa) >> 2) & (((1ULL << 44) - 1) << 10)) 39 #define ppn_to_phys(pn) (((pn) << 2) & (((1ULL << 44) - 1) << 12)) [all …]
|
/linux/tools/perf/tests/shell/ |
H A D | record_bpf_filter.sh | 3 # SPDX-License-Identifier: GPL-2.0 5 set -e 11 rm -f "${perfdata}" 12 rm -f "${perfdata}".old 13 trap - EXIT TERM INT 23 echo "Checking BPF-filter privilege" 25 if ! perf record -e task-cloc [all...] |
/linux/drivers/hwmon/ |
H A D | max31827.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * max31827.c - Support for Maxim Low-Power Switch 130 mutex_lock(&st->lock); in shutdown_write() 132 if (!st->enable) { in shutdown_write() 134 ret = regmap_write(st->regmap, reg, val); in shutdown_write() 136 ret = regmap_update_bits(st->regmap, reg, mask, val); in shutdown_write() 140 ret = regmap_read(st->regmap, MAX31827_CONFIGURATION_REG, &cfg); in shutdown_write() 147 ret = regmap_write(st->regmap, MAX31827_CONFIGURATION_REG, cfg); in shutdown_write() 152 ret = regmap_write(st->regmap, reg, val); in shutdown_write() 154 ret = regmap_update_bits(st->regmap, reg, mask, val); in shutdown_write() [all …]
|
/linux/tools/memory-model/Documentation/ |
H A D | control-dependencies.txt | 12 Therefore, a load-load control dependency will not preserve ordering 15 q = READ_ONCE(a); 16 if (q) 25 q = READ_ONCE(a); 26 if (q) { 32 (usually) guaranteed for load-store control dependencies, as in the 35 q = READ_ONCE(a); 36 if (q) 45 by a store, and this compiler-generated load would not be ordered by 49 "a" is always non-zero, it would be well within its rights to optimize [all …]
|
/linux/arch/x86/kvm/mmu/ |
H A D | mmutrace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 __entry->mmu_valid_gen = sp->mmu_valid_gen; \ 20 __entry->gfn = sp->gfn; \ 21 __entry->role = sp->role.word; \ 22 __entry->root_count = sp->root_count; \ 23 __entry->unsync = sp->unsync; 28 "---", "--x", "w--", "w-x", "-u-", "-ux", "wu-", "wux" \ 32 role.word = __entry->role; \ 34 trace_seq_printf(p, "sp gen %u gfn %llx l%u %u-byte q%u%s %s%s" \ 36 __entry->mmu_valid_gen, \ [all …]
|
/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-opp-romulus.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 3 #include "aspeed-g5.dtsi" 4 #include <dt-bindings/gpio/aspeed-gpio.h> 8 compatible = "ibm,romulus-bmc", "aspeed,ast2500"; 11 stdout-path = &uart5; 19 reserved-memory { 20 #address-cells = <1>; 21 #size-cells = <1>; 25 no-map; [all …]
|
/linux/arch/parisc/kernel/ |
H A D | real2.S | 14 #include <asm/asm-offsets.h> 32 /************************ 32-bit real-mode calls ***********************/ 46 STREG %rp, -RP_OFFSET(%sp) /* save RP */ 50 STREG %r27, -1*REG_SZ(%sp) 51 STREG %r29, -2*REG_SZ(%sp) 53 STREG %sp, -REG_SZ(%arg0) /* save SP on real-mode stack */ 54 copy %arg0, %sp /* adopt the real-mode SP */ 60 /* 32-bit calling convention passes first 4 args in registers */ 62 ldw -8(%arg1), %arg2 63 ldw -12(%arg1), %arg3 [all …]
|
H A D | hpmc.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Copyright (C) 1999 Hewlett-Packard (Frank Rowand) 7 * Copyright (C) 2000 Hewlett-Packard (John Marvin) 25 * returning to the fault handler if things are really 47 #define hpmc_stack toc_stack /* re-use the TOC stack */ 122 * So turn on the Q bit and turn off the M bit. 125 ldi PSW_SM_Q,%r4 /* PSW Q on, PSW M off */ 151 stw %r4,-52(sp) 166 stw %r0,-52(sp) /* reserved */ 174 /* FIXME? Check for errors from PDC_IO (-1 might be OK) */ [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_vm_types.h | 1 /* SPDX-License-Identifier: MIT */ 12 #include <linux/dma-resv.h> 49 /** struct xe_userptr - User pointer */ 65 /** @unmap_mutex: Mutex protecting dma-unmapping */ 69 * write: vm->userptr.notifier_lock in read mode and vm->resv held. 70 * read: vm->userptr.notifier_lock in write mode or vm->resv held. 73 /** @mapped: Whether the @sgt sg-table is dma-mapped. Protected by @unmap_mutex. */ 111 * protected by vm->lock, vm->resv and for userptrs, 112 * vm->userptr.notifier_lock for writing. Needs either for reading, 113 * but if reading is done under the vm->lock only, it needs to be held [all …]
|
H A D | xe_guc_submit.c | 1 // SPDX-License-Identifier: MIT 12 #include <linux/dma-fence-array.h> 49 exec_queue_to_guc(struct xe_exec_queue *q) in exec_queue_to_guc() argument 51 return &q->gt->uc.guc; in exec_queue_to_guc() 72 static bool exec_queue_registered(struct xe_exec_queue *q) in exec_queue_registered() argument 74 return atomic_read(&q->guc->state) & EXEC_QUEUE_STATE_REGISTERED; in exec_queue_registered() 77 static void set_exec_queue_registered(struct xe_exec_queue *q) in set_exec_queue_registered() argument 79 atomic_or(EXEC_QUEUE_STATE_REGISTERED, &q->guc->state); in set_exec_queue_registered() 82 static void clear_exec_queue_registered(struct xe_exec_queue *q) in clear_exec_queue_registered() argument 84 atomic_and(~EXEC_QUEUE_STATE_REGISTERED, &q->guc->state); in clear_exec_queue_registered() [all …]
|
/linux/Documentation/arch/x86/ |
H A D | exception-tables.rst | 1 .. SPDX-License-Identifier: GPL-2.0 27 hardware present in every Linux-capable CPU handle this test. 32 accessible, the CPU generates a page fault exception and calls the 33 page fault handler:: 37 in arch/x86/mm/fault.c. The parameters on the stack are set up by 44 space of the process, the fault probably occurred, because the page 51 (i.e. regs->eip) to find an address where the execution can continue 52 (fixup). If this search is successful, the fault handler modifies the 53 return address (again regs->eip) and returns. The execution will 73 long __gu_err = - 14 , __gu_val = 0; [all …]
|
/linux/mm/ |
H A D | filemap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1994-1999 Linus Torvalds 30 #include <linux/error-injection.h> 33 #include <linux/backing-dev.h> 73 * finished 'unifying' the page and buffer cache and SMP-threaded the 74 * page-cache, 21.05.1999, Ingo Molnar <mingo@redhat.com> 76 * SMP-threaded pagemap-LRU 1999, Andrea Arcangeli <andrea@suse.de> 82 * ->i_mmap_rwsem (truncate_pagecache) 83 * ->private_lock (__free_pte->block_dirty_folio) 84 * ->swap_lock (exclusive_swap_page, others) [all …]
|
/linux/scripts/ |
H A D | check_extable.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 file ${obj} | grep -q ELF || (echo "${obj} is not an ELF file." 1>&2 ; exit 0) 10 objdump -hj __ex_table ${obj} 2> /dev/null > /dev/null 11 [ $? -ne 0 ] && exit 0 15 suspicious_relocs=$(objdump -rj __ex_table ${obj} | tail -n +6 | 16 grep -v $(eval echo -e{${white_list}}) | awk '{print $3}') 19 [ -z "${suspicious_relocs}" ] && exit 0 25 # you're expecting this section to contain code which can fault (i.e. the 33 …eval $(objdump -t ${obj} | grep ${1} | sed 's/\([0-9a-f]\+\) .\{7\} \([^ \t]\+\).*/section="\2"; s… 42 eval $(echo $reloc | sed 's/\([^+]\+\)+\?\(0x[0-9a-f]\+\)\?/symbol="\1"; symbol_offset="\2"/') [all …]
|