drm: Assert that BO is locked in drm_gem_vram_{pin, unpin}_locked()
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 21 May 2019 11:08:31 +0000 (13:08 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 22 May 2019 10:43:30 +0000 (12:43 +0200)
commit9977e5b43776fd0f6cc62c29b4b7ade16bfdf649
tree77d5c16da2c3eaa639365cca5e4463705263bf4a
parentcb1f8814bbfcc2d0d7c499530e3d878ba04e4af2
drm: Assert that BO is locked in drm_gem_vram_{pin, unpin}_locked()

We may not call drm_gem_vram_{pin,unpin}_locked() with an unlocked
BO. Now test for this.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20190521110831.20200-4-tzimmermann@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/drm_gem_vram_helper.c