drm/nouveau/dmem: empty chunk do not have a buffer object associated with them.
authorJérôme Glisse <jglisse@redhat.com>
Thu, 21 Mar 2019 19:42:18 +0000 (15:42 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 21 Mar 2019 23:58:38 +0000 (09:58 +1000)
commit83857418073fda5e0d562e6639b45ae06c957131
tree1cbede4d5f0706e81e29da86e3e9f0a360ef5138
parent909e9c9c428376e2a43d178ed4b0a2d5ba9cb7d3
drm/nouveau/dmem: empty chunk do not have a buffer object associated with them.

Empty chunk do not have a bo associated with them so no need to pin/unpin
on suspend/resume.

This fix suspend/resume on 5.1rc1 when NOUVEAU_SVM is enabled.

Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Tested-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_dmem.c