aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorPhilip Yang <[email protected]>2021-04-15 21:43:32 +0000
committerAlex Deucher <[email protected]>2021-04-21 01:48:00 +0000
commitc46ebb6a6d9d28fce66595b56db070b0cc4fab71 (patch)
tree1f4261847073083b15dd04869e2e989aeb43c182 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentdrm/amdkfd: register HMM device private zone (diff)
downloadkernel-c46ebb6a6d9d28fce66595b56db070b0cc4fab71.tar.gz
kernel-c46ebb6a6d9d28fce66595b56db070b0cc4fab71.zip
drm/amdkfd: set memory limit to avoid OOM with HMM enabled
HMM migration alloc sizeof(struct page) on system memory for each VRAM page, it is 1GB system memory reserved for 64GB VRAM. To avoid application OOM, increase system memory used size based on VRAM size of all GPUs, then application alloc memory will fail if system memory usage reach the limit. Signed-off-by: Philip Yang <[email protected]> Reviewed-by: Oak Zeng <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions