Home
last modified time | relevance | path

Searched +full:fault +full:- +full:q (Results 1 – 25 of 164) sorted by relevance

1234567

/linux-6.12.1/Documentation/devicetree/bindings/hwmon/
Dadi,max31827.yaml1 # 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-6.12.1/tools/testing/selftests/ftrace/test.d/kprobe/
Dkprobe_args_user.tc2 # 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-6.12.1/drivers/accel/ivpu/
Divpu_mmu.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2020-2024 Intel Corporation
76 #define IVPU_MMU_Q_IDX_MASK (IVPU_MMU_Q_COUNT - 1)
253 return "Transaction marks non-substream disabled"; in ivpu_mmu_event_to_str()
265 return "Translation fault"; in ivpu_mmu_event_to_str()
267 return " Output address caused address size fault"; in ivpu_mmu_event_to_str()
269 return "Access flag fault"; in ivpu_mmu_event_to_str()
271 return "Permission fault occurred on page access"; in ivpu_mmu_event_to_str()
337 struct ivpu_mmu_info *mmu = vdev->mmu; in ivpu_mmu_cdtab_alloc()
338 struct ivpu_mmu_cdtab *cdtab = &mmu->cdtab; in ivpu_mmu_cdtab_alloc()
[all …]
/linux-6.12.1/kernel/futex/
Dcore.c1 // 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.
40 #include <linux/fault-inject.h>
60 * Fault injections for futexes.
99 debugfs_create_bool("ignore-private", mode, dir, in fail_futex_debugfs()
111 * futex_hash - Return the hash bucket in the global hash
120 key->both.offset); in futex_hash()
122 return &futex_queues[hash & (futex_hashsize - 1)]; in futex_hash()
[all …]
Dpi.c1 // 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->refcount, 1); in refill_pi_state_cache()
29 pi_state->key = FUTEX_KEY_INIT; in refill_pi_state_cache()
31 current->pi_state_cache = pi_state; in refill_pi_state_cache()
38 struct futex_pi_state *pi_state = current->pi_state_cache; in alloc_pi_state()
41 current->pi_state_cache = NULL; in alloc_pi_state()
[all …]
/linux-6.12.1/tools/testing/selftests/powerpc/mm/
Dstress_code_patching.sh2 # 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-6.12.1/tools/testing/selftests/ftrace/test.d/dynevent/
Dadd_remove_eprobe.tc2 # 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-6.12.1/drivers/nvme/host/
Dfault_inject.c1 // 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-6.12.1/block/
Dblk-timeout.c1 // 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-6.12.1/arch/s390/include/asm/
Dprocessor.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 * Derived from "include/asm-i386/processor.h"
34 #include <asm/fpu-types.h>
59 return (struct pcpu *)(get_lowcore()->pcpu); in this_pcpu()
64 this_pcpu()->flags |= (1UL << flag); in set_cpu_flag()
69 this_pcpu()->flags &= ~(1UL << flag); in clear_cpu_flag()
74 return this_pcpu()->flags & (1UL << flag); in test_cpu_flag()
106 asm volatile("stidp %0" : "=Q" (*ptr)); in get_cpu_id()
113 asm volatile("stpt %[timer]" : [timer] "=Q" (timer)); in get_cpu_timer()
134 #define TASK_SIZE_MAX (-PAGE_SIZE)
[all …]
/linux-6.12.1/arch/powerpc/kvm/
Dbook3s_xive_native.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2019, IBM Corporation.
6 #define pr_fmt(fmt) "xive-kvm: " fmt
21 #include <asm/xive-regs.h>
36 * load operation, so there is no need to enforce load-after-store in xive_vm_esb_load()
40 val = in_be64(xd->eoi_mmio + offset); in xive_vm_esb_load()
46 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu; in kvmppc_xive_native_cleanup_queue()
47 struct xive_q *q = &xc->queues[prio]; in kvmppc_xive_native_cleanup_queue() local
49 xive_native_disable_queue(xc->vp_id, q, prio); in kvmppc_xive_native_cleanup_queue()
50 if (q->qpage) { in kvmppc_xive_native_cleanup_queue()
[all …]
/linux-6.12.1/net/sched/
Dsch_plug.c1 // 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-6.12.1/drivers/net/ethernet/intel/fm10k/
Dfm10k_pci.c1 // 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 …]
Dfm10k_pf.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2019 Intel Corporation. */
9 * fm10k_reset_hw_pf - PF hardware reset
39 hw->mac.reset_while_pending++; in fm10k_reset_hw_pf()
68 * fm10k_is_ari_hierarchy_pf - Indicate ARI hierarchy support
81 * fm10k_init_hw_pf - PF hardware initialization
107 fm10k_write_reg(hw, FM10K_ITR2(i), i - 1); in fm10k_init_hw_pf()
114 (hw->mac.default_vid << FM10K_TXQCTL_VID_SHIFT); in fm10k_init_hw_pf()
139 switch (hw->bus.speed) { in fm10k_init_hw_pf()
142 hw->mac.itr_scale = FM10K_TDLEN_ITR_SCALE_GEN1; in fm10k_init_hw_pf()
[all …]
/linux-6.12.1/tools/perf/tests/shell/
Drecord_bpf_filter.sh3 # 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-clock --filter 'period > 1' \
26 -o /dev/null --quiet true 2>&1
28 if [ "$(id -u)" != 0 ]
30 echo "try 'sudo perf record --setup-filter pin' first."
[all …]
/linux-6.12.1/tools/memory-model/Documentation/
Dcontrol-dependencies.txt12 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-6.12.1/drivers/hwmon/
Dmax31827.c1 // 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-6.12.1/arch/x86/kvm/mmu/
Dmmutrace.h1 /* 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-6.12.1/arch/arm/boot/dts/aspeed/
Daspeed-bmc-opp-romulus.dts1 // 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-6.12.1/arch/parisc/kernel/
Dreal2.S14 #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 …]
Dhpmc.S1 /* 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-6.12.1/Documentation/arch/x86/
Dexception-tables.rst1 .. 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-6.12.1/scripts/
Dcheck_extable.sh2 # 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 …]
/linux-6.12.1/mm/
Dfilemap.c1 // 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>
72 * finished 'unifying' the page and buffer cache and SMP-threaded the
73 * page-cache, 21.05.1999, Ingo Molnar <mingo@redhat.com>
75 * SMP-threaded pagemap-LRU 1999, Andrea Arcangeli <andrea@suse.de>
81 * ->i_mmap_rwsem (truncate_pagecache)
82 * ->private_lock (__free_pte->block_dirty_folio)
83 * ->swap_lock (exclusive_swap_page, others)
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/amdkfd/
Dkfd_priv.h1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
3 * Copyright 2014-2022 Advanced Micro Devices, Inc.
60 * BITS[63:62] - Encode MMAP type
61 * BITS[61:46] - Encode gpu_id. To identify to which GPU the offset belongs to
62 * BITS[45:0] - MMAP offset value
75 #define KFD_MMAP_GPU_ID_MASK (((1ULL << KFD_GPU_ID_HASH_WIDTH) - 1) \
100 * Size of the per-process TBA+TMA buffer: 2 pages
103 * chunk is used as TMA for user-mode trap handler setup in daisy-chain mode.
121 * same SDMA engine on SOC15, which has 8-byte doorbells for SDMA.
122 * 512 8-byte doorbell distance (i.e. one page away) ensures that SDMA RLC
[all …]

1234567