drm/amdgpu: create a func to check vm size
authorZhang, Jerry <Jerry.Zhang@amd.com>
Wed, 29 Mar 2017 08:08:31 +0000 (16:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Apr 2017 18:42:40 +0000 (14:42 -0400)
commit83ca145d155fbd50b9f23b0de99cd16e805a75d0
tree48bd0120b3452a3debd50f4c227ea04e9a6f970f
parent486a68f5449521edf5ea8a198481fc021da4a3e0
drm/amdgpu: create a func to check vm size

break it out from the check parameters function.

Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-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_device.c