Home
last modified time | relevance | path

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

12345678910>>...101

/kernel/linux/linux-5.10/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.c42 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_fini()
50 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_init()
62 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_info()
73 tu102_fault_intr_fault(struct nvkm_fault *fault) in tu102_fault_intr_fault() argument
75 struct nvkm_subdev *subdev = &fault->subdev; in tu102_fault_intr_fault()
99 tu102_fault_intr(struct nvkm_fault *fault) in tu102_fault_intr() argument
101 struct nvkm_subdev *subdev = &fault->subdev; in tu102_fault_intr()
106 tu102_fault_intr_fault(fault); in tu102_fault_intr()
112 if (fault->buffer[0]) { in tu102_fault_intr()
113 nvkm_event_send(&fault->event, 1, 0, NULL, 0); in tu102_fault_intr()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/nvkm/subdev/fault/
Dbase.c32 struct nvkm_fault *fault = container_of(event, typeof(*fault), event); in nvkm_fault_ntfy_fini() local
33 fault->func->buffer.fini(fault->buffer[index]); in nvkm_fault_ntfy_fini()
39 struct nvkm_fault *fault = container_of(event, typeof(*fault), event); in nvkm_fault_ntfy_init() local
40 fault->func->buffer.init(fault->buffer[index]); in nvkm_fault_ntfy_init()
67 struct nvkm_fault *fault = nvkm_fault(subdev); in nvkm_fault_intr() local
68 return fault->func->intr(fault); in nvkm_fault_intr()
74 struct nvkm_fault *fault = nvkm_fault(subdev); in nvkm_fault_fini() local
75 if (fault->func->fini) in nvkm_fault_fini()
76 fault->func->fini(fault); in nvkm_fault_fini()
83 struct nvkm_fault *fault = nvkm_fault(subdev); in nvkm_fault_init() local
[all …]
Dgv100.c31 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_process()
41 const u32 base = get * buffer->fault->func->buffer.entry_size; in gv100_fault_buffer_process()
75 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_fini()
86 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_init()
100 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_entries()
109 struct nvkm_fault *fault = container_of(notify, typeof(*fault), nrpfb); in gv100_fault_ntfy_nrpfb() local
110 gv100_fault_buffer_process(fault->buffer[0]); in gv100_fault_ntfy_nrpfb()
115 gv100_fault_intr_fault(struct nvkm_fault *fault) in gv100_fault_intr_fault() argument
117 struct nvkm_subdev *subdev = &fault->subdev; in gv100_fault_intr_fault()
141 gv100_fault_intr(struct nvkm_fault *fault) in gv100_fault_intr() argument
[all …]
/kernel/linux/linux-4.19/drivers/infiniband/hw/hfi1/
Dfault.c55 #include "fault.h"
111 if (!ibd->fault->n_rxfaults[i] && !ibd->fault->n_txfaults[i]) in _fault_stats_seq_show()
116 (unsigned long long)ibd->fault->n_rxfaults[i], in _fault_stats_seq_show()
117 (unsigned long long)ibd->fault->n_txfaults[i]); in _fault_stats_seq_show()
138 struct fault *fault = file->private_data; in fault_opcodes_write() local
180 bitmap_zero(fault->opcodes, sizeof(fault->opcodes) * in fault_opcodes_write()
190 clear_bit(i, fault->opcodes); in fault_opcodes_write()
192 set_bit(i, fault->opcodes); in fault_opcodes_write()
212 struct fault *fault = file->private_data; in fault_opcodes_read() local
213 size_t bitsize = sizeof(fault->opcodes) * BITS_PER_BYTE; in fault_opcodes_read()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dfault.c55 #include "fault.h"
111 if (!ibd->fault->n_rxfaults[i] && !ibd->fault->n_txfaults[i]) in _fault_stats_seq_show()
116 (unsigned long long)ibd->fault->n_rxfaults[i], in _fault_stats_seq_show()
117 (unsigned long long)ibd->fault->n_txfaults[i]); in _fault_stats_seq_show()
138 struct fault *fault = file->private_data; in fault_opcodes_write() local
180 bitmap_zero(fault->opcodes, sizeof(fault->opcodes) * in fault_opcodes_write()
190 clear_bit(i, fault->opcodes); in fault_opcodes_write()
192 set_bit(i, fault->opcodes); in fault_opcodes_write()
212 struct fault *fault = file->private_data; in fault_opcodes_read() local
213 size_t bitsize = sizeof(fault->opcodes) * BITS_PER_BYTE; in fault_opcodes_read()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/mm/
Dfault.c6 * Derived from "arch/i386/mm/fault.c"
109 * 5. T1 : enters fault handler, takes mmap_lock, etc... in bad_access_pkey()
137 vm_fault_t fault) in do_sigbus() argument
144 if (fault & (VM_FAULT_HWPOISON|VM_FAULT_HWPOISON_LARGE)) { in do_sigbus()
147 pr_err("MCE: Killing %s:%d due to hardware memory corruption fault at %lx\n", in do_sigbus()
150 if (fault & VM_FAULT_HWPOISON_LARGE) in do_sigbus()
151 lsb = hstate_index_to_shift(VM_FAULT_GET_HINDEX(fault)); in do_sigbus()
152 if (fault & VM_FAULT_HWPOISON) in do_sigbus()
165 vm_fault_t fault) in mm_fault_error() argument
168 * Kernel page fault interrupted by SIGKILL. We have no reason to in mm_fault_error()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_svm.c63 u8 fault; member
65 } **fault; member
155 * page fault) and maybe some other commands. in nouveau_svmm_bind()
373 /* Issue fault replay for GPU to retry accesses that faulted previously. */
384 /* Cancel a replayable fault that could not be handled.
386 * Cancelling the fault will trigger recovery to reset the engine
406 struct nouveau_svm_fault *fault) in nouveau_svm_fault_cancel_fault() argument
408 nouveau_svm_fault_cancel(svm, fault->inst, in nouveau_svm_fault_cancel_fault()
409 fault->hub, in nouveau_svm_fault_cancel_fault()
410 fault->gpc, in nouveau_svm_fault_cancel_fault()
[all …]
/kernel/linux/linux-4.19/arch/powerpc/mm/
Dfault.c5 * Derived from "arch/i386/mm/fault.c"
158 vm_fault_t fault) in do_sigbus() argument
173 if (fault & (VM_FAULT_HWPOISON|VM_FAULT_HWPOISON_LARGE)) { in do_sigbus()
174 pr_err("MCE: Killing %s:%d due to hardware memory corruption fault at %lx\n", in do_sigbus()
179 if (fault & VM_FAULT_HWPOISON_LARGE) in do_sigbus()
180 lsb = hstate_index_to_shift(VM_FAULT_GET_HINDEX(fault)); in do_sigbus()
181 if (fault & VM_FAULT_HWPOISON) in do_sigbus()
190 vm_fault_t fault) in mm_fault_error() argument
193 * Kernel page fault interrupted by SIGKILL. We have no reason to in mm_fault_error()
200 if (fault & VM_FAULT_OOM) { in mm_fault_error()
[all …]
/kernel/linux/linux-5.10/drivers/staging/blackbox/
DKconfig10 The blackbox is a fault log collecting framework for registered modules
11 of chips. When a fault occurs, blackbox will invoke the registered
27 tristate "blackbox fault log storage by memory directly"
31 This option enables saving fault logs with memory by blackbox when a
43 tristate "blackbox fault log storage by pstore blk"
49 This option enables saving fault logs with pstore blk by blackbox when a
52 happen, then fault log can not be saved.
55 tristate "blackbox fault log storage by pstore ram"
61 This option enables saving fault logs with pstore ram by blackbox when a
65 tristate "blackbox fault log storage by RAW partition"
[all …]
/kernel/linux/linux-4.19/Documentation/fault-injection/
Dfault-injection.txt1 Fault injection capabilities infrastructure
7 Available fault injection capabilities
20 injects futex deadlock and uaddr fault errors.
39 o NVMe fault injection
47 Configure fault-injection capabilities behavior
52 fault-inject-debugfs kernel module provides some debugfs entries for runtime
53 configuration of fault-injection capabilities.
89 to debug the problems revealed by fault injection.
181 that the fault setup with a previous write to this file was injected.
182 A positive integer N indicates that the fault wasn't yet injected.
[all …]
/kernel/linux/linux-5.10/Documentation/fault-injection/
Dfault-injection.rst2 Fault injection capabilities infrastructure
8 Available fault injection capabilities
25 injects futex deadlock and uaddr fault errors.
44 - NVMe fault injection
52 Configure fault-injection capabilities behavior
58 fault-inject-debugfs kernel module provides some debugfs entries for runtime
59 configuration of fault-injection capabilities.
97 to debug the problems revealed by fault injection.
197 that the fault setup with a previous write to this file was injected.
198 A positive integer N indicates that the fault wasn't yet injected.
[all …]
/kernel/linux/linux-5.10/drivers/iommu/amd/
Diommu_v2.c66 struct fault { struct
426 static void handle_fault_error(struct fault *fault) in handle_fault_error() argument
430 if (!fault->dev_state->inv_ppr_cb) { in handle_fault_error()
431 set_pri_tag_status(fault->state, fault->tag, PPR_INVALID); in handle_fault_error()
435 status = fault->dev_state->inv_ppr_cb(fault->dev_state->pdev, in handle_fault_error()
436 fault->pasid, in handle_fault_error()
437 fault->address, in handle_fault_error()
438 fault->flags); in handle_fault_error()
441 set_pri_tag_status(fault->state, fault->tag, PPR_SUCCESS); in handle_fault_error()
444 set_pri_tag_status(fault->state, fault->tag, PPR_INVALID); in handle_fault_error()
[all …]
/kernel/linux/linux-4.19/drivers/iommu/
Damd_iommu_v2.c78 struct fault { struct
463 static void handle_fault_error(struct fault *fault) in handle_fault_error() argument
467 if (!fault->dev_state->inv_ppr_cb) { in handle_fault_error()
468 set_pri_tag_status(fault->state, fault->tag, PPR_INVALID); in handle_fault_error()
472 status = fault->dev_state->inv_ppr_cb(fault->dev_state->pdev, in handle_fault_error()
473 fault->pasid, in handle_fault_error()
474 fault->address, in handle_fault_error()
475 fault->flags); in handle_fault_error()
478 set_pri_tag_status(fault->state, fault->tag, PPR_SUCCESS); in handle_fault_error()
481 set_pri_tag_status(fault->state, fault->tag, PPR_INVALID); in handle_fault_error()
[all …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.
56 * Whereas if NX encounters page fault, the kernel will handle the
57 * fault and update CSB with translation error.
104 * error and fault address. If csb_addr passed by user space is in update_csb()
179 pr_err("Fault fifo size %d, Max crbs %d\n", vinst->fault_fifo_size, in dump_fifo()
183 pr_err("Fault FIFO Dump:\n"); in dump_fifo()
191 * Process valid CRBs in fault FIFO.
194 * request buffers, raises interrupt on the CPU to handle the fault.
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/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()
128 * erroneous fault occurring in a code path which already holds mmap_sem in do_page_fault()
[all …]
/kernel/linux/linux-5.10/arch/arm64/mm/
Dfault.c3 * Based on arch/arm/mm/fault.c
269 * If we now have a valid translation, treat the translation fault as in is_spurious_el1_translation_fault()
276 * If we got a different type of fault from the AT instruction, in is_spurious_el1_translation_fault()
277 * treat the translation fault as spurious. in is_spurious_el1_translation_fault()
305 * Are we prepared to handle this kernel fault? in __do_kernel_fault()
312 "Ignoring spurious kernel translation fault at virtual address %016lx\n", addr)) in __do_kernel_fault()
340 * an alignment fault not caused by the memory type would take in set_thread_esr()
341 * precedence over translation fault for a real access to empty in set_thread_esr()
342 * space. Unfortunately we can't easily distinguish "alignment fault in set_thread_esr()
343 * not caused by memory type" from "alignment fault caused by memory in set_thread_esr()
[all …]
/kernel/linux/linux-4.19/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); in do_page_fault()
139 pr_debug("handle_mm_fault returns %x\n", fault); in do_page_fault()
141 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
[all …]
/kernel/linux/linux-4.19/arch/arm64/mm/
Dfault.c2 * Based on arch/arm/mm/fault.c
280 * Are we prepared to handle this kernel fault? in __do_kernel_fault()
309 * an alignment fault not caused by the memory type would take in __do_user_fault()
310 * precedence over translation fault for a real access to empty in __do_user_fault()
311 * space. Unfortunately we can't easily distinguish "alignment fault in __do_user_fault()
312 * not caused by memory type" from "alignment fault caused by memory in __do_user_fault()
314 * fault.) in __do_user_fault()
324 * We always report the ESR as if the fault was taken in __do_user_fault()
326 * clear. (In fact it always will be a fault to EL1.) in __do_user_fault()
334 * Claim a level 0 translation fault. in __do_user_fault()
[all …]

12345678910>>...101