drm/ttm: Fix memory type compatibility check
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 28 Oct 2013 09:02:19 +0000 (02:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 18:57:05 +0000 (10:57 -0800)
commit4f94b6e4b43ca3a1027803bd3cab21e72bbb991e
tree49808a01ebc2acabc7f4d6de90a4c1faf73781a6
parent2940c25bec92f40a3f7f32504b8ea115d1701892
drm/ttm: Fix memory type compatibility check

commit 59c8e66378fb78adbcd05f0d09783dde6fef282b upstream.

Also check the busy placements before deciding to move a buffer object.
Failing to do this may result in a completely unneccessary move within a
single memory type.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ttm/ttm_bo.c