]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc1473ad6fb1daf062a6082cad1d8913b2896b14
treed0dd9475405c0e7249e7d975b82757f9dcc6fc90
parent51374474b9b7bde1b12a7ffdcdfae90f85e0d4e7
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