Module Name: src Committed By: riastradh Date: Sun Sep 8 15:55:23 UTC 2013
Modified Files: src/sys/external/bsd/drm2/dist/drm/i915 [riastradh-drm2]: i915_gem.c Log Message: Use pmap_enter_default, not pmap_enter. Seems to be a problem with modules referring to weak aliases? To generate a diff of this commit: cvs rdiff -u -r1.1.1.1.2.8 -r1.1.1.1.2.9 \ src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c diff -u src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:1.1.1.1.2.8 src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:1.1.1.1.2.9 --- src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:1.1.1.1.2.8 Sun Sep 8 15:52:20 2013 +++ src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c Sun Sep 8 15:55:23 2013 @@ -1555,7 +1555,12 @@ out: /* * XXX i915_udv_fault is copypasta of udv_fault from uvm_device.c. + * + * XXX pmap_enter_default instead of pmap_enter because of a problem + * with using weak aliases in kernel modules or something. */ +int pmap_enter_default(pmap_t, vaddr_t, paddr_t, vm_prot_t, unsigned); + static int i915_udv_fault(struct uvm_faultinfo *ufi, vaddr_t vaddr, struct vm_page **pps, int npages, int centeridx, vm_prot_t access_type, int flags, @@ -1615,7 +1620,7 @@ i915_udv_fault(struct uvm_faultinfo *ufi UVMHIST_LOG(maphist, " MAPPING: device: pm=0x%x, va=0x%x, pa=0x%lx, at=%d", ufi->orig_map->pmap, curr_va, paddr, mapprot); - if (pmap_enter(ufi->orig_map->pmap, curr_va, paddr, mapprot, + if (pmap_enter_default(ufi->orig_map->pmap, curr_va, paddr, mapprot, PMAP_CANFAIL | mapprot | mmapflags) != 0) { /* * pmap_enter() didn't have the resource to