OSDN Git Service

drm/amdkfd: change system memory overcommit limit
authorEric Huang <JinhuiEric.Huang@amd.com>
Wed, 5 Sep 2018 15:46:14 +0000 (11:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Nov 2018 19:01:54 +0000 (14:01 -0500)
commit5d240da93edc29adb68320c5e475dc9c7fcad5dd
tree44551f46cc7a22198a922e187b8e28ceb16bf1a7
parent0f04e538580c086046e3b31cbc7ef4307a5b771d
drm/amdkfd: change system memory overcommit limit

It is to improve system limit by:
1. replacing userptrlimit with a total memory limit that
conunts TTM memory usage and userptr usage.
2. counting acc size for all BOs.

Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c