freebsd-nq/sys/dev/drm2/i915
John Baldwin d836c868a8 i915_gem_do_execbuffer() holds the pages backing each relocation region for
various reasons while executing user commands.  After these commands are
completed, the pages backing the relocation regions are unheld.

Since relocation regions do not have to be page aligned, the code in
validate_exec_list() allocates 2 extra page pointers in the array of
held pages populated by vm_fault_quick_hold_pages().  However, the cleanup
code that unheld the pages always assumed that only the buffer size /
PAGE_SIZE pages were used.  This meant that non-page aligned buffers would
not unheld the last 1 or 2 pages in the list.  Fix this by saving the
number of held pages returned by vm_fault_quick_hold_pages() for each
relocation region and using this count during cleanup.

Reviewed by:	dumbbell, kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D3965
2015-10-21 20:49:45 +00:00
..
i915_debug.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
i915_dma.c drm2: a few minor fixes after r280183 2015-10-04 07:45:36 +00:00
i915_drm.h drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
i915_drv.c Remove gen3 check introduced in r286653. 2015-10-06 20:58:45 +00:00
i915_drv.h Merge i915_emit_box_p and i915_emit_box as done in linux 3.8 2015-08-26 22:19:53 +00:00
i915_gem_context.c backout a change that should not have crept in 2015-08-26 22:00:40 +00:00
i915_gem_evict.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
i915_gem_execbuffer.c i915_gem_do_execbuffer() holds the pages backing each relocation region for 2015-10-21 20:49:45 +00:00
i915_gem_gtt.c Reduce diff against linux 3.8 2015-08-26 21:35:16 +00:00
i915_gem_stolen.c An update for the i915 GPU driver, which brings the code up to Linux 2015-01-21 16:10:37 +00:00
i915_gem_tiling.c Reduce diff against linux 3.8 2015-08-26 21:35:16 +00:00
i915_gem.c drm/i915: Remove "Attempting to unbind pinned buffer" message 2015-10-10 07:43:02 +00:00
i915_ioc32.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
i915_irq.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
i915_reg.h Synchronize i915_reg.h with linux 3.8.13 version 2015-08-26 21:17:48 +00:00
i915_suspend.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
intel_bios.c An update for the i915 GPU driver, which brings the code up to Linux 2015-01-21 16:10:37 +00:00
intel_bios.h
intel_crt.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
intel_ddi.c Synchronize i915_reg.h with linux 3.8.13 version 2015-08-26 21:17:48 +00:00
intel_display.c Synchronize i915_reg.h with linux 3.8.13 version 2015-08-26 21:17:48 +00:00
intel_dp.c drm/i915: Reduce diff with Linux 3.8 2015-10-17 14:48:39 +00:00
intel_drv.h Reduce diff with linux 3.8.13 on i915 headers 2015-09-05 23:22:59 +00:00
intel_fb.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
intel_hdmi.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
intel_iic.c drm/i915: Reduce diff with Linux 3.8 2015-10-17 14:48:39 +00:00
intel_lvds.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
intel_modes.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
intel_opregion.c drm2: a few minor fixes after r280183 2015-10-04 07:45:36 +00:00
intel_overlay.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
intel_panel.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
intel_pm.c Synchronize i915_reg.h with linux 3.8.13 version 2015-08-26 21:17:48 +00:00
intel_ringbuffer.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
intel_ringbuffer.h Reduce diff with linux 3.8.13 on i915 headers 2015-09-05 23:22:59 +00:00
intel_sdvo_regs.h Reduce diff with linux 3.8.13 on i915 headers 2015-09-05 23:22:59 +00:00
intel_sdvo.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00
intel_sprite.c An update for the i915 GPU driver, which brings the code up to Linux 2015-01-21 16:10:37 +00:00
intel_tv.c drm: Update the device-independent code to match Linux 3.8.13 2015-03-17 18:50:33 +00:00