drm - Fix memory leak in broadwell or later GPUs
commit6fe294aeab8ee15cd7a543c950ed3d644755dc18
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 16 Dec 2016 19:38:35 +0000 (16 11:38 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 16 Dec 2016 19:38:35 +0000 (16 11:38 -0800)
tree5b48b3ce6cad702c26524d3fe0892481499eb56a
parent02318f07beee82780ba5c99613d9e26974d14eb4
drm - Fix memory leak in broadwell or later GPUs

* vunmap() linux compatibility code was not implemented, leading to a
  memory leak for certain operations in newer GPUs.  Browsers tend to
  tickle the code paths in question.

* Implement vunmap() to fix the leak.
sys/dev/drm/i915/i915_cmd_parser.c
sys/dev/drm/i915/intel_ringbuffer.c
sys/dev/drm/i915/intel_ringbuffer.h
sys/dev/drm/include/linux/vmalloc.h