]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/i915_gem.c
drm/i915: Reduce a pin-leak BUG into a WARN
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 15 Sep 2012 08:41:57 +0000 (09:41 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 17 Sep 2012 08:12:57 +0000 (10:12 +0200)
commit7e81a42e341a4f15d76624b7c02ffb21b085b56f
treea02e1d4ecb6636513109d9a6d7500b45b45d6f35
parent5b5896e4e1f353ef3dbc4e4e9ee44d53ccf105d7
drm/i915: Reduce a pin-leak BUG into a WARN

Pin-leaks persist and we get the perennial bug reports of machine
lockups to the BUG_ON(pin_count==MAX). If we instead loudly report that
the object cannot be pinned at that time it should prevent the driver from
locking up, and hopefully restore a semblance of working whilst still
leaving us a OOPS to debug.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c