OSDN Git Service

drm/amdgpu: Implement BO size validation V2
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 10 Nov 2017 23:35:56 +0000 (18:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:22 +0000 (12:47 -0500)
commit79c631239a83aeb3e13216f2eda1741650645d64
treed0dd9475405c0e7249e7d975b82757f9dcc6fc90
parentfdd5faaa08f891153ac4fd8cedace6d95bed0968
drm/amdgpu: Implement BO size validation V2

Validates BO size against each requested domain's total memory.

v2:
Make GTT size check a MUST to allow fall back to GTT.
Rmove redundant NULL check.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@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_object.c