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 19:05:42 +0000 (11:05 -0800)
commitca530d3002a6670445585e0311cb46bcaa548fd2
tree74dfe8c2dd4033e4345c8eac3930c0b5d3fefe82
parentef3014f8f4dc2a80899e81b81138b067348c8321
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