Home
last modified time | relevance | path

Searched full:fault (Results 1 – 25 of 1810) sorted by relevance

12345678910>>...73

/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/fault/
Dbase.c30 struct nvkm_fault *fault = container_of(event, typeof(*fault), event); in nvkm_fault_ntfy_fini() local
31 fault->func->buffer.intr(fault->buffer[index], false); in nvkm_fault_ntfy_fini()
37 struct nvkm_fault *fault = container_of(event, typeof(*fault), event); in nvkm_fault_ntfy_init() local
38 fault->func->buffer.intr(fault->buffer[index], true); in nvkm_fault_ntfy_init()
65 struct nvkm_fault *fault = nvkm_fault(subdev); in nvkm_fault_intr() local
66 return fault->func->intr(fault); in nvkm_fault_intr()
72 struct nvkm_fault *fault = nvkm_fault(subdev); in nvkm_fault_fini() local
73 if (fault->func->fini) in nvkm_fault_fini()
74 fault->func->fini(fault); in nvkm_fault_fini()
81 struct nvkm_fault *fault = nvkm_fault(subdev); in nvkm_fault_init() local
[all …]
Dgv100.c33 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_process()
42 const u32 base = get * buffer->fault->func->buffer.entry_size; in gv100_fault_buffer_process()
76 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_intr()
87 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_fini()
95 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_init()
107 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_info()
120 struct nvkm_fault *fault = container_of(notify, typeof(*fault), nrpfb); in gv100_fault_ntfy_nrpfb() local
121 gv100_fault_buffer_process(fault->buffer[0]); in gv100_fault_ntfy_nrpfb()
126 gv100_fault_intr_fault(struct nvkm_fault *fault) in gv100_fault_intr_fault() argument
128 struct nvkm_subdev *subdev = &fault->subdev; in gv100_fault_intr_fault()
[all …]
Dtu102.c38 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_intr()
46 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_fini()
49 /* Disable the fault interrupts */ in tu102_fault_buffer_fini()
59 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_init()
62 /* Enable the fault interrupts */ in tu102_fault_buffer_init()
75 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_info()
86 tu102_fault_intr_fault(struct nvkm_fault *fault) in tu102_fault_intr_fault() argument
88 struct nvkm_subdev *subdev = &fault->subdev; in tu102_fault_intr_fault()
112 tu102_fault_intr(struct nvkm_fault *fault) in tu102_fault_intr() argument
114 struct nvkm_subdev *subdev = &fault->subdev; in tu102_fault_intr()
[all …]
/Linux-v6.1/drivers/infiniband/hw/hfi1/
Dfault.c13 #include "fault.h"
69 if (!ibd->fault->n_rxfaults[i] && !ibd->fault->n_txfaults[i]) in _fault_stats_seq_show()
74 (unsigned long long)ibd->fault->n_rxfaults[i], in _fault_stats_seq_show()
75 (unsigned long long)ibd->fault->n_txfaults[i]); in _fault_stats_seq_show()
96 struct fault *fault = file->private_data; in fault_opcodes_write() local
138 bitmap_zero(fault->opcodes, sizeof(fault->opcodes) * in fault_opcodes_write()
148 clear_bit(i, fault->opcodes); in fault_opcodes_write()
150 set_bit(i, fault->opcodes); in fault_opcodes_write()
170 struct fault *fault = file->private_data; in fault_opcodes_read() local
171 size_t bitsize = sizeof(fault->opcodes) * BITS_PER_BYTE; in fault_opcodes_read()
[all …]
/Linux-v6.1/arch/powerpc/mm/
Dfault.c6 * Derived from "arch/i386/mm/fault.c"
111 * 5. T1 : enters fault handler, takes mmap_lock, etc... in bad_access_pkey()
138 vm_fault_t fault) in do_sigbus() argument
145 if (fault & (VM_FAULT_HWPOISON|VM_FAULT_HWPOISON_LARGE)) { in do_sigbus()
148 pr_err("MCE: Killing %s:%d due to hardware memory corruption fault at %lx\n", in do_sigbus()
151 if (fault & VM_FAULT_HWPOISON_LARGE) in do_sigbus()
152 lsb = hstate_index_to_shift(VM_FAULT_GET_HINDEX(fault)); in do_sigbus()
153 if (fault & VM_FAULT_HWPOISON) in do_sigbus()
166 vm_fault_t fault) in mm_fault_error() argument
169 * Kernel page fault interrupted by SIGKILL. We have no reason to in mm_fault_error()
[all …]
/Linux-v6.1/arch/powerpc/platforms/powernv/
Dvas-fault.c3 * VAS Fault handling.
21 * The maximum FIFO size for fault window can be 8MB
23 * instance will be having fault window.
35 pr_err("Fault fifo size %d, Max crbs %d\n", vinst->fault_fifo_size, in dump_fifo()
39 pr_err("Fault FIFO Dump:\n"); in dump_fifo()
47 * Process valid CRBs in fault FIFO.
50 * request buffers, raises interrupt on the CPU to handle the fault.
51 * It takes credit on fault window, updates nx_fault_stamp in CRB with
52 * the following information and pastes CRB in fault FIFO.
55 * fault_storage_addr - fault address
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/
Dnouveau_svm.c65 u8 fault; member
67 } **fault; member
162 * page fault) and maybe some other commands. in nouveau_svmm_bind()
381 /* Issue fault replay for GPU to retry accesses that faulted previously. */
392 /* Cancel a replayable fault that could not be handled.
394 * Cancelling the fault will trigger recovery to reset the engine
414 struct nouveau_svm_fault *fault) in nouveau_svm_fault_cancel_fault() argument
416 nouveau_svm_fault_cancel(svm, fault->inst, in nouveau_svm_fault_cancel_fault()
417 fault->hub, in nouveau_svm_fault_cancel_fault()
418 fault->gpc, in nouveau_svm_fault_cancel_fault()
[all …]
/Linux-v6.1/drivers/iommu/
Dio-pgfault.c17 * struct iopf_queue - IO Page Fault queue
18 * @wq: the fault workqueue
29 * struct iopf_device_param - IO Page Fault data attached to a device
44 struct iommu_fault fault; member
60 .pasid = iopf->fault.prm.pasid, in iopf_complete_group()
61 .grpid = iopf->fault.prm.grpid, in iopf_complete_group()
65 if ((iopf->fault.prm.flags & IOMMU_FAULT_PAGE_REQUEST_PASID_VALID) && in iopf_complete_group()
66 (iopf->fault.prm.flags & IOMMU_FAULT_PAGE_RESPONSE_NEEDS_PASID)) in iopf_complete_group()
80 struct iommu_fault_page_request *prm = &iopf->fault.prm; in iopf_handle_single()
114 /* Access fault */ in iopf_handle_single()
[all …]
/Linux-v6.1/drivers/iommu/amd/
Diommu_v2.c67 struct fault { struct
425 static void handle_fault_error(struct fault *fault) in handle_fault_error() argument
429 if (!fault->dev_state->inv_ppr_cb) { in handle_fault_error()
430 set_pri_tag_status(fault->state, fault->tag, PPR_INVALID); in handle_fault_error()
434 status = fault->dev_state->inv_ppr_cb(fault->dev_state->pdev, in handle_fault_error()
435 fault->pasid, in handle_fault_error()
436 fault->address, in handle_fault_error()
437 fault->flags); in handle_fault_error()
440 set_pri_tag_status(fault->state, fault->tag, PPR_SUCCESS); in handle_fault_error()
443 set_pri_tag_status(fault->state, fault->tag, PPR_INVALID); in handle_fault_error()
[all …]
/Linux-v6.1/arch/microblaze/mm/
Dfault.c2 * arch/microblaze/mm/fault.c
6 * Derived from "arch/ppc/mm/fault.c"
9 * Derived from "arch/i386/mm/fault.c"
71 /* Are we prepared to handle this fault? */ in bad_page_fault()
83 * The error_code parameter is ESR for a data fault,
84 * 0 for an instruction fault.
93 vm_fault_t fault; in do_page_fault() local
115 pr_emerg("Page fault in user mode with faulthandler_disabled(), mm = %p\n", in do_page_fault()
119 die("Weird page fault", regs, SIGSEGV); in do_page_fault()
130 * erroneous fault occurring in a code path which already holds mmap_lock in do_page_fault()
[all …]
/Linux-v6.1/arch/arm64/mm/
Dfault.c3 * Based on arch/arm/mm/fault.c
278 * If we now have a valid translation, treat the translation fault as in is_spurious_el1_translation_fault()
285 * If we got a different type of fault from the AT instruction, in is_spurious_el1_translation_fault()
286 * treat the translation fault as spurious. in is_spurious_el1_translation_fault()
336 * tag fault. in do_tag_recovery()
362 * Are we prepared to handle this kernel fault? in __do_kernel_fault()
369 "Ignoring spurious kernel translation fault at virtual address %016lx\n", addr)) in __do_kernel_fault()
406 * an alignment fault not caused by the memory type would take in set_thread_esr()
407 * precedence over translation fault for a real access to empty in set_thread_esr()
408 * space. Unfortunately we can't easily distinguish "alignment fault in set_thread_esr()
[all …]
/Linux-v6.1/Documentation/fault-injection/
Dfault-injection.rst2 Fault injection capabilities infrastructure
8 Available fault injection capabilities
25 injects futex deadlock and uaddr fault errors.
48 - NVMe fault injection
56 Configure fault-injection capabilities behavior
62 fault-inject-debugfs kernel module provides some debugfs entries for runtime
63 configuration of fault-injection capabilities.
103 to debug the problems revealed by fault injection.
226 that the fault setup with a previous write to this file was injected.
227 A positive integer N indicates that the fault wasn't yet injected.
[all …]
/Linux-v6.1/arch/arm/mm/
Dfsr-3level.c7 { do_bad, SIGBUS, 0, "reserved translation fault" },
8 { do_translation_fault, SIGSEGV, SEGV_MAPERR, "level 1 translation fault" },
9 { do_translation_fault, SIGSEGV, SEGV_MAPERR, "level 2 translation fault" },
10 { do_page_fault, SIGSEGV, SEGV_MAPERR, "level 3 translation fault" },
11 { do_bad, SIGBUS, 0, "reserved access flag fault" },
12 { do_bad, SIGSEGV, SEGV_ACCERR, "level 1 access flag fault" },
13 { do_page_fault, SIGSEGV, SEGV_ACCERR, "level 2 access flag fault" },
14 { do_page_fault, SIGSEGV, SEGV_ACCERR, "level 3 access flag fault" },
15 { do_bad, SIGBUS, 0, "reserved permission fault" },
16 { do_bad, SIGSEGV, SEGV_ACCERR, "level 1 permission fault" },
[all …]
Dfsr-2level.c12 { do_translation_fault, SIGSEGV, SEGV_MAPERR, "section translation fault" },
14 { do_page_fault, SIGSEGV, SEGV_MAPERR, "page translation fault" },
16 { do_bad, SIGSEGV, SEGV_ACCERR, "section domain fault" },
18 { do_bad, SIGSEGV, SEGV_ACCERR, "page domain fault" },
20 { do_sect_fault, SIGSEGV, SEGV_ACCERR, "section permission fault" },
22 { do_page_fault, SIGSEGV, SEGV_ACCERR, "page permission fault" },
50 { do_bad, SIGSEGV, SEGV_ACCERR, "section access flag fault" },
52 { do_translation_fault, SIGSEGV, SEGV_MAPERR, "section translation fault" },
53 { do_bad, SIGSEGV, SEGV_ACCERR, "page access flag fault" },
54 { do_page_fault, SIGSEGV, SEGV_MAPERR, "page translation fault" },
[all …]
/Linux-v6.1/include/uapi/linux/
Diommu.h16 /* Generic fault types, can be expanded IRQ remapping fault */
18 IOMMU_FAULT_DMA_UNRECOV = 1, /* unrecoverable fault */
19 IOMMU_FAULT_PAGE_REQ, /* page request fault */
45 * actual translation fault
55 /* Output address of a translation stage caused Address Size fault */
60 * struct iommu_fault_unrecoverable - Unrecoverable fault data
61 * @reason: reason of the fault, from &enum iommu_fault_reason
62 * @flags: parameters of this fault (IOMMU_FAULT_UNRECOV_* values)
108 * struct iommu_fault - Generic fault data
109 * @type: fault type from &enum iommu_fault_type
[all …]
/Linux-v6.1/arch/m68k/mm/
Dfault.c3 * linux/arch/m68k/mm/fault.c
62 * bit 0 == 0 means no page found, 1 means protection fault
73 vm_fault_t fault; in do_page_fault() local
76 pr_debug("do page fault:\nregs->sr=%#x, regs->pc=%#lx, address=%#lx, %ld, %p\n", in do_page_fault()
81 * context, we must not take the fault.. in do_page_fault()
133 * If for any reason at all we couldn't handle the fault, in do_page_fault()
135 * the fault. in do_page_fault()
138 fault = handle_mm_fault(vma, address, flags, regs); in do_page_fault()
139 pr_debug("handle_mm_fault returns %x\n", fault); in do_page_fault()
141 if (fault_signal_pending(fault, regs)) in do_page_fault()
[all …]
/Linux-v6.1/arch/hexagon/mm/
Dvm_fault.c3 * Memory fault handling for Hexagon
9 * Page fault handling for the Hexagon Virtual Machine.
34 * Canonical page fault handler
42 vm_fault_t fault; in do_page_fault() local
48 * then must not take the fault. in do_page_fault()
94 fault = handle_mm_fault(vma, address, flags, regs); in do_page_fault()
96 if (fault_signal_pending(fault, regs)) in do_page_fault()
99 /* The fault is fully completed (including releasing mmap lock) */ in do_page_fault()
100 if (fault & VM_FAULT_COMPLETED) in do_page_fault()
104 if (likely(!(fault & VM_FAULT_ERROR))) { in do_page_fault()
[all …]
/Linux-v6.1/arch/alpha/mm/
Dfault.c3 * linux/arch/alpha/mm/fault.c
65 * 2 = fault-on-read
66 * 3 = fault-on-execute
67 * 4 = fault-on-write
92 vm_fault_t fault; in do_page_fault() local
110 we must not take the fault. */ in do_page_fault()
150 /* If for any reason at all we couldn't handle the fault, in do_page_fault()
152 the fault. */ in do_page_fault()
153 fault = handle_mm_fault(vma, address, flags, regs); in do_page_fault()
155 if (fault_signal_pending(fault, regs)) in do_page_fault()
[all …]
/Linux-v6.1/arch/parisc/mm/
Dfault.c46 * the instruction has generated some sort of a memory access fault).
106 * Data TLB miss fault/data page fault in parisc_acctyp()
199 [6] "Instruction TLB miss fault",
208 [15] "Data TLB miss fault",
209 [16] "Non-access ITLB miss fault",
210 [17] "Non-access DTLB miss fault",
269 vm_fault_t fault = 0; in do_page_fault() local
276 msg = "Page fault: no context"; in do_page_fault()
304 * If for any reason at all we couldn't handle the fault, make in do_page_fault()
306 * fault. in do_page_fault()
[all …]
/Linux-v6.1/arch/powerpc/lib/
Dchecksum_32.S109 EX_TABLE(8 ## n ## 0b, fault); \
110 EX_TABLE(8 ## n ## 1b, fault); \
111 EX_TABLE(8 ## n ## 2b, fault); \
112 EX_TABLE(8 ## n ## 3b, fault); \
113 EX_TABLE(8 ## n ## 4b, fault); \
114 EX_TABLE(8 ## n ## 5b, fault); \
115 EX_TABLE(8 ## n ## 6b, fault); \
116 EX_TABLE(8 ## n ## 7b, fault);
240 fault: label
244 EX_TABLE(70b, fault);
[all …]
/Linux-v6.1/arch/ia64/mm/
Dfault.c3 * MMU fault handling support.
72 vm_fault_t fault; in ia64_do_page_fault() local
82 * If we're in an interrupt or have no user context, we must not take the fault.. in ia64_do_page_fault()
133 * If for any reason at all we couldn't handle the fault, make in ia64_do_page_fault()
135 * fault. in ia64_do_page_fault()
137 fault = handle_mm_fault(vma, address, flags, regs); in ia64_do_page_fault()
139 if (fault_signal_pending(fault, regs)) in ia64_do_page_fault()
142 /* The fault is fully completed (including releasing mmap lock) */ in ia64_do_page_fault()
143 if (fault & VM_FAULT_COMPLETED) in ia64_do_page_fault()
146 if (unlikely(fault & VM_FAULT_ERROR)) { in ia64_do_page_fault()
[all …]
/Linux-v6.1/arch/s390/mm/
Dfault.c8 * Derived from "arch/i386/mm/fault.c"
165 pr_alert("Fault in "); in dump_fault_info()
211 printk(KERN_ALERT "User process fault: interruption code %04x ilc:%d ", in report_user_fault()
271 static noinline void do_fault_error(struct pt_regs *regs, vm_fault_t fault) in do_fault_error() argument
275 switch (fault) { in do_fault_error()
281 si_code = (fault == VM_FAULT_BADMAP) ? in do_fault_error()
295 default: /* fault & VM_FAULT_ERROR */ in do_fault_error()
296 if (fault & VM_FAULT_OOM) { in do_fault_error()
301 } else if (fault & VM_FAULT_SIGSEGV) { in do_fault_error()
307 } else if (fault & VM_FAULT_SIGBUS) { in do_fault_error()
[all …]
/Linux-v6.1/arch/sh/mm/
Dfault.c2 * Page fault handler for SH with an MMU.
7 * Based on linux/arch/i386/mm/fault.c:
157 * be another reason for the fault. Return NULL here to in vmalloc_sync_one()
158 * signal that we have not taken care of the fault. in vmalloc_sync_one()
174 * Handle a fault on the vmalloc or module mapping area
225 /* Are we prepared to handle this kernel fault? */ in no_context()
314 unsigned long address, vm_fault_t fault) in mm_fault_error() argument
320 if (fault_signal_pending(fault, regs)) { in mm_fault_error()
327 if (!(fault & VM_FAULT_RETRY)) in mm_fault_error()
330 if (!(fault & VM_FAULT_ERROR)) in mm_fault_error()
[all …]
/Linux-v6.1/arch/x86/kvm/mmu/
Dpaging_tmpl.h92 struct x86_exception fault; member
249 ret = __try_cmpxchg_user(ptep_user, &orig_pte, pte, fault); in FNAME()
369 nested_access, &walker->fault); in FNAME()
373 * instruction) triggers a nested page fault. The exit in FNAME()
375 * "guest page access" as the nested page fault's cause, in FNAME()
433 real_gpa = kvm_translate_gpa(vcpu, mmu, gfn_to_gpa(gfn), access, &walker->fault); in FNAME()
443 * On a write fault, fold the dirty bit into accessed_dirty. in FNAME()
469 walker->fault.vector = PF_VECTOR; in FNAME()
470 walker->fault.error_code_valid = true; in FNAME()
471 walker->fault.error_code = errcode; in FNAME()
[all …]
/Linux-v6.1/arch/nios2/kernel/
Dmisaligned.c72 unsigned int fault; in handle_unaligned_c() local
85 fault = 0; in handle_unaligned_c()
98 fault |= __get_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
99 fault |= __get_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
111 fault |= __put_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
112 fault |= __put_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
116 fault |= __get_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
117 fault |= __get_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
133 fault |= __put_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
134 fault |= __put_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
[all …]

12345678910>>...73