CVSROOT: /cvs Module name: src Changes by: kette...@cvs.openbsd.org 2014/02/13 16:11:06
Modified files: sys/dev/pci/drm/i915: i915_gem.c sys/arch/i386/i386: trap.c sys/arch/i386/include: cpu.h sys/arch/amd64/amd64: trap.c sys/arch/amd64/include: cpu.h Log message: Some Linux i915 drm "fast" path code relies on being able to "disable" page faults to avoid sleeping. Implement this functionality for i386 and amd64 for faults in the user address space. If the ci_inatomic flag is set in struct cpu_info, copyin(9) and copyout(9) will return EFAULT when a user-space address needs to be faulted in. Use this to properly implement __copy_to_user_inatomic() and __copy_from_user_inatomic_nocache() in the inteldrm(4) code. ok krw@, guenther@