drm/ttm: Make ttm_bo_mem_compat available
commit97f28872a3148fb589125507e757163fef6a0b9b
authorSinclair Yeh <syeh@vmware.com>
Wed, 29 Jun 2016 19:58:49 +0000 (29 12:58 -0700)
committerSasha Levin <alexander.levin@verizon.com>
Wed, 3 Aug 2016 15:46:07 +0000 (3 11:46 -0400)
tree7e61d81a8168bb8bc38c2e13dbcfe88cba36cfe7
parent07761df8a174a27d498d87f0000409603627bb3c
drm/ttm: Make ttm_bo_mem_compat available

[ Upstream commit 94477bff390aa4612d2332c8abafaae0a13d6923 ]

There are cases where it is desired to see if a proposed placement
is compatible with a buffer object before calling ttm_bo_validate().

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Cc: <stable@vger.kernel.org>
---
This is the first of a 3-patch series to fix a black screen
issue observed on Ubuntu 16.04 server.

Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h