diff options
author | Alex Sierra <alex.sierra@amd.com> | 2022-05-17 17:43:06 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-07-28 16:05:16 -0400 |
commit | f9af3c16bfe19d145cf0588afa06d7f1070cbe2d (patch) | |
tree | 36c90cf5d364103744b1b23f6fb86af68b512860 /drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | |
parent | 06ac561fb0edf868f7b292fb4a3c8ffbbb1e14bb (diff) | |
download | linux-f9af3c16bfe19d145cf0588afa06d7f1070cbe2d.tar.gz linux-f9af3c16bfe19d145cf0588afa06d7f1070cbe2d.tar.bz2 linux-f9af3c16bfe19d145cf0588afa06d7f1070cbe2d.zip |
drm/amdkfd: track unified memory reservation with xnack off
[WHY]
Unified memory with xnack off should be tracked, as userptr mappings
and legacy allocations do. To avoid oversuscribe system memory when
xnack off.
[How]
Exposing functions reserve_mem_limit and unreserve_mem_limit to SVM
API and call them on every prange creation and free.
Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c')
0 files changed, 0 insertions, 0 deletions