Home
last modified time | relevance | path

Searched refs:fault (Results 1 – 200 of 361) sorted by relevance

12

/linux-4.1.27/arch/nios2/kernel/
Dmisaligned.c75 unsigned int fault; in handle_unaligned_c() local
89 fault = 0; in handle_unaligned_c()
102 fault |= __get_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
103 fault |= __get_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
122 fault |= __put_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
123 fault |= __put_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
128 fault |= __get_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
129 fault |= __get_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
146 fault |= __put_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
147 fault |= __put_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
[all …]
/linux-4.1.27/drivers/iommu/
Damd_iommu_v2.c77 struct fault { struct
461 static void handle_fault_error(struct fault *fault) in handle_fault_error() argument
465 if (!fault->dev_state->inv_ppr_cb) { in handle_fault_error()
466 set_pri_tag_status(fault->state, fault->tag, PPR_INVALID); in handle_fault_error()
470 status = fault->dev_state->inv_ppr_cb(fault->dev_state->pdev, in handle_fault_error()
471 fault->pasid, in handle_fault_error()
472 fault->address, in handle_fault_error()
473 fault->flags); in handle_fault_error()
476 set_pri_tag_status(fault->state, fault->tag, PPR_SUCCESS); in handle_fault_error()
479 set_pri_tag_status(fault->state, fault->tag, PPR_INVALID); in handle_fault_error()
[all …]
/linux-4.1.27/arch/arc/kernel/
Dunaligned.c54 goto fault; \
69 goto fault; \
96 goto fault; \
129 goto fault; \
163 fault: state->fault = 1; in fixup_load()
183 goto fault; in fixup_store()
195 fault: state->fault = 1; in fixup_store()
229 if (state.fault) in misaligned_fixup()
230 goto fault; in misaligned_fixup()
234 goto fault; in misaligned_fixup()
[all …]
Ddisasm.c43 goto fault; in disasm_instr()
56 goto fault; in disasm_instr()
432 fault: state->fault = 1; in disasm_instr()
/linux-4.1.27/arch/s390/mm/
Dfault.c312 static noinline void do_fault_error(struct pt_regs *regs, int fault) in do_fault_error() argument
316 switch (fault) { in do_fault_error()
322 si_code = (fault == VM_FAULT_BADMAP) ? in do_fault_error()
336 if (fault & VM_FAULT_OOM) { in do_fault_error()
341 } else if (fault & VM_FAULT_SIGSEGV) { in do_fault_error()
347 } else if (fault & VM_FAULT_SIGBUS) { in do_fault_error()
381 int fault; in do_exception() local
401 fault = VM_FAULT_BADCONTEXT; in do_exception()
421 fault = VM_FAULT_BADMAP; in do_exception()
430 fault = VM_FAULT_BADMAP; in do_exception()
[all …]
DMakefile5 obj-y := init.o fault.o extmem.o mmap.o vmem.o pgtable.o maccess.o
/linux-4.1.27/arch/powerpc/mm/
Dfault.c117 unsigned int fault) in do_sigbus() argument
133 if (fault & (VM_FAULT_HWPOISON|VM_FAULT_HWPOISON_LARGE)) { in do_sigbus()
139 if (fault & VM_FAULT_HWPOISON_LARGE) in do_sigbus()
140 lsb = hstate_index_to_shift(VM_FAULT_GET_HINDEX(fault)); in do_sigbus()
141 if (fault & VM_FAULT_HWPOISON) in do_sigbus()
149 static int mm_fault_error(struct pt_regs *regs, unsigned long addr, int fault) in mm_fault_error() argument
161 if (!(fault & VM_FAULT_RETRY)) in mm_fault_error()
170 if (!(fault & VM_FAULT_ERROR)) in mm_fault_error()
174 if (fault & VM_FAULT_OOM) { in mm_fault_error()
187 if (fault & (VM_FAULT_SIGBUS|VM_FAULT_HWPOISON|VM_FAULT_HWPOISON_LARGE)) in mm_fault_error()
[all …]
DMakefile9 obj-y := fault.o mem.o pgtable.o mmap.o \
/linux-4.1.27/arch/m68k/mm/
Dfault.c74 int fault; in do_page_fault() local
139 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
140 pr_debug("handle_mm_fault returns %d\n", fault); in do_page_fault()
142 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
145 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
146 if (fault & VM_FAULT_OOM) in do_page_fault()
148 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
150 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
161 if (fault & VM_FAULT_MAJOR) in do_page_fault()
165 if (fault & VM_FAULT_RETRY) { in do_page_fault()
DMakefile7 obj-$(CONFIG_MMU) += cache.o fault.o
/linux-4.1.27/arch/mips/kernel/
Dunaligned.c956 goto fault; in emulate_load_store_insn()
969 goto fault; in emulate_load_store_insn()
982 goto fault; in emulate_load_store_insn()
997 goto fault; in emulate_load_store_insn()
1010 goto fault; in emulate_load_store_insn()
1034 goto fault; in emulate_load_store_insn()
1053 goto fault; in emulate_load_store_insn()
1072 goto fault; in emulate_load_store_insn()
1091 goto fault; in emulate_load_store_insn()
1114 goto fault; in emulate_load_store_insn()
[all …]
Dr2300_fpu.S128 .type fault@function
129 .ent fault
130 fault: li v0, -EFAULT label
132 .end fault
Dr4k_fpu.S32 PTR .ex\@, fault
279 .type fault@function
280 .ent fault
281 fault: li v0, -EFAULT # failure label
283 .end fault
/linux-4.1.27/arch/arc/mm/
Dfault.c62 int fault, ret; in do_page_fault() local
133 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
137 if ((fault & VM_FAULT_ERROR) && !(fault & VM_FAULT_RETRY)) in do_page_fault()
145 if (likely(!(fault & VM_FAULT_ERROR))) { in do_page_fault()
148 if (fault & VM_FAULT_MAJOR) { in do_page_fault()
158 if (fault & VM_FAULT_RETRY) { in do_page_fault()
170 if (fault & VM_FAULT_OOM) in do_page_fault()
172 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
174 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
DMakefile9 obj-y := extable.o ioremap.o dma.o fault.o init.o
Dtlbex.S194 bz.d do_slow_path_pf ; if no Page Table, do page fault
197 ; (1) x = addr >> PAGE_SHIFT -> masks page-off bits from @fault-addr
204 ld.aw r0, [r1, r0] ; get PTE and PTE ptr for fault addr
371 ; ------- setup args for Linux Page fault Hanlder ---------
/linux-4.1.27/include/asm-generic/
Dtermios-base.h20 goto fault; in user_termio_to_kernel_termios()
24 goto fault; in user_termio_to_kernel_termios()
28 goto fault; in user_termio_to_kernel_termios()
32 goto fault; in user_termio_to_kernel_termios()
36 goto fault; in user_termio_to_kernel_termios()
39 goto fault; in user_termio_to_kernel_termios()
43 fault: in user_termio_to_kernel_termios()
Dtermios.h25 goto fault; in user_termio_to_kernel_termios()
29 goto fault; in user_termio_to_kernel_termios()
33 goto fault; in user_termio_to_kernel_termios()
37 goto fault; in user_termio_to_kernel_termios()
41 goto fault; in user_termio_to_kernel_termios()
44 goto fault; in user_termio_to_kernel_termios()
48 fault: in user_termio_to_kernel_termios()
/linux-4.1.27/arch/mn10300/kernel/
Dgdb-stub.c517 goto fault; in gdbstub_single_step()
523 goto fault; in gdbstub_single_step()
525 goto fault; in gdbstub_single_step()
528 goto fault; in gdbstub_single_step()
534 goto fault; in gdbstub_single_step()
537 goto fault; in gdbstub_single_step()
544 goto fault; in gdbstub_single_step()
552 goto fault; in gdbstub_single_step()
554 goto fault; in gdbstub_single_step()
564 goto fault; in gdbstub_single_step()
[all …]
/linux-4.1.27/arch/hexagon/mm/
Dvm_fault.c54 int fault; in do_page_fault() local
104 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
106 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
110 if (likely(!(fault & VM_FAULT_ERROR))) { in do_page_fault()
112 if (fault & VM_FAULT_MAJOR) in do_page_fault()
116 if (fault & VM_FAULT_RETRY) { in do_page_fault()
133 if (fault & VM_FAULT_OOM) { in do_page_fault()
141 if (fault & VM_FAULT_SIGBUS) { in do_page_fault()
/linux-4.1.27/arch/unicore32/mm/
Dfault.c174 int fault; in __do_pf() local
177 fault = VM_FAULT_BADMAP; in __do_pf()
189 fault = VM_FAULT_BADACCESS; in __do_pf()
197 fault = handle_mm_fault(mm, vma, addr & PAGE_MASK, flags); in __do_pf()
198 return fault; in __do_pf()
204 return fault; in __do_pf()
211 int fault, sig, code; in do_pf() local
254 fault = __do_pf(mm, addr, fsr, flags, tsk); in do_pf()
260 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_pf()
263 if (!(fault & VM_FAULT_ERROR) && (flags & FAULT_FLAG_ALLOW_RETRY)) { in do_pf()
[all …]
Dalignment.c108 goto fault; \
132 goto fault; \
162 goto fault; \
176 goto fault; \
193 goto fault; \
244 fault: in do_alignment_ldrhstrh()
270 fault: in do_alignment_ldrstr()
346 fault: in do_alignment_ldmstm()
505 fault: in do_alignment()
DMakefile5 obj-y := extable.o fault.o init.o pgd.o mmu.o
/linux-4.1.27/drivers/media/i2c/
Dadp1653.c91 int fault; in adp1653_get_fault() local
94 fault = i2c_smbus_read_byte_data(client, ADP1653_REG_FAULT); in adp1653_get_fault()
95 if (IS_ERR_VALUE(fault)) in adp1653_get_fault()
96 return fault; in adp1653_get_fault()
98 flash->fault |= fault; in adp1653_get_fault()
100 if (!flash->fault) in adp1653_get_fault()
114 return flash->fault; in adp1653_get_fault()
163 if (flash->fault & ADP1653_REG_FAULT_FLT_SCP) in adp1653_get_ctrl()
165 if (flash->fault & ADP1653_REG_FAULT_FLT_OT) in adp1653_get_ctrl()
167 if (flash->fault & ADP1653_REG_FAULT_FLT_TMR) in adp1653_get_ctrl()
[all …]
Dlm3560.c175 s32 fault = 0; in lm3560_get_ctrl() local
181 fault |= V4L2_FLASH_FAULT_SHORT_CIRCUIT; in lm3560_get_ctrl()
183 fault |= V4L2_FLASH_FAULT_OVER_TEMPERATURE; in lm3560_get_ctrl()
185 fault |= V4L2_FLASH_FAULT_TIMEOUT; in lm3560_get_ctrl()
186 ctrl->cur.val = fault; in lm3560_get_ctrl()
288 struct v4l2_ctrl *fault; in lm3560_init_controls() local
330 fault = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_FAULT, 0, in lm3560_init_controls()
335 if (fault != NULL) in lm3560_init_controls()
336 fault->flags |= V4L2_CTRL_FLAG_VOLATILE; in lm3560_init_controls()
Dlm3646.c208 struct v4l2_ctrl *fault; in lm3646_init_controls() local
248 fault = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_FAULT, 0, in lm3646_init_controls()
253 if (fault != NULL) in lm3646_init_controls()
254 fault->flags |= V4L2_CTRL_FLAG_VOLATILE; in lm3646_init_controls()
/linux-4.1.27/arch/microblaze/mm/
Dfault.c94 int fault; in do_page_fault() local
219 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
221 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
224 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
225 if (fault & VM_FAULT_OOM) in do_page_fault()
227 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
229 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
235 if (unlikely(fault & VM_FAULT_MAJOR)) in do_page_fault()
239 if (fault & VM_FAULT_RETRY) { in do_page_fault()
DMakefile7 obj-$(CONFIG_MMU) += pgtable.o mmu_context.o fault.o
/linux-4.1.27/arch/nios2/mm/
Dfault.c49 int fault; in do_page_fault() local
134 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
136 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
139 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
140 if (fault & VM_FAULT_OOM) in do_page_fault()
142 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
144 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
155 if (fault & VM_FAULT_MAJOR) in do_page_fault()
159 if (fault & VM_FAULT_RETRY) { in do_page_fault()
DMakefile8 obj-y += fault.o
/linux-4.1.27/arch/avr32/mm/
Dfault.c66 int fault; in do_page_fault() local
137 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
139 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
142 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
143 if (fault & VM_FAULT_OOM) in do_page_fault()
145 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
147 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
153 if (fault & VM_FAULT_MAJOR) in do_page_fault()
157 if (fault & VM_FAULT_RETRY) { in do_page_fault()
DMakefile6 obj-y += ioremap.o cache.o fault.o tlb.o
/linux-4.1.27/arch/openrisc/mm/
Dfault.c56 int fault; in do_page_fault() local
166 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
168 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
171 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
172 if (fault & VM_FAULT_OOM) in do_page_fault()
174 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
176 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
183 if (fault & VM_FAULT_MAJOR) in do_page_fault()
187 if (fault & VM_FAULT_RETRY) { in do_page_fault()
DMakefile5 obj-y := fault.o tlb.o init.o ioremap.o
/linux-4.1.27/arch/alpha/mm/
Dfault.c90 int fault, si_code = SEGV_MAPERR; in do_page_fault() local
151 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
153 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
156 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
157 if (fault & VM_FAULT_OOM) in do_page_fault()
159 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
161 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
167 if (fault & VM_FAULT_MAJOR) in do_page_fault()
171 if (fault & VM_FAULT_RETRY) { in do_page_fault()
DMakefile7 obj-y := init.o fault.o extable.o
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dllite_mmap.c197 vio->u.fault.ft_vma = vma; in ll_page_mkwrite0()
198 vio->u.fault.ft_vmpage = vmpage; in ll_page_mkwrite0()
311 vio->u.fault.ft_vma = vma; in ll_fault0()
312 vio->u.fault.ft_vmpage = NULL; in ll_fault0()
313 vio->u.fault.fault.ft_vmf = vmf; in ll_fault0()
314 vio->u.fault.fault.ft_flags = 0; in ll_fault0()
315 vio->u.fault.fault.ft_flags_valid = false; in ll_fault0()
321 if (vio->u.fault.fault.ft_flags_valid) in ll_fault0()
322 fault_ret = vio->u.fault.fault.ft_flags; in ll_fault0()
324 vmpage = vio->u.fault.ft_vmpage; in ll_fault0()
[all …]
Dvvp_io.c112 vio->u.fault.ft_mtime = LTIME_S(inode->i_mtime); in vvp_io_fault_iter_init()
329 (env, io, 0, vvp_mode_from_vma(vio->u.fault.ft_vma), in vvp_io_fault_lock()
610 struct vm_fault *vmf = cfio->fault.ft_vmf; in vvp_io_kernel_fault()
612 cfio->fault.ft_flags = filemap_fault(cfio->ft_vma, vmf); in vvp_io_kernel_fault()
613 cfio->fault.ft_flags_valid = 1; in vvp_io_kernel_fault()
621 if (unlikely(!(cfio->fault.ft_flags & VM_FAULT_LOCKED))) { in vvp_io_kernel_fault()
623 cfio->fault.ft_flags |= VM_FAULT_LOCKED; in vvp_io_kernel_fault()
630 if (cfio->fault.ft_flags & (VM_FAULT_SIGBUS | VM_FAULT_SIGSEGV)) { in vvp_io_kernel_fault()
635 if (cfio->fault.ft_flags & VM_FAULT_OOM) { in vvp_io_kernel_fault()
640 if (cfio->fault.ft_flags & VM_FAULT_RETRY) in vvp_io_kernel_fault()
[all …]
/linux-4.1.27/arch/parisc/mm/
Dfault.c208 int fault; in do_page_fault() local
247 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
249 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
252 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
258 if (fault & VM_FAULT_OOM) in do_page_fault()
260 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
262 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
267 if (fault & VM_FAULT_MAJOR) in do_page_fault()
271 if (fault & VM_FAULT_RETRY) { in do_page_fault()
DMakefile5 obj-y := init.o fault.o ioremap.o
/linux-4.1.27/arch/cris/mm/
Dfault.c60 int fault; in do_page_fault() local
171 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
173 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
176 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
177 if (fault & VM_FAULT_OOM) in do_page_fault()
179 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
181 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
187 if (fault & VM_FAULT_MAJOR) in do_page_fault()
191 if (fault & VM_FAULT_RETRY) { in do_page_fault()
DMakefile5 obj-y := init.o fault.o tlb.o ioremap.o
/linux-4.1.27/arch/xtensa/mm/
Dfault.c46 int fault; in do_page_fault() local
112 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
114 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
117 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
118 if (fault & VM_FAULT_OOM) in do_page_fault()
120 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
122 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
127 if (fault & VM_FAULT_MAJOR) in do_page_fault()
131 if (fault & VM_FAULT_RETRY) { in do_page_fault()
DMakefile6 obj-$(CONFIG_MMU) += cache.o fault.o mmu.o tlb.o
/linux-4.1.27/arch/metag/mm/
Dfault.c55 int fault; in do_page_fault() local
136 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
138 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
141 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
142 if (fault & VM_FAULT_OOM) in do_page_fault()
144 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
146 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
151 if (fault & VM_FAULT_MAJOR) in do_page_fault()
155 if (fault & VM_FAULT_RETRY) { in do_page_fault()
DMakefile7 obj-y += fault.o
/linux-4.1.27/arch/ia64/mm/
Dfault.c87 int fault; in ia64_do_page_fault() local
162 fault = handle_mm_fault(mm, vma, address, flags); in ia64_do_page_fault()
164 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in ia64_do_page_fault()
167 if (unlikely(fault & VM_FAULT_ERROR)) { in ia64_do_page_fault()
173 if (fault & VM_FAULT_OOM) { in ia64_do_page_fault()
175 } else if (fault & VM_FAULT_SIGSEGV) { in ia64_do_page_fault()
177 } else if (fault & VM_FAULT_SIGBUS) { in ia64_do_page_fault()
185 if (fault & VM_FAULT_MAJOR) in ia64_do_page_fault()
189 if (fault & VM_FAULT_RETRY) { in ia64_do_page_fault()
DMakefile5 obj-y := init.o fault.o tlb.o extable.o ioremap.o
/linux-4.1.27/arch/sh/mm/
Dfault.c321 unsigned long address, unsigned int fault) in mm_fault_error() argument
328 if (!(fault & VM_FAULT_RETRY)) in mm_fault_error()
335 if (!(fault & VM_FAULT_ERROR)) in mm_fault_error()
338 if (fault & VM_FAULT_OOM) { in mm_fault_error()
354 if (fault & VM_FAULT_SIGBUS) in mm_fault_error()
356 else if (fault & VM_FAULT_SIGSEGV) in mm_fault_error()
404 int fault; in do_page_fault() local
489 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
491 if (unlikely(fault & (VM_FAULT_RETRY | VM_FAULT_ERROR))) in do_page_fault()
492 if (mm_fault_error(regs, error_code, address, fault)) in do_page_fault()
[all …]
DMakefile18 mmu-$(CONFIG_MMU) := extable_$(BITS).o fault.o gup.o ioremap.o kmap.o \
/linux-4.1.27/arch/arm/mm/
Dfault.c227 int fault; in __do_page_fault() local
230 fault = VM_FAULT_BADMAP; in __do_page_fault()
242 fault = VM_FAULT_BADACCESS; in __do_page_fault()
254 return fault; in __do_page_fault()
262 int fault, sig, code; in do_page_fault() local
311 fault = __do_page_fault(mm, addr, fsr, flags, tsk); in do_page_fault()
317 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
327 if (!(fault & VM_FAULT_ERROR) && flags & FAULT_FLAG_ALLOW_RETRY) { in do_page_fault()
328 if (fault & VM_FAULT_MAJOR) { in do_page_fault()
337 if (fault & VM_FAULT_RETRY) { in do_page_fault()
[all …]
Dalignment.c224 goto fault; \
245 goto fault; \
277 goto fault; \
319 goto fault; \
380 fault: in do_alignment_ldrhstrh()
436 fault: in do_alignment_ldrdstrd()
467 fault: in do_alignment_ldrstr()
565 fault: in do_alignment_ldmstm()
757 unsigned int fault; in do_alignment() local
769 fault = probe_kernel_address(ptr, tinstr); in do_alignment()
[all …]
Dabort-ev7.S28 ldr r3, =0x40d @ On permission fault
36 and r3, ip, #0x7b @ On translation fault
DMakefile5 obj-y := dma-mapping.o extable.o fault.o init.o \
8 obj-$(CONFIG_MMU) += fault-armv.o flush.o idmap.o ioremap.o \
Dproc-v7m.S89 @ enable UsageFault, BusFault and MemManage fault.
/linux-4.1.27/arch/score/mm/
Dfault.c52 int fault; in do_page_fault() local
113 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
114 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
115 if (fault & VM_FAULT_OOM) in do_page_fault()
117 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
119 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
123 if (fault & VM_FAULT_MAJOR) in do_page_fault()
DMakefile5 obj-y += cache.o extable.o fault.o init.o \
/linux-4.1.27/arch/mips/mm/
Dfault.c47 int fault; in __do_page_fault() local
157 fault = handle_mm_fault(mm, vma, address, flags); in __do_page_fault()
159 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in __do_page_fault()
163 if (unlikely(fault & VM_FAULT_ERROR)) { in __do_page_fault()
164 if (fault & VM_FAULT_OOM) in __do_page_fault()
166 else if (fault & VM_FAULT_SIGSEGV) in __do_page_fault()
168 else if (fault & VM_FAULT_SIGBUS) in __do_page_fault()
173 if (fault & VM_FAULT_MAJOR) { in __do_page_fault()
182 if (fault & VM_FAULT_RETRY) { in __do_page_fault()
DMakefile5 obj-y += cache.o dma-default.o extable.o fault.o \
7 tlbex.o tlbex-fault.o tlb-funcs.o
/linux-4.1.27/Documentation/fault-injection/
Dfault-injection.txt7 Available fault injection capabilities
29 Configure fault-injection capabilities behavior
34 fault-inject-debugfs kernel module provides some debugfs entries for runtime
35 configuration of fault-injection capabilities.
71 to debug the problems revealed by fault injection.
126 How to add new fault injection capability
129 o #include <linux/fault-inject.h>
131 o define the fault attributes
135 Please see the definition of struct fault_attr in fault-inject.h
138 o provide a way to configure fault attributes
[all …]
Dnotifier-error-inject.txt98 These scripts first do simple online and offline tests and then do fault
/linux-4.1.27/arch/arm64/mm/
Dfault.c161 int fault; in __do_page_fault() local
164 fault = VM_FAULT_BADMAP; in __do_page_fault()
181 fault = VM_FAULT_BADACCESS; in __do_page_fault()
191 return fault; in __do_page_fault()
199 int fault, sig, code; in do_page_fault() local
249 fault = __do_page_fault(mm, addr, mm_flags, vm_flags, tsk); in do_page_fault()
256 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
267 if (fault & VM_FAULT_MAJOR) { in do_page_fault()
276 if (fault & VM_FAULT_RETRY) { in do_page_fault()
292 if (likely(!(fault & (VM_FAULT_ERROR | VM_FAULT_BADMAP | in do_page_fault()
[all …]
DMakefile1 obj-y := dma-mapping.o extable.o fault.o init.o \
/linux-4.1.27/arch/mn10300/mm/
Dfault.c126 int fault; in do_page_fault() local
257 fault = handle_mm_fault(mm, vma, address, flags); in do_page_fault()
259 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
262 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
263 if (fault & VM_FAULT_OOM) in do_page_fault()
265 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
267 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
272 if (fault & VM_FAULT_MAJOR) in do_page_fault()
276 if (fault & VM_FAULT_RETRY) { in do_page_fault()
DMakefile28 init.o fault.o pgtable.o extable.o tlb-mn10300.o mmu-context.o \
Dtlb-mn10300.S166 # calculate the fault code
/linux-4.1.27/arch/sparc/kernel/
Dwuf.S257 LEON_PI( lda [%l4] ASI_LEON_MMUREGS, %g0) ! clear fault status
258 SUN_PI_( lda [%l4] ASI_M_MMUREGS, %g0) ! clear fault status
267 or %l5, 0x2, %l5 ! turn on no-fault bit
283 andn %twin_tmp1, 0x2, %twin_tmp1 ! clear no-fault bit
288 LEON_PI(lda [%twin_tmp2] ASI_LEON_MMUREGS, %g0) ! read fault address
289 SUN_PI_(lda [%twin_tmp2] ASI_M_MMUREGS, %g0) ! read fault address
292 LEON_PI(lda [%twin_tmp2] ASI_LEON_MMUREGS, %twin_tmp2) ! read fault status
293 SUN_PI_(lda [%twin_tmp2] ASI_M_MMUREGS, %twin_tmp2) ! read fault status
294 andcc %twin_tmp2, 0x2, %g0 ! did fault occur?
Ddtlb_prot.S30 ba,pt %xcc, sparc64_realfault_common ! Nope, normal fault
Dtsb.S304 stb %l4, [%g6 + TI_FAULT_CODE] ! Save fault code
305 stx %l5, [%g6 + TI_FAULT_ADDR] ! Save fault address
306 call do_sparc64_fault ! Call fault handler
/linux-4.1.27/drivers/iio/dac/
Dad5421.c205 unsigned int fault; in ad5421_fault_handler() local
209 fault = ad5421_read(indio_dev, AD5421_REG_FAULT); in ad5421_fault_handler()
210 if (!fault) in ad5421_fault_handler()
232 if (fault == 0xffff) in ad5421_fault_handler()
233 fault = 0; in ad5421_fault_handler()
236 events = (old_fault ^ fault) & fault; in ad5421_fault_handler()
266 old_fault = fault; in ad5421_fault_handler()
267 fault = ad5421_read(indio_dev, AD5421_REG_FAULT); in ad5421_fault_handler()
270 if (fault & AD5421_FAULT_TRIGGER_IRQ) in ad5421_fault_handler()
273 } while (fault & AD5421_FAULT_TRIGGER_IRQ); in ad5421_fault_handler()
/linux-4.1.27/drivers/power/
Dmax8903_charger.c36 bool fault; member
72 if (data->fault) in max8903_get_property()
165 bool fault; in max8903_fault() local
167 fault = gpio_get_value(pdata->flt) ? false : true; in max8903_fault()
169 if (fault == data->fault) in max8903_fault()
172 data->fault = fault; in max8903_fault()
174 if (fault) in max8903_fault()
280 data->fault = false; in max8903_probe()
Dda9030_battery.c110 uint8_t fault; member
228 da903x_read(charger->master, DA9030_FAULT_LOG, &charger->fault); in da9030_charger_update_state()
333 if (charger->fault & DA9030_FAULT_LOG_OVER_TEMP) in da9030_battery_check_health()
335 else if (charger->fault & DA9030_FAULT_LOG_VBAT_OVER) in da9030_battery_check_health()
/linux-4.1.27/arch/um/kernel/
Dtrap.c73 int fault; in handle_page_fault() local
75 fault = handle_mm_fault(mm, vma, address, flags); in handle_page_fault()
77 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in handle_page_fault()
80 if (unlikely(fault & VM_FAULT_ERROR)) { in handle_page_fault()
81 if (fault & VM_FAULT_OOM) { in handle_page_fault()
83 } else if (fault & VM_FAULT_SIGSEGV) { in handle_page_fault()
85 } else if (fault & VM_FAULT_SIGBUS) { in handle_page_fault()
92 if (fault & VM_FAULT_MAJOR) in handle_page_fault()
96 if (fault & VM_FAULT_RETRY) { in handle_page_fault()
/linux-4.1.27/arch/frv/mm/
Dfault.c42 int fault; in do_page_fault() local
167 fault = handle_mm_fault(mm, vma, ear0, flags); in do_page_fault()
168 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
169 if (fault & VM_FAULT_OOM) in do_page_fault()
171 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
173 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
177 if (fault & VM_FAULT_MAJOR) in do_page_fault()
DMakefile8 pgalloc.o highmem.o fault.o extable.o cache-page.o tlb-flush.o tlb-miss.o \
/linux-4.1.27/arch/sparc/mm/
Dfault_32.c176 int fault, code; in do_sparc_fault() local
244 fault = handle_mm_fault(mm, vma, address, flags); in do_sparc_fault()
246 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_sparc_fault()
249 if (unlikely(fault & VM_FAULT_ERROR)) { in do_sparc_fault()
250 if (fault & VM_FAULT_OOM) in do_sparc_fault()
252 else if (fault & VM_FAULT_SIGSEGV) in do_sparc_fault()
254 else if (fault & VM_FAULT_SIGBUS) in do_sparc_fault()
260 if (fault & VM_FAULT_MAJOR) { in do_sparc_fault()
269 if (fault & VM_FAULT_RETRY) { in do_sparc_fault()
Dfault_64.c288 int si_code, fault_code, fault; in do_sparc64_fault() local
441 fault = handle_mm_fault(mm, vma, address, flags); in do_sparc64_fault()
443 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_sparc64_fault()
446 if (unlikely(fault & VM_FAULT_ERROR)) { in do_sparc64_fault()
447 if (fault & VM_FAULT_OOM) in do_sparc64_fault()
449 else if (fault & VM_FAULT_SIGSEGV) in do_sparc64_fault()
451 else if (fault & VM_FAULT_SIGBUS) in do_sparc64_fault()
457 if (fault & VM_FAULT_MAJOR) { in do_sparc64_fault()
466 if (fault & VM_FAULT_RETRY) { in do_sparc64_fault()
/linux-4.1.27/Documentation/i2c/
Dfault-codes1 This is a summary of the most important conventions for use of fault
7 Not all fault reports imply errors; "page faults" should be a familiar
11 recovery, triggered by a fault report, there is no error.
13 In a similar way, sometimes a "fault" code just reports one defined
19 the right fault code, so that it can (in turn) behave correctly.
22 I2C and SMBus fault codes
25 some positive number indicating a non-fault return. The specific
32 cases (unless the hardware doesn't provide unique fault reports).
51 fault is only reported on read transactions; the SMBus slave
59 SMBus adapter) needs some fault recovery (such as resetting),
[all …]
/linux-4.1.27/drivers/hwmon/
Dltc4260.c99 unsigned int fault; in ltc4260_show_bool() local
102 ret = regmap_read(regmap, LTC4260_FAULT, &fault); in ltc4260_show_bool()
106 fault &= attr->index; in ltc4260_show_bool()
107 if (fault) /* Clear reported faults in chip register */ in ltc4260_show_bool()
110 return snprintf(buf, PAGE_SIZE, "%d\n", !!fault); in ltc4260_show_bool()
Dltc4261.c154 u8 fault; in ltc4261_show_bool() local
159 fault = data->regs[LTC4261_FAULT] & attr->index; in ltc4261_show_bool()
160 if (fault) /* Clear reported faults in chip register */ in ltc4261_show_bool()
161 i2c_smbus_write_byte_data(data->client, LTC4261_FAULT, ~fault); in ltc4261_show_bool()
163 return snprintf(buf, PAGE_SIZE, "%d\n", fault ? 1 : 0); in ltc4261_show_bool()
Dltc4222.c114 unsigned int fault; in ltc4222_show_bool() local
117 ret = regmap_read(regmap, attr->nr, &fault); in ltc4222_show_bool()
120 fault &= attr->index; in ltc4222_show_bool()
121 if (fault) /* Clear reported faults in chip register */ in ltc4222_show_bool()
124 return snprintf(buf, PAGE_SIZE, "%d\n", !!fault); in ltc4222_show_bool()
Dltc2945.c334 unsigned int fault; in ltc2945_show_bool() local
337 ret = regmap_read(regmap, LTC2945_FAULT, &fault); in ltc2945_show_bool()
341 fault &= attr->index; in ltc2945_show_bool()
342 if (fault) /* Clear reported faults in chip register */ in ltc2945_show_bool()
345 return snprintf(buf, PAGE_SIZE, "%d\n", !!fault); in ltc2945_show_bool()
Demc2103.c220 bool fault = (data->temp[nr].degrees == -128); in show_temp_fault() local
221 return sprintf(buf, "%d\n", fault ? 1 : 0); in show_temp_fault()
418 bool fault = ((data->fan_tach & 0x1fe0) == 0x1fe0); in show_fan_fault() local
419 return sprintf(buf, "%d\n", fault ? 1 : 0); in show_fan_fault()
Dmax16065.c99 int fault[2]; member
168 data->fault[i] in max16065_update_device()
183 int val = data->fault[attr2->nr]; in max16065_show_alarm()
/linux-4.1.27/net/core/
Ddatagram.c408 goto fault; in skb_copy_datagram_iter()
423 fault: in skb_copy_datagram_iter()
428 goto fault; in skb_copy_datagram_iter()
456 goto fault; in skb_copy_datagram_from_iter()
479 goto fault; in skb_copy_datagram_from_iter()
500 goto fault; in skb_copy_datagram_from_iter()
510 fault: in skb_copy_datagram_from_iter()
585 goto fault; in skb_copy_and_csum_datagram()
611 goto fault; in skb_copy_and_csum_datagram()
635 goto fault; in skb_copy_and_csum_datagram()
[all …]
/linux-4.1.27/Documentation/virtual/kvm/
Dlocking.txt12 Fast page fault:
14 Fast page fault is the fast path which fixes the guest page fault out of
15 the mmu-lock on x86. Currently, the page fault can be fast only if the
26 On fast page fault path, we will use cmpxchg to atomically set the spte W
43 on fast page fault path:
71 Currently, to simplify the whole things, we disable fast page fault for
79 But it is not true after fast page fault since the spte can be marked
95 on fast page fault path:
123 fast page fault path, in order to easily audit the path, we see if TLBs need
128 atomically update the spte, the race caused by fast page fault can be avoided,
Dmsr.txt175 the hypervisor at the time of asynchronous page fault (APF)
176 injection to indicate type of asynchronous page fault. Value
177 of 1 means that the page referred to by the page fault is not
182 fault guest must reset the reason to 0 before it does
183 something that can generate normal page fault. If during page
184 fault APF reason is 0 it means that this is regular page
185 fault.
Dmmu.txt268 - guest page fault (or npt page fault, or ept violation)
270 This is the most complicated event. The cause of a page fault can be:
272 - a true guest fault (the guest translation won't allow the access) (*)
281 Handling a page fault is performed as follows:
283 - if the RSV bit of the error code is set, the page fault is caused by guest
291 be handled as a "fast page fault" (fixed without taking the MMU lock). See
295 - if permissions are insufficient, reflect the fault back to the guest
342 on fault type:
344 - kernel write fault: spte.u=0, spte.w=1 (allows full kernel access,
346 - read fault: spte.u=1, spte.w=0 (allows full read access, disallows kernel
[all …]
/linux-4.1.27/arch/x86/mm/
Dfault.c170 struct task_struct *tsk, int fault) in force_sig_info_fault() argument
179 if (fault & VM_FAULT_HWPOISON_LARGE) in force_sig_info_fault()
180 lsb = hstate_index_to_shift(VM_FAULT_GET_HINDEX(fault)); in force_sig_info_fault()
181 if (fault & VM_FAULT_HWPOISON) in force_sig_info_fault()
851 unsigned int fault) in do_sigbus() argument
871 if (fault & (VM_FAULT_HWPOISON|VM_FAULT_HWPOISON_LARGE)) { in do_sigbus()
878 force_sig_info_fault(SIGBUS, code, address, tsk, fault); in do_sigbus()
883 unsigned long address, unsigned int fault) in mm_fault_error() argument
890 if (fault & VM_FAULT_OOM) { in mm_fault_error()
905 if (fault & (VM_FAULT_SIGBUS|VM_FAULT_HWPOISON| in mm_fault_error()
[all …]
DMakefile1 obj-y := init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \
/linux-4.1.27/arch/tile/kernel/
Dpmc.c25 int handle_perf_interrupt(struct pt_regs *regs, int fault) in handle_perf_interrupt() argument
30 panic("Unexpected PERF_COUNT interrupt %d\n", fault); in handle_perf_interrupt()
33 retval = perf_irq(regs, fault); in handle_perf_interrupt()
Dstack.c80 const char *fault = NULL; /* happy compiler */ in valid_fault_handler() local
93 fault = "syscall"; in valid_fault_handler()
98 fault = fault_buf; in valid_fault_handler()
106 pr_err(" <%s while in kernel mode>\n", fault); in valid_fault_handler()
110 pr_err(" <%s while in user mode>\n", fault); in valid_fault_handler()
/linux-4.1.27/arch/m32r/mm/
Dfault.c82 int fault; in do_page_fault() local
199 fault = handle_mm_fault(mm, vma, addr, flags); in do_page_fault()
200 if (unlikely(fault & VM_FAULT_ERROR)) { in do_page_fault()
201 if (fault & VM_FAULT_OOM) in do_page_fault()
203 else if (fault & VM_FAULT_SIGSEGV) in do_page_fault()
205 else if (fault & VM_FAULT_SIGBUS) in do_page_fault()
209 if (fault & VM_FAULT_MAJOR) in do_page_fault()
DMakefile6 obj-y := init.o fault.o mmu.o extable.o ioremap.o cache.o page.o
8 obj-y := init.o fault-nommu.o mmu.o extable.o ioremap-nommu.o cache.o page.o
/linux-4.1.27/Documentation/hwmon/
Dmax663928 temp1_fault R Temperature channel 1 diode fault
29 temp2_fault R Temperature channel 2 diode fault
42 fan1_fault R Fan 1 fault
43 fan2_fault R Fan 2 fault
Dsmsc47m19293 temp[2-3]_input_fault - diode fault flags for temperature inputs 2 and 3.
94 A fault is detected if the two pins for the corresponding
96 to ground or Vcc. '1' indicates a diode fault.
Demc210332 will show as "fault". The module parameter "apd=0" can be used to suppress
Dmax669758 tempX_fault RO temperature diode fault (remote sensors only)
Dsysfs-interface114 least, it should report a fault.
125 least, it should report a fault.
634 Each input channel may have an associated fault file. This can be used
641 Input fault condition
642 0: no fault occurred
643 1: fault condition
/linux-4.1.27/arch/x86/include/asm/
Dkvm_emulate.h112 struct x86_exception *fault);
123 struct x86_exception *fault);
133 struct x86_exception *fault);
143 struct x86_exception *fault);
155 struct x86_exception *fault);
170 struct x86_exception *fault);
Dmsr.h80 : "c" (msr), [fault] "i" (-EIO)); in native_read_msr_safe()
103 [fault] "i" (-EIO) in native_write_msr_safe()
/linux-4.1.27/arch/arm/include/asm/
Dkvm_emulate.h86 return vcpu->arch.fault.hsr; in kvm_vcpu_get_hsr()
91 return vcpu->arch.fault.hxfar; in kvm_vcpu_get_hfar()
96 return ((phys_addr_t)vcpu->arch.fault.hpfar & HPFAR_MASK) << 8; in kvm_vcpu_get_fault_ipa()
101 return vcpu->arch.fault.hyp_pc; in kvm_vcpu_get_hyp_pc()
Dkvm_host.h115 struct kvm_vcpu_fault_info fault; member
/linux-4.1.27/arch/tile/mm/
Dfault.c271 int fault; in handle_page_fault() local
438 fault = handle_mm_fault(mm, vma, address, flags); in handle_page_fault()
440 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in handle_page_fault()
443 if (unlikely(fault & VM_FAULT_ERROR)) { in handle_page_fault()
444 if (fault & VM_FAULT_OOM) in handle_page_fault()
446 else if (fault & VM_FAULT_SIGSEGV) in handle_page_fault()
448 else if (fault & VM_FAULT_SIGBUS) in handle_page_fault()
453 if (fault & VM_FAULT_MAJOR) in handle_page_fault()
457 if (fault & VM_FAULT_RETRY) { in handle_page_fault()
DMakefile5 obj-y := init.o pgtable.o fault.o extable.o elf.o \
/linux-4.1.27/Documentation/
DIntel-IOMMU.txt70 When errors are reported, the DMA engine signals via an interrupt. The fault
71 reason and device that caused it with fault reason is printed on console.
101 DMAR:[DMA Write] Request device [00:02.0] fault addr 6df084000
102 DMAR:[fault reason 05] PTE Write access is not set
103 DMAR:[DMA Write] Request device [00:02.0] fault addr 6df084000
104 DMAR:[fault reason 05] PTE Write access is not set
DSubmitChecklist82 failures. See Documentation/fault-injection/.
84 If the new code is substantial, addition of subsystem-specific fault
Doops-tracing.txt150 When a protection fault occurs the klogd daemon automatically
154 protection fault message can be simply cut out of the message files
173 to debug a protection fault which occurs in a loadable kernel module.
176 generated the protection fault. There may be additional symbolic
193 The following is an example of a protection fault in a loadable module
/linux-4.1.27/Documentation/x86/
Dexception-tables.txt27 accessible, the CPU generates a page fault exception and calls the
28 page fault handler
32 in arch/x86/mm/fault.c. The parameters on the stack are set up by
39 space of the process, the fault probably occurred, because the page
47 (fixup). If this search is successful, the fault handler modifies the
239 backward) is the address of the instruction that might fault, i.e.
245 the fault, in our case the actual value is c0199ff5:
260 So, what actually happens if a fault from kernel mode with no suitable
267 4.) do page fault calls search_exception_table (regs->eip == c017e7a5);
270 and returns the address of the associated fault handle code c0199ff5.
[all …]
Dintel_mpx.txt53 this point, a bounds fault (#BR) is raised, the kernel allocates a
110 similar conceptually to a page fault and will be raised by the MPX
153 Q: Could a bounds fault be handed to userspace and the tables allocated
196 no bounds table exists for this entry. In this case the fault handler
/linux-4.1.27/Documentation/ja_JP/
DSubmitChecklist98 挙動について、fault-injectionを利用して確認してください。
99 Documentation/fault-injection/ を参照してください。
102 fault-injectionを追加したほうが良いかもしれません。
/linux-4.1.27/arch/x86/kvm/
Dpaging_tmpl.h106 struct x86_exception fault; member
324 &walker->fault); in FNAME()
379 real_gpa = mmu->translate_gpa(vcpu, gfn_to_gpa(gfn), access, &walker->fault); in FNAME()
416 walker->fault.vector = PF_VECTOR; in FNAME()
417 walker->fault.error_code_valid = true; in FNAME()
418 walker->fault.error_code = errcode; in FNAME()
438 walker->fault.address = addr; in FNAME()
439 walker->fault.nested_page_fault = mmu != vcpu->arch.walk_mmu; in FNAME()
441 trace_kvm_mmu_walker_error(walker->fault.error_code); in FNAME()
745 inject_page_fault(vcpu, &walker.fault); in FNAME()
[all …]
Dx86.c416 void kvm_inject_page_fault(struct kvm_vcpu *vcpu, struct x86_exception *fault) in kvm_inject_page_fault() argument
419 vcpu->arch.cr2 = fault->address; in kvm_inject_page_fault()
420 kvm_queue_exception_e(vcpu, PF_VECTOR, fault->error_code); in kvm_inject_page_fault()
424 static bool kvm_propagate_fault(struct kvm_vcpu *vcpu, struct x86_exception *fault) in kvm_propagate_fault() argument
426 if (mmu_is_nested(vcpu) && !fault->nested_page_fault) in kvm_propagate_fault()
427 vcpu->arch.nested_mmu.inject_page_fault(vcpu, fault); in kvm_propagate_fault()
429 vcpu->arch.mmu.inject_page_fault(vcpu, fault); in kvm_propagate_fault()
431 return fault->nested_page_fault; in kvm_propagate_fault()
7904 struct x86_exception fault; in kvm_arch_async_page_not_present() local
7914 fault.vector = PF_VECTOR; in kvm_arch_async_page_not_present()
[all …]
/linux-4.1.27/include/linux/
Dled-class-flash.h51 int (*fault_get)(struct led_classdev_flash *fled_cdev, u32 *fault);
190 u32 *fault);
Dcdrom.h132 __u8 fault : 1; member
141 __u8 fault : 1;
Denclosure.h97 int fault; member
/linux-4.1.27/drivers/leds/
Dled-class-flash.c196 u32 fault, mask = 0x1; in flash_fault_show() local
200 ret = led_get_flash_fault(fled_cdev, &fault); in flash_fault_show()
207 if (fault & mask) { in flash_fault_show()
362 int led_get_flash_fault(struct led_classdev_flash *fled_cdev, u32 *fault) in led_get_flash_fault() argument
364 return call_flash_op(fled_cdev, fault_get, fault); in led_get_flash_fault()
Dleds-lp8860.c192 int ret, fault; in lp8860_fault_check() local
199 fault = read_buf; in lp8860_fault_check()
205 fault |= read_buf; in lp8860_fault_check()
208 if (fault) in lp8860_fault_check()
/linux-4.1.27/arch/x86/um/
DMakefile11 obj-y = bug.o bugs_$(BITS).o delay.o fault.o ksyms.o ldt.o \
36 USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o
/linux-4.1.27/drivers/spi/
Dspi-tle62x0.c105 unsigned long fault = 0; in tle62x0_status_show() local
118 fault <<= 8; in tle62x0_status_show()
119 fault |= ((unsigned long)buff[ptr]); in tle62x0_status_show()
125 bp += sprintf(bp, "%s ", decode_fault(fault >> (ptr * 2))); in tle62x0_status_show()
/linux-4.1.27/arch/arm64/include/asm/
Dkvm_emulate.h133 return vcpu->arch.fault.esr_el2; in kvm_vcpu_get_hsr()
138 return vcpu->arch.fault.far_el2; in kvm_vcpu_get_hfar()
143 return ((phys_addr_t)vcpu->arch.fault.hpfar_el2 & HPFAR_MASK) << 8; in kvm_vcpu_get_fault_ipa()
Dkvm_host.h108 struct kvm_vcpu_fault_info fault; member
/linux-4.1.27/arch/cris/arch-v32/mm/
Dmmu.S37 ; Bus fault handler. Extracts relevant information and calls mm subsystem
38 ; to handle the fault.
46 moveq 1, $r12 ; protection fault
187 clear.d $r12 ; Not a protection fault
201 ; This is the MMU bus fault handlers.
/linux-4.1.27/tools/perf/Documentation/
Dperf-trace.txt129 <min|maj>fault [<ip.symbol>+<ip.offset>] => <addr.dso@addr.offset> (<map type><addr level>).
131 - min/maj indicates whether fault event is minor or major;
133 fault); if no debug symbols available, perf trace will print raw IP;
141 time it took for fault to be handled!
144 for both IP and fault address in the form of dso@symbol+offset.
/linux-4.1.27/Documentation/arm/
Dswp_emulation10 sequence. If a memory access fault (an abort) occurs, a segmentation fault is
Dmem_alignment35 fault code.
/linux-4.1.27/arch/arm/boot/dts/
Dkirkwood-dockstar.dts49 fault {
50 label = "status:orange:fault";
Dkirkwood-pogo_e02.dts43 fault {
44 label = "pogo_e02:orange:fault";
Dkirkwood-goflexnet.dts92 fault {
93 label = "status:orange:fault";
/linux-4.1.27/arch/ia64/kernel/
Dentry.S256 lfetch.fault.excl.nt1 [r3],128
258 lfetch.fault.excl.nt1 [r2],128
259 lfetch.fault.excl.nt1 [r3],128
261 lfetch.fault.excl [r2]
262 lfetch.fault.excl [r3]
270 lfetch.fault.excl.nt1 [r3],128 // prefetch offset 0x010
272 lfetch.fault.excl.nt1 [r3],128 // prefetch offset 0x090
273 lfetch.fault.excl.nt1 [r2],128 // prefetch offset 0x190
275 lfetch.fault.excl.nt1 [r3] // prefetch offset 0x110
276 lfetch.fault.excl.nt1 [r2] // prefetch offset 0x210
[all …]
Dfsys.S261 EX(.fail_efault, probe.w.fault r31, 3)
294 EX(.fail_efault, probe.w.fault r23, 3) // This also costs 5 cycles
353 EX(.fail_efault, (p6) probe.w.fault r32, 3) // M This takes 5 cycles
354 EX(.fail_efault, (p7) probe.w.fault r33, 3) // M This takes 5 cycles
369 EX(.fail_efault, (p6) probe.w.fault r32, 3) // M This takes 5 cycles
370 EX(.fail_efault, (p7) probe.w.fault r33, 3) // M This takes 5 cycles
481 lfetch.fault.excl.nt1 [r22] // M0|1 prefetch register backing-store
Dminstate.h75 (pUStk) lfetch.fault.excl.nt1 [r22]; \
87 lfetch.fault.excl.nt1 [r17],L1_CACHE_BYTES; \
90 lfetch.fault.excl.nt1 [r17]; \
/linux-4.1.27/arch/arm/kernel/
Dasm-offsets.c189 DEFINE(VCPU_HSR, offsetof(struct kvm_vcpu, arch.fault.hsr)); in main()
190 DEFINE(VCPU_HxFAR, offsetof(struct kvm_vcpu, arch.fault.hxfar)); in main()
191 DEFINE(VCPU_HPFAR, offsetof(struct kvm_vcpu, arch.fault.hpfar)); in main()
192 DEFINE(VCPU_HYP_PC, offsetof(struct kvm_vcpu, arch.fault.hyp_pc)); in main()
Dentry-armv.S52 @ PABORT handler takes pt_regs in r2, fault address in r4 and psr in r5
72 @ the fault status register in r1. r9 must be preserved.
236 @ which caused the fault. If the faulting instruction was ARM
567 * defined. The only instructions that should fault are the
/linux-4.1.27/arch/cris/arch-v10/mm/
DMakefile5 obj-y := fault.o init.o tlb.o
/linux-4.1.27/Documentation/devicetree/bindings/leds/
Dleds-gpio.txt39 fault {
41 /* Keep LED on if BIOS detected hardware fault */
/linux-4.1.27/Documentation/cgroups/
Dhugetlb.txt5 enforces the controller limit during page fault. Since HugeTLB doesn't
6 support page reclaim, enforcing the limit at page fault time implies that,
/linux-4.1.27/Documentation/fb/
Ddeferred_io.txt10 - deferred IO and driver sets up fault and page_mkwrite handlers
12 - we get pagefault and reach fault handler
13 - fault handler finds and returns physical page
/linux-4.1.27/drivers/misc/cxl/
DMakefile1 cxl-y += main.o file.o irq.o fault.o native.o context.o sysfs.o debugfs.o pci.o trace.o
Dcontext.c140 .fault = cxl_mmap_fault,
Dfile.c334 event.fault.addr = ctx->fault_addr; in afu_read()
335 event.fault.dsisr = ctx->fault_dsisr; in afu_read()
/linux-4.1.27/arch/tile/include/asm/
Dpmc.h53 int userspace_perf_handler(struct pt_regs *regs, int fault);
/linux-4.1.27/arch/arm64/kernel/
Dasm-offsets.c115 DEFINE(VCPU_ESR_EL2, offsetof(struct kvm_vcpu, arch.fault.esr_el2)); in main()
116 DEFINE(VCPU_FAR_EL2, offsetof(struct kvm_vcpu, arch.fault.far_el2)); in main()
117 DEFINE(VCPU_HPFAR_EL2, offsetof(struct kvm_vcpu, arch.fault.hpfar_el2)); in main()
Darmv8_deprecated.c407 goto fault; in swp_handler()
412 goto fault; in swp_handler()
428 fault: in swp_handler()
/linux-4.1.27/Documentation/trace/
Dmmiotrace.txt109 fault. The page fault handler calls mmiotrace to handle the fault. Mmiotrace
111 fault handler. The instruction that faulted is executed and debug trap is
116 Setting the page present in the page fault handler has a race condition on SMP
/linux-4.1.27/tools/testing/fault-injection/
Dfailcmd.sh44 See Documentation/fault-injection/fault-injection.txt for more
/linux-4.1.27/Documentation/devicetree/bindings/rng/
Dapm,rng.txt8 - interrupts : specify the fault interrupt for the RNG device
/linux-4.1.27/arch/blackfin/kernel/
Dtrace.c652 int tflags, i = 0, fault = 0; in dump_bfin_trace_buffer() local
677 if (!fault && addr == ((unsigned short *)evt_ivhw)) { in dump_bfin_trace_buffer()
683 fault = 1; in dump_bfin_trace_buffer()
686 if (!fault && addr == (unsigned short *)trap && in dump_bfin_trace_buffer()
692 fault = 1; in dump_bfin_trace_buffer()
/linux-4.1.27/include/uapi/misc/
Dcxl.h83 struct cxl_event_data_storage fault; member
/linux-4.1.27/Documentation/devicetree/bindings/usb/
Dfsl-usb.txt42 - fsl,invert-pwr-fault : boolean; for MPC5121 USB0 only. Indicates
82 fsl,invert-pwr-fault;
/linux-4.1.27/arch/parisc/kernel/
Dentry.S384 .macro space_check spc,tmp,fault
391 cmpb,COND(<>),n \tmp,\spc,\fault
400 .macro L2_ptep pmd,pte,index,va,fault
417 bb,>=,n \pmd,_PxD_PRESENT_BIT,\fault
425 bb,>=,n \pte,_PAGE_PRESENT_BIT,\fault
438 .macro L3_ptep pgd,pte,index,va,fault
445 bb,>=,n \pgd,_PxD_PRESENT_BIT,\fault
453 L2_ptep \pgd,\pte,\index,\va,\fault
457 .macro tlb_lock spc,ptp,pte,tmp,tmp1,fault
466 b \fault
[all …]
/linux-4.1.27/drivers/hid/usbhid/
Dhiddev.c466 goto fault; in hiddev_ioctl_usage()
469 goto fault; in hiddev_ioctl_usage()
489 goto fault; in hiddev_ioctl_usage()
530 goto fault; in hiddev_ioctl_usage()
547 goto fault; in hiddev_ioctl_usage()
559 fault: in hiddev_ioctl_usage()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_pci.c865 struct fm10k_fault *fault) in fm10k_print_fault() argument
872 switch (fault->type) { in fm10k_print_fault()
886 switch (fault->type) { in fm10k_print_fault()
895 switch (fault->type) { in fm10k_print_fault()
919 error, fault->address, fault->specinfo, in fm10k_print_fault()
920 PCI_SLOT(fault->func), PCI_FUNC(fault->func)); in fm10k_print_fault()
926 struct fm10k_fault fault = { 0 }; in fm10k_report_fault() local
937 err = hw->mac.ops.get_fault(hw, type, &fault); in fm10k_report_fault()
944 fm10k_print_fault(interface, type, &fault); in fm10k_report_fault()
Dfm10k_pf.c1507 struct fm10k_fault *fault) in fm10k_get_fault_pf() argument
1527 fault->address = fm10k_read_reg(hw, type + FM10K_FAULT_ADDR_HI); in fm10k_get_fault_pf()
1528 fault->address <<= 32; in fm10k_get_fault_pf()
1529 fault->address = fm10k_read_reg(hw, type + FM10K_FAULT_ADDR_LO); in fm10k_get_fault_pf()
1530 fault->specinfo = fm10k_read_reg(hw, type + FM10K_FAULT_SPECINFO); in fm10k_get_fault_pf()
1537 fault->func = 0; in fm10k_get_fault_pf()
1539 fault->func = 1 + ((func & FM10K_FAULT_FUNC_VF_MASK) >> in fm10k_get_fault_pf()
1543 fault->type = func & FM10K_FAULT_FUNC_TYPE_MASK; in fm10k_get_fault_pf()
/linux-4.1.27/include/media/
Dadp1653.h123 int fault; member
/linux-4.1.27/Documentation/devicetree/bindings/sound/
Dst,sta32x.txt45 - st,fault-detect-recovery:
46 If present, then fault recovery will be enabled.
Dst,sta350.txt45 - st,fault-detect-recovery:
46 If present, then fault recovery will be enabled.
/linux-4.1.27/init/
Ddo_mounts_md.c65 int minor, level, factor, fault, partitioned = 0; in md_setup() local
96 get_option(&str, &fault) != 2) { in md_setup()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_vm.c372 .fault = drm_vm_fault,
379 .fault = drm_vm_shm_fault,
386 .fault = drm_vm_dma_fault,
393 .fault = drm_vm_sg_fault,
/linux-4.1.27/fs/ncpfs/
Dmmap.c99 .fault = ncp_file_mmap_fault,
/linux-4.1.27/arch/arm/vfp/
Dentry.S52 ret r9 @ we have handled the fault
/linux-4.1.27/Documentation/accounting/
Dtaskstats-struct.txt79 /* The minor page fault count of a task, as set in task->min_flt. */
82 /* The major page fault count of a task, as set in task->maj_flt. */
114 /* Delay waiting for page fault I/O (swap in only) */
/linux-4.1.27/Documentation/filesystems/nfs/
Dfault_injection.txt16 On the client, mount the fault injection server through NFS v4.0+ and do some
64 This script has been created to ease the fault injection process. This script
D00-INDEX6 - information for using fault injection on the server
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
DMakefile5 spufs-y += switch.o fault.o lscsa_alloc.o
/linux-4.1.27/fs/ext2/
Dfile.c40 .fault = ext2_dax_fault,
/linux-4.1.27/drivers/gpu/drm/udl/
Dudl_drv.c20 .fault = udl_gem_fault,
/linux-4.1.27/Documentation/devicetree/bindings/iommu/
Drenesas,ipmmu-vmsa.txt12 - interrupts: Specifiers for the MMU fault interrupts. For instances that
Darm,smmu.txt7 The SMMU may also raise interrupts in response to various fault
/linux-4.1.27/Documentation/vm/
Dzswap.txt50 During a page fault on a PTE that is a swap entry, frontswap calls the zswap
51 load function to decompress the page into the page allocated by the page fault
Dunevictable-lru.txt208 If unevictable pages are culled in the fault path, or moved to the unevictable
285 (4) in the fault path, if mlocked pages are "culled" in the fault path,
321 populate_vma_page_range() to fault in the pages via get_user_pages() and to
325 get_user_pages() will be unable to fault in the pages. That's okay. If pages
327 fault path or in vmscan.
485 attempting to fault in a VMA with PROT_NONE access. In this case, we leave the
663 allocate or fault in the pages in the shared memory region. This happens
/linux-4.1.27/Documentation/powerpc/
Dcxl.txt59 the fault. The context to which this fault is serviced is based on
262 struct cxl_event_data_storage fault;
334 This field gives information on the type of fault. It is a
336 fault occurred. The form of the DSISR is as defined in the
/linux-4.1.27/arch/powerpc/kvm/
Dbook3s_64_vio.c78 .fault = kvm_spapr_tce_fault,
/linux-4.1.27/arch/arm/nwfpe/
Dentry.S113 @ to fault. Emit the appropriate exception gunk to fix things up.
/linux-4.1.27/fs/nilfs2/
Dfile.c128 .fault = filemap_fault,
/linux-4.1.27/Documentation/x86/x86_64/
Dmm.txt29 the processes using the page fault handler, with init_level4_pgt as
/linux-4.1.27/fs/ocfs2/
Dmmap.c174 .fault = ocfs2_fault,
/linux-4.1.27/Documentation/filesystems/
Ddax.txt62 for fault and page_mkwrite (which should probably call dax_fault() and
71 calls to get_block() (for example by a page-fault racing with a read()
/linux-4.1.27/arch/arc/include/asm/
Ddisasm.h90 int fault, write; member
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dgf100.c41 struct work_struct fault; member
410 struct gf100_fifo_priv *priv = container_of(work, typeof(*priv), fault); in gf100_fifo_recover_work()
453 schedule_work(&priv->fault); in gf100_fifo_recover()
868 INIT_WORK(&priv->fault, gf100_fifo_recover_work); in gf100_fifo_ctor()
Dgk104.c64 struct work_struct fault; member
435 struct gk104_fifo_priv *priv = container_of(work, typeof(*priv), fault); in gk104_fifo_recover_work()
478 schedule_work(&priv->fault); in gk104_fifo_recover()
1092 INIT_WORK(&priv->fault, gk104_fifo_recover_work); in gk104_fifo_ctor()
/linux-4.1.27/drivers/pnp/pnpbios/
DKconfig34 Also some buggy systems will fault when accessing certain features
/linux-4.1.27/net/rxrpc/
Dar-key.c1135 goto fault; \ in rxrpc_read()
1142 goto fault; \ in rxrpc_read()
1145 goto fault; \ in rxrpc_read()
1152 goto fault; \ in rxrpc_read()
1244 fault: in rxrpc_read()
/linux-4.1.27/fs/kernfs/
Dfile.c358 if (of->vm_ops->fault) in kernfs_vma_fault()
359 ret = of->vm_ops->fault(vma, vmf); in kernfs_vma_fault()
456 .fault = kernfs_vma_fault,
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_ttm.c117 r = ttm_vm_ops->fault(vma, vmf); in qxl_ttm_fault()
149 qxl_ttm_vm_ops.fault = &qxl_ttm_fault; in qxl_mmap()
/linux-4.1.27/arch/ia64/lib/
Dmemcpy_mck.S131 lfetch.fault [src_pre_mem], 128
132 lfetch.fault.excl [dst_pre_mem], 128
310 1: lfetch.fault [src_pre_mem], 128
311 lfetch.fault.excl [dst_pre_mem], 128
/linux-4.1.27/arch/blackfin/
DKconfig.debug6 bool "Verbose fault messages"
57 a double fault occurs. On the Blackfin, this is a unrecoverable
59 - RESET exactly when double fault occurs. The excepting
/linux-4.1.27/arch/cris/arch-v10/kernel/
Dentry.S332 ;; This is the MMU bus fault handler.
338 ;; a real fault we let the mm subsystem handle it.
350 ;; write causes a MMU-fault, it will not be restarted correctly.
405 jsr handle_mmu_bus_fault ; in arch/cris/arch-v10/mm/fault.c
/linux-4.1.27/include/linux/ceph/
Dmessenger.h36 void (*fault) (struct ceph_connection *con); member
/linux-4.1.27/drivers/char/agp/
Dalpha-agp.c44 .fault = alpha_core_agp_vm_fault,
/linux-4.1.27/Documentation/usb/
Derror-codes.txt109 device disconnect), or some other fault.
160 processing, devices may receive such fault reports for every request.
/linux-4.1.27/drivers/block/drbd/
DKconfig43 bool "DRBD fault injection"
/linux-4.1.27/drivers/video/fbdev/core/
Dfb_defio.c152 .fault = fb_deferred_io_fault,
/linux-4.1.27/arch/powerpc/boot/dts/
Dpdm360ng.dts137 fsl,invert-pwr-fault;
/linux-4.1.27/fs/ext4/
Dfile.c219 .fault = ext4_dax_fault,
228 .fault = ext4_filemap_fault,
/linux-4.1.27/sound/usb/usx2y/
DusX2Yhwdep.c58 .fault = snd_us428ctls_vm_fault,
/linux-4.1.27/drivers/scsi/
Deata_generic.h189 __u8 fault:1; /* write fault */ member
/linux-4.1.27/drivers/misc/
Denclosure.c490 return snprintf(buf, 40, "%d\n", ecomp->fault); in get_component_fault()
645 static DEVICE_ATTR(fault, S_IRUGO | S_IWUSR, get_component_fault,
/linux-4.1.27/fs/9p/
Dvfs_file.c625 .fault = filemap_fault,
632 .fault = filemap_fault,
/linux-4.1.27/net/sctp/
DKconfig29 -- network-level fault tolerance through supporting of multi-

12