drm/nv50-/kms: reject attempts at flipping to incompatible framebuffer
authorBen Skeggs <bskeggs@redhat.com>
Mon, 22 Dec 2014 09:50:23 +0000 (19:50 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:15:01 +0000 (12:15 +1000)
commit9ba8310647fc39d95c2a1ebb974fc189e74b11d4
tree2d79d103d28da85d6a22703d39f557e1097e3901
parent0ea5fe8a83c2d1d59bcf1a59ba685a6452c41205
drm/nv50-/kms: reject attempts at flipping to incompatible framebuffer

Looks like a userspace bug can trigger this somehow during a mode
switch, causing: EVO complaint -> semaphores get out of sync ->
entire display stalled.

We likely want to be even stricter than this (or at least deal
better if EVO rejects our request), but I'll save that for the
drm_plane/atomic conversion and just fix the bug that I already
know can be triggered.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_display.c