drm/amdgpu: gds bo must not be per-vm-bo
authorChunming Zhou <david1.zhou@amd.com>
Wed, 30 May 2018 03:12:08 +0000 (11:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 May 2018 17:34:34 +0000 (12:34 -0500)
commitee5309d5f3eba16d7901d29179d03d4336319fc0
tree59a2977c92b4881b27b8e2cfe8be4ebe0d4f3d6b
parent01d98506eca24f1a6b67374ffb65c2e62a56e8e7
drm/amdgpu: gds bo must not be per-vm-bo

In per-vm-bo case, there could be no bo list.
But gds bo created from user space  must be passed to bo list.
So adding a check to prevent to creat gds bo as per-vm-bo.

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c